Resynch with 2.8 changes (realized I don't need __WX_COMPILING_COCOA_MSGDLG_MM__)
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 49607 2007-11-03 16:44:04Z 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_MAC_1
873 COND_PLATFORM_MSDOS_1
874 COND_PLATFORM_OS2_1
875 COND_PLATFORM_UNIX_0
876 COND_PLATFORM_UNIX_1
877 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
878 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
879 COND_PLATFORM_UNIX_1_USE_GUI_1
880 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
881 COND_PLATFORM_WIN32_0
882 COND_PLATFORM_WIN32_1
883 COND_SHARED_0
884 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
885 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
886 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
887 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
888 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
889 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
890 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
891 COND_SHARED_0_USE_STC_1
892 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
893 COND_SHARED_0_WXUSE_REGEX_BUILTIN
894 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
895 COND_SHARED_1
896 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
897 COND_TOOLKIT_
898 COND_TOOLKIT_COCOA
899 COND_TOOLKIT_COCOA_USE_GUI_1
900 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
901 COND_TOOLKIT_DFB
902 COND_TOOLKIT_DFB_USE_GUI_1
903 COND_TOOLKIT_GTK
904 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
905 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
906 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
907 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
908 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
909 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
910 COND_TOOLKIT_GTK_USE_GUI_1
911 COND_TOOLKIT_MAC
912 COND_TOOLKIT_MAC_USE_GUI_1
913 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
914 COND_TOOLKIT_MGL
915 COND_TOOLKIT_MGL_USE_GUI_1
916 COND_TOOLKIT_MOTIF
917 COND_TOOLKIT_MOTIF_USE_GUI_1
918 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_MSW
920 COND_TOOLKIT_MSW_USE_GUI_1
921 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
922 COND_TOOLKIT_MSW_WXUNIV_0
923 COND_TOOLKIT_PM
924 COND_TOOLKIT_PM_USE_GUI_1
925 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
926 COND_TOOLKIT_WINCE
927 COND_TOOLKIT_WINCE_USE_GUI_1
928 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
929 COND_TOOLKIT_WINCE_WXUNIV_0
930 COND_TOOLKIT_X11
931 COND_TOOLKIT_X11_USE_GUI_1
932 COND_UNICODE_1
933 COND_USE_EXCEPTIONS_0
934 COND_USE_EXCEPTIONS_1
935 COND_USE_GUI_0
936 COND_USE_GUI_1
937 COND_USE_GUI_1_USE_OPENGL_1
938 COND_USE_GUI_1_WXUNIV_0
939 COND_USE_GUI_1_WXUNIV_1
940 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
941 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
942 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
943 COND_USE_PCH_1
944 COND_USE_PLUGINS_0
945 COND_USE_RTTI_0
946 COND_USE_RTTI_1
947 COND_USE_SOSYMLINKS_1
948 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
949 COND_USE_SOVERLINUX_1
950 COND_USE_SOVERSION_0
951 COND_USE_SOVERSOLARIS_1
952 COND_USE_STC_1
953 COND_USE_THREADS_0
954 COND_USE_THREADS_1
955 COND_USE_XRC_1
956 COND_WINDOWS_IMPLIB_1
957 COND_WITH_PLUGIN_SDL_1
958 COND_WXUNIV_0
959 COND_WXUNIV_1
960 COND_WXUSE_EXPAT_BUILTIN
961 COND_WXUSE_LIBJPEG_BUILTIN
962 COND_WXUSE_LIBPNG_BUILTIN
963 COND_WXUSE_LIBTIFF_BUILTIN
964 COND_WXUSE_REGEX_BUILTIN
965 COND_WXUSE_ZLIB_BUILTIN
966 DEREZ
967 SHARED
968 WX_LIBRARY_BASENAME_NOGUI
969 WX_LIBRARY_BASENAME_GUI
970 USE_GUI
971 AFMINSTALL
972 WIN32INSTALL
973 TOOLKIT
974 TOOLKIT_DIR
975 TOOLCHAIN_NAME
976 TOOLCHAIN_FULLNAME
977 cross_compiling
978 WIDGET_SET
979 WX_RELEASE
980 WX_VERSION
981 WX_SUBVERSION
982 WX_CHARTYPE
983 WX_DEBUGTYPE
984 WXCONFIG_CPPFLAGS
985 WXCONFIG_CFLAGS
986 WXCONFIG_CXXFLAGS
987 WXCONFIG_LIBS
988 WXCONFIG_RPATH
989 WXCONFIG_LDFLAGS_GUI
990 WXCONFIG_RESFLAGS
991 GUIDIST
992 DISTDIR
993 SAMPLES_SUBDIRS
994 LDFLAGS_GL
995 OPENGL_LIBS
996 DMALLOC_LIBS
997 WX_VERSION_TAG
998 RESCOMP
999 RESFLAGS
1000 RESPROGRAMOBJ
1001 WX_RESOURCES_MACOSX_ASCII
1002 WX_RESOURCES_MACOSX_DATA
1003 LIBWXMACRES
1004 POSTLINK_COMMAND
1005 MACSETFILE
1006 GCC
1007 DLLTOOL
1008 CPPUNIT_CONFIG
1009 LIBOBJS
1010 LTLIBOBJS'
1011 ac_subst_files=''
1012       ac_precious_vars='build_alias
1013 host_alias
1014 target_alias
1015 CC
1016 CFLAGS
1017 LDFLAGS
1018 LIBS
1019 CPPFLAGS
1020 CPP
1021 CXX
1022 CXXFLAGS
1023 CCC
1024 PKG_CONFIG
1025 DIRECTFB_CFLAGS
1026 DIRECTFB_LIBS
1027 XMKMF
1028 PANGOX_CFLAGS
1029 PANGOX_LIBS
1030 PANGOFT2_CFLAGS
1031 PANGOFT2_LIBS
1032 PANGOXFT_CFLAGS
1033 PANGOXFT_LIBS
1034 GTKPRINT_CFLAGS
1035 GTKPRINT_LIBS
1036 LIBGNOMEPRINTUI_CFLAGS
1037 LIBGNOMEPRINTUI_LIBS
1038 GNOMEVFS_CFLAGS
1039 GNOMEVFS_LIBS
1040 HILDON_CFLAGS
1041 HILDON_LIBS
1042 CAIRO_CFLAGS
1043 CAIRO_LIBS
1044 GST_CFLAGS
1045 GST_LIBS'
1046 ac_subdirs_all='src/tiff
1047 src/expat'
1048
1049 # Initialize some variables set by options.
1050 ac_init_help=
1051 ac_init_version=false
1052 # The variables have the same names as the options, with
1053 # dashes changed to underlines.
1054 cache_file=/dev/null
1055 exec_prefix=NONE
1056 no_create=
1057 no_recursion=
1058 prefix=NONE
1059 program_prefix=NONE
1060 program_suffix=NONE
1061 program_transform_name=s,x,x,
1062 silent=
1063 site=
1064 srcdir=
1065 verbose=
1066 x_includes=NONE
1067 x_libraries=NONE
1068
1069 # Installation directory options.
1070 # These are left unexpanded so users can "make install exec_prefix=/foo"
1071 # and all the variables that are supposed to be based on exec_prefix
1072 # by default will actually change.
1073 # Use braces instead of parens because sh, perl, etc. also accept them.
1074 # (The list follows the same order as the GNU Coding Standards.)
1075 bindir='${exec_prefix}/bin'
1076 sbindir='${exec_prefix}/sbin'
1077 libexecdir='${exec_prefix}/libexec'
1078 datarootdir='${prefix}/share'
1079 datadir='${datarootdir}'
1080 sysconfdir='${prefix}/etc'
1081 sharedstatedir='${prefix}/com'
1082 localstatedir='${prefix}/var'
1083 includedir='${prefix}/include'
1084 oldincludedir='/usr/include'
1085 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1086 infodir='${datarootdir}/info'
1087 htmldir='${docdir}'
1088 dvidir='${docdir}'
1089 pdfdir='${docdir}'
1090 psdir='${docdir}'
1091 libdir='${exec_prefix}/lib'
1092 localedir='${datarootdir}/locale'
1093 mandir='${datarootdir}/man'
1094
1095 ac_prev=
1096 ac_dashdash=
1097 for ac_option
1098 do
1099   # If the previous option needs an argument, assign it.
1100   if test -n "$ac_prev"; then
1101     eval $ac_prev=\$ac_option
1102     ac_prev=
1103     continue
1104   fi
1105
1106   case $ac_option in
1107   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1108   *)    ac_optarg=yes ;;
1109   esac
1110
1111   # Accept the important Cygnus configure options, so we can diagnose typos.
1112
1113   case $ac_dashdash$ac_option in
1114   --)
1115     ac_dashdash=yes ;;
1116
1117   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1118     ac_prev=bindir ;;
1119   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1120     bindir=$ac_optarg ;;
1121
1122   -build | --build | --buil | --bui | --bu)
1123     ac_prev=build_alias ;;
1124   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1125     build_alias=$ac_optarg ;;
1126
1127   -cache-file | --cache-file | --cache-fil | --cache-fi \
1128   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1129     ac_prev=cache_file ;;
1130   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1131   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1132     cache_file=$ac_optarg ;;
1133
1134   --config-cache | -C)
1135     cache_file=config.cache ;;
1136
1137   -datadir | --datadir | --datadi | --datad)
1138     ac_prev=datadir ;;
1139   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1140     datadir=$ac_optarg ;;
1141
1142   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1143   | --dataroo | --dataro | --datar)
1144     ac_prev=datarootdir ;;
1145   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1146   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1147     datarootdir=$ac_optarg ;;
1148
1149   -disable-* | --disable-*)
1150     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1151     # Reject names that are not valid shell variable names.
1152     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1153       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1154    { (exit 1); exit 1; }; }
1155     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1156     eval enable_$ac_feature=no ;;
1157
1158   -docdir | --docdir | --docdi | --doc | --do)
1159     ac_prev=docdir ;;
1160   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1161     docdir=$ac_optarg ;;
1162
1163   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1164     ac_prev=dvidir ;;
1165   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1166     dvidir=$ac_optarg ;;
1167
1168   -enable-* | --enable-*)
1169     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1170     # Reject names that are not valid shell variable names.
1171     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1172       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1173    { (exit 1); exit 1; }; }
1174     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1175     eval enable_$ac_feature=\$ac_optarg ;;
1176
1177   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1178   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1179   | --exec | --exe | --ex)
1180     ac_prev=exec_prefix ;;
1181   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1182   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1183   | --exec=* | --exe=* | --ex=*)
1184     exec_prefix=$ac_optarg ;;
1185
1186   -gas | --gas | --ga | --g)
1187     # Obsolete; use --with-gas.
1188     with_gas=yes ;;
1189
1190   -help | --help | --hel | --he | -h)
1191     ac_init_help=long ;;
1192   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1193     ac_init_help=recursive ;;
1194   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1195     ac_init_help=short ;;
1196
1197   -host | --host | --hos | --ho)
1198     ac_prev=host_alias ;;
1199   -host=* | --host=* | --hos=* | --ho=*)
1200     host_alias=$ac_optarg ;;
1201
1202   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1203     ac_prev=htmldir ;;
1204   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1205   | --ht=*)
1206     htmldir=$ac_optarg ;;
1207
1208   -includedir | --includedir | --includedi | --included | --include \
1209   | --includ | --inclu | --incl | --inc)
1210     ac_prev=includedir ;;
1211   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1212   | --includ=* | --inclu=* | --incl=* | --inc=*)
1213     includedir=$ac_optarg ;;
1214
1215   -infodir | --infodir | --infodi | --infod | --info | --inf)
1216     ac_prev=infodir ;;
1217   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1218     infodir=$ac_optarg ;;
1219
1220   -libdir | --libdir | --libdi | --libd)
1221     ac_prev=libdir ;;
1222   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1223     libdir=$ac_optarg ;;
1224
1225   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1226   | --libexe | --libex | --libe)
1227     ac_prev=libexecdir ;;
1228   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1229   | --libexe=* | --libex=* | --libe=*)
1230     libexecdir=$ac_optarg ;;
1231
1232   -localedir | --localedir | --localedi | --localed | --locale)
1233     ac_prev=localedir ;;
1234   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1235     localedir=$ac_optarg ;;
1236
1237   -localstatedir | --localstatedir | --localstatedi | --localstated \
1238   | --localstate | --localstat | --localsta | --localst | --locals)
1239     ac_prev=localstatedir ;;
1240   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1241   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1242     localstatedir=$ac_optarg ;;
1243
1244   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1245     ac_prev=mandir ;;
1246   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1247     mandir=$ac_optarg ;;
1248
1249   -nfp | --nfp | --nf)
1250     # Obsolete; use --without-fp.
1251     with_fp=no ;;
1252
1253   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1254   | --no-cr | --no-c | -n)
1255     no_create=yes ;;
1256
1257   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1258   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1259     no_recursion=yes ;;
1260
1261   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1262   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1263   | --oldin | --oldi | --old | --ol | --o)
1264     ac_prev=oldincludedir ;;
1265   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1266   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1267   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1268     oldincludedir=$ac_optarg ;;
1269
1270   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1271     ac_prev=prefix ;;
1272   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1273     prefix=$ac_optarg ;;
1274
1275   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1276   | --program-pre | --program-pr | --program-p)
1277     ac_prev=program_prefix ;;
1278   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1279   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1280     program_prefix=$ac_optarg ;;
1281
1282   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1283   | --program-suf | --program-su | --program-s)
1284     ac_prev=program_suffix ;;
1285   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1286   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1287     program_suffix=$ac_optarg ;;
1288
1289   -program-transform-name | --program-transform-name \
1290   | --program-transform-nam | --program-transform-na \
1291   | --program-transform-n | --program-transform- \
1292   | --program-transform | --program-transfor \
1293   | --program-transfo | --program-transf \
1294   | --program-trans | --program-tran \
1295   | --progr-tra | --program-tr | --program-t)
1296     ac_prev=program_transform_name ;;
1297   -program-transform-name=* | --program-transform-name=* \
1298   | --program-transform-nam=* | --program-transform-na=* \
1299   | --program-transform-n=* | --program-transform-=* \
1300   | --program-transform=* | --program-transfor=* \
1301   | --program-transfo=* | --program-transf=* \
1302   | --program-trans=* | --program-tran=* \
1303   | --progr-tra=* | --program-tr=* | --program-t=*)
1304     program_transform_name=$ac_optarg ;;
1305
1306   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1307     ac_prev=pdfdir ;;
1308   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1309     pdfdir=$ac_optarg ;;
1310
1311   -psdir | --psdir | --psdi | --psd | --ps)
1312     ac_prev=psdir ;;
1313   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1314     psdir=$ac_optarg ;;
1315
1316   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1317   | -silent | --silent | --silen | --sile | --sil)
1318     silent=yes ;;
1319
1320   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1321     ac_prev=sbindir ;;
1322   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1323   | --sbi=* | --sb=*)
1324     sbindir=$ac_optarg ;;
1325
1326   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1327   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1328   | --sharedst | --shareds | --shared | --share | --shar \
1329   | --sha | --sh)
1330     ac_prev=sharedstatedir ;;
1331   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1332   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1333   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1334   | --sha=* | --sh=*)
1335     sharedstatedir=$ac_optarg ;;
1336
1337   -site | --site | --sit)
1338     ac_prev=site ;;
1339   -site=* | --site=* | --sit=*)
1340     site=$ac_optarg ;;
1341
1342   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1343     ac_prev=srcdir ;;
1344   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1345     srcdir=$ac_optarg ;;
1346
1347   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1348   | --syscon | --sysco | --sysc | --sys | --sy)
1349     ac_prev=sysconfdir ;;
1350   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1351   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1352     sysconfdir=$ac_optarg ;;
1353
1354   -target | --target | --targe | --targ | --tar | --ta | --t)
1355     ac_prev=target_alias ;;
1356   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1357     target_alias=$ac_optarg ;;
1358
1359   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1360     verbose=yes ;;
1361
1362   -version | --version | --versio | --versi | --vers | -V)
1363     ac_init_version=: ;;
1364
1365   -with-* | --with-*)
1366     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1367     # Reject names that are not valid shell variable names.
1368     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1369       { echo "$as_me: error: invalid package name: $ac_package" >&2
1370    { (exit 1); exit 1; }; }
1371     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1372     eval with_$ac_package=\$ac_optarg ;;
1373
1374   -without-* | --without-*)
1375     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376     # Reject names that are not valid shell variable names.
1377     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1378       { echo "$as_me: error: invalid package name: $ac_package" >&2
1379    { (exit 1); exit 1; }; }
1380     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1381     eval with_$ac_package=no ;;
1382
1383   --x)
1384     # Obsolete; use --with-x.
1385     with_x=yes ;;
1386
1387   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1388   | --x-incl | --x-inc | --x-in | --x-i)
1389     ac_prev=x_includes ;;
1390   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1391   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1392     x_includes=$ac_optarg ;;
1393
1394   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1395   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1396     ac_prev=x_libraries ;;
1397   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1398   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1399     x_libraries=$ac_optarg ;;
1400
1401   -*) { echo "$as_me: error: unrecognized option: $ac_option
1402 Try \`$0 --help' for more information." >&2
1403    { (exit 1); exit 1; }; }
1404     ;;
1405
1406   *=*)
1407     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1408     # Reject names that are not valid shell variable names.
1409     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1410       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1411    { (exit 1); exit 1; }; }
1412     eval $ac_envvar=\$ac_optarg
1413     export $ac_envvar ;;
1414
1415   *)
1416     # FIXME: should be removed in autoconf 3.0.
1417     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1418     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1419       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1420     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1421     ;;
1422
1423   esac
1424 done
1425
1426 if test -n "$ac_prev"; then
1427   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1428   { echo "$as_me: error: missing argument to $ac_option" >&2
1429    { (exit 1); exit 1; }; }
1430 fi
1431
1432 # Be sure to have absolute directory names.
1433 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434                 datadir sysconfdir sharedstatedir localstatedir includedir \
1435                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436                 libdir localedir mandir
1437 do
1438   eval ac_val=\$$ac_var
1439   case $ac_val in
1440     [\\/$]* | ?:[\\/]* )  continue;;
1441     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1442   esac
1443   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1444    { (exit 1); exit 1; }; }
1445 done
1446
1447 # There might be people who depend on the old broken behavior: `$host'
1448 # used to hold the argument of --host etc.
1449 # FIXME: To remove some day.
1450 build=$build_alias
1451 host=$host_alias
1452 target=$target_alias
1453
1454 # FIXME: To remove some day.
1455 if test "x$host_alias" != x; then
1456   if test "x$build_alias" = x; then
1457     cross_compiling=maybe
1458     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1459     If a cross compiler is detected then cross compile mode will be used." >&2
1460   elif test "x$build_alias" != "x$host_alias"; then
1461     cross_compiling=yes
1462   fi
1463 fi
1464
1465 ac_tool_prefix=
1466 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467
1468 test "$silent" = yes && exec 6>/dev/null
1469
1470
1471 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1472 ac_ls_di=`ls -di .` &&
1473 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1474   { echo "$as_me: error: Working directory cannot be determined" >&2
1475    { (exit 1); exit 1; }; }
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477   { echo "$as_me: error: pwd does not report name of working directory" >&2
1478    { (exit 1); exit 1; }; }
1479
1480
1481 # Find the source files, if location was not specified.
1482 if test -z "$srcdir"; then
1483   ac_srcdir_defaulted=yes
1484   # Try the directory containing this script, then the parent directory.
1485   ac_confdir=`$as_dirname -- "$0" ||
1486 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1487          X"$0" : 'X\(//\)[^/]' \| \
1488          X"$0" : 'X\(//\)$' \| \
1489          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1490 echo X"$0" |
1491     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1492             s//\1/
1493             q
1494           }
1495           /^X\(\/\/\)[^/].*/{
1496             s//\1/
1497             q
1498           }
1499           /^X\(\/\/\)$/{
1500             s//\1/
1501             q
1502           }
1503           /^X\(\/\).*/{
1504             s//\1/
1505             q
1506           }
1507           s/.*/./; q'`
1508   srcdir=$ac_confdir
1509   if test ! -r "$srcdir/$ac_unique_file"; then
1510     srcdir=..
1511   fi
1512 else
1513   ac_srcdir_defaulted=no
1514 fi
1515 if test ! -r "$srcdir/$ac_unique_file"; then
1516   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1517   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1518    { (exit 1); exit 1; }; }
1519 fi
1520 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1521 ac_abs_confdir=`(
1522         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1523    { (exit 1); exit 1; }; }
1524         pwd)`
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1527   srcdir=.
1528 fi
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1532 case $srcdir in
1533 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1534 esac
1535 for ac_var in $ac_precious_vars; do
1536   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1537   eval ac_env_${ac_var}_value=\$${ac_var}
1538   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1539   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1540 done
1541
1542 #
1543 # Report the --help message.
1544 #
1545 if test "$ac_init_help" = "long"; then
1546   # Omit some internal or obsolete options to make the list less imposing.
1547   # This message is too long to be a string in the A/UX 3.1 sh.
1548   cat <<_ACEOF
1549 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1550
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1552
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE.  See below for descriptions of some of the useful variables.
1555
1556 Defaults for the options are specified in brackets.
1557
1558 Configuration:
1559   -h, --help              display this help and exit
1560       --help=short        display options specific to this package
1561       --help=recursive    display the short help of all the included packages
1562   -V, --version           display version information and exit
1563   -q, --quiet, --silent   do not print \`checking...' messages
1564       --cache-file=FILE   cache test results in FILE [disabled]
1565   -C, --config-cache      alias for \`--cache-file=config.cache'
1566   -n, --no-create         do not create output files
1567       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1568
1569 Installation directories:
1570   --prefix=PREFIX         install architecture-independent files in PREFIX
1571                           [$ac_default_prefix]
1572   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1573                           [PREFIX]
1574
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1579
1580 For better control, use the options below.
1581
1582 Fine tuning of the installation directories:
1583   --bindir=DIR           user executables [EPREFIX/bin]
1584   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1585   --libexecdir=DIR       program executables [EPREFIX/libexec]
1586   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1587   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1588   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1589   --libdir=DIR           object code libraries [EPREFIX/lib]
1590   --includedir=DIR       C header files [PREFIX/include]
1591   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1592   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1593   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1594   --infodir=DIR          info documentation [DATAROOTDIR/info]
1595   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1596   --mandir=DIR           man documentation [DATAROOTDIR/man]
1597   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1598   --htmldir=DIR          html documentation [DOCDIR]
1599   --dvidir=DIR           dvi documentation [DOCDIR]
1600   --pdfdir=DIR           pdf documentation [DOCDIR]
1601   --psdir=DIR            ps documentation [DOCDIR]
1602 _ACEOF
1603
1604   cat <<\_ACEOF
1605
1606 X features:
1607   --x-includes=DIR    X include files are in DIR
1608   --x-libraries=DIR   X library files are in DIR
1609
1610 System types:
1611   --build=BUILD     configure for building on BUILD [guessed]
1612   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1613   --target=TARGET   configure for building compilers for TARGET [HOST]
1614 _ACEOF
1615 fi
1616
1617 if test -n "$ac_init_help"; then
1618   case $ac_init_help in
1619      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1620    esac
1621   cat <<\_ACEOF
1622
1623 Optional Features:
1624   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1625   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1626   --disable-gui           don't build GUI parts of the library
1627   --enable-monolithic     build wxWidgets as single library
1628   --enable-plugins        build parts of wxWidgets as loadable components
1629   --enable-official_build official build of wxWidgets (win32 DLL only)
1630   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1631   --disable-all-features  disable all optional features to build minimal library
1632   --enable-universal      use wxWidgets GUI controls instead of native ones
1633   --enable-nanox          use NanoX
1634   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1635   --enable-gpe            use GNOME PDA Environment features if possible
1636   --disable-shared        create static library instead of shared
1637   --disable-optimise      create optimised code
1638   --enable-debug          same as debug_flag and debug_info
1639   --enable-stl            use STL for containers
1640   --enable-std_iostreams  use standard C++ stream classes
1641   --enable-std_string     use standard C++ string classes
1642   --disable-unicode       compile without Unicode support
1643   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1644   --enable-utf8           use UTF-8 representation for strings (Unix only)
1645   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1646   --enable-extended_rtti  use extended RTTI (XTI)
1647   --enable-omf            use OMF object format
1648   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1649   --enable-debug_info     create code with debugging information
1650   --enable-debug_gdb      create code with extra GDB debugging information
1651   --enable-debug_cntxt    use wxDebugContext
1652   --enable-mem_tracing    create code with memory tracing
1653   --enable-profile        create code with profiling information
1654   --enable-no_rtti        create code without RTTI information
1655   --enable-no_exceptions  create code without C++ exceptions handling
1656   --enable-permissive     compile code disregarding strict ANSI
1657   --enable-no_deps        create code without dependency information
1658   --disable-vararg_macros don't use vararg macros, even if they are supported
1659   --enable-universal_binary  create Mac PowerPC and Intel Universal binary
1660   --enable-compat26       enable wxWidgets 2.6 compatibility
1661   --disable-compat28      disable wxWidgets 2.8 compatibility
1662   --disable-rpath         disable use of rpath for uninstalled builds
1663   --enable-objc_uniquifying enable Objective-C class name uniquifying
1664   --disable-visibility    disable use of ELF symbols visibility even if supported
1665   --enable-intl           use internationalization system
1666   --enable-config         use wxConfig (and derived) classes
1667   --enable-protocols      use wxProtocol and derived classes
1668   --enable-ftp            use wxFTP (requires wxProtocol
1669   --enable-http           use wxHTTP (requires wxProtocol
1670   --enable-fileproto      use wxFileProto class (requires wxProtocol
1671   --enable-sockets        use socket/network classes
1672   --enable-ole            use OLE classes (Win32 only)
1673   --enable-dataobj        use data object classes
1674   --enable-ipc            use interprocess communication (wxSocket etc.)
1675   --enable-baseevtloop    use event loop in console programs too
1676   --enable-epollloop      use wxEpollDispatcher class (Linux only)
1677   --enable-selectloop     use wxSelectDispatcher class
1678   --enable-apple_ieee     use the Apple IEEE codec
1679   --enable-arcstream      use wxArchive streams
1680   --enable-base64         use base64 encoding/decoding functions
1681   --enable-backtrace      use wxStackWalker class for getting backtraces
1682   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1683   --enable-cmdline        use wxCmdLineParser class
1684   --enable-datetime       use wxDateTime class
1685   --enable-debugreport    use wxDebugReport class
1686   --enable-dialupman      use dialup network classes
1687   --enable-dynlib         use wxLibrary class for DLL loading
1688   --enable-dynamicloader  use (new) wxDynamicLibrary class
1689   --enable-exceptions     build exception-safe library
1690   --enable-ffile          use wxFFile class
1691   --enable-file           use wxFile class
1692   --enable-filesystem     use virtual file systems classes
1693   --enable-fontenum       use wxFontEnumerator class
1694   --enable-fontmap        use font encodings conversion classes
1695   --enable-fs_archive     use virtual archive filesystems
1696   --enable-fs_inet        use virtual HTTP/FTP filesystems
1697   --enable-fs_zip         now replaced by fs_archive
1698   --enable-geometry       use geometry class
1699   --enable-log            use logging system
1700   --enable-longlong       use wxLongLong class
1701   --enable-mimetype       use wxMimeTypesManager
1702   --enable-snglinst       use wxSingleInstanceChecker class
1703   --enable-stdpaths       use wxStandardPaths class
1704   --enable-stopwatch      use wxStopWatch class
1705   --enable-streams        use wxStream etc classes
1706   --enable-sysoptions     use wxSystemOptions
1707   --enable-tarstream      use wxTar streams
1708   --enable-textbuf        use wxTextBuffer class
1709   --enable-textfile       use wxTextFile class
1710   --enable-timer          use wxTimer class
1711   --enable-sound          use wxSound class
1712   --enable-mediactrl      use wxMediaCtrl class
1713   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1714   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1715   --enable-zipstream      use wxZip streams
1716   --enable-url            use wxURL class
1717   --enable-variant        use wxVariant class
1718   --enable-protocol       use wxProtocol class
1719   --enable-protocol-http  HTTP support in wxProtocol
1720   --enable-protocol-ftp   FTP support in wxProtocol
1721   --enable-protocol-file  FILE support in wxProtocol
1722   --enable-threads        use threads
1723   --enable-iniconf        use wxIniConfig (Win32 only)
1724   --enable-regkey         use wxRegKey class (Win32 only)
1725   --enable-docview        use document view architecture
1726   --enable-help           use help subsystem
1727   --enable-mshtmlhelp     use MS HTML Help (win32)
1728   --enable-html           use wxHTML sub-library
1729   --enable-htmlhelp       use wxHTML-based help
1730   --enable-xrc            use XRC resources sub-library
1731   --enable-aui            use AUI docking library
1732   --enable-stc            use wxStyledTextCtrl library
1733   --enable-constraints    use layout-constraints system
1734   --enable-printarch      use printing architecture
1735   --enable-mdi            use multiple document interface architecture
1736   --enable-mdidoc         use docview architecture with MDI
1737   --enable-loggui         use standard GUI logger
1738   --enable-logwin         use wxLogWindow
1739   --enable-logdialog      use wxLogDialog
1740   --enable-webkit         use wxWebKitCtrl (Mac)
1741   --enable-richtext       use wxRichTextCtrl
1742   --enable-graphics_ctx   use graphics context 2D drawing API
1743   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1744   --enable-svg            use wxSVGFileDC device context
1745   --enable-clipboard      use wxClipboard class
1746   --enable-dnd            use Drag'n'Drop classes
1747   --enable-metafile       use win32 metafiles
1748   --disable-controls      disable compilation of all standard controls
1749   --enable-accel          use accelerators
1750   --enable-animatectrl    use wxAnimationCtrl class
1751   --enable-button         use wxButton class
1752   --enable-bmpbutton      use wxBitmapButton class
1753   --enable-bmpcombobox    use wxBitmapComboBox class
1754   --enable-calendar       use wxCalendarCtrl class
1755   --enable-caret          use wxCaret class
1756   --enable-checkbox       use wxCheckBox class
1757   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1758   --enable-choice         use wxChoice class
1759   --enable-choicebook     use wxChoicebook class
1760   --enable-collpane       use wxCollapsiblePane class
1761   --enable-colourpicker   use wxColourPickerCtrl class
1762   --enable-combobox       use wxComboBox class
1763   --enable-comboctrl      use wxComboCtrl class
1764   --enable-datepick       use wxDatePickerCtrl class
1765   --enable-dirpicker      use wxDirPickerCtrl class
1766   --enable-display        use wxDisplay class
1767   --enable-detect_sm      use code to detect X11 session manager
1768   --enable-editablebox    use wxEditableListBox class
1769   --enable-filepicker     use wxFilePickerCtrl class
1770   --enable-filectrl       use wxFileCtrl class
1771   --enable-fontpicker     use wxFontPickerCtrl class
1772   --enable-gauge          use wxGauge class
1773   --enable-grid           use wxGrid class
1774   --enable-dataviewctrl   use wxDataViewCtrl class
1775   --enable-hyperlink      use wxHyperlinkCtrl class
1776   --enable-imaglist       use wxImageList class
1777   --enable-listbook       use wxListbook class
1778   --enable-listbox        use wxListBox class
1779   --enable-listctrl       use wxListCtrl class
1780   --enable-notebook       use wxNotebook class
1781   --enable-odcombobox     use wxOwnerDrawnComboBox class
1782   --enable-radiobox       use wxRadioBox class
1783   --enable-radiobtn       use wxRadioButton class
1784   --enable-sash           use wxSashWindow class
1785   --enable-scrollbar      use wxScrollBar class and scrollable windows
1786   --enable-searchctrl     use wxSearchCtrl class
1787   --enable-slider         use wxSlider class
1788   --enable-spinbtn        use wxSpinButton class
1789   --enable-spinctrl       use wxSpinCtrl class
1790   --enable-splitter       use wxSplitterWindow class
1791   --enable-statbmp        use wxStaticBitmap class
1792   --enable-statbox        use wxStaticBox class
1793   --enable-statline       use wxStaticLine class
1794   --enable-stattext       use wxStaticText class
1795   --enable-statusbar      use wxStatusBar class
1796   --enable-tabdialog      use wxTabControl class
1797   --enable-taskbaricon    use wxTaskBarIcon class
1798   --enable-textctrl       use wxTextCtrl class
1799   --enable-togglebtn      use wxToggleButton class
1800   --enable-toolbar        use wxToolBar class
1801   --enable-tbarnative     use native wxToolBar class
1802   --enable-treebook       use wxTreebook class
1803   --enable-toolbook       use wxToolbook class
1804   --enable-treectrl       use wxTreeCtrl class
1805   --enable-tipwindow      use wxTipWindow class
1806   --enable-popupwin       use wxPopUpWindow class
1807   --enable-commondlg      use all common dialogs
1808   --enable-aboutdlg       use wxAboutBox
1809   --enable-choicedlg      use wxChoiceDialog
1810   --enable-coldlg         use wxColourDialog
1811   --enable-filedlg        use wxFileDialog
1812   --enable-finddlg        use wxFindReplaceDialog
1813   --enable-fontdlg        use wxFontDialog
1814   --enable-dirdlg         use wxDirDialog
1815   --enable-msgdlg         use wxMessageDialog
1816   --enable-numberdlg      use wxNumberEntryDialog
1817   --enable-splash         use wxSplashScreen
1818   --enable-textdlg        use wxTextDialog
1819   --enable-tipdlg         use startup tips
1820   --enable-progressdlg    use wxProgressDialog
1821   --enable-wizarddlg      use wxWizard
1822   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1823   --enable-miniframe      use wxMiniFrame class
1824   --enable-tooltips       use wxToolTip class
1825   --enable-splines        use spline drawing code
1826   --enable-mousewheel     use mousewheel
1827   --enable-validators     use wxValidator and derived classes
1828   --enable-busyinfo       use wxBusyInfo
1829   --enable-joystick       use wxJoystick
1830   --enable-metafiles      use wxMetaFile (Win32 only)
1831   --enable-dragimage      use wxDragImage
1832   --enable-accessibility  enable accessibility support
1833   --enable-palette        use wxPalette class
1834   --enable-image          use wxImage class
1835   --enable-gif            use gif images (GIF file format)
1836   --enable-pcx            use pcx images (PCX file format)
1837   --enable-tga            use tga images (TGA file format)
1838   --enable-iff            use iff images (IFF file format)
1839   --enable-pnm            use pnm images (PNM file format)
1840   --enable-xpm            use xpm images (XPM file format)
1841   --enable-icocur         use Windows ICO and CUR formats
1842   --enable-dccache        cache temporary wxDC objects (Win32 only)
1843   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1844   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1845   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1846   --enable-wxdib          use wxDIB class (Win32 only)
1847   --disable-largefile     omit support for large files
1848   --disable-gtktest       do not try to compile and run a test GTK+ program
1849   --disable-gtktest       Do not try to compile and run a test GTK program
1850   --disable-sdltest       Do not try to compile and run a test SDL program
1851   --enable-omf            use OMF object format (OS/2)
1852   --disable-dependency-tracking
1853                           don't use dependency tracking even if the compiler
1854                           can
1855   --disable-precomp-headers
1856                           don't use precompiled headers even if compiler can
1857
1858 Optional Packages:
1859   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1860   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1861   --without-subdirs       don't generate makefiles for samples/demos/...
1862   --with-flavour=NAME     specify a name to identify this build
1863   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1864   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1865   --with-motif            use Motif/Lesstif
1866   --with-mac              use Mac OS X
1867   --with-cocoa            use Cocoa
1868   --with-wine             use Wine
1869   --with-msw              use MS-Windows
1870   --with-pm               use OS/2 Presentation Manager
1871   --with-mgl              use SciTech MGL
1872   --with-directfb         use DirectFB
1873   --with-microwin         use MicroWindows
1874   --with-x11              use X11
1875   --with-libpng           use libpng (PNG image format)
1876   --with-libjpeg          use libjpeg (JPEG file format)
1877   --with-libtiff          use libtiff (TIFF file format)
1878   --with-libxpm           use libxpm (XPM file format)
1879   --with-libmspack        use libmspack (CHM help files loading)
1880   --without-gtkprint      don't use GTK printing support
1881   --without-gnomeprint    don't use GNOME printing libraries
1882   --with-gnomevfs         use GNOME VFS for associating MIME types
1883   --with-hildon           use Hildon framework for Nokia 770
1884   --with-opengl           use OpenGL (or Mesa)
1885   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1886   --with-sdl              use SDL for audio on Unix
1887   --with-regex            enable support for wxRegEx class
1888   --with-zlib             use zlib for LZW compression
1889   --with-expat            enable XML support using expat parser
1890   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1891   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1892   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1893   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1894   --with-x                use the X Window System
1895   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1896   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1897   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1898   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1899   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1900
1901 Some influential environment variables:
1902   CC          C compiler command
1903   CFLAGS      C compiler flags
1904   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1905               nonstandard directory <lib dir>
1906   LIBS        libraries to pass to the linker, e.g. -l<library>
1907   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1908               you have headers in a nonstandard directory <include dir>
1909   CPP         C preprocessor
1910   CXX         C++ compiler command
1911   CXXFLAGS    C++ compiler flags
1912   PKG_CONFIG  path to pkg-config utility
1913   DIRECTFB_CFLAGS
1914               C compiler flags for DIRECTFB, overriding pkg-config
1915   DIRECTFB_LIBS
1916               linker flags for DIRECTFB, overriding pkg-config
1917   XMKMF       Path to xmkmf, Makefile generator for X Window System
1918   PANGOX_CFLAGS
1919               C compiler flags for PANGOX, overriding pkg-config
1920   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1921   PANGOFT2_CFLAGS
1922               C compiler flags for PANGOFT2, overriding pkg-config
1923   PANGOFT2_LIBS
1924               linker flags for PANGOFT2, overriding pkg-config
1925   PANGOXFT_CFLAGS
1926               C compiler flags for PANGOXFT, overriding pkg-config
1927   PANGOXFT_LIBS
1928               linker flags for PANGOXFT, overriding pkg-config
1929   GTKPRINT_CFLAGS
1930               C compiler flags for GTKPRINT, overriding pkg-config
1931   GTKPRINT_LIBS
1932               linker flags for GTKPRINT, overriding pkg-config
1933   LIBGNOMEPRINTUI_CFLAGS
1934               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1935   LIBGNOMEPRINTUI_LIBS
1936               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1937   GNOMEVFS_CFLAGS
1938               C compiler flags for GNOMEVFS, overriding pkg-config
1939   GNOMEVFS_LIBS
1940               linker flags for GNOMEVFS, overriding pkg-config
1941   HILDON_CFLAGS
1942               C compiler flags for HILDON, overriding pkg-config
1943   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1944   CAIRO_CFLAGS
1945               C compiler flags for CAIRO, overriding pkg-config
1946   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1947   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1948   GST_LIBS    linker flags for GST, overriding pkg-config
1949
1950 Use these variables to override the choices made by `configure' or to help
1951 it to find libraries and programs with nonstandard names/locations.
1952
1953 Report bugs to <wx-dev@lists.wxwidgets.org>.
1954 _ACEOF
1955 ac_status=$?
1956 fi
1957
1958 if test "$ac_init_help" = "recursive"; then
1959   # If there are subdirs, report their specific --help.
1960   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1961     test -d "$ac_dir" || continue
1962     ac_builddir=.
1963
1964 case "$ac_dir" in
1965 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1966 *)
1967   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1968   # A ".." for each directory in $ac_dir_suffix.
1969   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1970   case $ac_top_builddir_sub in
1971   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1972   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1973   esac ;;
1974 esac
1975 ac_abs_top_builddir=$ac_pwd
1976 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1977 # for backward compatibility:
1978 ac_top_builddir=$ac_top_build_prefix
1979
1980 case $srcdir in
1981   .)  # We are building in place.
1982     ac_srcdir=.
1983     ac_top_srcdir=$ac_top_builddir_sub
1984     ac_abs_top_srcdir=$ac_pwd ;;
1985   [\\/]* | ?:[\\/]* )  # Absolute name.
1986     ac_srcdir=$srcdir$ac_dir_suffix;
1987     ac_top_srcdir=$srcdir
1988     ac_abs_top_srcdir=$srcdir ;;
1989   *) # Relative name.
1990     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1991     ac_top_srcdir=$ac_top_build_prefix$srcdir
1992     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1993 esac
1994 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1995
1996     cd "$ac_dir" || { ac_status=$?; continue; }
1997     # Check for guested configure.
1998     if test -f "$ac_srcdir/configure.gnu"; then
1999       echo &&
2000       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2001     elif test -f "$ac_srcdir/configure"; then
2002       echo &&
2003       $SHELL "$ac_srcdir/configure" --help=recursive
2004     else
2005       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2006     fi || ac_status=$?
2007     cd "$ac_pwd" || { ac_status=$?; break; }
2008   done
2009 fi
2010
2011 test -n "$ac_init_help" && exit $ac_status
2012 if $ac_init_version; then
2013   cat <<\_ACEOF
2014 wxWidgets configure 2.9.0
2015 generated by GNU Autoconf 2.61
2016
2017 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2018 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2019 This configure script is free software; the Free Software Foundation
2020 gives unlimited permission to copy, distribute and modify it.
2021 _ACEOF
2022   exit
2023 fi
2024 cat >config.log <<_ACEOF
2025 This file contains any messages produced by compilers while
2026 running configure, to aid debugging if configure makes a mistake.
2027
2028 It was created by wxWidgets $as_me 2.9.0, which was
2029 generated by GNU Autoconf 2.61.  Invocation command line was
2030
2031   $ $0 $@
2032
2033 _ACEOF
2034 exec 5>>config.log
2035 {
2036 cat <<_ASUNAME
2037 ## --------- ##
2038 ## Platform. ##
2039 ## --------- ##
2040
2041 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2042 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2043 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2044 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2045 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2046
2047 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2048 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2049
2050 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2051 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2052 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2053 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2054 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2055 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2056 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2057
2058 _ASUNAME
2059
2060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2061 for as_dir in $PATH
2062 do
2063   IFS=$as_save_IFS
2064   test -z "$as_dir" && as_dir=.
2065   echo "PATH: $as_dir"
2066 done
2067 IFS=$as_save_IFS
2068
2069 } >&5
2070
2071 cat >&5 <<_ACEOF
2072
2073
2074 ## ----------- ##
2075 ## Core tests. ##
2076 ## ----------- ##
2077
2078 _ACEOF
2079
2080
2081 # Keep a trace of the command line.
2082 # Strip out --no-create and --no-recursion so they do not pile up.
2083 # Strip out --silent because we don't want to record it for future runs.
2084 # Also quote any args containing shell meta-characters.
2085 # Make two passes to allow for proper duplicate-argument suppression.
2086 ac_configure_args=
2087 ac_configure_args0=
2088 ac_configure_args1=
2089 ac_must_keep_next=false
2090 for ac_pass in 1 2
2091 do
2092   for ac_arg
2093   do
2094     case $ac_arg in
2095     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2096     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2097     | -silent | --silent | --silen | --sile | --sil)
2098       continue ;;
2099     *\'*)
2100       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2101     esac
2102     case $ac_pass in
2103     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2104     2)
2105       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2106       if test $ac_must_keep_next = true; then
2107         ac_must_keep_next=false # Got value, back to normal.
2108       else
2109         case $ac_arg in
2110           *=* | --config-cache | -C | -disable-* | --disable-* \
2111           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2112           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2113           | -with-* | --with-* | -without-* | --without-* | --x)
2114             case "$ac_configure_args0 " in
2115               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2116             esac
2117             ;;
2118           -* ) ac_must_keep_next=true ;;
2119         esac
2120       fi
2121       ac_configure_args="$ac_configure_args '$ac_arg'"
2122       ;;
2123     esac
2124   done
2125 done
2126 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2127 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2128
2129 # When interrupted or exit'd, cleanup temporary files, and complete
2130 # config.log.  We remove comments because anyway the quotes in there
2131 # would cause problems or look ugly.
2132 # WARNING: Use '\'' to represent an apostrophe within the trap.
2133 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2134 trap 'exit_status=$?
2135   # Save into config.log some information that might help in debugging.
2136   {
2137     echo
2138
2139     cat <<\_ASBOX
2140 ## ---------------- ##
2141 ## Cache variables. ##
2142 ## ---------------- ##
2143 _ASBOX
2144     echo
2145     # The following way of writing the cache mishandles newlines in values,
2146 (
2147   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2148     eval ac_val=\$$ac_var
2149     case $ac_val in #(
2150     *${as_nl}*)
2151       case $ac_var in #(
2152       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2153 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2154       esac
2155       case $ac_var in #(
2156       _ | IFS | as_nl) ;; #(
2157       *) $as_unset $ac_var ;;
2158       esac ;;
2159     esac
2160   done
2161   (set) 2>&1 |
2162     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2163     *${as_nl}ac_space=\ *)
2164       sed -n \
2165         "s/'\''/'\''\\\\'\'''\''/g;
2166           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2167       ;; #(
2168     *)
2169       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2170       ;;
2171     esac |
2172     sort
2173 )
2174     echo
2175
2176     cat <<\_ASBOX
2177 ## ----------------- ##
2178 ## Output variables. ##
2179 ## ----------------- ##
2180 _ASBOX
2181     echo
2182     for ac_var in $ac_subst_vars
2183     do
2184       eval ac_val=\$$ac_var
2185       case $ac_val in
2186       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2187       esac
2188       echo "$ac_var='\''$ac_val'\''"
2189     done | sort
2190     echo
2191
2192     if test -n "$ac_subst_files"; then
2193       cat <<\_ASBOX
2194 ## ------------------- ##
2195 ## File substitutions. ##
2196 ## ------------------- ##
2197 _ASBOX
2198       echo
2199       for ac_var in $ac_subst_files
2200       do
2201         eval ac_val=\$$ac_var
2202         case $ac_val in
2203         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2204         esac
2205         echo "$ac_var='\''$ac_val'\''"
2206       done | sort
2207       echo
2208     fi
2209
2210     if test -s confdefs.h; then
2211       cat <<\_ASBOX
2212 ## ----------- ##
2213 ## confdefs.h. ##
2214 ## ----------- ##
2215 _ASBOX
2216       echo
2217       cat confdefs.h
2218       echo
2219     fi
2220     test "$ac_signal" != 0 &&
2221       echo "$as_me: caught signal $ac_signal"
2222     echo "$as_me: exit $exit_status"
2223   } >&5
2224   rm -f core *.core core.conftest.* &&
2225     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2226     exit $exit_status
2227 ' 0
2228 for ac_signal in 1 2 13 15; do
2229   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2230 done
2231 ac_signal=0
2232
2233 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2234 rm -f -r conftest* confdefs.h
2235
2236 # Predefined preprocessor variables.
2237
2238 cat >>confdefs.h <<_ACEOF
2239 #define PACKAGE_NAME "$PACKAGE_NAME"
2240 _ACEOF
2241
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_STRING "$PACKAGE_STRING"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2260 _ACEOF
2261
2262
2263 # Let the site file select an alternate cache file if it wants to.
2264 # Prefer explicitly selected file to automatically selected ones.
2265 if test -n "$CONFIG_SITE"; then
2266   set x "$CONFIG_SITE"
2267 elif test "x$prefix" != xNONE; then
2268   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2269 else
2270   set x "$ac_default_prefix/share/config.site" \
2271         "$ac_default_prefix/etc/config.site"
2272 fi
2273 shift
2274 for ac_site_file
2275 do
2276   if test -r "$ac_site_file"; then
2277     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2278 echo "$as_me: loading site script $ac_site_file" >&6;}
2279     sed 's/^/| /' "$ac_site_file" >&5
2280     . "$ac_site_file"
2281   fi
2282 done
2283
2284 if test -r "$cache_file"; then
2285   # Some versions of bash will fail to source /dev/null (special
2286   # files actually), so we avoid doing that.
2287   if test -f "$cache_file"; then
2288     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2289 echo "$as_me: loading cache $cache_file" >&6;}
2290     case $cache_file in
2291       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2292       *)                      . "./$cache_file";;
2293     esac
2294   fi
2295 else
2296   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2297 echo "$as_me: creating cache $cache_file" >&6;}
2298   >$cache_file
2299 fi
2300
2301 # Check that the precious variables saved in the cache have kept the same
2302 # value.
2303 ac_cache_corrupted=false
2304 for ac_var in $ac_precious_vars; do
2305   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2306   eval ac_new_set=\$ac_env_${ac_var}_set
2307   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2308   eval ac_new_val=\$ac_env_${ac_var}_value
2309   case $ac_old_set,$ac_new_set in
2310     set,)
2311       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2312 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2313       ac_cache_corrupted=: ;;
2314     ,set)
2315       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2316 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2317       ac_cache_corrupted=: ;;
2318     ,);;
2319     *)
2320       if test "x$ac_old_val" != "x$ac_new_val"; then
2321         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2322 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2323         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2324 echo "$as_me:   former value:  $ac_old_val" >&2;}
2325         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2326 echo "$as_me:   current value: $ac_new_val" >&2;}
2327         ac_cache_corrupted=:
2328       fi;;
2329   esac
2330   # Pass precious variables to config.status.
2331   if test "$ac_new_set" = set; then
2332     case $ac_new_val in
2333     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2334     *) ac_arg=$ac_var=$ac_new_val ;;
2335     esac
2336     case " $ac_configure_args " in
2337       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2338       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2339     esac
2340   fi
2341 done
2342 if $ac_cache_corrupted; then
2343   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2344 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2345   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2346 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2347    { (exit 1); exit 1; }; }
2348 fi
2349
2350
2351
2352
2353
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374 ac_ext=c
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379
2380
2381
2382
2383
2384 ac_aux_dir=
2385 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2386   if 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/install.sh"; then
2391     ac_aux_dir=$ac_dir
2392     ac_install_sh="$ac_aux_dir/install.sh -c"
2393     break
2394   elif test -f "$ac_dir/shtool"; then
2395     ac_aux_dir=$ac_dir
2396     ac_install_sh="$ac_aux_dir/shtool install -c"
2397     break
2398   fi
2399 done
2400 if test -z "$ac_aux_dir"; then
2401   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2402 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2403    { (exit 1); exit 1; }; }
2404 fi
2405
2406 # These three variables are undocumented and unsupported,
2407 # and are intended to be withdrawn in a future Autoconf release.
2408 # They can cause serious problems if a builder's source tree is in a directory
2409 # whose full name contains unusual characters.
2410 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2411 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2412 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2413
2414
2415 # Make sure we can run config.sub.
2416 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2417   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2418 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2419    { (exit 1); exit 1; }; }
2420
2421 { echo "$as_me:$LINENO: checking build system type" >&5
2422 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2423 if test "${ac_cv_build+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   ac_build_alias=$build_alias
2427 test "x$ac_build_alias" = x &&
2428   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2429 test "x$ac_build_alias" = x &&
2430   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2431 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2432    { (exit 1); exit 1; }; }
2433 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2434   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2435 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2436    { (exit 1); exit 1; }; }
2437
2438 fi
2439 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2440 echo "${ECHO_T}$ac_cv_build" >&6; }
2441 case $ac_cv_build in
2442 *-*-*) ;;
2443 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2444 echo "$as_me: error: invalid value of canonical build" >&2;}
2445    { (exit 1); exit 1; }; };;
2446 esac
2447 build=$ac_cv_build
2448 ac_save_IFS=$IFS; IFS='-'
2449 set x $ac_cv_build
2450 shift
2451 build_cpu=$1
2452 build_vendor=$2
2453 shift; shift
2454 # Remember, the first character of IFS is used to create $*,
2455 # except with old shells:
2456 build_os=$*
2457 IFS=$ac_save_IFS
2458 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2459
2460
2461 { echo "$as_me:$LINENO: checking host system type" >&5
2462 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2463 if test "${ac_cv_host+set}" = set; then
2464   echo $ECHO_N "(cached) $ECHO_C" >&6
2465 else
2466   if test "x$host_alias" = x; then
2467   ac_cv_host=$ac_cv_build
2468 else
2469   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2471 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2472    { (exit 1); exit 1; }; }
2473 fi
2474
2475 fi
2476 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2477 echo "${ECHO_T}$ac_cv_host" >&6; }
2478 case $ac_cv_host in
2479 *-*-*) ;;
2480 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2481 echo "$as_me: error: invalid value of canonical host" >&2;}
2482    { (exit 1); exit 1; }; };;
2483 esac
2484 host=$ac_cv_host
2485 ac_save_IFS=$IFS; IFS='-'
2486 set x $ac_cv_host
2487 shift
2488 host_cpu=$1
2489 host_vendor=$2
2490 shift; shift
2491 # Remember, the first character of IFS is used to create $*,
2492 # except with old shells:
2493 host_os=$*
2494 IFS=$ac_save_IFS
2495 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2496
2497
2498 { echo "$as_me:$LINENO: checking target system type" >&5
2499 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2500 if test "${ac_cv_target+set}" = set; then
2501   echo $ECHO_N "(cached) $ECHO_C" >&6
2502 else
2503   if test "x$target_alias" = x; then
2504   ac_cv_target=$ac_cv_host
2505 else
2506   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2507     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2508 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2509    { (exit 1); exit 1; }; }
2510 fi
2511
2512 fi
2513 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2514 echo "${ECHO_T}$ac_cv_target" >&6; }
2515 case $ac_cv_target in
2516 *-*-*) ;;
2517 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2518 echo "$as_me: error: invalid value of canonical target" >&2;}
2519    { (exit 1); exit 1; }; };;
2520 esac
2521 target=$ac_cv_target
2522 ac_save_IFS=$IFS; IFS='-'
2523 set x $ac_cv_target
2524 shift
2525 target_cpu=$1
2526 target_vendor=$2
2527 shift; shift
2528 # Remember, the first character of IFS is used to create $*,
2529 # except with old shells:
2530 target_os=$*
2531 IFS=$ac_save_IFS
2532 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2533
2534
2535 # The aliases save the names the user supplied, while $host etc.
2536 # will get canonicalized.
2537 test -n "$target_alias" &&
2538   test "$program_prefix$program_suffix$program_transform_name" = \
2539     NONENONEs,x,x, &&
2540   program_prefix=${target_alias}-
2541
2542
2543
2544 wx_major_version_number=2
2545 wx_minor_version_number=9
2546 wx_release_number=0
2547 wx_subrelease_number=0
2548
2549 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2550 WX_VERSION=$WX_RELEASE.$wx_release_number
2551 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2552
2553 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2554
2555
2556 wx_top_builddir="`pwd`"
2557
2558
2559
2560
2561 USE_UNIX=1
2562 USE_OS2=0
2563 USE_WIN32=0
2564 USE_DOS=0
2565 USE_BEOS=0
2566 USE_MAC=0
2567
2568 USE_AIX=
2569 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2570 USE_GNU=                            USE_HPUX=
2571 USE_LINUX=
2572 USE_NETBSD=
2573 USE_OPENBSD=
2574 USE_OSF=                            USE_SGI=
2575 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2576 USE_ULTRIX=
2577 USE_UNIXWARE=
2578
2579 USE_ALPHA=
2580
2581 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2582
2583 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2584
2585 DEFAULT_wxUSE_COCOA=0
2586 DEFAULT_wxUSE_GTK=0
2587 DEFAULT_wxUSE_MAC=0
2588 DEFAULT_wxUSE_MGL=0
2589 DEFAULT_wxUSE_MICROWIN=0
2590 DEFAULT_wxUSE_MOTIF=0
2591 DEFAULT_wxUSE_MSW=0
2592 DEFAULT_wxUSE_PM=0
2593 DEFAULT_wxUSE_X11=0
2594 DEFAULT_wxUSE_DFB=0
2595
2596 DEFAULT_DEFAULT_wxUSE_COCOA=0
2597 DEFAULT_DEFAULT_wxUSE_GTK=0
2598 DEFAULT_DEFAULT_wxUSE_MAC=0
2599 DEFAULT_DEFAULT_wxUSE_MGL=0
2600 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2601 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2602 DEFAULT_DEFAULT_wxUSE_MSW=0
2603 DEFAULT_DEFAULT_wxUSE_PM=0
2604 DEFAULT_DEFAULT_wxUSE_X11=0
2605 DEFAULT_DEFAULT_wxUSE_DFB=0
2606
2607 PROGRAM_EXT=
2608 SO_SUFFIX=so
2609 SAMPLES_RPATH_FLAG=
2610 SAMPLES_RPATH_POSTLINK=
2611
2612 DEFAULT_STD_FLAG=yes
2613
2614 case "${host}" in
2615   *-hp-hpux* )
2616     USE_HPUX=1
2617     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2618     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2619     SO_SUFFIX=sl
2620     cat >>confdefs.h <<\_ACEOF
2621 #define __HPUX__ 1
2622 _ACEOF
2623
2624
2625             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2626   ;;
2627   *-*-linux* )
2628     USE_LINUX=1
2629     cat >>confdefs.h <<\_ACEOF
2630 #define __LINUX__ 1
2631 _ACEOF
2632
2633     TMP=`uname -m`
2634     if test "x$TMP" = "xalpha"; then
2635       USE_ALPHA=1
2636       cat >>confdefs.h <<\_ACEOF
2637 #define __ALPHA__ 1
2638 _ACEOF
2639
2640     fi
2641     DEFAULT_DEFAULT_wxUSE_GTK=1
2642   ;;
2643   *-*-gnu* | *-*-k*bsd*-gnu )
2644     USE_GNU=1
2645     TMP=`uname -m`
2646     if test "x$TMP" = "xalpha"; then
2647       USE_ALPHA=1
2648       cat >>confdefs.h <<\_ACEOF
2649 #define __ALPHA__ 1
2650 _ACEOF
2651
2652     fi
2653     DEFAULT_DEFAULT_wxUSE_GTK=1
2654   ;;
2655   *-*-irix5* | *-*-irix6* )
2656     USE_SGI=1
2657     USE_SVR4=1
2658     cat >>confdefs.h <<\_ACEOF
2659 #define __SGI__ 1
2660 _ACEOF
2661
2662     cat >>confdefs.h <<\_ACEOF
2663 #define __SVR4__ 1
2664 _ACEOF
2665
2666     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2667   ;;
2668   *-*-solaris2* )
2669     USE_SUN=1
2670     USE_SOLARIS=1
2671     USE_SVR4=1
2672     cat >>confdefs.h <<\_ACEOF
2673 #define __SUN__ 1
2674 _ACEOF
2675
2676     cat >>confdefs.h <<\_ACEOF
2677 #define __SOLARIS__ 1
2678 _ACEOF
2679
2680     cat >>confdefs.h <<\_ACEOF
2681 #define __SVR4__ 1
2682 _ACEOF
2683
2684     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2685     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2686   ;;
2687   *-*-sunos4* )
2688     USE_SUN=1
2689     USE_SUNOS=1
2690     USE_BSD=1
2691     cat >>confdefs.h <<\_ACEOF
2692 #define __SUN__ 1
2693 _ACEOF
2694
2695     cat >>confdefs.h <<\_ACEOF
2696 #define __SUNOS__ 1
2697 _ACEOF
2698
2699     cat >>confdefs.h <<\_ACEOF
2700 #define __BSD__ 1
2701 _ACEOF
2702
2703     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2704   ;;
2705   *-*-freebsd*)
2706     USE_BSD=1
2707     USE_FREEBSD=1
2708     cat >>confdefs.h <<\_ACEOF
2709 #define __FREEBSD__ 1
2710 _ACEOF
2711
2712     cat >>confdefs.h <<\_ACEOF
2713 #define __BSD__ 1
2714 _ACEOF
2715
2716     DEFAULT_DEFAULT_wxUSE_GTK=1
2717   ;;
2718   *-*-openbsd*|*-*-mirbsd*)
2719     USE_BSD=1
2720     USE_OPENBSD=1
2721     cat >>confdefs.h <<\_ACEOF
2722 #define __OPENBSD__ 1
2723 _ACEOF
2724
2725     cat >>confdefs.h <<\_ACEOF
2726 #define __BSD__ 1
2727 _ACEOF
2728
2729     DEFAULT_DEFAULT_wxUSE_GTK=1
2730   ;;
2731   *-*-netbsd*)
2732     USE_BSD=1
2733     USE_NETBSD=1
2734     cat >>confdefs.h <<\_ACEOF
2735 #define __NETBSD__ 1
2736 _ACEOF
2737
2738     cat >>confdefs.h <<\_ACEOF
2739 #define __BSD__ 1
2740 _ACEOF
2741
2742     DEFAULT_DEFAULT_wxUSE_GTK=1
2743     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2744
2745             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2746   ;;
2747   *-*-osf* )
2748     USE_ALPHA=1
2749     USE_OSF=1
2750     cat >>confdefs.h <<\_ACEOF
2751 #define __ALPHA__ 1
2752 _ACEOF
2753
2754     cat >>confdefs.h <<\_ACEOF
2755 #define __OSF__ 1
2756 _ACEOF
2757
2758     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2759     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2760   ;;
2761   *-*-dgux5* )
2762     USE_ALPHA=1
2763     USE_SVR4=1
2764     cat >>confdefs.h <<\_ACEOF
2765 #define __ALPHA__ 1
2766 _ACEOF
2767
2768     cat >>confdefs.h <<\_ACEOF
2769 #define __SVR4__ 1
2770 _ACEOF
2771
2772     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2773   ;;
2774   *-*-sysv5* )
2775     USE_SYSV=1
2776     USE_SVR4=1
2777     cat >>confdefs.h <<\_ACEOF
2778 #define __SYSV__ 1
2779 _ACEOF
2780
2781     cat >>confdefs.h <<\_ACEOF
2782 #define __SVR4__ 1
2783 _ACEOF
2784
2785     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2786   ;;
2787   *-*-aix* )
2788     USE_AIX=1
2789     USE_SYSV=1
2790     USE_SVR4=1
2791                         SO_SUFFIX=a
2792     cat >>confdefs.h <<\_ACEOF
2793 #define __AIX__ 1
2794 _ACEOF
2795
2796     cat >>confdefs.h <<\_ACEOF
2797 #define __SYSV__ 1
2798 _ACEOF
2799
2800     cat >>confdefs.h <<\_ACEOF
2801 #define __SVR4__ 1
2802 _ACEOF
2803
2804     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2805   ;;
2806
2807   *-*-*UnixWare*)
2808     USE_SYSV=1
2809     USE_SVR4=1
2810     USE_UNIXWARE=1
2811     cat >>confdefs.h <<\_ACEOF
2812 #define __UNIXWARE__ 1
2813 _ACEOF
2814
2815   ;;
2816
2817   *-*-cygwin* | *-*-mingw32* )
2818                 SO_SUFFIX=dll
2819     PROGRAM_EXT=".exe"
2820     DEFAULT_DEFAULT_wxUSE_MSW=1
2821   ;;
2822
2823   *-pc-msdosdjgpp )
2824     USE_UNIX=0
2825     USE_DOS=1
2826     cat >>confdefs.h <<\_ACEOF
2827 #define __DOS__ 1
2828 _ACEOF
2829
2830     PROGRAM_EXT=".exe"
2831     DEFAULT_DEFAULT_wxUSE_MGL=1
2832   ;;
2833
2834   *-pc-os2_emx | *-pc-os2-emx )
2835     cat >>confdefs.h <<\_ACEOF
2836 #define __EMX__ 1
2837 _ACEOF
2838
2839     USE_OS2=1
2840     cat >>confdefs.h <<\_ACEOF
2841 #define __OS2__ 1
2842 _ACEOF
2843
2844     PROGRAM_EXT=".exe"
2845     DEFAULT_DEFAULT_wxUSE_PM=1
2846         CXX=gcc
2847     LDFLAGS="$LDFLAGS -Zcrtdll"
2848                         ac_executable_extensions=".exe"
2849     export ac_executable_extensions
2850             ac_save_IFS="$IFS"
2851     IFS='\\'
2852     ac_TEMP_PATH=
2853     for ac_dir in $PATH; do
2854       IFS=$ac_save_IFS
2855       if test -z "$ac_TEMP_PATH"; then
2856         ac_TEMP_PATH="$ac_dir"
2857       else
2858         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2859       fi
2860     done
2861     export PATH="$ac_TEMP_PATH"
2862     unset ac_TEMP_PATH
2863     DEFAULT_STD_FLAG=no
2864   ;;
2865
2866   *-*-darwin* )
2867         USE_BSD=1
2868     USE_DARWIN=1
2869     SO_SUFFIX=dylib
2870     cat >>confdefs.h <<\_ACEOF
2871 #define __BSD__ 1
2872 _ACEOF
2873
2874     cat >>confdefs.h <<\_ACEOF
2875 #define __DARWIN__ 1
2876 _ACEOF
2877
2878     cat >>confdefs.h <<\_ACEOF
2879 #define TARGET_CARBON 1
2880 _ACEOF
2881
2882     DEFAULT_DEFAULT_wxUSE_MAC=1
2883     DEFAULT_STD_FLAG=no
2884   ;;
2885   powerpc-apple-macos* )
2886         USE_UNIX=0
2887             ac_cv_c_bigendian=yes
2888     SO_SUFFIX=shlib
2889             DEFAULT_DEFAULT_wxUSE_MAC=1
2890     DEFAULT_STD_FLAG=no
2891   ;;
2892
2893   *-*-beos* )
2894         USE_BEOS=1
2895     cat >>confdefs.h <<\_ACEOF
2896 #define __BEOS__ 1
2897 _ACEOF
2898
2899   ;;
2900
2901   *)
2902     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2903 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2904     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2905 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2906
2907     DEFAULT_DEFAULT_wxUSE_X11=1
2908     DEFAULT_wxUSE_SHARED=no
2909 esac
2910
2911
2912
2913
2914           wx_arg_cache_file="configarg.cache"
2915           echo "loading argument cache $wx_arg_cache_file"
2916           rm -f ${wx_arg_cache_file}.tmp
2917           touch ${wx_arg_cache_file}.tmp
2918           touch ${wx_arg_cache_file}
2919
2920
2921 DEFAULT_wxUSE_ALL_FEATURES=yes
2922
2923 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2924 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2925
2926 DEFAULT_wxUSE_DMALLOC=no
2927 DEFAULT_wxUSE_LIBGNOMEVFS=no
2928 DEFAULT_wxUSE_LIBHILDON=no
2929 DEFAULT_wxUSE_LIBMSPACK=no
2930 DEFAULT_wxUSE_LIBSDL=no
2931 DEFAULT_wxUSE_OPENGL=no
2932
2933 DEFAULT_wxUSE_ACCESSIBILITY=no
2934 DEFAULT_wxUSE_DATAVIEWCTRL=no
2935 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2936 DEFAULT_wxUSE_MEDIACTRL=no
2937 DEFAULT_wxUSE_TAB_DIALOG=no
2938
2939 DEFAULT_wxUSE_UNICODE_UTF8=auto
2940 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2941
2942 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2943
2944 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2945
2946 DEFAULT_wxUSE_GTK2=yes
2947
2948 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2949
2950
2951 for toolkit in $ALL_TOOLKITS; do
2952   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2953   if test "x$LINE" != "x" ; then
2954     has_toolkit_in_cache=1
2955     eval "DEFAULT_$LINE"
2956     eval "CACHE_$toolkit=1"
2957
2958     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2959     if test "x$LINE" != "x" ; then
2960         eval "DEFAULT_$LINE"
2961     fi
2962   fi
2963 done
2964
2965
2966
2967
2968
2969           enablestring=disable
2970           defaultval=
2971           if test -z "$defaultval"; then
2972               if test x"$enablestring" = xdisable; then
2973                   defaultval=yes
2974               else
2975                   defaultval=no
2976               fi
2977           fi
2978
2979           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2980 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2981           # Check whether --enable-gui was given.
2982 if test "${enable_gui+set}" = set; then
2983   enableval=$enable_gui;
2984                           if test "$enableval" = yes; then
2985                             wx_cv_use_gui='wxUSE_GUI=yes'
2986                           else
2987                             wx_cv_use_gui='wxUSE_GUI=no'
2988                           fi
2989                           cache=yes
2990
2991 else
2992
2993                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
2994                           if test "x$LINE" != x ; then
2995                               eval "DEFAULT_$LINE"
2996                               cache=yes
2997                           else
2998                               cache=no
2999                           fi
3000
3001                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3002
3003 fi
3004
3005
3006           eval "$wx_cv_use_gui"
3007           if test "x$cache" = xyes; then
3008             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3009           fi
3010
3011           if test x"$enablestring" = xdisable; then
3012             if test $wxUSE_GUI = yes; then
3013               result=no
3014             else
3015               result=yes
3016             fi
3017           else
3018             result=$wxUSE_GUI
3019           fi
3020
3021           { echo "$as_me:$LINENO: result: $result" >&5
3022 echo "${ECHO_T}$result" >&6; }
3023
3024
3025           enablestring=
3026           defaultval=
3027           if test -z "$defaultval"; then
3028               if test x"$enablestring" = xdisable; then
3029                   defaultval=yes
3030               else
3031                   defaultval=no
3032               fi
3033           fi
3034
3035           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3036 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3037           # Check whether --enable-monolithic was given.
3038 if test "${enable_monolithic+set}" = set; then
3039   enableval=$enable_monolithic;
3040                           if test "$enableval" = yes; then
3041                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3042                           else
3043                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3044                           fi
3045                           cache=yes
3046
3047 else
3048
3049                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3050                           if test "x$LINE" != x ; then
3051                               eval "DEFAULT_$LINE"
3052                               cache=yes
3053                           else
3054                               cache=no
3055                           fi
3056
3057                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3058
3059 fi
3060
3061
3062           eval "$wx_cv_use_monolithic"
3063           if test "x$cache" = xyes; then
3064             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3065           fi
3066
3067           if test x"$enablestring" = xdisable; then
3068             if test $wxUSE_MONOLITHIC = yes; then
3069               result=no
3070             else
3071               result=yes
3072             fi
3073           else
3074             result=$wxUSE_MONOLITHIC
3075           fi
3076
3077           { echo "$as_me:$LINENO: result: $result" >&5
3078 echo "${ECHO_T}$result" >&6; }
3079
3080
3081           enablestring=
3082           defaultval=
3083           if test -z "$defaultval"; then
3084               if test x"$enablestring" = xdisable; then
3085                   defaultval=yes
3086               else
3087                   defaultval=no
3088               fi
3089           fi
3090
3091           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3092 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3093           # Check whether --enable-plugins was given.
3094 if test "${enable_plugins+set}" = set; then
3095   enableval=$enable_plugins;
3096                           if test "$enableval" = yes; then
3097                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3098                           else
3099                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3100                           fi
3101                           cache=yes
3102
3103 else
3104
3105                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3106                           if test "x$LINE" != x ; then
3107                               eval "DEFAULT_$LINE"
3108                               cache=yes
3109                           else
3110                               cache=no
3111                           fi
3112
3113                           wx_cv_use_plugins='wxUSE_PLUGINS=${'DEFAULT_wxUSE_PLUGINS":-$defaultval}"
3114
3115 fi
3116
3117
3118           eval "$wx_cv_use_plugins"
3119           if test "x$cache" = xyes; then
3120             echo "wxUSE_PLUGINS=$wxUSE_PLUGINS" >> ${wx_arg_cache_file}.tmp
3121           fi
3122
3123           if test x"$enablestring" = xdisable; then
3124             if test $wxUSE_PLUGINS = yes; then
3125               result=no
3126             else
3127               result=yes
3128             fi
3129           else
3130             result=$wxUSE_PLUGINS
3131           fi
3132
3133           { echo "$as_me:$LINENO: result: $result" >&5
3134 echo "${ECHO_T}$result" >&6; }
3135
3136
3137           withstring=without
3138           defaultval=$wxUSE_ALL_FEATURES
3139           if test -z "$defaultval"; then
3140               if test x"$withstring" = xwithout; then
3141                   defaultval=yes
3142               else
3143                   defaultval=no
3144               fi
3145           fi
3146           { echo "$as_me:$LINENO: checking for --${withstring:-with}-subdirs" >&5
3147 echo $ECHO_N "checking for --${withstring:-with}-subdirs... $ECHO_C" >&6; }
3148
3149 # Check whether --with-subdirs was given.
3150 if test "${with_subdirs+set}" = set; then
3151   withval=$with_subdirs;
3152                         if test "$withval" = yes; then
3153                           wx_cv_use_subdirs='wxWITH_SUBDIRS=yes'
3154                         else
3155                           wx_cv_use_subdirs='wxWITH_SUBDIRS=no'
3156                         fi
3157                         cache=yes
3158
3159 else
3160
3161                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3162                         if test "x$LINE" != x ; then
3163                             eval "DEFAULT_$LINE"
3164                             cache=yes
3165                         else
3166                             cache=no
3167                         fi
3168
3169                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3170
3171 fi
3172
3173
3174           eval "$wx_cv_use_subdirs"
3175           if test "x$cache" = xyes; then
3176             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3177           fi
3178
3179           if test x"$withstring" = xwithout; then
3180             if test $wxWITH_SUBDIRS = yes; then
3181               result=no
3182             else
3183               result=yes
3184             fi
3185           else
3186             result=$wxWITH_SUBDIRS
3187           fi
3188
3189           { echo "$as_me:$LINENO: result: $result" >&5
3190 echo "${ECHO_T}$result" >&6; }
3191
3192
3193 # Check whether --with-flavour was given.
3194 if test "${with_flavour+set}" = set; then
3195   withval=$with_flavour; WX_FLAVOUR="$withval"
3196 fi
3197
3198
3199           enablestring=
3200           defaultval=
3201           if test -z "$defaultval"; then
3202               if test x"$enablestring" = xdisable; then
3203                   defaultval=yes
3204               else
3205                   defaultval=no
3206               fi
3207           fi
3208
3209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3210 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3211           # Check whether --enable-official_build was given.
3212 if test "${enable_official_build+set}" = set; then
3213   enableval=$enable_official_build;
3214                           if test "$enableval" = yes; then
3215                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3216                           else
3217                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3218                           fi
3219                           cache=yes
3220
3221 else
3222
3223                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3224                           if test "x$LINE" != x ; then
3225                               eval "DEFAULT_$LINE"
3226                               cache=yes
3227                           else
3228                               cache=no
3229                           fi
3230
3231                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3232
3233 fi
3234
3235
3236           eval "$wx_cv_use_official_build"
3237           if test "x$cache" = xyes; then
3238             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3239           fi
3240
3241           if test x"$enablestring" = xdisable; then
3242             if test $wxUSE_OFFICIAL_BUILD = yes; then
3243               result=no
3244             else
3245               result=yes
3246             fi
3247           else
3248             result=$wxUSE_OFFICIAL_BUILD
3249           fi
3250
3251           { echo "$as_me:$LINENO: result: $result" >&5
3252 echo "${ECHO_T}$result" >&6; }
3253
3254 # Check whether --enable-vendor was given.
3255 if test "${enable_vendor+set}" = set; then
3256   enableval=$enable_vendor; VENDOR="$enableval"
3257 fi
3258
3259 if test "x$VENDOR" = "x"; then
3260     VENDOR="custom"
3261 fi
3262
3263
3264           enablestring=disable
3265           defaultval=
3266           if test -z "$defaultval"; then
3267               if test x"$enablestring" = xdisable; then
3268                   defaultval=yes
3269               else
3270                   defaultval=no
3271               fi
3272           fi
3273
3274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3275 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3276           # Check whether --enable-all-features was given.
3277 if test "${enable_all_features+set}" = set; then
3278   enableval=$enable_all_features;
3279                           if test "$enableval" = yes; then
3280                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3281                           else
3282                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3283                           fi
3284                           cache=yes
3285
3286 else
3287
3288                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3289                           if test "x$LINE" != x ; then
3290                               eval "DEFAULT_$LINE"
3291                               cache=yes
3292                           else
3293                               cache=no
3294                           fi
3295
3296                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3297
3298 fi
3299
3300
3301           eval "$wx_cv_use_all_features"
3302           if test "x$cache" = xyes; then
3303             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3304           fi
3305
3306           if test x"$enablestring" = xdisable; then
3307             if test $wxUSE_ALL_FEATURES = yes; then
3308               result=no
3309             else
3310               result=yes
3311             fi
3312           else
3313             result=$wxUSE_ALL_FEATURES
3314           fi
3315
3316           { echo "$as_me:$LINENO: result: $result" >&5
3317 echo "${ECHO_T}$result" >&6; }
3318
3319
3320
3321 if test "$wxUSE_GUI" = "yes"; then
3322
3323
3324           enablestring=
3325           defaultval=
3326           if test -z "$defaultval"; then
3327               if test x"$enablestring" = xdisable; then
3328                   defaultval=yes
3329               else
3330                   defaultval=no
3331               fi
3332           fi
3333
3334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3335 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3336           # Check whether --enable-universal was given.
3337 if test "${enable_universal+set}" = set; then
3338   enableval=$enable_universal;
3339                           if test "$enableval" = yes; then
3340                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3341                           else
3342                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3343                           fi
3344                           cache=yes
3345
3346 else
3347
3348                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3349                           if test "x$LINE" != x ; then
3350                               eval "DEFAULT_$LINE"
3351                               cache=yes
3352                           else
3353                               cache=no
3354                           fi
3355
3356                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3357
3358 fi
3359
3360
3361           eval "$wx_cv_use_universal"
3362           if test "x$cache" = xyes; then
3363             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3364           fi
3365
3366           if test x"$enablestring" = xdisable; then
3367             if test $wxUSE_UNIVERSAL = yes; then
3368               result=no
3369             else
3370               result=yes
3371             fi
3372           else
3373             result=$wxUSE_UNIVERSAL
3374           fi
3375
3376           { echo "$as_me:$LINENO: result: $result" >&5
3377 echo "${ECHO_T}$result" >&6; }
3378
3379 if test "$wxUSE_UNIVERSAL" = "yes"; then
3380
3381 # Check whether --with-themes was given.
3382 if test "${with_themes+set}" = set; then
3383   withval=$with_themes; wxUNIV_THEMES="$withval"
3384 fi
3385
3386 fi
3387
3388
3389 # Check whether --with-gtk was given.
3390 if test "${with_gtk+set}" = set; then
3391   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3392 fi
3393
3394
3395 # Check whether --with-motif was given.
3396 if test "${with_motif+set}" = set; then
3397   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3398 fi
3399
3400
3401 # Check whether --with-mac was given.
3402 if test "${with_mac+set}" = set; then
3403   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3404 fi
3405
3406
3407 # Check whether --with-cocoa was given.
3408 if test "${with_cocoa+set}" = set; then
3409   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3410 fi
3411
3412
3413 # Check whether --with-wine was given.
3414 if test "${with_wine+set}" = set; then
3415   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3416 fi
3417
3418
3419 # Check whether --with-msw was given.
3420 if test "${with_msw+set}" = set; then
3421   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3422 fi
3423
3424
3425 # Check whether --with-pm was given.
3426 if test "${with_pm+set}" = set; then
3427   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3428 fi
3429
3430
3431 # Check whether --with-mgl was given.
3432 if test "${with_mgl+set}" = set; then
3433   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3434 fi
3435
3436
3437 # Check whether --with-directfb was given.
3438 if test "${with_directfb+set}" = set; then
3439   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3440 fi
3441
3442
3443 # Check whether --with-microwin was given.
3444 if test "${with_microwin+set}" = set; then
3445   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3446 fi
3447
3448
3449 # Check whether --with-x11 was given.
3450 if test "${with_x11+set}" = set; then
3451   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3452 fi
3453
3454
3455           enablestring=
3456           defaultval=
3457           if test -z "$defaultval"; then
3458               if test x"$enablestring" = xdisable; then
3459                   defaultval=yes
3460               else
3461                   defaultval=no
3462               fi
3463           fi
3464
3465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3466 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3467           # Check whether --enable-nanox was given.
3468 if test "${enable_nanox+set}" = set; then
3469   enableval=$enable_nanox;
3470                           if test "$enableval" = yes; then
3471                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3472                           else
3473                             wx_cv_use_nanox='wxUSE_NANOX=no'
3474                           fi
3475                           cache=yes
3476
3477 else
3478
3479                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3480                           if test "x$LINE" != x ; then
3481                               eval "DEFAULT_$LINE"
3482                               cache=yes
3483                           else
3484                               cache=no
3485                           fi
3486
3487                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3488
3489 fi
3490
3491
3492           eval "$wx_cv_use_nanox"
3493           if test "x$cache" = xyes; then
3494             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3495           fi
3496
3497           if test x"$enablestring" = xdisable; then
3498             if test $wxUSE_NANOX = yes; then
3499               result=no
3500             else
3501               result=yes
3502             fi
3503           else
3504             result=$wxUSE_NANOX
3505           fi
3506
3507           { echo "$as_me:$LINENO: result: $result" >&5
3508 echo "${ECHO_T}$result" >&6; }
3509
3510
3511 # Check whether --enable-gtk2 was given.
3512 if test "${enable_gtk2+set}" = set; then
3513   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3514 fi
3515
3516
3517           enablestring=
3518           defaultval=
3519           if test -z "$defaultval"; then
3520               if test x"$enablestring" = xdisable; then
3521                   defaultval=yes
3522               else
3523                   defaultval=no
3524               fi
3525           fi
3526
3527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3528 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3529           # Check whether --enable-gpe was given.
3530 if test "${enable_gpe+set}" = set; then
3531   enableval=$enable_gpe;
3532                           if test "$enableval" = yes; then
3533                             wx_cv_use_gpe='wxUSE_GPE=yes'
3534                           else
3535                             wx_cv_use_gpe='wxUSE_GPE=no'
3536                           fi
3537                           cache=yes
3538
3539 else
3540
3541                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3542                           if test "x$LINE" != x ; then
3543                               eval "DEFAULT_$LINE"
3544                               cache=yes
3545                           else
3546                               cache=no
3547                           fi
3548
3549                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3550
3551 fi
3552
3553
3554           eval "$wx_cv_use_gpe"
3555           if test "x$cache" = xyes; then
3556             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3557           fi
3558
3559           if test x"$enablestring" = xdisable; then
3560             if test $wxUSE_GPE = yes; then
3561               result=no
3562             else
3563               result=yes
3564             fi
3565           else
3566             result=$wxUSE_GPE
3567           fi
3568
3569           { echo "$as_me:$LINENO: result: $result" >&5
3570 echo "${ECHO_T}$result" >&6; }
3571
3572
3573
3574
3575           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3576 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3577
3578 # Check whether --with-libpng was given.
3579 if test "${with_libpng+set}" = set; then
3580   withval=$with_libpng;
3581                         if test "$withval" = yes; then
3582                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3583                         elif test "$withval" = no; then
3584                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3585                         elif test "$withval" = sys; then
3586                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3587                         elif test "$withval" = builtin; then
3588                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3589                         else
3590                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3591 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3592    { (exit 1); exit 1; }; }
3593                         fi
3594                         cache=yes
3595
3596 else
3597
3598                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3599                         if test "x$LINE" != x ; then
3600                             eval "DEFAULT_$LINE"
3601                             cache=yes
3602                         else
3603                             cache=no
3604                         fi
3605
3606                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3607
3608 fi
3609
3610
3611           eval "$wx_cv_use_libpng"
3612           if test "x$cache" = xyes; then
3613             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3614           fi
3615
3616           if test "$wxUSE_LIBPNG" = yes; then
3617             { echo "$as_me:$LINENO: result: yes" >&5
3618 echo "${ECHO_T}yes" >&6; }
3619           elif test "$wxUSE_LIBPNG" = no; then
3620             { echo "$as_me:$LINENO: result: no" >&5
3621 echo "${ECHO_T}no" >&6; }
3622           elif test "$wxUSE_LIBPNG" = sys; then
3623             { echo "$as_me:$LINENO: result: system version" >&5
3624 echo "${ECHO_T}system version" >&6; }
3625           elif test "$wxUSE_LIBPNG" = builtin; then
3626             { echo "$as_me:$LINENO: result: builtin version" >&5
3627 echo "${ECHO_T}builtin version" >&6; }
3628           else
3629             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3630 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3631    { (exit 1); exit 1; }; }
3632           fi
3633
3634
3635           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3636 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3637
3638 # Check whether --with-libjpeg was given.
3639 if test "${with_libjpeg+set}" = set; then
3640   withval=$with_libjpeg;
3641                         if test "$withval" = yes; then
3642                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3643                         elif test "$withval" = no; then
3644                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3645                         elif test "$withval" = sys; then
3646                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3647                         elif test "$withval" = builtin; then
3648                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3649                         else
3650                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3651 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3652    { (exit 1); exit 1; }; }
3653                         fi
3654                         cache=yes
3655
3656 else
3657
3658                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3659                         if test "x$LINE" != x ; then
3660                             eval "DEFAULT_$LINE"
3661                             cache=yes
3662                         else
3663                             cache=no
3664                         fi
3665
3666                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3667
3668 fi
3669
3670
3671           eval "$wx_cv_use_libjpeg"
3672           if test "x$cache" = xyes; then
3673             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3674           fi
3675
3676           if test "$wxUSE_LIBJPEG" = yes; then
3677             { echo "$as_me:$LINENO: result: yes" >&5
3678 echo "${ECHO_T}yes" >&6; }
3679           elif test "$wxUSE_LIBJPEG" = no; then
3680             { echo "$as_me:$LINENO: result: no" >&5
3681 echo "${ECHO_T}no" >&6; }
3682           elif test "$wxUSE_LIBJPEG" = sys; then
3683             { echo "$as_me:$LINENO: result: system version" >&5
3684 echo "${ECHO_T}system version" >&6; }
3685           elif test "$wxUSE_LIBJPEG" = builtin; then
3686             { echo "$as_me:$LINENO: result: builtin version" >&5
3687 echo "${ECHO_T}builtin version" >&6; }
3688           else
3689             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3690 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3691    { (exit 1); exit 1; }; }
3692           fi
3693
3694
3695           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3696 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3697
3698 # Check whether --with-libtiff was given.
3699 if test "${with_libtiff+set}" = set; then
3700   withval=$with_libtiff;
3701                         if test "$withval" = yes; then
3702                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3703                         elif test "$withval" = no; then
3704                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3705                         elif test "$withval" = sys; then
3706                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3707                         elif test "$withval" = builtin; then
3708                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3709                         else
3710                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3711 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3712    { (exit 1); exit 1; }; }
3713                         fi
3714                         cache=yes
3715
3716 else
3717
3718                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3719                         if test "x$LINE" != x ; then
3720                             eval "DEFAULT_$LINE"
3721                             cache=yes
3722                         else
3723                             cache=no
3724                         fi
3725
3726                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3727
3728 fi
3729
3730
3731           eval "$wx_cv_use_libtiff"
3732           if test "x$cache" = xyes; then
3733             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3734           fi
3735
3736           if test "$wxUSE_LIBTIFF" = yes; then
3737             { echo "$as_me:$LINENO: result: yes" >&5
3738 echo "${ECHO_T}yes" >&6; }
3739           elif test "$wxUSE_LIBTIFF" = no; then
3740             { echo "$as_me:$LINENO: result: no" >&5
3741 echo "${ECHO_T}no" >&6; }
3742           elif test "$wxUSE_LIBTIFF" = sys; then
3743             { echo "$as_me:$LINENO: result: system version" >&5
3744 echo "${ECHO_T}system version" >&6; }
3745           elif test "$wxUSE_LIBTIFF" = builtin; then
3746             { echo "$as_me:$LINENO: result: builtin version" >&5
3747 echo "${ECHO_T}builtin version" >&6; }
3748           else
3749             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3750 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3751    { (exit 1); exit 1; }; }
3752           fi
3753
3754
3755           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3756 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3757
3758 # Check whether --with-libxpm was given.
3759 if test "${with_libxpm+set}" = set; then
3760   withval=$with_libxpm;
3761                         if test "$withval" = yes; then
3762                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3763                         elif test "$withval" = no; then
3764                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3765                         elif test "$withval" = sys; then
3766                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3767                         elif test "$withval" = builtin; then
3768                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3769                         else
3770                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3771 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3772    { (exit 1); exit 1; }; }
3773                         fi
3774                         cache=yes
3775
3776 else
3777
3778                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3779                         if test "x$LINE" != x ; then
3780                             eval "DEFAULT_$LINE"
3781                             cache=yes
3782                         else
3783                             cache=no
3784                         fi
3785
3786                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3787
3788 fi
3789
3790
3791           eval "$wx_cv_use_libxpm"
3792           if test "x$cache" = xyes; then
3793             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3794           fi
3795
3796           if test "$wxUSE_LIBXPM" = yes; then
3797             { echo "$as_me:$LINENO: result: yes" >&5
3798 echo "${ECHO_T}yes" >&6; }
3799           elif test "$wxUSE_LIBXPM" = no; then
3800             { echo "$as_me:$LINENO: result: no" >&5
3801 echo "${ECHO_T}no" >&6; }
3802           elif test "$wxUSE_LIBXPM" = sys; then
3803             { echo "$as_me:$LINENO: result: system version" >&5
3804 echo "${ECHO_T}system version" >&6; }
3805           elif test "$wxUSE_LIBXPM" = builtin; then
3806             { echo "$as_me:$LINENO: result: builtin version" >&5
3807 echo "${ECHO_T}builtin version" >&6; }
3808           else
3809             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3810 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3811    { (exit 1); exit 1; }; }
3812           fi
3813
3814
3815           withstring=
3816           defaultval=$wxUSE_ALL_FEATURES
3817           if test -z "$defaultval"; then
3818               if test x"$withstring" = xwithout; then
3819                   defaultval=yes
3820               else
3821                   defaultval=no
3822               fi
3823           fi
3824           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3825 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3826
3827 # Check whether --with-libmspack was given.
3828 if test "${with_libmspack+set}" = set; then
3829   withval=$with_libmspack;
3830                         if test "$withval" = yes; then
3831                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3832                         else
3833                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3834                         fi
3835                         cache=yes
3836
3837 else
3838
3839                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3840                         if test "x$LINE" != x ; then
3841                             eval "DEFAULT_$LINE"
3842                             cache=yes
3843                         else
3844                             cache=no
3845                         fi
3846
3847                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3848
3849 fi
3850
3851
3852           eval "$wx_cv_use_libmspack"
3853           if test "x$cache" = xyes; then
3854             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3855           fi
3856
3857           if test x"$withstring" = xwithout; then
3858             if test $wxUSE_LIBMSPACK = yes; then
3859               result=no
3860             else
3861               result=yes
3862             fi
3863           else
3864             result=$wxUSE_LIBMSPACK
3865           fi
3866
3867           { echo "$as_me:$LINENO: result: $result" >&5
3868 echo "${ECHO_T}$result" >&6; }
3869
3870
3871           withstring=without
3872           defaultval=$wxUSE_ALL_FEATURES
3873           if test -z "$defaultval"; then
3874               if test x"$withstring" = xwithout; then
3875                   defaultval=yes
3876               else
3877                   defaultval=no
3878               fi
3879           fi
3880           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gtkprint" >&5
3881 echo $ECHO_N "checking for --${withstring:-with}-gtkprint... $ECHO_C" >&6; }
3882
3883 # Check whether --with-gtkprint was given.
3884 if test "${with_gtkprint+set}" = set; then
3885   withval=$with_gtkprint;
3886                         if test "$withval" = yes; then
3887                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=yes'
3888                         else
3889                           wx_cv_use_gtkprint='wxUSE_GTKPRINT=no'
3890                         fi
3891                         cache=yes
3892
3893 else
3894
3895                         LINE=`grep "^wxUSE_GTKPRINT=" ${wx_arg_cache_file}`
3896                         if test "x$LINE" != x ; then
3897                             eval "DEFAULT_$LINE"
3898                             cache=yes
3899                         else
3900                             cache=no
3901                         fi
3902
3903                         wx_cv_use_gtkprint='wxUSE_GTKPRINT=${'DEFAULT_wxUSE_GTKPRINT":-$defaultval}"
3904
3905 fi
3906
3907
3908           eval "$wx_cv_use_gtkprint"
3909           if test "x$cache" = xyes; then
3910             echo "wxUSE_GTKPRINT=$wxUSE_GTKPRINT" >> ${wx_arg_cache_file}.tmp
3911           fi
3912
3913           if test x"$withstring" = xwithout; then
3914             if test $wxUSE_GTKPRINT = yes; then
3915               result=no
3916             else
3917               result=yes
3918             fi
3919           else
3920             result=$wxUSE_GTKPRINT
3921           fi
3922
3923           { echo "$as_me:$LINENO: result: $result" >&5
3924 echo "${ECHO_T}$result" >&6; }
3925
3926
3927           withstring=without
3928           defaultval=$wxUSE_ALL_FEATURES
3929           if test -z "$defaultval"; then
3930               if test x"$withstring" = xwithout; then
3931                   defaultval=yes
3932               else
3933                   defaultval=no
3934               fi
3935           fi
3936           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3937 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3938
3939 # Check whether --with-gnomeprint was given.
3940 if test "${with_gnomeprint+set}" = set; then
3941   withval=$with_gnomeprint;
3942                         if test "$withval" = yes; then
3943                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3944                         else
3945                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3946                         fi
3947                         cache=yes
3948
3949 else
3950
3951                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3952                         if test "x$LINE" != x ; then
3953                             eval "DEFAULT_$LINE"
3954                             cache=yes
3955                         else
3956                             cache=no
3957                         fi
3958
3959                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3960
3961 fi
3962
3963
3964           eval "$wx_cv_use_gnomeprint"
3965           if test "x$cache" = xyes; then
3966             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3967           fi
3968
3969           if test x"$withstring" = xwithout; then
3970             if test $wxUSE_LIBGNOMEPRINT = yes; then
3971               result=no
3972             else
3973               result=yes
3974             fi
3975           else
3976             result=$wxUSE_LIBGNOMEPRINT
3977           fi
3978
3979           { echo "$as_me:$LINENO: result: $result" >&5
3980 echo "${ECHO_T}$result" >&6; }
3981
3982
3983           withstring=
3984           defaultval=$wxUSE_ALL_FEATURES
3985           if test -z "$defaultval"; then
3986               if test x"$withstring" = xwithout; then
3987                   defaultval=yes
3988               else
3989                   defaultval=no
3990               fi
3991           fi
3992           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3993 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3994
3995 # Check whether --with-gnomevfs was given.
3996 if test "${with_gnomevfs+set}" = set; then
3997   withval=$with_gnomevfs;
3998                         if test "$withval" = yes; then
3999                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
4000                         else
4001                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
4002                         fi
4003                         cache=yes
4004
4005 else
4006
4007                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
4008                         if test "x$LINE" != x ; then
4009                             eval "DEFAULT_$LINE"
4010                             cache=yes
4011                         else
4012                             cache=no
4013                         fi
4014
4015                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
4016
4017 fi
4018
4019
4020           eval "$wx_cv_use_gnomevfs"
4021           if test "x$cache" = xyes; then
4022             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
4023           fi
4024
4025           if test x"$withstring" = xwithout; then
4026             if test $wxUSE_LIBGNOMEVFS = yes; then
4027               result=no
4028             else
4029               result=yes
4030             fi
4031           else
4032             result=$wxUSE_LIBGNOMEVFS
4033           fi
4034
4035           { echo "$as_me:$LINENO: result: $result" >&5
4036 echo "${ECHO_T}$result" >&6; }
4037
4038
4039           withstring=
4040           defaultval=$wxUSE_ALL_FEATURES
4041           if test -z "$defaultval"; then
4042               if test x"$withstring" = xwithout; then
4043                   defaultval=yes
4044               else
4045                   defaultval=no
4046               fi
4047           fi
4048           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
4049 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
4050
4051 # Check whether --with-hildon was given.
4052 if test "${with_hildon+set}" = set; then
4053   withval=$with_hildon;
4054                         if test "$withval" = yes; then
4055                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
4056                         else
4057                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
4058                         fi
4059                         cache=yes
4060
4061 else
4062
4063                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
4064                         if test "x$LINE" != x ; then
4065                             eval "DEFAULT_$LINE"
4066                             cache=yes
4067                         else
4068                             cache=no
4069                         fi
4070
4071                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
4072
4073 fi
4074
4075
4076           eval "$wx_cv_use_hildon"
4077           if test "x$cache" = xyes; then
4078             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
4079           fi
4080
4081           if test x"$withstring" = xwithout; then
4082             if test $wxUSE_LIBHILDON = yes; then
4083               result=no
4084             else
4085               result=yes
4086             fi
4087           else
4088             result=$wxUSE_LIBHILDON
4089           fi
4090
4091           { echo "$as_me:$LINENO: result: $result" >&5
4092 echo "${ECHO_T}$result" >&6; }
4093
4094
4095           withstring=
4096           defaultval=$wxUSE_ALL_FEATURES
4097           if test -z "$defaultval"; then
4098               if test x"$withstring" = xwithout; then
4099                   defaultval=yes
4100               else
4101                   defaultval=no
4102               fi
4103           fi
4104           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4105 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4106
4107 # Check whether --with-opengl was given.
4108 if test "${with_opengl+set}" = set; then
4109   withval=$with_opengl;
4110                         if test "$withval" = yes; then
4111                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4112                         else
4113                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4114                         fi
4115                         cache=yes
4116
4117 else
4118
4119                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4120                         if test "x$LINE" != x ; then
4121                             eval "DEFAULT_$LINE"
4122                             cache=yes
4123                         else
4124                             cache=no
4125                         fi
4126
4127                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4128
4129 fi
4130
4131
4132           eval "$wx_cv_use_opengl"
4133           if test "x$cache" = xyes; then
4134             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4135           fi
4136
4137           if test x"$withstring" = xwithout; then
4138             if test $wxUSE_OPENGL = yes; then
4139               result=no
4140             else
4141               result=yes
4142             fi
4143           else
4144             result=$wxUSE_OPENGL
4145           fi
4146
4147           { echo "$as_me:$LINENO: result: $result" >&5
4148 echo "${ECHO_T}$result" >&6; }
4149
4150
4151 fi
4152
4153
4154           withstring=
4155           defaultval=$wxUSE_ALL_FEATURES
4156           if test -z "$defaultval"; then
4157               if test x"$withstring" = xwithout; then
4158                   defaultval=yes
4159               else
4160                   defaultval=no
4161               fi
4162           fi
4163           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4164 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4165
4166 # Check whether --with-dmalloc was given.
4167 if test "${with_dmalloc+set}" = set; then
4168   withval=$with_dmalloc;
4169                         if test "$withval" = yes; then
4170                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4171                         else
4172                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4173                         fi
4174                         cache=yes
4175
4176 else
4177
4178                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4179                         if test "x$LINE" != x ; then
4180                             eval "DEFAULT_$LINE"
4181                             cache=yes
4182                         else
4183                             cache=no
4184                         fi
4185
4186                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4187
4188 fi
4189
4190
4191           eval "$wx_cv_use_dmalloc"
4192           if test "x$cache" = xyes; then
4193             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4194           fi
4195
4196           if test x"$withstring" = xwithout; then
4197             if test $wxUSE_DMALLOC = yes; then
4198               result=no
4199             else
4200               result=yes
4201             fi
4202           else
4203             result=$wxUSE_DMALLOC
4204           fi
4205
4206           { echo "$as_me:$LINENO: result: $result" >&5
4207 echo "${ECHO_T}$result" >&6; }
4208
4209
4210           withstring=
4211           defaultval=$wxUSE_ALL_FEATURES
4212           if test -z "$defaultval"; then
4213               if test x"$withstring" = xwithout; then
4214                   defaultval=yes
4215               else
4216                   defaultval=no
4217               fi
4218           fi
4219           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4220 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4221
4222 # Check whether --with-sdl was given.
4223 if test "${with_sdl+set}" = set; then
4224   withval=$with_sdl;
4225                         if test "$withval" = yes; then
4226                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4227                         else
4228                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4229                         fi
4230                         cache=yes
4231
4232 else
4233
4234                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4235                         if test "x$LINE" != x ; then
4236                             eval "DEFAULT_$LINE"
4237                             cache=yes
4238                         else
4239                             cache=no
4240                         fi
4241
4242                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4243
4244 fi
4245
4246
4247           eval "$wx_cv_use_sdl"
4248           if test "x$cache" = xyes; then
4249             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4250           fi
4251
4252           if test x"$withstring" = xwithout; then
4253             if test $wxUSE_LIBSDL = yes; then
4254               result=no
4255             else
4256               result=yes
4257             fi
4258           else
4259             result=$wxUSE_LIBSDL
4260           fi
4261
4262           { echo "$as_me:$LINENO: result: $result" >&5
4263 echo "${ECHO_T}$result" >&6; }
4264
4265
4266           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4267 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4268
4269 # Check whether --with-regex was given.
4270 if test "${with_regex+set}" = set; then
4271   withval=$with_regex;
4272                         if test "$withval" = yes; then
4273                           wx_cv_use_regex='wxUSE_REGEX=yes'
4274                         elif test "$withval" = no; then
4275                           wx_cv_use_regex='wxUSE_REGEX=no'
4276                         elif test "$withval" = sys; then
4277                           wx_cv_use_regex='wxUSE_REGEX=sys'
4278                         elif test "$withval" = builtin; then
4279                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4280                         else
4281                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4282 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4283    { (exit 1); exit 1; }; }
4284                         fi
4285                         cache=yes
4286
4287 else
4288
4289                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4290                         if test "x$LINE" != x ; then
4291                             eval "DEFAULT_$LINE"
4292                             cache=yes
4293                         else
4294                             cache=no
4295                         fi
4296
4297                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4298
4299 fi
4300
4301
4302           eval "$wx_cv_use_regex"
4303           if test "x$cache" = xyes; then
4304             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4305           fi
4306
4307           if test "$wxUSE_REGEX" = yes; then
4308             { echo "$as_me:$LINENO: result: yes" >&5
4309 echo "${ECHO_T}yes" >&6; }
4310           elif test "$wxUSE_REGEX" = no; then
4311             { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4313           elif test "$wxUSE_REGEX" = sys; then
4314             { echo "$as_me:$LINENO: result: system version" >&5
4315 echo "${ECHO_T}system version" >&6; }
4316           elif test "$wxUSE_REGEX" = builtin; then
4317             { echo "$as_me:$LINENO: result: builtin version" >&5
4318 echo "${ECHO_T}builtin version" >&6; }
4319           else
4320             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4321 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4322    { (exit 1); exit 1; }; }
4323           fi
4324
4325
4326           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4327 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4328
4329 # Check whether --with-zlib was given.
4330 if test "${with_zlib+set}" = set; then
4331   withval=$with_zlib;
4332                         if test "$withval" = yes; then
4333                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4334                         elif test "$withval" = no; then
4335                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4336                         elif test "$withval" = sys; then
4337                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4338                         elif test "$withval" = builtin; then
4339                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4340                         else
4341                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4342 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4343    { (exit 1); exit 1; }; }
4344                         fi
4345                         cache=yes
4346
4347 else
4348
4349                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4350                         if test "x$LINE" != x ; then
4351                             eval "DEFAULT_$LINE"
4352                             cache=yes
4353                         else
4354                             cache=no
4355                         fi
4356
4357                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4358
4359 fi
4360
4361
4362           eval "$wx_cv_use_zlib"
4363           if test "x$cache" = xyes; then
4364             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4365           fi
4366
4367           if test "$wxUSE_ZLIB" = yes; then
4368             { echo "$as_me:$LINENO: result: yes" >&5
4369 echo "${ECHO_T}yes" >&6; }
4370           elif test "$wxUSE_ZLIB" = no; then
4371             { echo "$as_me:$LINENO: result: no" >&5
4372 echo "${ECHO_T}no" >&6; }
4373           elif test "$wxUSE_ZLIB" = sys; then
4374             { echo "$as_me:$LINENO: result: system version" >&5
4375 echo "${ECHO_T}system version" >&6; }
4376           elif test "$wxUSE_ZLIB" = builtin; then
4377             { echo "$as_me:$LINENO: result: builtin version" >&5
4378 echo "${ECHO_T}builtin version" >&6; }
4379           else
4380             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4381 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4382    { (exit 1); exit 1; }; }
4383           fi
4384
4385
4386           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4387 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4388
4389 # Check whether --with-expat was given.
4390 if test "${with_expat+set}" = set; then
4391   withval=$with_expat;
4392                         if test "$withval" = yes; then
4393                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4394                         elif test "$withval" = no; then
4395                           wx_cv_use_expat='wxUSE_EXPAT=no'
4396                         elif test "$withval" = sys; then
4397                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4398                         elif test "$withval" = builtin; then
4399                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4400                         else
4401                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4402 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4403    { (exit 1); exit 1; }; }
4404                         fi
4405                         cache=yes
4406
4407 else
4408
4409                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4410                         if test "x$LINE" != x ; then
4411                             eval "DEFAULT_$LINE"
4412                             cache=yes
4413                         else
4414                             cache=no
4415                         fi
4416
4417                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4418
4419 fi
4420
4421
4422           eval "$wx_cv_use_expat"
4423           if test "x$cache" = xyes; then
4424             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4425           fi
4426
4427           if test "$wxUSE_EXPAT" = yes; then
4428             { echo "$as_me:$LINENO: result: yes" >&5
4429 echo "${ECHO_T}yes" >&6; }
4430           elif test "$wxUSE_EXPAT" = no; then
4431             { echo "$as_me:$LINENO: result: no" >&5
4432 echo "${ECHO_T}no" >&6; }
4433           elif test "$wxUSE_EXPAT" = sys; then
4434             { echo "$as_me:$LINENO: result: system version" >&5
4435 echo "${ECHO_T}system version" >&6; }
4436           elif test "$wxUSE_EXPAT" = builtin; then
4437             { echo "$as_me:$LINENO: result: builtin version" >&5
4438 echo "${ECHO_T}builtin version" >&6; }
4439           else
4440             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4441 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4442    { (exit 1); exit 1; }; }
4443           fi
4444
4445
4446 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4447 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4448
4449 # Check whether --with-macosx-sdk was given.
4450 if test "${with_macosx_sdk+set}" = set; then
4451   withval=$with_macosx_sdk;
4452         wxUSE_MACOSX_SDK=$withval
4453         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4454         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4455
4456 else
4457
4458         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4459         # will override --enable-universal_binary's automatic SDK usage.
4460         wxUSE_MACOSX_SDK=
4461         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4462         if test "x$LINE" != x ; then
4463             eval "$LINE"
4464             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4465         fi
4466
4467 fi
4468
4469 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4470 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4471
4472 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4473 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4474
4475 # Check whether --with-macosx-version-min was given.
4476 if test "${with_macosx_version_min+set}" = set; then
4477   withval=$with_macosx_version_min;
4478         wxUSE_MACOSX_VERSION_MIN=$withval
4479         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4480         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4481
4482 else
4483
4484         # default "yes" because when not using an SDK it means the same as no
4485         # but when using an SDK it means to use the SDK version
4486         wxUSE_MACOSX_VERSION_MIN=yes
4487         # See if there is a value in the cache
4488         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4489         if test "x$LINE" != x ; then
4490             eval "$LINE"
4491             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4492         fi
4493
4494 fi
4495
4496 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4497 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4498
4499
4500
4501           enablestring=disable
4502           defaultval=
4503           if test -z "$defaultval"; then
4504               if test x"$enablestring" = xdisable; then
4505                   defaultval=yes
4506               else
4507                   defaultval=no
4508               fi
4509           fi
4510
4511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4512 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4513           # Check whether --enable-shared was given.
4514 if test "${enable_shared+set}" = set; then
4515   enableval=$enable_shared;
4516                           if test "$enableval" = yes; then
4517                             wx_cv_use_shared='wxUSE_SHARED=yes'
4518                           else
4519                             wx_cv_use_shared='wxUSE_SHARED=no'
4520                           fi
4521                           cache=yes
4522
4523 else
4524
4525                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4526                           if test "x$LINE" != x ; then
4527                               eval "DEFAULT_$LINE"
4528                               cache=yes
4529                           else
4530                               cache=no
4531                           fi
4532
4533                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4534
4535 fi
4536
4537
4538           eval "$wx_cv_use_shared"
4539           if test "x$cache" = xyes; then
4540             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4541           fi
4542
4543           if test x"$enablestring" = xdisable; then
4544             if test $wxUSE_SHARED = yes; then
4545               result=no
4546             else
4547               result=yes
4548             fi
4549           else
4550             result=$wxUSE_SHARED
4551           fi
4552
4553           { echo "$as_me:$LINENO: result: $result" >&5
4554 echo "${ECHO_T}$result" >&6; }
4555
4556
4557           enablestring=disable
4558           defaultval=
4559           if test -z "$defaultval"; then
4560               if test x"$enablestring" = xdisable; then
4561                   defaultval=yes
4562               else
4563                   defaultval=no
4564               fi
4565           fi
4566
4567           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4568 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4569           # Check whether --enable-optimise was given.
4570 if test "${enable_optimise+set}" = set; then
4571   enableval=$enable_optimise;
4572                           if test "$enableval" = yes; then
4573                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4574                           else
4575                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4576                           fi
4577                           cache=yes
4578
4579 else
4580
4581                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4582                           if test "x$LINE" != x ; then
4583                               eval "DEFAULT_$LINE"
4584                               cache=yes
4585                           else
4586                               cache=no
4587                           fi
4588
4589                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4590
4591 fi
4592
4593
4594           eval "$wx_cv_use_optimise"
4595           if test "x$cache" = xyes; then
4596             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4597           fi
4598
4599           if test x"$enablestring" = xdisable; then
4600             if test $wxUSE_OPTIMISE = yes; then
4601               result=no
4602             else
4603               result=yes
4604             fi
4605           else
4606             result=$wxUSE_OPTIMISE
4607           fi
4608
4609           { echo "$as_me:$LINENO: result: $result" >&5
4610 echo "${ECHO_T}$result" >&6; }
4611
4612
4613           enablestring=
4614           defaultval=
4615           if test -z "$defaultval"; then
4616               if test x"$enablestring" = xdisable; then
4617                   defaultval=yes
4618               else
4619                   defaultval=no
4620               fi
4621           fi
4622
4623           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4624 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4625           # Check whether --enable-debug was given.
4626 if test "${enable_debug+set}" = set; then
4627   enableval=$enable_debug;
4628                           if test "$enableval" = yes; then
4629                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4630                           else
4631                             wx_cv_use_debug='wxUSE_DEBUG=no'
4632                           fi
4633                           cache=yes
4634
4635 else
4636
4637                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4638                           if test "x$LINE" != x ; then
4639                               eval "DEFAULT_$LINE"
4640                               cache=yes
4641                           else
4642                               cache=no
4643                           fi
4644
4645                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4646
4647 fi
4648
4649
4650           eval "$wx_cv_use_debug"
4651           if test "x$cache" = xyes; then
4652             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4653           fi
4654
4655           if test x"$enablestring" = xdisable; then
4656             if test $wxUSE_DEBUG = yes; then
4657               result=no
4658             else
4659               result=yes
4660             fi
4661           else
4662             result=$wxUSE_DEBUG
4663           fi
4664
4665           { echo "$as_me:$LINENO: result: $result" >&5
4666 echo "${ECHO_T}$result" >&6; }
4667
4668
4669           enablestring=
4670           defaultval=
4671           if test -z "$defaultval"; then
4672               if test x"$enablestring" = xdisable; then
4673                   defaultval=yes
4674               else
4675                   defaultval=no
4676               fi
4677           fi
4678
4679           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4680 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4681           # Check whether --enable-stl was given.
4682 if test "${enable_stl+set}" = set; then
4683   enableval=$enable_stl;
4684                           if test "$enableval" = yes; then
4685                             wx_cv_use_stl='wxUSE_STL=yes'
4686                           else
4687                             wx_cv_use_stl='wxUSE_STL=no'
4688                           fi
4689                           cache=yes
4690
4691 else
4692
4693                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4694                           if test "x$LINE" != x ; then
4695                               eval "DEFAULT_$LINE"
4696                               cache=yes
4697                           else
4698                               cache=no
4699                           fi
4700
4701                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4702
4703 fi
4704
4705
4706           eval "$wx_cv_use_stl"
4707           if test "x$cache" = xyes; then
4708             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4709           fi
4710
4711           if test x"$enablestring" = xdisable; then
4712             if test $wxUSE_STL = yes; then
4713               result=no
4714             else
4715               result=yes
4716             fi
4717           else
4718             result=$wxUSE_STL
4719           fi
4720
4721           { echo "$as_me:$LINENO: result: $result" >&5
4722 echo "${ECHO_T}$result" >&6; }
4723
4724
4725           enablestring=
4726           defaultval=
4727           if test -z "$defaultval"; then
4728               if test x"$enablestring" = xdisable; then
4729                   defaultval=yes
4730               else
4731                   defaultval=no
4732               fi
4733           fi
4734
4735           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4736 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4737           # Check whether --enable-std_iostreams was given.
4738 if test "${enable_std_iostreams+set}" = set; then
4739   enableval=$enable_std_iostreams;
4740                           if test "$enableval" = yes; then
4741                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4742                           else
4743                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4744                           fi
4745                           cache=yes
4746
4747 else
4748
4749                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4750                           if test "x$LINE" != x ; then
4751                               eval "DEFAULT_$LINE"
4752                               cache=yes
4753                           else
4754                               cache=no
4755                           fi
4756
4757                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4758
4759 fi
4760
4761
4762           eval "$wx_cv_use_std_iostreams"
4763           if test "x$cache" = xyes; then
4764             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4765           fi
4766
4767           if test x"$enablestring" = xdisable; then
4768             if test $wxUSE_STD_IOSTREAM = yes; then
4769               result=no
4770             else
4771               result=yes
4772             fi
4773           else
4774             result=$wxUSE_STD_IOSTREAM
4775           fi
4776
4777           { echo "$as_me:$LINENO: result: $result" >&5
4778 echo "${ECHO_T}$result" >&6; }
4779
4780
4781           enablestring=
4782           defaultval=
4783           if test -z "$defaultval"; then
4784               if test x"$enablestring" = xdisable; then
4785                   defaultval=yes
4786               else
4787                   defaultval=no
4788               fi
4789           fi
4790
4791           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4792 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4793           # Check whether --enable-std_string was given.
4794 if test "${enable_std_string+set}" = set; then
4795   enableval=$enable_std_string;
4796                           if test "$enableval" = yes; then
4797                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4798                           else
4799                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4800                           fi
4801                           cache=yes
4802
4803 else
4804
4805                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4806                           if test "x$LINE" != x ; then
4807                               eval "DEFAULT_$LINE"
4808                               cache=yes
4809                           else
4810                               cache=no
4811                           fi
4812
4813                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4814
4815 fi
4816
4817
4818           eval "$wx_cv_use_std_string"
4819           if test "x$cache" = xyes; then
4820             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4821           fi
4822
4823           if test x"$enablestring" = xdisable; then
4824             if test $wxUSE_STD_STRING = yes; then
4825               result=no
4826             else
4827               result=yes
4828             fi
4829           else
4830             result=$wxUSE_STD_STRING
4831           fi
4832
4833           { echo "$as_me:$LINENO: result: $result" >&5
4834 echo "${ECHO_T}$result" >&6; }
4835
4836
4837           enablestring=disable
4838           defaultval=
4839           if test -z "$defaultval"; then
4840               if test x"$enablestring" = xdisable; then
4841                   defaultval=yes
4842               else
4843                   defaultval=no
4844               fi
4845           fi
4846
4847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4848 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4849           # Check whether --enable-unicode was given.
4850 if test "${enable_unicode+set}" = set; then
4851   enableval=$enable_unicode;
4852                           if test "$enableval" = yes; then
4853                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4854                           else
4855                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4856                           fi
4857                           cache=yes
4858
4859 else
4860
4861                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4862                           if test "x$LINE" != x ; then
4863                               eval "DEFAULT_$LINE"
4864                               cache=yes
4865                           else
4866                               cache=no
4867                           fi
4868
4869                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4870
4871 fi
4872
4873
4874           eval "$wx_cv_use_unicode"
4875           if test "x$cache" = xyes; then
4876             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4877           fi
4878
4879           if test x"$enablestring" = xdisable; then
4880             if test $wxUSE_UNICODE = yes; then
4881               result=no
4882             else
4883               result=yes
4884             fi
4885           else
4886             result=$wxUSE_UNICODE
4887           fi
4888
4889           { echo "$as_me:$LINENO: result: $result" >&5
4890 echo "${ECHO_T}$result" >&6; }
4891
4892
4893           enablestring=
4894           defaultval=
4895           if test -z "$defaultval"; then
4896               if test x"$enablestring" = xdisable; then
4897                   defaultval=yes
4898               else
4899                   defaultval=no
4900               fi
4901           fi
4902
4903           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4904 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4905           # Check whether --enable-mslu was given.
4906 if test "${enable_mslu+set}" = set; then
4907   enableval=$enable_mslu;
4908                           if test "$enableval" = yes; then
4909                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4910                           else
4911                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4912                           fi
4913                           cache=yes
4914
4915 else
4916
4917                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4918                           if test "x$LINE" != x ; then
4919                               eval "DEFAULT_$LINE"
4920                               cache=yes
4921                           else
4922                               cache=no
4923                           fi
4924
4925                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4926
4927 fi
4928
4929
4930           eval "$wx_cv_use_mslu"
4931           if test "x$cache" = xyes; then
4932             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4933           fi
4934
4935           if test x"$enablestring" = xdisable; then
4936             if test $wxUSE_UNICODE_MSLU = yes; then
4937               result=no
4938             else
4939               result=yes
4940             fi
4941           else
4942             result=$wxUSE_UNICODE_MSLU
4943           fi
4944
4945           { echo "$as_me:$LINENO: result: $result" >&5
4946 echo "${ECHO_T}$result" >&6; }
4947
4948
4949           enablestring=
4950           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4951 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4952           # Check whether --enable-utf8 was given.
4953 if test "${enable_utf8+set}" = set; then
4954   enableval=$enable_utf8;
4955                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4956                           cache=yes
4957
4958 else
4959
4960                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4961                           if test "x$LINE" != x ; then
4962                             eval "DEFAULT_$LINE"
4963                             cache=yes
4964                           else
4965                             cache=no
4966                           fi
4967
4968                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4969
4970 fi
4971
4972
4973           eval "$wx_cv_use_utf8"
4974           if test "x$cache" = xyes; then
4975             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4976           fi
4977
4978           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4979 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4980
4981
4982           enablestring=
4983           defaultval=
4984           if test -z "$defaultval"; then
4985               if test x"$enablestring" = xdisable; then
4986                   defaultval=yes
4987               else
4988                   defaultval=no
4989               fi
4990           fi
4991
4992           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4993 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4994           # Check whether --enable-utf8only was given.
4995 if test "${enable_utf8only+set}" = set; then
4996   enableval=$enable_utf8only;
4997                           if test "$enableval" = yes; then
4998                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4999                           else
5000                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
5001                           fi
5002                           cache=yes
5003
5004 else
5005
5006                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
5007                           if test "x$LINE" != x ; then
5008                               eval "DEFAULT_$LINE"
5009                               cache=yes
5010                           else
5011                               cache=no
5012                           fi
5013
5014                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
5015
5016 fi
5017
5018
5019           eval "$wx_cv_use_utf8only"
5020           if test "x$cache" = xyes; then
5021             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
5022           fi
5023
5024           if test x"$enablestring" = xdisable; then
5025             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
5026               result=no
5027             else
5028               result=yes
5029             fi
5030           else
5031             result=$wxUSE_UNICODE_UTF8_LOCALE
5032           fi
5033
5034           { echo "$as_me:$LINENO: result: $result" >&5
5035 echo "${ECHO_T}$result" >&6; }
5036
5037
5038           enablestring=
5039           defaultval=
5040           if test -z "$defaultval"; then
5041               if test x"$enablestring" = xdisable; then
5042                   defaultval=yes
5043               else
5044                   defaultval=no
5045               fi
5046           fi
5047
5048           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
5049 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
5050           # Check whether --enable-extended_rtti was given.
5051 if test "${enable_extended_rtti+set}" = set; then
5052   enableval=$enable_extended_rtti;
5053                           if test "$enableval" = yes; then
5054                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
5055                           else
5056                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
5057                           fi
5058                           cache=yes
5059
5060 else
5061
5062                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5063                           if test "x$LINE" != x ; then
5064                               eval "DEFAULT_$LINE"
5065                               cache=yes
5066                           else
5067                               cache=no
5068                           fi
5069
5070                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5071
5072 fi
5073
5074
5075           eval "$wx_cv_use_extended_rtti"
5076           if test "x$cache" = xyes; then
5077             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5078           fi
5079
5080           if test x"$enablestring" = xdisable; then
5081             if test $wxUSE_EXTENDED_RTTI = yes; then
5082               result=no
5083             else
5084               result=yes
5085             fi
5086           else
5087             result=$wxUSE_EXTENDED_RTTI
5088           fi
5089
5090           { echo "$as_me:$LINENO: result: $result" >&5
5091 echo "${ECHO_T}$result" >&6; }
5092
5093 if test "$USE_OS2" = "1"; then
5094     DEFAULT_wxUSE_OMF=no
5095
5096           enablestring=
5097           defaultval=
5098           if test -z "$defaultval"; then
5099               if test x"$enablestring" = xdisable; then
5100                   defaultval=yes
5101               else
5102                   defaultval=no
5103               fi
5104           fi
5105
5106           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5107 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5108           # Check whether --enable-omf was given.
5109 if test "${enable_omf+set}" = set; then
5110   enableval=$enable_omf;
5111                           if test "$enableval" = yes; then
5112                             wx_cv_use_omf='wxUSE_OMF=yes'
5113                           else
5114                             wx_cv_use_omf='wxUSE_OMF=no'
5115                           fi
5116                           cache=yes
5117
5118 else
5119
5120                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5121                           if test "x$LINE" != x ; then
5122                               eval "DEFAULT_$LINE"
5123                               cache=yes
5124                           else
5125                               cache=no
5126                           fi
5127
5128                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5129
5130 fi
5131
5132
5133           eval "$wx_cv_use_omf"
5134           if test "x$cache" = xyes; then
5135             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5136           fi
5137
5138           if test x"$enablestring" = xdisable; then
5139             if test $wxUSE_OMF = yes; then
5140               result=no
5141             else
5142               result=yes
5143             fi
5144           else
5145             result=$wxUSE_OMF
5146           fi
5147
5148           { echo "$as_me:$LINENO: result: $result" >&5
5149 echo "${ECHO_T}$result" >&6; }
5150
5151 fi
5152
5153 if test "$wxUSE_DEBUG" = "yes"; then
5154   DEFAULT_wxUSE_DEBUG_FLAG=yes
5155   DEFAULT_wxUSE_DEBUG_INFO=yes
5156   BUILD=debug
5157 elif test "$wxUSE_DEBUG" = "no"; then
5158   DEFAULT_wxUSE_DEBUG_FLAG=no
5159   DEFAULT_wxUSE_DEBUG_INFO=no
5160   BUILD=release
5161 fi
5162
5163
5164           enablestring=
5165           defaultval=
5166           if test -z "$defaultval"; then
5167               if test x"$enablestring" = xdisable; then
5168                   defaultval=yes
5169               else
5170                   defaultval=no
5171               fi
5172           fi
5173
5174           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5175 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5176           # Check whether --enable-debug_flag was given.
5177 if test "${enable_debug_flag+set}" = set; then
5178   enableval=$enable_debug_flag;
5179                           if test "$enableval" = yes; then
5180                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5181                           else
5182                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5183                           fi
5184                           cache=yes
5185
5186 else
5187
5188                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5189                           if test "x$LINE" != x ; then
5190                               eval "DEFAULT_$LINE"
5191                               cache=yes
5192                           else
5193                               cache=no
5194                           fi
5195
5196                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5197
5198 fi
5199
5200
5201           eval "$wx_cv_use_debug_flag"
5202           if test "x$cache" = xyes; then
5203             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5204           fi
5205
5206           if test x"$enablestring" = xdisable; then
5207             if test $wxUSE_DEBUG_FLAG = yes; then
5208               result=no
5209             else
5210               result=yes
5211             fi
5212           else
5213             result=$wxUSE_DEBUG_FLAG
5214           fi
5215
5216           { echo "$as_me:$LINENO: result: $result" >&5
5217 echo "${ECHO_T}$result" >&6; }
5218
5219
5220           enablestring=
5221           defaultval=
5222           if test -z "$defaultval"; then
5223               if test x"$enablestring" = xdisable; then
5224                   defaultval=yes
5225               else
5226                   defaultval=no
5227               fi
5228           fi
5229
5230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5231 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5232           # Check whether --enable-debug_info was given.
5233 if test "${enable_debug_info+set}" = set; then
5234   enableval=$enable_debug_info;
5235                           if test "$enableval" = yes; then
5236                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5237                           else
5238                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5239                           fi
5240                           cache=yes
5241
5242 else
5243
5244                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5245                           if test "x$LINE" != x ; then
5246                               eval "DEFAULT_$LINE"
5247                               cache=yes
5248                           else
5249                               cache=no
5250                           fi
5251
5252                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5253
5254 fi
5255
5256
5257           eval "$wx_cv_use_debug_info"
5258           if test "x$cache" = xyes; then
5259             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5260           fi
5261
5262           if test x"$enablestring" = xdisable; then
5263             if test $wxUSE_DEBUG_INFO = yes; then
5264               result=no
5265             else
5266               result=yes
5267             fi
5268           else
5269             result=$wxUSE_DEBUG_INFO
5270           fi
5271
5272           { echo "$as_me:$LINENO: result: $result" >&5
5273 echo "${ECHO_T}$result" >&6; }
5274
5275
5276           enablestring=
5277           defaultval=
5278           if test -z "$defaultval"; then
5279               if test x"$enablestring" = xdisable; then
5280                   defaultval=yes
5281               else
5282                   defaultval=no
5283               fi
5284           fi
5285
5286           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5287 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5288           # Check whether --enable-debug_gdb was given.
5289 if test "${enable_debug_gdb+set}" = set; then
5290   enableval=$enable_debug_gdb;
5291                           if test "$enableval" = yes; then
5292                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5293                           else
5294                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5295                           fi
5296                           cache=yes
5297
5298 else
5299
5300                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5301                           if test "x$LINE" != x ; then
5302                               eval "DEFAULT_$LINE"
5303                               cache=yes
5304                           else
5305                               cache=no
5306                           fi
5307
5308                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5309
5310 fi
5311
5312
5313           eval "$wx_cv_use_debug_gdb"
5314           if test "x$cache" = xyes; then
5315             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5316           fi
5317
5318           if test x"$enablestring" = xdisable; then
5319             if test $wxUSE_DEBUG_GDB = yes; then
5320               result=no
5321             else
5322               result=yes
5323             fi
5324           else
5325             result=$wxUSE_DEBUG_GDB
5326           fi
5327
5328           { echo "$as_me:$LINENO: result: $result" >&5
5329 echo "${ECHO_T}$result" >&6; }
5330
5331
5332           enablestring=
5333           defaultval=
5334           if test -z "$defaultval"; then
5335               if test x"$enablestring" = xdisable; then
5336                   defaultval=yes
5337               else
5338                   defaultval=no
5339               fi
5340           fi
5341
5342           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5343 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5344           # Check whether --enable-debug_cntxt was given.
5345 if test "${enable_debug_cntxt+set}" = set; then
5346   enableval=$enable_debug_cntxt;
5347                           if test "$enableval" = yes; then
5348                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5349                           else
5350                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5351                           fi
5352                           cache=yes
5353
5354 else
5355
5356                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5357                           if test "x$LINE" != x ; then
5358                               eval "DEFAULT_$LINE"
5359                               cache=yes
5360                           else
5361                               cache=no
5362                           fi
5363
5364                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5365
5366 fi
5367
5368
5369           eval "$wx_cv_use_debug_cntxt"
5370           if test "x$cache" = xyes; then
5371             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5372           fi
5373
5374           if test x"$enablestring" = xdisable; then
5375             if test $wxUSE_DEBUG_CONTEXT = yes; then
5376               result=no
5377             else
5378               result=yes
5379             fi
5380           else
5381             result=$wxUSE_DEBUG_CONTEXT
5382           fi
5383
5384           { echo "$as_me:$LINENO: result: $result" >&5
5385 echo "${ECHO_T}$result" >&6; }
5386
5387
5388           enablestring=
5389           defaultval=
5390           if test -z "$defaultval"; then
5391               if test x"$enablestring" = xdisable; then
5392                   defaultval=yes
5393               else
5394                   defaultval=no
5395               fi
5396           fi
5397
5398           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5399 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5400           # Check whether --enable-mem_tracing was given.
5401 if test "${enable_mem_tracing+set}" = set; then
5402   enableval=$enable_mem_tracing;
5403                           if test "$enableval" = yes; then
5404                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5405                           else
5406                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5407                           fi
5408                           cache=yes
5409
5410 else
5411
5412                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5413                           if test "x$LINE" != x ; then
5414                               eval "DEFAULT_$LINE"
5415                               cache=yes
5416                           else
5417                               cache=no
5418                           fi
5419
5420                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5421
5422 fi
5423
5424
5425           eval "$wx_cv_use_mem_tracing"
5426           if test "x$cache" = xyes; then
5427             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5428           fi
5429
5430           if test x"$enablestring" = xdisable; then
5431             if test $wxUSE_MEM_TRACING = yes; then
5432               result=no
5433             else
5434               result=yes
5435             fi
5436           else
5437             result=$wxUSE_MEM_TRACING
5438           fi
5439
5440           { echo "$as_me:$LINENO: result: $result" >&5
5441 echo "${ECHO_T}$result" >&6; }
5442
5443
5444           enablestring=
5445           defaultval=
5446           if test -z "$defaultval"; then
5447               if test x"$enablestring" = xdisable; then
5448                   defaultval=yes
5449               else
5450                   defaultval=no
5451               fi
5452           fi
5453
5454           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5455 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5456           # Check whether --enable-profile was given.
5457 if test "${enable_profile+set}" = set; then
5458   enableval=$enable_profile;
5459                           if test "$enableval" = yes; then
5460                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5461                           else
5462                             wx_cv_use_profile='wxUSE_PROFILE=no'
5463                           fi
5464                           cache=yes
5465
5466 else
5467
5468                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5469                           if test "x$LINE" != x ; then
5470                               eval "DEFAULT_$LINE"
5471                               cache=yes
5472                           else
5473                               cache=no
5474                           fi
5475
5476                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5477
5478 fi
5479
5480
5481           eval "$wx_cv_use_profile"
5482           if test "x$cache" = xyes; then
5483             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5484           fi
5485
5486           if test x"$enablestring" = xdisable; then
5487             if test $wxUSE_PROFILE = yes; then
5488               result=no
5489             else
5490               result=yes
5491             fi
5492           else
5493             result=$wxUSE_PROFILE
5494           fi
5495
5496           { echo "$as_me:$LINENO: result: $result" >&5
5497 echo "${ECHO_T}$result" >&6; }
5498
5499
5500           enablestring=
5501           defaultval=
5502           if test -z "$defaultval"; then
5503               if test x"$enablestring" = xdisable; then
5504                   defaultval=yes
5505               else
5506                   defaultval=no
5507               fi
5508           fi
5509
5510           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5511 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5512           # Check whether --enable-no_rtti was given.
5513 if test "${enable_no_rtti+set}" = set; then
5514   enableval=$enable_no_rtti;
5515                           if test "$enableval" = yes; then
5516                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5517                           else
5518                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5519                           fi
5520                           cache=yes
5521
5522 else
5523
5524                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5525                           if test "x$LINE" != x ; then
5526                               eval "DEFAULT_$LINE"
5527                               cache=yes
5528                           else
5529                               cache=no
5530                           fi
5531
5532                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5533
5534 fi
5535
5536
5537           eval "$wx_cv_use_no_rtti"
5538           if test "x$cache" = xyes; then
5539             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5540           fi
5541
5542           if test x"$enablestring" = xdisable; then
5543             if test $wxUSE_NO_RTTI = yes; then
5544               result=no
5545             else
5546               result=yes
5547             fi
5548           else
5549             result=$wxUSE_NO_RTTI
5550           fi
5551
5552           { echo "$as_me:$LINENO: result: $result" >&5
5553 echo "${ECHO_T}$result" >&6; }
5554
5555
5556           enablestring=
5557           defaultval=
5558           if test -z "$defaultval"; then
5559               if test x"$enablestring" = xdisable; then
5560                   defaultval=yes
5561               else
5562                   defaultval=no
5563               fi
5564           fi
5565
5566           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5567 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5568           # Check whether --enable-no_exceptions was given.
5569 if test "${enable_no_exceptions+set}" = set; then
5570   enableval=$enable_no_exceptions;
5571                           if test "$enableval" = yes; then
5572                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5573                           else
5574                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5575                           fi
5576                           cache=yes
5577
5578 else
5579
5580                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5581                           if test "x$LINE" != x ; then
5582                               eval "DEFAULT_$LINE"
5583                               cache=yes
5584                           else
5585                               cache=no
5586                           fi
5587
5588                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5589
5590 fi
5591
5592
5593           eval "$wx_cv_use_no_exceptions"
5594           if test "x$cache" = xyes; then
5595             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5596           fi
5597
5598           if test x"$enablestring" = xdisable; then
5599             if test $wxUSE_NO_EXCEPTIONS = yes; then
5600               result=no
5601             else
5602               result=yes
5603             fi
5604           else
5605             result=$wxUSE_NO_EXCEPTIONS
5606           fi
5607
5608           { echo "$as_me:$LINENO: result: $result" >&5
5609 echo "${ECHO_T}$result" >&6; }
5610
5611
5612           enablestring=
5613           defaultval=
5614           if test -z "$defaultval"; then
5615               if test x"$enablestring" = xdisable; then
5616                   defaultval=yes
5617               else
5618                   defaultval=no
5619               fi
5620           fi
5621
5622           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5623 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5624           # Check whether --enable-permissive was given.
5625 if test "${enable_permissive+set}" = set; then
5626   enableval=$enable_permissive;
5627                           if test "$enableval" = yes; then
5628                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5629                           else
5630                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5631                           fi
5632                           cache=yes
5633
5634 else
5635
5636                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5637                           if test "x$LINE" != x ; then
5638                               eval "DEFAULT_$LINE"
5639                               cache=yes
5640                           else
5641                               cache=no
5642                           fi
5643
5644                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5645
5646 fi
5647
5648
5649           eval "$wx_cv_use_permissive"
5650           if test "x$cache" = xyes; then
5651             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5652           fi
5653
5654           if test x"$enablestring" = xdisable; then
5655             if test $wxUSE_PERMISSIVE = yes; then
5656               result=no
5657             else
5658               result=yes
5659             fi
5660           else
5661             result=$wxUSE_PERMISSIVE
5662           fi
5663
5664           { echo "$as_me:$LINENO: result: $result" >&5
5665 echo "${ECHO_T}$result" >&6; }
5666
5667
5668           enablestring=
5669           defaultval=
5670           if test -z "$defaultval"; then
5671               if test x"$enablestring" = xdisable; then
5672                   defaultval=yes
5673               else
5674                   defaultval=no
5675               fi
5676           fi
5677
5678           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5679 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5680           # Check whether --enable-no_deps was given.
5681 if test "${enable_no_deps+set}" = set; then
5682   enableval=$enable_no_deps;
5683                           if test "$enableval" = yes; then
5684                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5685                           else
5686                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5687                           fi
5688                           cache=yes
5689
5690 else
5691
5692                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5693                           if test "x$LINE" != x ; then
5694                               eval "DEFAULT_$LINE"
5695                               cache=yes
5696                           else
5697                               cache=no
5698                           fi
5699
5700                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5701
5702 fi
5703
5704
5705           eval "$wx_cv_use_no_deps"
5706           if test "x$cache" = xyes; then
5707             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5708           fi
5709
5710           if test x"$enablestring" = xdisable; then
5711             if test $wxUSE_NO_DEPS = yes; then
5712               result=no
5713             else
5714               result=yes
5715             fi
5716           else
5717             result=$wxUSE_NO_DEPS
5718           fi
5719
5720           { echo "$as_me:$LINENO: result: $result" >&5
5721 echo "${ECHO_T}$result" >&6; }
5722
5723
5724           enablestring=disable
5725           defaultval=
5726           if test -z "$defaultval"; then
5727               if test x"$enablestring" = xdisable; then
5728                   defaultval=yes
5729               else
5730                   defaultval=no
5731               fi
5732           fi
5733
5734           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5735 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5736           # Check whether --enable-vararg_macros was given.
5737 if test "${enable_vararg_macros+set}" = set; then
5738   enableval=$enable_vararg_macros;
5739                           if test "$enableval" = yes; then
5740                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5741                           else
5742                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5743                           fi
5744                           cache=yes
5745
5746 else
5747
5748                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5749                           if test "x$LINE" != x ; then
5750                               eval "DEFAULT_$LINE"
5751                               cache=yes
5752                           else
5753                               cache=no
5754                           fi
5755
5756                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5757
5758 fi
5759
5760
5761           eval "$wx_cv_use_vararg_macros"
5762           if test "x$cache" = xyes; then
5763             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5764           fi
5765
5766           if test x"$enablestring" = xdisable; then
5767             if test $wxUSE_VARARG_MACROS = yes; then
5768               result=no
5769             else
5770               result=yes
5771             fi
5772           else
5773             result=$wxUSE_VARARG_MACROS
5774           fi
5775
5776           { echo "$as_me:$LINENO: result: $result" >&5
5777 echo "${ECHO_T}$result" >&6; }
5778
5779
5780           enablestring=
5781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5782 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5783           # Check whether --enable-universal_binary was given.
5784 if test "${enable_universal_binary+set}" = set; then
5785   enableval=$enable_universal_binary;
5786                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5787                           cache=yes
5788
5789 else
5790
5791                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5792                           if test "x$LINE" != x ; then
5793                             eval "DEFAULT_$LINE"
5794                             cache=yes
5795                           else
5796                             cache=no
5797                           fi
5798
5799                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5800
5801 fi
5802
5803
5804           eval "$wx_cv_use_universal_binary"
5805           if test "x$cache" = xyes; then
5806             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5807           fi
5808
5809           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5810 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5811
5812
5813
5814           enablestring=
5815           defaultval=
5816           if test -z "$defaultval"; then
5817               if test x"$enablestring" = xdisable; then
5818                   defaultval=yes
5819               else
5820                   defaultval=no
5821               fi
5822           fi
5823
5824           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5825 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5826           # Check whether --enable-compat26 was given.
5827 if test "${enable_compat26+set}" = set; then
5828   enableval=$enable_compat26;
5829                           if test "$enableval" = yes; then
5830                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5831                           else
5832                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5833                           fi
5834                           cache=yes
5835
5836 else
5837
5838                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5839                           if test "x$LINE" != x ; then
5840                               eval "DEFAULT_$LINE"
5841                               cache=yes
5842                           else
5843                               cache=no
5844                           fi
5845
5846                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5847
5848 fi
5849
5850
5851           eval "$wx_cv_use_compat26"
5852           if test "x$cache" = xyes; then
5853             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5854           fi
5855
5856           if test x"$enablestring" = xdisable; then
5857             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5858               result=no
5859             else
5860               result=yes
5861             fi
5862           else
5863             result=$WXWIN_COMPATIBILITY_2_6
5864           fi
5865
5866           { echo "$as_me:$LINENO: result: $result" >&5
5867 echo "${ECHO_T}$result" >&6; }
5868
5869
5870           enablestring=disable
5871           defaultval=
5872           if test -z "$defaultval"; then
5873               if test x"$enablestring" = xdisable; then
5874                   defaultval=yes
5875               else
5876                   defaultval=no
5877               fi
5878           fi
5879
5880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5881 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5882           # Check whether --enable-compat28 was given.
5883 if test "${enable_compat28+set}" = set; then
5884   enableval=$enable_compat28;
5885                           if test "$enableval" = yes; then
5886                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5887                           else
5888                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5889                           fi
5890                           cache=yes
5891
5892 else
5893
5894                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5895                           if test "x$LINE" != x ; then
5896                               eval "DEFAULT_$LINE"
5897                               cache=yes
5898                           else
5899                               cache=no
5900                           fi
5901
5902                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5903
5904 fi
5905
5906
5907           eval "$wx_cv_use_compat28"
5908           if test "x$cache" = xyes; then
5909             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5910           fi
5911
5912           if test x"$enablestring" = xdisable; then
5913             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5914               result=no
5915             else
5916               result=yes
5917             fi
5918           else
5919             result=$WXWIN_COMPATIBILITY_2_8
5920           fi
5921
5922           { echo "$as_me:$LINENO: result: $result" >&5
5923 echo "${ECHO_T}$result" >&6; }
5924
5925
5926
5927           enablestring=disable
5928           defaultval=
5929           if test -z "$defaultval"; then
5930               if test x"$enablestring" = xdisable; then
5931                   defaultval=yes
5932               else
5933                   defaultval=no
5934               fi
5935           fi
5936
5937           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5938 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5939           # Check whether --enable-rpath was given.
5940 if test "${enable_rpath+set}" = set; then
5941   enableval=$enable_rpath;
5942                           if test "$enableval" = yes; then
5943                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5944                           else
5945                             wx_cv_use_rpath='wxUSE_RPATH=no'
5946                           fi
5947                           cache=yes
5948
5949 else
5950
5951                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5952                           if test "x$LINE" != x ; then
5953                               eval "DEFAULT_$LINE"
5954                               cache=yes
5955                           else
5956                               cache=no
5957                           fi
5958
5959                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5960
5961 fi
5962
5963
5964           eval "$wx_cv_use_rpath"
5965           if test "x$cache" = xyes; then
5966             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5967           fi
5968
5969           if test x"$enablestring" = xdisable; then
5970             if test $wxUSE_RPATH = yes; then
5971               result=no
5972             else
5973               result=yes
5974             fi
5975           else
5976             result=$wxUSE_RPATH
5977           fi
5978
5979           { echo "$as_me:$LINENO: result: $result" >&5
5980 echo "${ECHO_T}$result" >&6; }
5981
5982
5983
5984           enablestring=
5985           defaultval=
5986           if test -z "$defaultval"; then
5987               if test x"$enablestring" = xdisable; then
5988                   defaultval=yes
5989               else
5990                   defaultval=no
5991               fi
5992           fi
5993
5994           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5995 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5996           # Check whether --enable-objc_uniquifying was given.
5997 if test "${enable_objc_uniquifying+set}" = set; then
5998   enableval=$enable_objc_uniquifying;
5999                           if test "$enableval" = yes; then
6000                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
6001                           else
6002                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
6003                           fi
6004                           cache=yes
6005
6006 else
6007
6008                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
6009                           if test "x$LINE" != x ; then
6010                               eval "DEFAULT_$LINE"
6011                               cache=yes
6012                           else
6013                               cache=no
6014                           fi
6015
6016                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
6017
6018 fi
6019
6020
6021           eval "$wx_cv_use_objc_uniquifying"
6022           if test "x$cache" = xyes; then
6023             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
6024           fi
6025
6026           if test x"$enablestring" = xdisable; then
6027             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
6028               result=no
6029             else
6030               result=yes
6031             fi
6032           else
6033             result=$wxUSE_OBJC_UNIQUIFYING
6034           fi
6035
6036           { echo "$as_me:$LINENO: result: $result" >&5
6037 echo "${ECHO_T}$result" >&6; }
6038
6039
6040
6041           enablestring=disable
6042           defaultval=
6043           if test -z "$defaultval"; then
6044               if test x"$enablestring" = xdisable; then
6045                   defaultval=yes
6046               else
6047                   defaultval=no
6048               fi
6049           fi
6050
6051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
6052 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
6053           # Check whether --enable-visibility was given.
6054 if test "${enable_visibility+set}" = set; then
6055   enableval=$enable_visibility;
6056                           if test "$enableval" = yes; then
6057                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
6058                           else
6059                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
6060                           fi
6061                           cache=yes
6062
6063 else
6064
6065                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
6066                           if test "x$LINE" != x ; then
6067                               eval "DEFAULT_$LINE"
6068                               cache=yes
6069                           else
6070                               cache=no
6071                           fi
6072
6073                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
6074
6075 fi
6076
6077
6078           eval "$wx_cv_use_visibility"
6079           if test "x$cache" = xyes; then
6080             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
6081           fi
6082
6083           if test x"$enablestring" = xdisable; then
6084             if test $wxUSE_VISIBILITY = yes; then
6085               result=no
6086             else
6087               result=yes
6088             fi
6089           else
6090             result=$wxUSE_VISIBILITY
6091           fi
6092
6093           { echo "$as_me:$LINENO: result: $result" >&5
6094 echo "${ECHO_T}$result" >&6; }
6095
6096
6097
6098
6099           enablestring=
6100           defaultval=$wxUSE_ALL_FEATURES
6101           if test -z "$defaultval"; then
6102               if test x"$enablestring" = xdisable; then
6103                   defaultval=yes
6104               else
6105                   defaultval=no
6106               fi
6107           fi
6108
6109           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6110 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6111           # Check whether --enable-intl was given.
6112 if test "${enable_intl+set}" = set; then
6113   enableval=$enable_intl;
6114                           if test "$enableval" = yes; then
6115                             wx_cv_use_intl='wxUSE_INTL=yes'
6116                           else
6117                             wx_cv_use_intl='wxUSE_INTL=no'
6118                           fi
6119                           cache=yes
6120
6121 else
6122
6123                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6124                           if test "x$LINE" != x ; then
6125                               eval "DEFAULT_$LINE"
6126                               cache=yes
6127                           else
6128                               cache=no
6129                           fi
6130
6131                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6132
6133 fi
6134
6135
6136           eval "$wx_cv_use_intl"
6137           if test "x$cache" = xyes; then
6138             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6139           fi
6140
6141           if test x"$enablestring" = xdisable; then
6142             if test $wxUSE_INTL = yes; then
6143               result=no
6144             else
6145               result=yes
6146             fi
6147           else
6148             result=$wxUSE_INTL
6149           fi
6150
6151           { echo "$as_me:$LINENO: result: $result" >&5
6152 echo "${ECHO_T}$result" >&6; }
6153
6154
6155           enablestring=
6156           defaultval=$wxUSE_ALL_FEATURES
6157           if test -z "$defaultval"; then
6158               if test x"$enablestring" = xdisable; then
6159                   defaultval=yes
6160               else
6161                   defaultval=no
6162               fi
6163           fi
6164
6165           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6166 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6167           # Check whether --enable-config was given.
6168 if test "${enable_config+set}" = set; then
6169   enableval=$enable_config;
6170                           if test "$enableval" = yes; then
6171                             wx_cv_use_config='wxUSE_CONFIG=yes'
6172                           else
6173                             wx_cv_use_config='wxUSE_CONFIG=no'
6174                           fi
6175                           cache=yes
6176
6177 else
6178
6179                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6180                           if test "x$LINE" != x ; then
6181                               eval "DEFAULT_$LINE"
6182                               cache=yes
6183                           else
6184                               cache=no
6185                           fi
6186
6187                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6188
6189 fi
6190
6191
6192           eval "$wx_cv_use_config"
6193           if test "x$cache" = xyes; then
6194             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6195           fi
6196
6197           if test x"$enablestring" = xdisable; then
6198             if test $wxUSE_CONFIG = yes; then
6199               result=no
6200             else
6201               result=yes
6202             fi
6203           else
6204             result=$wxUSE_CONFIG
6205           fi
6206
6207           { echo "$as_me:$LINENO: result: $result" >&5
6208 echo "${ECHO_T}$result" >&6; }
6209
6210
6211
6212           enablestring=
6213           defaultval=$wxUSE_ALL_FEATURES
6214           if test -z "$defaultval"; then
6215               if test x"$enablestring" = xdisable; then
6216                   defaultval=yes
6217               else
6218                   defaultval=no
6219               fi
6220           fi
6221
6222           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6223 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6224           # Check whether --enable-protocols was given.
6225 if test "${enable_protocols+set}" = set; then
6226   enableval=$enable_protocols;
6227                           if test "$enableval" = yes; then
6228                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6229                           else
6230                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6231                           fi
6232                           cache=yes
6233
6234 else
6235
6236                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6237                           if test "x$LINE" != x ; then
6238                               eval "DEFAULT_$LINE"
6239                               cache=yes
6240                           else
6241                               cache=no
6242                           fi
6243
6244                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6245
6246 fi
6247
6248
6249           eval "$wx_cv_use_protocols"
6250           if test "x$cache" = xyes; then
6251             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6252           fi
6253
6254           if test x"$enablestring" = xdisable; then
6255             if test $wxUSE_PROTOCOL = yes; then
6256               result=no
6257             else
6258               result=yes
6259             fi
6260           else
6261             result=$wxUSE_PROTOCOL
6262           fi
6263
6264           { echo "$as_me:$LINENO: result: $result" >&5
6265 echo "${ECHO_T}$result" >&6; }
6266
6267
6268           enablestring=
6269           defaultval=$wxUSE_ALL_FEATURES
6270           if test -z "$defaultval"; then
6271               if test x"$enablestring" = xdisable; then
6272                   defaultval=yes
6273               else
6274                   defaultval=no
6275               fi
6276           fi
6277
6278           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6279 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6280           # Check whether --enable-ftp was given.
6281 if test "${enable_ftp+set}" = set; then
6282   enableval=$enable_ftp;
6283                           if test "$enableval" = yes; then
6284                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6285                           else
6286                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6287                           fi
6288                           cache=yes
6289
6290 else
6291
6292                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6293                           if test "x$LINE" != x ; then
6294                               eval "DEFAULT_$LINE"
6295                               cache=yes
6296                           else
6297                               cache=no
6298                           fi
6299
6300                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6301
6302 fi
6303
6304
6305           eval "$wx_cv_use_ftp"
6306           if test "x$cache" = xyes; then
6307             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6308           fi
6309
6310           if test x"$enablestring" = xdisable; then
6311             if test $wxUSE_PROTOCOL_FTP = yes; then
6312               result=no
6313             else
6314               result=yes
6315             fi
6316           else
6317             result=$wxUSE_PROTOCOL_FTP
6318           fi
6319
6320           { echo "$as_me:$LINENO: result: $result" >&5
6321 echo "${ECHO_T}$result" >&6; }
6322
6323
6324           enablestring=
6325           defaultval=$wxUSE_ALL_FEATURES
6326           if test -z "$defaultval"; then
6327               if test x"$enablestring" = xdisable; then
6328                   defaultval=yes
6329               else
6330                   defaultval=no
6331               fi
6332           fi
6333
6334           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6335 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6336           # Check whether --enable-http was given.
6337 if test "${enable_http+set}" = set; then
6338   enableval=$enable_http;
6339                           if test "$enableval" = yes; then
6340                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6341                           else
6342                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6343                           fi
6344                           cache=yes
6345
6346 else
6347
6348                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6349                           if test "x$LINE" != x ; then
6350                               eval "DEFAULT_$LINE"
6351                               cache=yes
6352                           else
6353                               cache=no
6354                           fi
6355
6356                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6357
6358 fi
6359
6360
6361           eval "$wx_cv_use_http"
6362           if test "x$cache" = xyes; then
6363             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6364           fi
6365
6366           if test x"$enablestring" = xdisable; then
6367             if test $wxUSE_PROTOCOL_HTTP = yes; then
6368               result=no
6369             else
6370               result=yes
6371             fi
6372           else
6373             result=$wxUSE_PROTOCOL_HTTP
6374           fi
6375
6376           { echo "$as_me:$LINENO: result: $result" >&5
6377 echo "${ECHO_T}$result" >&6; }
6378
6379
6380           enablestring=
6381           defaultval=$wxUSE_ALL_FEATURES
6382           if test -z "$defaultval"; then
6383               if test x"$enablestring" = xdisable; then
6384                   defaultval=yes
6385               else
6386                   defaultval=no
6387               fi
6388           fi
6389
6390           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6391 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6392           # Check whether --enable-fileproto was given.
6393 if test "${enable_fileproto+set}" = set; then
6394   enableval=$enable_fileproto;
6395                           if test "$enableval" = yes; then
6396                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6397                           else
6398                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6399                           fi
6400                           cache=yes
6401
6402 else
6403
6404                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6405                           if test "x$LINE" != x ; then
6406                               eval "DEFAULT_$LINE"
6407                               cache=yes
6408                           else
6409                               cache=no
6410                           fi
6411
6412                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6413
6414 fi
6415
6416
6417           eval "$wx_cv_use_fileproto"
6418           if test "x$cache" = xyes; then
6419             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6420           fi
6421
6422           if test x"$enablestring" = xdisable; then
6423             if test $wxUSE_PROTOCOL_FILE = yes; then
6424               result=no
6425             else
6426               result=yes
6427             fi
6428           else
6429             result=$wxUSE_PROTOCOL_FILE
6430           fi
6431
6432           { echo "$as_me:$LINENO: result: $result" >&5
6433 echo "${ECHO_T}$result" >&6; }
6434
6435
6436           enablestring=
6437           defaultval=$wxUSE_ALL_FEATURES
6438           if test -z "$defaultval"; then
6439               if test x"$enablestring" = xdisable; then
6440                   defaultval=yes
6441               else
6442                   defaultval=no
6443               fi
6444           fi
6445
6446           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6447 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6448           # Check whether --enable-sockets was given.
6449 if test "${enable_sockets+set}" = set; then
6450   enableval=$enable_sockets;
6451                           if test "$enableval" = yes; then
6452                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6453                           else
6454                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6455                           fi
6456                           cache=yes
6457
6458 else
6459
6460                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6461                           if test "x$LINE" != x ; then
6462                               eval "DEFAULT_$LINE"
6463                               cache=yes
6464                           else
6465                               cache=no
6466                           fi
6467
6468                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6469
6470 fi
6471
6472
6473           eval "$wx_cv_use_sockets"
6474           if test "x$cache" = xyes; then
6475             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6476           fi
6477
6478           if test x"$enablestring" = xdisable; then
6479             if test $wxUSE_SOCKETS = yes; then
6480               result=no
6481             else
6482               result=yes
6483             fi
6484           else
6485             result=$wxUSE_SOCKETS
6486           fi
6487
6488           { echo "$as_me:$LINENO: result: $result" >&5
6489 echo "${ECHO_T}$result" >&6; }
6490
6491
6492           enablestring=
6493           defaultval=$wxUSE_ALL_FEATURES
6494           if test -z "$defaultval"; then
6495               if test x"$enablestring" = xdisable; then
6496                   defaultval=yes
6497               else
6498                   defaultval=no
6499               fi
6500           fi
6501
6502           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6503 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6504           # Check whether --enable-ole was given.
6505 if test "${enable_ole+set}" = set; then
6506   enableval=$enable_ole;
6507                           if test "$enableval" = yes; then
6508                             wx_cv_use_ole='wxUSE_OLE=yes'
6509                           else
6510                             wx_cv_use_ole='wxUSE_OLE=no'
6511                           fi
6512                           cache=yes
6513
6514 else
6515
6516                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6517                           if test "x$LINE" != x ; then
6518                               eval "DEFAULT_$LINE"
6519                               cache=yes
6520                           else
6521                               cache=no
6522                           fi
6523
6524                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6525
6526 fi
6527
6528
6529           eval "$wx_cv_use_ole"
6530           if test "x$cache" = xyes; then
6531             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6532           fi
6533
6534           if test x"$enablestring" = xdisable; then
6535             if test $wxUSE_OLE = yes; then
6536               result=no
6537             else
6538               result=yes
6539             fi
6540           else
6541             result=$wxUSE_OLE
6542           fi
6543
6544           { echo "$as_me:$LINENO: result: $result" >&5
6545 echo "${ECHO_T}$result" >&6; }
6546
6547
6548           enablestring=
6549           defaultval=$wxUSE_ALL_FEATURES
6550           if test -z "$defaultval"; then
6551               if test x"$enablestring" = xdisable; then
6552                   defaultval=yes
6553               else
6554                   defaultval=no
6555               fi
6556           fi
6557
6558           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataobj" >&5
6559 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6560           # Check whether --enable-dataobj was given.
6561 if test "${enable_dataobj+set}" = set; then
6562   enableval=$enable_dataobj;
6563                           if test "$enableval" = yes; then
6564                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6565                           else
6566                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6567                           fi
6568                           cache=yes
6569
6570 else
6571
6572                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6573                           if test "x$LINE" != x ; then
6574                               eval "DEFAULT_$LINE"
6575                               cache=yes
6576                           else
6577                               cache=no
6578                           fi
6579
6580                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6581
6582 fi
6583
6584
6585           eval "$wx_cv_use_dataobj"
6586           if test "x$cache" = xyes; then
6587             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6588           fi
6589
6590           if test x"$enablestring" = xdisable; then
6591             if test $wxUSE_DATAOBJ = yes; then
6592               result=no
6593             else
6594               result=yes
6595             fi
6596           else
6597             result=$wxUSE_DATAOBJ
6598           fi
6599
6600           { echo "$as_me:$LINENO: result: $result" >&5
6601 echo "${ECHO_T}$result" >&6; }
6602
6603
6604
6605           enablestring=
6606           defaultval=$wxUSE_ALL_FEATURES
6607           if test -z "$defaultval"; then
6608               if test x"$enablestring" = xdisable; then
6609                   defaultval=yes
6610               else
6611                   defaultval=no
6612               fi
6613           fi
6614
6615           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6616 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6617           # Check whether --enable-ipc was given.
6618 if test "${enable_ipc+set}" = set; then
6619   enableval=$enable_ipc;
6620                           if test "$enableval" = yes; then
6621                             wx_cv_use_ipc='wxUSE_IPC=yes'
6622                           else
6623                             wx_cv_use_ipc='wxUSE_IPC=no'
6624                           fi
6625                           cache=yes
6626
6627 else
6628
6629                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6630                           if test "x$LINE" != x ; then
6631                               eval "DEFAULT_$LINE"
6632                               cache=yes
6633                           else
6634                               cache=no
6635                           fi
6636
6637                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6638
6639 fi
6640
6641
6642           eval "$wx_cv_use_ipc"
6643           if test "x$cache" = xyes; then
6644             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6645           fi
6646
6647           if test x"$enablestring" = xdisable; then
6648             if test $wxUSE_IPC = yes; then
6649               result=no
6650             else
6651               result=yes
6652             fi
6653           else
6654             result=$wxUSE_IPC
6655           fi
6656
6657           { echo "$as_me:$LINENO: result: $result" >&5
6658 echo "${ECHO_T}$result" >&6; }
6659
6660
6661
6662           enablestring=
6663           defaultval=$wxUSE_ALL_FEATURES
6664           if test -z "$defaultval"; then
6665               if test x"$enablestring" = xdisable; then
6666                   defaultval=yes
6667               else
6668                   defaultval=no
6669               fi
6670           fi
6671
6672           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6673 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6674           # Check whether --enable-baseevtloop was given.
6675 if test "${enable_baseevtloop+set}" = set; then
6676   enableval=$enable_baseevtloop;
6677                           if test "$enableval" = yes; then
6678                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6679                           else
6680                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6681                           fi
6682                           cache=yes
6683
6684 else
6685
6686                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6687                           if test "x$LINE" != x ; then
6688                               eval "DEFAULT_$LINE"
6689                               cache=yes
6690                           else
6691                               cache=no
6692                           fi
6693
6694                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6695
6696 fi
6697
6698
6699           eval "$wx_cv_use_baseevtloop"
6700           if test "x$cache" = xyes; then
6701             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6702           fi
6703
6704           if test x"$enablestring" = xdisable; then
6705             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6706               result=no
6707             else
6708               result=yes
6709             fi
6710           else
6711             result=$wxUSE_CONSOLE_EVENTLOOP
6712           fi
6713
6714           { echo "$as_me:$LINENO: result: $result" >&5
6715 echo "${ECHO_T}$result" >&6; }
6716
6717
6718           enablestring=
6719           defaultval=$wxUSE_ALL_FEATURES
6720           if test -z "$defaultval"; then
6721               if test x"$enablestring" = xdisable; then
6722                   defaultval=yes
6723               else
6724                   defaultval=no
6725               fi
6726           fi
6727
6728           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epollloop" >&5
6729 echo $ECHO_N "checking for --${enablestring:-enable}-epollloop... $ECHO_C" >&6; }
6730           # Check whether --enable-epollloop was given.
6731 if test "${enable_epollloop+set}" = set; then
6732   enableval=$enable_epollloop;
6733                           if test "$enableval" = yes; then
6734                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=yes'
6735                           else
6736                             wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=no'
6737                           fi
6738                           cache=yes
6739
6740 else
6741
6742                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6743                           if test "x$LINE" != x ; then
6744                               eval "DEFAULT_$LINE"
6745                               cache=yes
6746                           else
6747                               cache=no
6748                           fi
6749
6750                           wx_cv_use_epollloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6751
6752 fi
6753
6754
6755           eval "$wx_cv_use_epollloop"
6756           if test "x$cache" = xyes; then
6757             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6758           fi
6759
6760           if test x"$enablestring" = xdisable; then
6761             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6762               result=no
6763             else
6764               result=yes
6765             fi
6766           else
6767             result=$wxUSE_EPOLL_DISPATCHER
6768           fi
6769
6770           { echo "$as_me:$LINENO: result: $result" >&5
6771 echo "${ECHO_T}$result" >&6; }
6772
6773
6774           enablestring=
6775           defaultval=$wxUSE_ALL_FEATURES
6776           if test -z "$defaultval"; then
6777               if test x"$enablestring" = xdisable; then
6778                   defaultval=yes
6779               else
6780                   defaultval=no
6781               fi
6782           fi
6783
6784           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6785 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6786           # Check whether --enable-selectloop was given.
6787 if test "${enable_selectloop+set}" = set; then
6788   enableval=$enable_selectloop;
6789                           if test "$enableval" = yes; then
6790                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6791                           else
6792                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6793                           fi
6794                           cache=yes
6795
6796 else
6797
6798                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6799                           if test "x$LINE" != x ; then
6800                               eval "DEFAULT_$LINE"
6801                               cache=yes
6802                           else
6803                               cache=no
6804                           fi
6805
6806                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6807
6808 fi
6809
6810
6811           eval "$wx_cv_use_selectloop"
6812           if test "x$cache" = xyes; then
6813             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6814           fi
6815
6816           if test x"$enablestring" = xdisable; then
6817             if test $wxUSE_SELECT_DISPATCHER = yes; then
6818               result=no
6819             else
6820               result=yes
6821             fi
6822           else
6823             result=$wxUSE_SELECT_DISPATCHER
6824           fi
6825
6826           { echo "$as_me:$LINENO: result: $result" >&5
6827 echo "${ECHO_T}$result" >&6; }
6828
6829
6830
6831           enablestring=
6832           defaultval=$wxUSE_ALL_FEATURES
6833           if test -z "$defaultval"; then
6834               if test x"$enablestring" = xdisable; then
6835                   defaultval=yes
6836               else
6837                   defaultval=no
6838               fi
6839           fi
6840
6841           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6842 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6843           # Check whether --enable-apple_ieee was given.
6844 if test "${enable_apple_ieee+set}" = set; then
6845   enableval=$enable_apple_ieee;
6846                           if test "$enableval" = yes; then
6847                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6848                           else
6849                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6850                           fi
6851                           cache=yes
6852
6853 else
6854
6855                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6856                           if test "x$LINE" != x ; then
6857                               eval "DEFAULT_$LINE"
6858                               cache=yes
6859                           else
6860                               cache=no
6861                           fi
6862
6863                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6864
6865 fi
6866
6867
6868           eval "$wx_cv_use_apple_ieee"
6869           if test "x$cache" = xyes; then
6870             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6871           fi
6872
6873           if test x"$enablestring" = xdisable; then
6874             if test $wxUSE_APPLE_IEEE = yes; then
6875               result=no
6876             else
6877               result=yes
6878             fi
6879           else
6880             result=$wxUSE_APPLE_IEEE
6881           fi
6882
6883           { echo "$as_me:$LINENO: result: $result" >&5
6884 echo "${ECHO_T}$result" >&6; }
6885
6886
6887           enablestring=
6888           defaultval=$wxUSE_ALL_FEATURES
6889           if test -z "$defaultval"; then
6890               if test x"$enablestring" = xdisable; then
6891                   defaultval=yes
6892               else
6893                   defaultval=no
6894               fi
6895           fi
6896
6897           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6898 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6899           # Check whether --enable-arcstream was given.
6900 if test "${enable_arcstream+set}" = set; then
6901   enableval=$enable_arcstream;
6902                           if test "$enableval" = yes; then
6903                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6904                           else
6905                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6906                           fi
6907                           cache=yes
6908
6909 else
6910
6911                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6912                           if test "x$LINE" != x ; then
6913                               eval "DEFAULT_$LINE"
6914                               cache=yes
6915                           else
6916                               cache=no
6917                           fi
6918
6919                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6920
6921 fi
6922
6923
6924           eval "$wx_cv_use_arcstream"
6925           if test "x$cache" = xyes; then
6926             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6927           fi
6928
6929           if test x"$enablestring" = xdisable; then
6930             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6931               result=no
6932             else
6933               result=yes
6934             fi
6935           else
6936             result=$wxUSE_ARCHIVE_STREAMS
6937           fi
6938
6939           { echo "$as_me:$LINENO: result: $result" >&5
6940 echo "${ECHO_T}$result" >&6; }
6941
6942
6943           enablestring=
6944           defaultval=$wxUSE_ALL_FEATURES
6945           if test -z "$defaultval"; then
6946               if test x"$enablestring" = xdisable; then
6947                   defaultval=yes
6948               else
6949                   defaultval=no
6950               fi
6951           fi
6952
6953           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6954 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6955           # Check whether --enable-base64 was given.
6956 if test "${enable_base64+set}" = set; then
6957   enableval=$enable_base64;
6958                           if test "$enableval" = yes; then
6959                             wx_cv_use_base64='wxUSE_BASE64=yes'
6960                           else
6961                             wx_cv_use_base64='wxUSE_BASE64=no'
6962                           fi
6963                           cache=yes
6964
6965 else
6966
6967                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6968                           if test "x$LINE" != x ; then
6969                               eval "DEFAULT_$LINE"
6970                               cache=yes
6971                           else
6972                               cache=no
6973                           fi
6974
6975                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6976
6977 fi
6978
6979
6980           eval "$wx_cv_use_base64"
6981           if test "x$cache" = xyes; then
6982             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6983           fi
6984
6985           if test x"$enablestring" = xdisable; then
6986             if test $wxUSE_BASE64 = yes; then
6987               result=no
6988             else
6989               result=yes
6990             fi
6991           else
6992             result=$wxUSE_BASE64
6993           fi
6994
6995           { echo "$as_me:$LINENO: result: $result" >&5
6996 echo "${ECHO_T}$result" >&6; }
6997
6998
6999           enablestring=
7000           defaultval=$wxUSE_ALL_FEATURES
7001           if test -z "$defaultval"; then
7002               if test x"$enablestring" = xdisable; then
7003                   defaultval=yes
7004               else
7005                   defaultval=no
7006               fi
7007           fi
7008
7009           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
7010 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
7011           # Check whether --enable-backtrace was given.
7012 if test "${enable_backtrace+set}" = set; then
7013   enableval=$enable_backtrace;
7014                           if test "$enableval" = yes; then
7015                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
7016                           else
7017                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
7018                           fi
7019                           cache=yes
7020
7021 else
7022
7023                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
7024                           if test "x$LINE" != x ; then
7025                               eval "DEFAULT_$LINE"
7026                               cache=yes
7027                           else
7028                               cache=no
7029                           fi
7030
7031                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
7032
7033 fi
7034
7035
7036           eval "$wx_cv_use_backtrace"
7037           if test "x$cache" = xyes; then
7038             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
7039           fi
7040
7041           if test x"$enablestring" = xdisable; then
7042             if test $wxUSE_STACKWALKER = yes; then
7043               result=no
7044             else
7045               result=yes
7046             fi
7047           else
7048             result=$wxUSE_STACKWALKER
7049           fi
7050
7051           { echo "$as_me:$LINENO: result: $result" >&5
7052 echo "${ECHO_T}$result" >&6; }
7053
7054
7055           enablestring=
7056           defaultval=$wxUSE_ALL_FEATURES
7057           if test -z "$defaultval"; then
7058               if test x"$enablestring" = xdisable; then
7059                   defaultval=yes
7060               else
7061                   defaultval=no
7062               fi
7063           fi
7064
7065           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
7066 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
7067           # Check whether --enable-catch_segvs was given.
7068 if test "${enable_catch_segvs+set}" = set; then
7069   enableval=$enable_catch_segvs;
7070                           if test "$enableval" = yes; then
7071                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
7072                           else
7073                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
7074                           fi
7075                           cache=yes
7076
7077 else
7078
7079                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
7080                           if test "x$LINE" != x ; then
7081                               eval "DEFAULT_$LINE"
7082                               cache=yes
7083                           else
7084                               cache=no
7085                           fi
7086
7087                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
7088
7089 fi
7090
7091
7092           eval "$wx_cv_use_catch_segvs"
7093           if test "x$cache" = xyes; then
7094             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
7095           fi
7096
7097           if test x"$enablestring" = xdisable; then
7098             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
7099               result=no
7100             else
7101               result=yes
7102             fi
7103           else
7104             result=$wxUSE_ON_FATAL_EXCEPTION
7105           fi
7106
7107           { echo "$as_me:$LINENO: result: $result" >&5
7108 echo "${ECHO_T}$result" >&6; }
7109
7110
7111           enablestring=
7112           defaultval=$wxUSE_ALL_FEATURES
7113           if test -z "$defaultval"; then
7114               if test x"$enablestring" = xdisable; then
7115                   defaultval=yes
7116               else
7117                   defaultval=no
7118               fi
7119           fi
7120
7121           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
7122 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
7123           # Check whether --enable-cmdline was given.
7124 if test "${enable_cmdline+set}" = set; then
7125   enableval=$enable_cmdline;
7126                           if test "$enableval" = yes; then
7127                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
7128                           else
7129                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
7130                           fi
7131                           cache=yes
7132
7133 else
7134
7135                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7136                           if test "x$LINE" != x ; then
7137                               eval "DEFAULT_$LINE"
7138                               cache=yes
7139                           else
7140                               cache=no
7141                           fi
7142
7143                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7144
7145 fi
7146
7147
7148           eval "$wx_cv_use_cmdline"
7149           if test "x$cache" = xyes; then
7150             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7151           fi
7152
7153           if test x"$enablestring" = xdisable; then
7154             if test $wxUSE_CMDLINE_PARSER = yes; then
7155               result=no
7156             else
7157               result=yes
7158             fi
7159           else
7160             result=$wxUSE_CMDLINE_PARSER
7161           fi
7162
7163           { echo "$as_me:$LINENO: result: $result" >&5
7164 echo "${ECHO_T}$result" >&6; }
7165
7166
7167           enablestring=
7168           defaultval=$wxUSE_ALL_FEATURES
7169           if test -z "$defaultval"; then
7170               if test x"$enablestring" = xdisable; then
7171                   defaultval=yes
7172               else
7173                   defaultval=no
7174               fi
7175           fi
7176
7177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7178 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7179           # Check whether --enable-datetime was given.
7180 if test "${enable_datetime+set}" = set; then
7181   enableval=$enable_datetime;
7182                           if test "$enableval" = yes; then
7183                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7184                           else
7185                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7186                           fi
7187                           cache=yes
7188
7189 else
7190
7191                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7192                           if test "x$LINE" != x ; then
7193                               eval "DEFAULT_$LINE"
7194                               cache=yes
7195                           else
7196                               cache=no
7197                           fi
7198
7199                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7200
7201 fi
7202
7203
7204           eval "$wx_cv_use_datetime"
7205           if test "x$cache" = xyes; then
7206             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7207           fi
7208
7209           if test x"$enablestring" = xdisable; then
7210             if test $wxUSE_DATETIME = yes; then
7211               result=no
7212             else
7213               result=yes
7214             fi
7215           else
7216             result=$wxUSE_DATETIME
7217           fi
7218
7219           { echo "$as_me:$LINENO: result: $result" >&5
7220 echo "${ECHO_T}$result" >&6; }
7221
7222
7223           enablestring=
7224           defaultval=$wxUSE_ALL_FEATURES
7225           if test -z "$defaultval"; then
7226               if test x"$enablestring" = xdisable; then
7227                   defaultval=yes
7228               else
7229                   defaultval=no
7230               fi
7231           fi
7232
7233           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7234 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7235           # Check whether --enable-debugreport was given.
7236 if test "${enable_debugreport+set}" = set; then
7237   enableval=$enable_debugreport;
7238                           if test "$enableval" = yes; then
7239                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7240                           else
7241                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7242                           fi
7243                           cache=yes
7244
7245 else
7246
7247                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7248                           if test "x$LINE" != x ; then
7249                               eval "DEFAULT_$LINE"
7250                               cache=yes
7251                           else
7252                               cache=no
7253                           fi
7254
7255                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7256
7257 fi
7258
7259
7260           eval "$wx_cv_use_debugreport"
7261           if test "x$cache" = xyes; then
7262             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7263           fi
7264
7265           if test x"$enablestring" = xdisable; then
7266             if test $wxUSE_DEBUGREPORT = yes; then
7267               result=no
7268             else
7269               result=yes
7270             fi
7271           else
7272             result=$wxUSE_DEBUGREPORT
7273           fi
7274
7275           { echo "$as_me:$LINENO: result: $result" >&5
7276 echo "${ECHO_T}$result" >&6; }
7277
7278
7279           enablestring=
7280           defaultval=$wxUSE_ALL_FEATURES
7281           if test -z "$defaultval"; then
7282               if test x"$enablestring" = xdisable; then
7283                   defaultval=yes
7284               else
7285                   defaultval=no
7286               fi
7287           fi
7288
7289           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7290 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7291           # Check whether --enable-dialupman was given.
7292 if test "${enable_dialupman+set}" = set; then
7293   enableval=$enable_dialupman;
7294                           if test "$enableval" = yes; then
7295                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7296                           else
7297                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7298                           fi
7299                           cache=yes
7300
7301 else
7302
7303                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7304                           if test "x$LINE" != x ; then
7305                               eval "DEFAULT_$LINE"
7306                               cache=yes
7307                           else
7308                               cache=no
7309                           fi
7310
7311                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7312
7313 fi
7314
7315
7316           eval "$wx_cv_use_dialupman"
7317           if test "x$cache" = xyes; then
7318             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7319           fi
7320
7321           if test x"$enablestring" = xdisable; then
7322             if test $wxUSE_DIALUP_MANAGER = yes; then
7323               result=no
7324             else
7325               result=yes
7326             fi
7327           else
7328             result=$wxUSE_DIALUP_MANAGER
7329           fi
7330
7331           { echo "$as_me:$LINENO: result: $result" >&5
7332 echo "${ECHO_T}$result" >&6; }
7333
7334
7335           enablestring=
7336           defaultval=$wxUSE_ALL_FEATURES
7337           if test -z "$defaultval"; then
7338               if test x"$enablestring" = xdisable; then
7339                   defaultval=yes
7340               else
7341                   defaultval=no
7342               fi
7343           fi
7344
7345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7346 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7347           # Check whether --enable-dynlib was given.
7348 if test "${enable_dynlib+set}" = set; then
7349   enableval=$enable_dynlib;
7350                           if test "$enableval" = yes; then
7351                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7352                           else
7353                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7354                           fi
7355                           cache=yes
7356
7357 else
7358
7359                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7360                           if test "x$LINE" != x ; then
7361                               eval "DEFAULT_$LINE"
7362                               cache=yes
7363                           else
7364                               cache=no
7365                           fi
7366
7367                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7368
7369 fi
7370
7371
7372           eval "$wx_cv_use_dynlib"
7373           if test "x$cache" = xyes; then
7374             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7375           fi
7376
7377           if test x"$enablestring" = xdisable; then
7378             if test $wxUSE_DYNLIB_CLASS = yes; then
7379               result=no
7380             else
7381               result=yes
7382             fi
7383           else
7384             result=$wxUSE_DYNLIB_CLASS
7385           fi
7386
7387           { echo "$as_me:$LINENO: result: $result" >&5
7388 echo "${ECHO_T}$result" >&6; }
7389
7390
7391           enablestring=
7392           defaultval=$wxUSE_ALL_FEATURES
7393           if test -z "$defaultval"; then
7394               if test x"$enablestring" = xdisable; then
7395                   defaultval=yes
7396               else
7397                   defaultval=no
7398               fi
7399           fi
7400
7401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7402 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7403           # Check whether --enable-dynamicloader was given.
7404 if test "${enable_dynamicloader+set}" = set; then
7405   enableval=$enable_dynamicloader;
7406                           if test "$enableval" = yes; then
7407                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7408                           else
7409                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7410                           fi
7411                           cache=yes
7412
7413 else
7414
7415                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7416                           if test "x$LINE" != x ; then
7417                               eval "DEFAULT_$LINE"
7418                               cache=yes
7419                           else
7420                               cache=no
7421                           fi
7422
7423                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7424
7425 fi
7426
7427
7428           eval "$wx_cv_use_dynamicloader"
7429           if test "x$cache" = xyes; then
7430             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7431           fi
7432
7433           if test x"$enablestring" = xdisable; then
7434             if test $wxUSE_DYNAMIC_LOADER = yes; then
7435               result=no
7436             else
7437               result=yes
7438             fi
7439           else
7440             result=$wxUSE_DYNAMIC_LOADER
7441           fi
7442
7443           { echo "$as_me:$LINENO: result: $result" >&5
7444 echo "${ECHO_T}$result" >&6; }
7445
7446
7447           enablestring=
7448           defaultval=$wxUSE_ALL_FEATURES
7449           if test -z "$defaultval"; then
7450               if test x"$enablestring" = xdisable; then
7451                   defaultval=yes
7452               else
7453                   defaultval=no
7454               fi
7455           fi
7456
7457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7458 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7459           # Check whether --enable-exceptions was given.
7460 if test "${enable_exceptions+set}" = set; then
7461   enableval=$enable_exceptions;
7462                           if test "$enableval" = yes; then
7463                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7464                           else
7465                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7466                           fi
7467                           cache=yes
7468
7469 else
7470
7471                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7472                           if test "x$LINE" != x ; then
7473                               eval "DEFAULT_$LINE"
7474                               cache=yes
7475                           else
7476                               cache=no
7477                           fi
7478
7479                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7480
7481 fi
7482
7483
7484           eval "$wx_cv_use_exceptions"
7485           if test "x$cache" = xyes; then
7486             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7487           fi
7488
7489           if test x"$enablestring" = xdisable; then
7490             if test $wxUSE_EXCEPTIONS = yes; then
7491               result=no
7492             else
7493               result=yes
7494             fi
7495           else
7496             result=$wxUSE_EXCEPTIONS
7497           fi
7498
7499           { echo "$as_me:$LINENO: result: $result" >&5
7500 echo "${ECHO_T}$result" >&6; }
7501
7502
7503           enablestring=
7504           defaultval=$wxUSE_ALL_FEATURES
7505           if test -z "$defaultval"; then
7506               if test x"$enablestring" = xdisable; then
7507                   defaultval=yes
7508               else
7509                   defaultval=no
7510               fi
7511           fi
7512
7513           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7514 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7515           # Check whether --enable-ffile was given.
7516 if test "${enable_ffile+set}" = set; then
7517   enableval=$enable_ffile;
7518                           if test "$enableval" = yes; then
7519                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7520                           else
7521                             wx_cv_use_ffile='wxUSE_FFILE=no'
7522                           fi
7523                           cache=yes
7524
7525 else
7526
7527                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7528                           if test "x$LINE" != x ; then
7529                               eval "DEFAULT_$LINE"
7530                               cache=yes
7531                           else
7532                               cache=no
7533                           fi
7534
7535                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7536
7537 fi
7538
7539
7540           eval "$wx_cv_use_ffile"
7541           if test "x$cache" = xyes; then
7542             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7543           fi
7544
7545           if test x"$enablestring" = xdisable; then
7546             if test $wxUSE_FFILE = yes; then
7547               result=no
7548             else
7549               result=yes
7550             fi
7551           else
7552             result=$wxUSE_FFILE
7553           fi
7554
7555           { echo "$as_me:$LINENO: result: $result" >&5
7556 echo "${ECHO_T}$result" >&6; }
7557
7558
7559           enablestring=
7560           defaultval=$wxUSE_ALL_FEATURES
7561           if test -z "$defaultval"; then
7562               if test x"$enablestring" = xdisable; then
7563                   defaultval=yes
7564               else
7565                   defaultval=no
7566               fi
7567           fi
7568
7569           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7570 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7571           # Check whether --enable-file was given.
7572 if test "${enable_file+set}" = set; then
7573   enableval=$enable_file;
7574                           if test "$enableval" = yes; then
7575                             wx_cv_use_file='wxUSE_FILE=yes'
7576                           else
7577                             wx_cv_use_file='wxUSE_FILE=no'
7578                           fi
7579                           cache=yes
7580
7581 else
7582
7583                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7584                           if test "x$LINE" != x ; then
7585                               eval "DEFAULT_$LINE"
7586                               cache=yes
7587                           else
7588                               cache=no
7589                           fi
7590
7591                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7592
7593 fi
7594
7595
7596           eval "$wx_cv_use_file"
7597           if test "x$cache" = xyes; then
7598             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7599           fi
7600
7601           if test x"$enablestring" = xdisable; then
7602             if test $wxUSE_FILE = yes; then
7603               result=no
7604             else
7605               result=yes
7606             fi
7607           else
7608             result=$wxUSE_FILE
7609           fi
7610
7611           { echo "$as_me:$LINENO: result: $result" >&5
7612 echo "${ECHO_T}$result" >&6; }
7613
7614
7615           enablestring=
7616           defaultval=$wxUSE_ALL_FEATURES
7617           if test -z "$defaultval"; then
7618               if test x"$enablestring" = xdisable; then
7619                   defaultval=yes
7620               else
7621                   defaultval=no
7622               fi
7623           fi
7624
7625           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7626 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7627           # Check whether --enable-filesystem was given.
7628 if test "${enable_filesystem+set}" = set; then
7629   enableval=$enable_filesystem;
7630                           if test "$enableval" = yes; then
7631                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7632                           else
7633                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7634                           fi
7635                           cache=yes
7636
7637 else
7638
7639                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7640                           if test "x$LINE" != x ; then
7641                               eval "DEFAULT_$LINE"
7642                               cache=yes
7643                           else
7644                               cache=no
7645                           fi
7646
7647                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7648
7649 fi
7650
7651
7652           eval "$wx_cv_use_filesystem"
7653           if test "x$cache" = xyes; then
7654             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7655           fi
7656
7657           if test x"$enablestring" = xdisable; then
7658             if test $wxUSE_FILESYSTEM = yes; then
7659               result=no
7660             else
7661               result=yes
7662             fi
7663           else
7664             result=$wxUSE_FILESYSTEM
7665           fi
7666
7667           { echo "$as_me:$LINENO: result: $result" >&5
7668 echo "${ECHO_T}$result" >&6; }
7669
7670
7671           enablestring=
7672           defaultval=$wxUSE_ALL_FEATURES
7673           if test -z "$defaultval"; then
7674               if test x"$enablestring" = xdisable; then
7675                   defaultval=yes
7676               else
7677                   defaultval=no
7678               fi
7679           fi
7680
7681           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7682 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7683           # Check whether --enable-fontenum was given.
7684 if test "${enable_fontenum+set}" = set; then
7685   enableval=$enable_fontenum;
7686                           if test "$enableval" = yes; then
7687                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7688                           else
7689                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7690                           fi
7691                           cache=yes
7692
7693 else
7694
7695                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7696                           if test "x$LINE" != x ; then
7697                               eval "DEFAULT_$LINE"
7698                               cache=yes
7699                           else
7700                               cache=no
7701                           fi
7702
7703                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7704
7705 fi
7706
7707
7708           eval "$wx_cv_use_fontenum"
7709           if test "x$cache" = xyes; then
7710             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7711           fi
7712
7713           if test x"$enablestring" = xdisable; then
7714             if test $wxUSE_FONTENUM = yes; then
7715               result=no
7716             else
7717               result=yes
7718             fi
7719           else
7720             result=$wxUSE_FONTENUM
7721           fi
7722
7723           { echo "$as_me:$LINENO: result: $result" >&5
7724 echo "${ECHO_T}$result" >&6; }
7725
7726
7727           enablestring=
7728           defaultval=$wxUSE_ALL_FEATURES
7729           if test -z "$defaultval"; then
7730               if test x"$enablestring" = xdisable; then
7731                   defaultval=yes
7732               else
7733                   defaultval=no
7734               fi
7735           fi
7736
7737           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7738 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7739           # Check whether --enable-fontmap was given.
7740 if test "${enable_fontmap+set}" = set; then
7741   enableval=$enable_fontmap;
7742                           if test "$enableval" = yes; then
7743                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7744                           else
7745                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7746                           fi
7747                           cache=yes
7748
7749 else
7750
7751                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7752                           if test "x$LINE" != x ; then
7753                               eval "DEFAULT_$LINE"
7754                               cache=yes
7755                           else
7756                               cache=no
7757                           fi
7758
7759                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7760
7761 fi
7762
7763
7764           eval "$wx_cv_use_fontmap"
7765           if test "x$cache" = xyes; then
7766             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7767           fi
7768
7769           if test x"$enablestring" = xdisable; then
7770             if test $wxUSE_FONTMAP = yes; then
7771               result=no
7772             else
7773               result=yes
7774             fi
7775           else
7776             result=$wxUSE_FONTMAP
7777           fi
7778
7779           { echo "$as_me:$LINENO: result: $result" >&5
7780 echo "${ECHO_T}$result" >&6; }
7781
7782
7783           enablestring=
7784           defaultval=$wxUSE_ALL_FEATURES
7785           if test -z "$defaultval"; then
7786               if test x"$enablestring" = xdisable; then
7787                   defaultval=yes
7788               else
7789                   defaultval=no
7790               fi
7791           fi
7792
7793           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7794 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7795           # Check whether --enable-fs_archive was given.
7796 if test "${enable_fs_archive+set}" = set; then
7797   enableval=$enable_fs_archive;
7798                           if test "$enableval" = yes; then
7799                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7800                           else
7801                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7802                           fi
7803                           cache=yes
7804
7805 else
7806
7807                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7808                           if test "x$LINE" != x ; then
7809                               eval "DEFAULT_$LINE"
7810                               cache=yes
7811                           else
7812                               cache=no
7813                           fi
7814
7815                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7816
7817 fi
7818
7819
7820           eval "$wx_cv_use_fs_archive"
7821           if test "x$cache" = xyes; then
7822             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7823           fi
7824
7825           if test x"$enablestring" = xdisable; then
7826             if test $wxUSE_FS_ARCHIVE = yes; then
7827               result=no
7828             else
7829               result=yes
7830             fi
7831           else
7832             result=$wxUSE_FS_ARCHIVE
7833           fi
7834
7835           { echo "$as_me:$LINENO: result: $result" >&5
7836 echo "${ECHO_T}$result" >&6; }
7837
7838
7839           enablestring=
7840           defaultval=$wxUSE_ALL_FEATURES
7841           if test -z "$defaultval"; then
7842               if test x"$enablestring" = xdisable; then
7843                   defaultval=yes
7844               else
7845                   defaultval=no
7846               fi
7847           fi
7848
7849           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7850 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7851           # Check whether --enable-fs_inet was given.
7852 if test "${enable_fs_inet+set}" = set; then
7853   enableval=$enable_fs_inet;
7854                           if test "$enableval" = yes; then
7855                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7856                           else
7857                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7858                           fi
7859                           cache=yes
7860
7861 else
7862
7863                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7864                           if test "x$LINE" != x ; then
7865                               eval "DEFAULT_$LINE"
7866                               cache=yes
7867                           else
7868                               cache=no
7869                           fi
7870
7871                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7872
7873 fi
7874
7875
7876           eval "$wx_cv_use_fs_inet"
7877           if test "x$cache" = xyes; then
7878             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7879           fi
7880
7881           if test x"$enablestring" = xdisable; then
7882             if test $wxUSE_FS_INET = yes; then
7883               result=no
7884             else
7885               result=yes
7886             fi
7887           else
7888             result=$wxUSE_FS_INET
7889           fi
7890
7891           { echo "$as_me:$LINENO: result: $result" >&5
7892 echo "${ECHO_T}$result" >&6; }
7893
7894
7895           enablestring=
7896           defaultval=$wxUSE_ALL_FEATURES
7897           if test -z "$defaultval"; then
7898               if test x"$enablestring" = xdisable; then
7899                   defaultval=yes
7900               else
7901                   defaultval=no
7902               fi
7903           fi
7904
7905           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7906 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7907           # Check whether --enable-fs_zip was given.
7908 if test "${enable_fs_zip+set}" = set; then
7909   enableval=$enable_fs_zip;
7910                           if test "$enableval" = yes; then
7911                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7912                           else
7913                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7914                           fi
7915                           cache=yes
7916
7917 else
7918
7919                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7920                           if test "x$LINE" != x ; then
7921                               eval "DEFAULT_$LINE"
7922                               cache=yes
7923                           else
7924                               cache=no
7925                           fi
7926
7927                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7928
7929 fi
7930
7931
7932           eval "$wx_cv_use_fs_zip"
7933           if test "x$cache" = xyes; then
7934             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7935           fi
7936
7937           if test x"$enablestring" = xdisable; then
7938             if test $wxUSE_FS_ZIP = yes; then
7939               result=no
7940             else
7941               result=yes
7942             fi
7943           else
7944             result=$wxUSE_FS_ZIP
7945           fi
7946
7947           { echo "$as_me:$LINENO: result: $result" >&5
7948 echo "${ECHO_T}$result" >&6; }
7949
7950
7951           enablestring=
7952           defaultval=$wxUSE_ALL_FEATURES
7953           if test -z "$defaultval"; then
7954               if test x"$enablestring" = xdisable; then
7955                   defaultval=yes
7956               else
7957                   defaultval=no
7958               fi
7959           fi
7960
7961           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7962 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7963           # Check whether --enable-geometry was given.
7964 if test "${enable_geometry+set}" = set; then
7965   enableval=$enable_geometry;
7966                           if test "$enableval" = yes; then
7967                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7968                           else
7969                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7970                           fi
7971                           cache=yes
7972
7973 else
7974
7975                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7976                           if test "x$LINE" != x ; then
7977                               eval "DEFAULT_$LINE"
7978                               cache=yes
7979                           else
7980                               cache=no
7981                           fi
7982
7983                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7984
7985 fi
7986
7987
7988           eval "$wx_cv_use_geometry"
7989           if test "x$cache" = xyes; then
7990             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
7991           fi
7992
7993           if test x"$enablestring" = xdisable; then
7994             if test $wxUSE_GEOMETRY = yes; then
7995               result=no
7996             else
7997               result=yes
7998             fi
7999           else
8000             result=$wxUSE_GEOMETRY
8001           fi
8002
8003           { echo "$as_me:$LINENO: result: $result" >&5
8004 echo "${ECHO_T}$result" >&6; }
8005
8006
8007           enablestring=
8008           defaultval=$wxUSE_ALL_FEATURES
8009           if test -z "$defaultval"; then
8010               if test x"$enablestring" = xdisable; then
8011                   defaultval=yes
8012               else
8013                   defaultval=no
8014               fi
8015           fi
8016
8017           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
8018 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
8019           # Check whether --enable-log was given.
8020 if test "${enable_log+set}" = set; then
8021   enableval=$enable_log;
8022                           if test "$enableval" = yes; then
8023                             wx_cv_use_log='wxUSE_LOG=yes'
8024                           else
8025                             wx_cv_use_log='wxUSE_LOG=no'
8026                           fi
8027                           cache=yes
8028
8029 else
8030
8031                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
8032                           if test "x$LINE" != x ; then
8033                               eval "DEFAULT_$LINE"
8034                               cache=yes
8035                           else
8036                               cache=no
8037                           fi
8038
8039                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
8040
8041 fi
8042
8043
8044           eval "$wx_cv_use_log"
8045           if test "x$cache" = xyes; then
8046             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
8047           fi
8048
8049           if test x"$enablestring" = xdisable; then
8050             if test $wxUSE_LOG = yes; then
8051               result=no
8052             else
8053               result=yes
8054             fi
8055           else
8056             result=$wxUSE_LOG
8057           fi
8058
8059           { echo "$as_me:$LINENO: result: $result" >&5
8060 echo "${ECHO_T}$result" >&6; }
8061
8062
8063           enablestring=
8064           defaultval=$wxUSE_ALL_FEATURES
8065           if test -z "$defaultval"; then
8066               if test x"$enablestring" = xdisable; then
8067                   defaultval=yes
8068               else
8069                   defaultval=no
8070               fi
8071           fi
8072
8073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
8074 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
8075           # Check whether --enable-longlong was given.
8076 if test "${enable_longlong+set}" = set; then
8077   enableval=$enable_longlong;
8078                           if test "$enableval" = yes; then
8079                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
8080                           else
8081                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
8082                           fi
8083                           cache=yes
8084
8085 else
8086
8087                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
8088                           if test "x$LINE" != x ; then
8089                               eval "DEFAULT_$LINE"
8090                               cache=yes
8091                           else
8092                               cache=no
8093                           fi
8094
8095                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
8096
8097 fi
8098
8099
8100           eval "$wx_cv_use_longlong"
8101           if test "x$cache" = xyes; then
8102             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
8103           fi
8104
8105           if test x"$enablestring" = xdisable; then
8106             if test $wxUSE_LONGLONG = yes; then
8107               result=no
8108             else
8109               result=yes
8110             fi
8111           else
8112             result=$wxUSE_LONGLONG
8113           fi
8114
8115           { echo "$as_me:$LINENO: result: $result" >&5
8116 echo "${ECHO_T}$result" >&6; }
8117
8118
8119           enablestring=
8120           defaultval=$wxUSE_ALL_FEATURES
8121           if test -z "$defaultval"; then
8122               if test x"$enablestring" = xdisable; then
8123                   defaultval=yes
8124               else
8125                   defaultval=no
8126               fi
8127           fi
8128
8129           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mimetype" >&5
8130 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
8131           # Check whether --enable-mimetype was given.
8132 if test "${enable_mimetype+set}" = set; then
8133   enableval=$enable_mimetype;
8134                           if test "$enableval" = yes; then
8135                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
8136                           else
8137                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
8138                           fi
8139                           cache=yes
8140
8141 else
8142
8143                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
8144                           if test "x$LINE" != x ; then
8145                               eval "DEFAULT_$LINE"
8146                               cache=yes
8147                           else
8148                               cache=no
8149                           fi
8150
8151                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
8152
8153 fi
8154
8155
8156           eval "$wx_cv_use_mimetype"
8157           if test "x$cache" = xyes; then
8158             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
8159           fi
8160
8161           if test x"$enablestring" = xdisable; then
8162             if test $wxUSE_MIMETYPE = yes; then
8163               result=no
8164             else
8165               result=yes
8166             fi
8167           else
8168             result=$wxUSE_MIMETYPE
8169           fi
8170
8171           { echo "$as_me:$LINENO: result: $result" >&5
8172 echo "${ECHO_T}$result" >&6; }
8173
8174
8175           enablestring=
8176           defaultval=$wxUSE_ALL_FEATURES
8177           if test -z "$defaultval"; then
8178               if test x"$enablestring" = xdisable; then
8179                   defaultval=yes
8180               else
8181                   defaultval=no
8182               fi
8183           fi
8184
8185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8186 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8187           # Check whether --enable-snglinst was given.
8188 if test "${enable_snglinst+set}" = set; then
8189   enableval=$enable_snglinst;
8190                           if test "$enableval" = yes; then
8191                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8192                           else
8193                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8194                           fi
8195                           cache=yes
8196
8197 else
8198
8199                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8200                           if test "x$LINE" != x ; then
8201                               eval "DEFAULT_$LINE"
8202                               cache=yes
8203                           else
8204                               cache=no
8205                           fi
8206
8207                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8208
8209 fi
8210
8211
8212           eval "$wx_cv_use_snglinst"
8213           if test "x$cache" = xyes; then
8214             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8215           fi
8216
8217           if test x"$enablestring" = xdisable; then
8218             if test $wxUSE_SNGLINST_CHECKER = yes; then
8219               result=no
8220             else
8221               result=yes
8222             fi
8223           else
8224             result=$wxUSE_SNGLINST_CHECKER
8225           fi
8226
8227           { echo "$as_me:$LINENO: result: $result" >&5
8228 echo "${ECHO_T}$result" >&6; }
8229
8230
8231           enablestring=
8232           defaultval=$wxUSE_ALL_FEATURES
8233           if test -z "$defaultval"; then
8234               if test x"$enablestring" = xdisable; then
8235                   defaultval=yes
8236               else
8237                   defaultval=no
8238               fi
8239           fi
8240
8241           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8242 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8243           # Check whether --enable-stdpaths was given.
8244 if test "${enable_stdpaths+set}" = set; then
8245   enableval=$enable_stdpaths;
8246                           if test "$enableval" = yes; then
8247                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8248                           else
8249                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8250                           fi
8251                           cache=yes
8252
8253 else
8254
8255                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8256                           if test "x$LINE" != x ; then
8257                               eval "DEFAULT_$LINE"
8258                               cache=yes
8259                           else
8260                               cache=no
8261                           fi
8262
8263                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8264
8265 fi
8266
8267
8268           eval "$wx_cv_use_stdpaths"
8269           if test "x$cache" = xyes; then
8270             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8271           fi
8272
8273           if test x"$enablestring" = xdisable; then
8274             if test $wxUSE_STDPATHS = yes; then
8275               result=no
8276             else
8277               result=yes
8278             fi
8279           else
8280             result=$wxUSE_STDPATHS
8281           fi
8282
8283           { echo "$as_me:$LINENO: result: $result" >&5
8284 echo "${ECHO_T}$result" >&6; }
8285
8286
8287           enablestring=
8288           defaultval=$wxUSE_ALL_FEATURES
8289           if test -z "$defaultval"; then
8290               if test x"$enablestring" = xdisable; then
8291                   defaultval=yes
8292               else
8293                   defaultval=no
8294               fi
8295           fi
8296
8297           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8298 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8299           # Check whether --enable-stopwatch was given.
8300 if test "${enable_stopwatch+set}" = set; then
8301   enableval=$enable_stopwatch;
8302                           if test "$enableval" = yes; then
8303                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8304                           else
8305                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8306                           fi
8307                           cache=yes
8308
8309 else
8310
8311                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8312                           if test "x$LINE" != x ; then
8313                               eval "DEFAULT_$LINE"
8314                               cache=yes
8315                           else
8316                               cache=no
8317                           fi
8318
8319                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8320
8321 fi
8322
8323
8324           eval "$wx_cv_use_stopwatch"
8325           if test "x$cache" = xyes; then
8326             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8327           fi
8328
8329           if test x"$enablestring" = xdisable; then
8330             if test $wxUSE_STOPWATCH = yes; then
8331               result=no
8332             else
8333               result=yes
8334             fi
8335           else
8336             result=$wxUSE_STOPWATCH
8337           fi
8338
8339           { echo "$as_me:$LINENO: result: $result" >&5
8340 echo "${ECHO_T}$result" >&6; }
8341
8342
8343           enablestring=
8344           defaultval=$wxUSE_ALL_FEATURES
8345           if test -z "$defaultval"; then
8346               if test x"$enablestring" = xdisable; then
8347                   defaultval=yes
8348               else
8349                   defaultval=no
8350               fi
8351           fi
8352
8353           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8354 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8355           # Check whether --enable-streams was given.
8356 if test "${enable_streams+set}" = set; then
8357   enableval=$enable_streams;
8358                           if test "$enableval" = yes; then
8359                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8360                           else
8361                             wx_cv_use_streams='wxUSE_STREAMS=no'
8362                           fi
8363                           cache=yes
8364
8365 else
8366
8367                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8368                           if test "x$LINE" != x ; then
8369                               eval "DEFAULT_$LINE"
8370                               cache=yes
8371                           else
8372                               cache=no
8373                           fi
8374
8375                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8376
8377 fi
8378
8379
8380           eval "$wx_cv_use_streams"
8381           if test "x$cache" = xyes; then
8382             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8383           fi
8384
8385           if test x"$enablestring" = xdisable; then
8386             if test $wxUSE_STREAMS = yes; then
8387               result=no
8388             else
8389               result=yes
8390             fi
8391           else
8392             result=$wxUSE_STREAMS
8393           fi
8394
8395           { echo "$as_me:$LINENO: result: $result" >&5
8396 echo "${ECHO_T}$result" >&6; }
8397
8398
8399           enablestring=
8400           defaultval=$wxUSE_ALL_FEATURES
8401           if test -z "$defaultval"; then
8402               if test x"$enablestring" = xdisable; then
8403                   defaultval=yes
8404               else
8405                   defaultval=no
8406               fi
8407           fi
8408
8409           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8410 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8411           # Check whether --enable-system_options was given.
8412 if test "${enable_system_options+set}" = set; then
8413   enableval=$enable_system_options;
8414                           if test "$enableval" = yes; then
8415                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8416                           else
8417                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8418                           fi
8419                           cache=yes
8420
8421 else
8422
8423                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8424                           if test "x$LINE" != x ; then
8425                               eval "DEFAULT_$LINE"
8426                               cache=yes
8427                           else
8428                               cache=no
8429                           fi
8430
8431                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8432
8433 fi
8434
8435
8436           eval "$wx_cv_use_system_options"
8437           if test "x$cache" = xyes; then
8438             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8439           fi
8440
8441           if test x"$enablestring" = xdisable; then
8442             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8443               result=no
8444             else
8445               result=yes
8446             fi
8447           else
8448             result=$wxUSE_SYSTEM_OPTIONS
8449           fi
8450
8451           { echo "$as_me:$LINENO: result: $result" >&5
8452 echo "${ECHO_T}$result" >&6; }
8453
8454
8455           enablestring=
8456           defaultval=$wxUSE_ALL_FEATURES
8457           if test -z "$defaultval"; then
8458               if test x"$enablestring" = xdisable; then
8459                   defaultval=yes
8460               else
8461                   defaultval=no
8462               fi
8463           fi
8464
8465           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8466 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8467           # Check whether --enable-tarstream was given.
8468 if test "${enable_tarstream+set}" = set; then
8469   enableval=$enable_tarstream;
8470                           if test "$enableval" = yes; then
8471                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8472                           else
8473                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8474                           fi
8475                           cache=yes
8476
8477 else
8478
8479                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8480                           if test "x$LINE" != x ; then
8481                               eval "DEFAULT_$LINE"
8482                               cache=yes
8483                           else
8484                               cache=no
8485                           fi
8486
8487                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8488
8489 fi
8490
8491
8492           eval "$wx_cv_use_tarstream"
8493           if test "x$cache" = xyes; then
8494             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8495           fi
8496
8497           if test x"$enablestring" = xdisable; then
8498             if test $wxUSE_TARSTREAM = yes; then
8499               result=no
8500             else
8501               result=yes
8502             fi
8503           else
8504             result=$wxUSE_TARSTREAM
8505           fi
8506
8507           { echo "$as_me:$LINENO: result: $result" >&5
8508 echo "${ECHO_T}$result" >&6; }
8509
8510
8511           enablestring=
8512           defaultval=$wxUSE_ALL_FEATURES
8513           if test -z "$defaultval"; then
8514               if test x"$enablestring" = xdisable; then
8515                   defaultval=yes
8516               else
8517                   defaultval=no
8518               fi
8519           fi
8520
8521           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8522 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8523           # Check whether --enable-textbuf was given.
8524 if test "${enable_textbuf+set}" = set; then
8525   enableval=$enable_textbuf;
8526                           if test "$enableval" = yes; then
8527                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8528                           else
8529                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8530                           fi
8531                           cache=yes
8532
8533 else
8534
8535                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8536                           if test "x$LINE" != x ; then
8537                               eval "DEFAULT_$LINE"
8538                               cache=yes
8539                           else
8540                               cache=no
8541                           fi
8542
8543                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8544
8545 fi
8546
8547
8548           eval "$wx_cv_use_textbuf"
8549           if test "x$cache" = xyes; then
8550             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8551           fi
8552
8553           if test x"$enablestring" = xdisable; then
8554             if test $wxUSE_TEXTBUFFER = yes; then
8555               result=no
8556             else
8557               result=yes
8558             fi
8559           else
8560             result=$wxUSE_TEXTBUFFER
8561           fi
8562
8563           { echo "$as_me:$LINENO: result: $result" >&5
8564 echo "${ECHO_T}$result" >&6; }
8565
8566
8567           enablestring=
8568           defaultval=$wxUSE_ALL_FEATURES
8569           if test -z "$defaultval"; then
8570               if test x"$enablestring" = xdisable; then
8571                   defaultval=yes
8572               else
8573                   defaultval=no
8574               fi
8575           fi
8576
8577           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8578 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8579           # Check whether --enable-textfile was given.
8580 if test "${enable_textfile+set}" = set; then
8581   enableval=$enable_textfile;
8582                           if test "$enableval" = yes; then
8583                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8584                           else
8585                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8586                           fi
8587                           cache=yes
8588
8589 else
8590
8591                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8592                           if test "x$LINE" != x ; then
8593                               eval "DEFAULT_$LINE"
8594                               cache=yes
8595                           else
8596                               cache=no
8597                           fi
8598
8599                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8600
8601 fi
8602
8603
8604           eval "$wx_cv_use_textfile"
8605           if test "x$cache" = xyes; then
8606             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8607           fi
8608
8609           if test x"$enablestring" = xdisable; then
8610             if test $wxUSE_TEXTFILE = yes; then
8611               result=no
8612             else
8613               result=yes
8614             fi
8615           else
8616             result=$wxUSE_TEXTFILE
8617           fi
8618
8619           { echo "$as_me:$LINENO: result: $result" >&5
8620 echo "${ECHO_T}$result" >&6; }
8621
8622
8623           enablestring=
8624           defaultval=$wxUSE_ALL_FEATURES
8625           if test -z "$defaultval"; then
8626               if test x"$enablestring" = xdisable; then
8627                   defaultval=yes
8628               else
8629                   defaultval=no
8630               fi
8631           fi
8632
8633           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8634 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8635           # Check whether --enable-timer was given.
8636 if test "${enable_timer+set}" = set; then
8637   enableval=$enable_timer;
8638                           if test "$enableval" = yes; then
8639                             wx_cv_use_timer='wxUSE_TIMER=yes'
8640                           else
8641                             wx_cv_use_timer='wxUSE_TIMER=no'
8642                           fi
8643                           cache=yes
8644
8645 else
8646
8647                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8648                           if test "x$LINE" != x ; then
8649                               eval "DEFAULT_$LINE"
8650                               cache=yes
8651                           else
8652                               cache=no
8653                           fi
8654
8655                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8656
8657 fi
8658
8659
8660           eval "$wx_cv_use_timer"
8661           if test "x$cache" = xyes; then
8662             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8663           fi
8664
8665           if test x"$enablestring" = xdisable; then
8666             if test $wxUSE_TIMER = yes; then
8667               result=no
8668             else
8669               result=yes
8670             fi
8671           else
8672             result=$wxUSE_TIMER
8673           fi
8674
8675           { echo "$as_me:$LINENO: result: $result" >&5
8676 echo "${ECHO_T}$result" >&6; }
8677
8678
8679           enablestring=
8680           defaultval=$wxUSE_ALL_FEATURES
8681           if test -z "$defaultval"; then
8682               if test x"$enablestring" = xdisable; then
8683                   defaultval=yes
8684               else
8685                   defaultval=no
8686               fi
8687           fi
8688
8689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8690 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8691           # Check whether --enable-sound was given.
8692 if test "${enable_sound+set}" = set; then
8693   enableval=$enable_sound;
8694                           if test "$enableval" = yes; then
8695                             wx_cv_use_sound='wxUSE_SOUND=yes'
8696                           else
8697                             wx_cv_use_sound='wxUSE_SOUND=no'
8698                           fi
8699                           cache=yes
8700
8701 else
8702
8703                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8704                           if test "x$LINE" != x ; then
8705                               eval "DEFAULT_$LINE"
8706                               cache=yes
8707                           else
8708                               cache=no
8709                           fi
8710
8711                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8712
8713 fi
8714
8715
8716           eval "$wx_cv_use_sound"
8717           if test "x$cache" = xyes; then
8718             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8719           fi
8720
8721           if test x"$enablestring" = xdisable; then
8722             if test $wxUSE_SOUND = yes; then
8723               result=no
8724             else
8725               result=yes
8726             fi
8727           else
8728             result=$wxUSE_SOUND
8729           fi
8730
8731           { echo "$as_me:$LINENO: result: $result" >&5
8732 echo "${ECHO_T}$result" >&6; }
8733
8734
8735           enablestring=
8736           defaultval=$wxUSE_ALL_FEATURES
8737           if test -z "$defaultval"; then
8738               if test x"$enablestring" = xdisable; then
8739                   defaultval=yes
8740               else
8741                   defaultval=no
8742               fi
8743           fi
8744
8745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8746 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8747           # Check whether --enable-mediactrl was given.
8748 if test "${enable_mediactrl+set}" = set; then
8749   enableval=$enable_mediactrl;
8750                           if test "$enableval" = yes; then
8751                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8752                           else
8753                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8754                           fi
8755                           cache=yes
8756
8757 else
8758
8759                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8760                           if test "x$LINE" != x ; then
8761                               eval "DEFAULT_$LINE"
8762                               cache=yes
8763                           else
8764                               cache=no
8765                           fi
8766
8767                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8768
8769 fi
8770
8771
8772           eval "$wx_cv_use_mediactrl"
8773           if test "x$cache" = xyes; then
8774             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8775           fi
8776
8777           if test x"$enablestring" = xdisable; then
8778             if test $wxUSE_MEDIACTRL = yes; then
8779               result=no
8780             else
8781               result=yes
8782             fi
8783           else
8784             result=$wxUSE_MEDIACTRL
8785           fi
8786
8787           { echo "$as_me:$LINENO: result: $result" >&5
8788 echo "${ECHO_T}$result" >&6; }
8789
8790
8791           enablestring=
8792           defaultval=$wxUSE_ALL_FEATURES
8793           if test -z "$defaultval"; then
8794               if test x"$enablestring" = xdisable; then
8795                   defaultval=yes
8796               else
8797                   defaultval=no
8798               fi
8799           fi
8800
8801           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8802 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8803           # Check whether --enable-gstreamer8 was given.
8804 if test "${enable_gstreamer8+set}" = set; then
8805   enableval=$enable_gstreamer8;
8806                           if test "$enableval" = yes; then
8807                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8808                           else
8809                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8810                           fi
8811                           cache=yes
8812
8813 else
8814
8815                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8816                           if test "x$LINE" != x ; then
8817                               eval "DEFAULT_$LINE"
8818                               cache=yes
8819                           else
8820                               cache=no
8821                           fi
8822
8823                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8824
8825 fi
8826
8827
8828           eval "$wx_cv_use_gstreamer8"
8829           if test "x$cache" = xyes; then
8830             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8831           fi
8832
8833           if test x"$enablestring" = xdisable; then
8834             if test $wxUSE_GSTREAMER8 = yes; then
8835               result=no
8836             else
8837               result=yes
8838             fi
8839           else
8840             result=$wxUSE_GSTREAMER8
8841           fi
8842
8843           { echo "$as_me:$LINENO: result: $result" >&5
8844 echo "${ECHO_T}$result" >&6; }
8845
8846
8847           enablestring=
8848           defaultval=$wxUSE_ALL_FEATURES
8849           if test -z "$defaultval"; then
8850               if test x"$enablestring" = xdisable; then
8851                   defaultval=yes
8852               else
8853                   defaultval=no
8854               fi
8855           fi
8856
8857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8858 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8859           # Check whether --enable-printfposparam was given.
8860 if test "${enable_printfposparam+set}" = set; then
8861   enableval=$enable_printfposparam;
8862                           if test "$enableval" = yes; then
8863                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8864                           else
8865                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8866                           fi
8867                           cache=yes
8868
8869 else
8870
8871                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8872                           if test "x$LINE" != x ; then
8873                               eval "DEFAULT_$LINE"
8874                               cache=yes
8875                           else
8876                               cache=no
8877                           fi
8878
8879                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8880
8881 fi
8882
8883
8884           eval "$wx_cv_use_printfposparam"
8885           if test "x$cache" = xyes; then
8886             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8887           fi
8888
8889           if test x"$enablestring" = xdisable; then
8890             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8891               result=no
8892             else
8893               result=yes
8894             fi
8895           else
8896             result=$wxUSE_PRINTF_POS_PARAMS
8897           fi
8898
8899           { echo "$as_me:$LINENO: result: $result" >&5
8900 echo "${ECHO_T}$result" >&6; }
8901
8902
8903           enablestring=
8904           defaultval=$wxUSE_ALL_FEATURES
8905           if test -z "$defaultval"; then
8906               if test x"$enablestring" = xdisable; then
8907                   defaultval=yes
8908               else
8909                   defaultval=no
8910               fi
8911           fi
8912
8913           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8914 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8915           # Check whether --enable-zipstream was given.
8916 if test "${enable_zipstream+set}" = set; then
8917   enableval=$enable_zipstream;
8918                           if test "$enableval" = yes; then
8919                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8920                           else
8921                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8922                           fi
8923                           cache=yes
8924
8925 else
8926
8927                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8928                           if test "x$LINE" != x ; then
8929                               eval "DEFAULT_$LINE"
8930                               cache=yes
8931                           else
8932                               cache=no
8933                           fi
8934
8935                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8936
8937 fi
8938
8939
8940           eval "$wx_cv_use_zipstream"
8941           if test "x$cache" = xyes; then
8942             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8943           fi
8944
8945           if test x"$enablestring" = xdisable; then
8946             if test $wxUSE_ZIPSTREAM = yes; then
8947               result=no
8948             else
8949               result=yes
8950             fi
8951           else
8952             result=$wxUSE_ZIPSTREAM
8953           fi
8954
8955           { echo "$as_me:$LINENO: result: $result" >&5
8956 echo "${ECHO_T}$result" >&6; }
8957
8958
8959
8960           enablestring=
8961           defaultval=$wxUSE_ALL_FEATURES
8962           if test -z "$defaultval"; then
8963               if test x"$enablestring" = xdisable; then
8964                   defaultval=yes
8965               else
8966                   defaultval=no
8967               fi
8968           fi
8969
8970           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8971 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8972           # Check whether --enable-url was given.
8973 if test "${enable_url+set}" = set; then
8974   enableval=$enable_url;
8975                           if test "$enableval" = yes; then
8976                             wx_cv_use_url='wxUSE_URL=yes'
8977                           else
8978                             wx_cv_use_url='wxUSE_URL=no'
8979                           fi
8980                           cache=yes
8981
8982 else
8983
8984                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8985                           if test "x$LINE" != x ; then
8986                               eval "DEFAULT_$LINE"
8987                               cache=yes
8988                           else
8989                               cache=no
8990                           fi
8991
8992                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8993
8994 fi
8995
8996
8997           eval "$wx_cv_use_url"
8998           if test "x$cache" = xyes; then
8999             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
9000           fi
9001
9002           if test x"$enablestring" = xdisable; then
9003             if test $wxUSE_URL = yes; then
9004               result=no
9005             else
9006               result=yes
9007             fi
9008           else
9009             result=$wxUSE_URL
9010           fi
9011
9012           { echo "$as_me:$LINENO: result: $result" >&5
9013 echo "${ECHO_T}$result" >&6; }
9014
9015
9016           enablestring=
9017           defaultval=$wxUSE_ALL_FEATURES
9018           if test -z "$defaultval"; then
9019               if test x"$enablestring" = xdisable; then
9020                   defaultval=yes
9021               else
9022                   defaultval=no
9023               fi
9024           fi
9025
9026           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
9027 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
9028           # Check whether --enable-variant was given.
9029 if test "${enable_variant+set}" = set; then
9030   enableval=$enable_variant;
9031                           if test "$enableval" = yes; then
9032                             wx_cv_use_variant='wxUSE_VARIANT=yes'
9033                           else
9034                             wx_cv_use_variant='wxUSE_VARIANT=no'
9035                           fi
9036                           cache=yes
9037
9038 else
9039
9040                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
9041                           if test "x$LINE" != x ; then
9042                               eval "DEFAULT_$LINE"
9043                               cache=yes
9044                           else
9045                               cache=no
9046                           fi
9047
9048                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
9049
9050 fi
9051
9052
9053           eval "$wx_cv_use_variant"
9054           if test "x$cache" = xyes; then
9055             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
9056           fi
9057
9058           if test x"$enablestring" = xdisable; then
9059             if test $wxUSE_VARIANT = yes; then
9060               result=no
9061             else
9062               result=yes
9063             fi
9064           else
9065             result=$wxUSE_VARIANT
9066           fi
9067
9068           { echo "$as_me:$LINENO: result: $result" >&5
9069 echo "${ECHO_T}$result" >&6; }
9070
9071
9072           enablestring=
9073           defaultval=$wxUSE_ALL_FEATURES
9074           if test -z "$defaultval"; then
9075               if test x"$enablestring" = xdisable; then
9076                   defaultval=yes
9077               else
9078                   defaultval=no
9079               fi
9080           fi
9081
9082           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
9083 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
9084           # Check whether --enable-protocol was given.
9085 if test "${enable_protocol+set}" = set; then
9086   enableval=$enable_protocol;
9087                           if test "$enableval" = yes; then
9088                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
9089                           else
9090                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
9091                           fi
9092                           cache=yes
9093
9094 else
9095
9096                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
9097                           if test "x$LINE" != x ; then
9098                               eval "DEFAULT_$LINE"
9099                               cache=yes
9100                           else
9101                               cache=no
9102                           fi
9103
9104                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
9105
9106 fi
9107
9108
9109           eval "$wx_cv_use_protocol"
9110           if test "x$cache" = xyes; then
9111             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
9112           fi
9113
9114           if test x"$enablestring" = xdisable; then
9115             if test $wxUSE_PROTOCOL = yes; then
9116               result=no
9117             else
9118               result=yes
9119             fi
9120           else
9121             result=$wxUSE_PROTOCOL
9122           fi
9123
9124           { echo "$as_me:$LINENO: result: $result" >&5
9125 echo "${ECHO_T}$result" >&6; }
9126
9127
9128           enablestring=
9129           defaultval=$wxUSE_ALL_FEATURES
9130           if test -z "$defaultval"; then
9131               if test x"$enablestring" = xdisable; then
9132                   defaultval=yes
9133               else
9134                   defaultval=no
9135               fi
9136           fi
9137
9138           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
9139 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
9140           # Check whether --enable-protocol_http was given.
9141 if test "${enable_protocol_http+set}" = set; then
9142   enableval=$enable_protocol_http;
9143                           if test "$enableval" = yes; then
9144                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
9145                           else
9146                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
9147                           fi
9148                           cache=yes
9149
9150 else
9151
9152                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
9153                           if test "x$LINE" != x ; then
9154                               eval "DEFAULT_$LINE"
9155                               cache=yes
9156                           else
9157                               cache=no
9158                           fi
9159
9160                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
9161
9162 fi
9163
9164
9165           eval "$wx_cv_use_protocol_http"
9166           if test "x$cache" = xyes; then
9167             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
9168           fi
9169
9170           if test x"$enablestring" = xdisable; then
9171             if test $wxUSE_PROTOCOL_HTTP = yes; then
9172               result=no
9173             else
9174               result=yes
9175             fi
9176           else
9177             result=$wxUSE_PROTOCOL_HTTP
9178           fi
9179
9180           { echo "$as_me:$LINENO: result: $result" >&5
9181 echo "${ECHO_T}$result" >&6; }
9182
9183
9184           enablestring=
9185           defaultval=$wxUSE_ALL_FEATURES
9186           if test -z "$defaultval"; then
9187               if test x"$enablestring" = xdisable; then
9188                   defaultval=yes
9189               else
9190                   defaultval=no
9191               fi
9192           fi
9193
9194           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
9195 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
9196           # Check whether --enable-protocol_ftp was given.
9197 if test "${enable_protocol_ftp+set}" = set; then
9198   enableval=$enable_protocol_ftp;
9199                           if test "$enableval" = yes; then
9200                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
9201                           else
9202                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
9203                           fi
9204                           cache=yes
9205
9206 else
9207
9208                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9209                           if test "x$LINE" != x ; then
9210                               eval "DEFAULT_$LINE"
9211                               cache=yes
9212                           else
9213                               cache=no
9214                           fi
9215
9216                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9217
9218 fi
9219
9220
9221           eval "$wx_cv_use_protocol_ftp"
9222           if test "x$cache" = xyes; then
9223             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9224           fi
9225
9226           if test x"$enablestring" = xdisable; then
9227             if test $wxUSE_PROTOCOL_FTP = yes; then
9228               result=no
9229             else
9230               result=yes
9231             fi
9232           else
9233             result=$wxUSE_PROTOCOL_FTP
9234           fi
9235
9236           { echo "$as_me:$LINENO: result: $result" >&5
9237 echo "${ECHO_T}$result" >&6; }
9238
9239
9240           enablestring=
9241           defaultval=$wxUSE_ALL_FEATURES
9242           if test -z "$defaultval"; then
9243               if test x"$enablestring" = xdisable; then
9244                   defaultval=yes
9245               else
9246                   defaultval=no
9247               fi
9248           fi
9249
9250           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9251 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9252           # Check whether --enable-protocol_file was given.
9253 if test "${enable_protocol_file+set}" = set; then
9254   enableval=$enable_protocol_file;
9255                           if test "$enableval" = yes; then
9256                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9257                           else
9258                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9259                           fi
9260                           cache=yes
9261
9262 else
9263
9264                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9265                           if test "x$LINE" != x ; then
9266                               eval "DEFAULT_$LINE"
9267                               cache=yes
9268                           else
9269                               cache=no
9270                           fi
9271
9272                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9273
9274 fi
9275
9276
9277           eval "$wx_cv_use_protocol_file"
9278           if test "x$cache" = xyes; then
9279             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9280           fi
9281
9282           if test x"$enablestring" = xdisable; then
9283             if test $wxUSE_PROTOCOL_FILE = yes; then
9284               result=no
9285             else
9286               result=yes
9287             fi
9288           else
9289             result=$wxUSE_PROTOCOL_FILE
9290           fi
9291
9292           { echo "$as_me:$LINENO: result: $result" >&5
9293 echo "${ECHO_T}$result" >&6; }
9294
9295
9296
9297           enablestring=
9298           defaultval=$wxUSE_ALL_FEATURES
9299           if test -z "$defaultval"; then
9300               if test x"$enablestring" = xdisable; then
9301                   defaultval=yes
9302               else
9303                   defaultval=no
9304               fi
9305           fi
9306
9307           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9308 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9309           # Check whether --enable-threads was given.
9310 if test "${enable_threads+set}" = set; then
9311   enableval=$enable_threads;
9312                           if test "$enableval" = yes; then
9313                             wx_cv_use_threads='wxUSE_THREADS=yes'
9314                           else
9315                             wx_cv_use_threads='wxUSE_THREADS=no'
9316                           fi
9317                           cache=yes
9318
9319 else
9320
9321                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9322                           if test "x$LINE" != x ; then
9323                               eval "DEFAULT_$LINE"
9324                               cache=yes
9325                           else
9326                               cache=no
9327                           fi
9328
9329                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9330
9331 fi
9332
9333
9334           eval "$wx_cv_use_threads"
9335           if test "x$cache" = xyes; then
9336             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9337           fi
9338
9339           if test x"$enablestring" = xdisable; then
9340             if test $wxUSE_THREADS = yes; then
9341               result=no
9342             else
9343               result=yes
9344             fi
9345           else
9346             result=$wxUSE_THREADS
9347           fi
9348
9349           { echo "$as_me:$LINENO: result: $result" >&5
9350 echo "${ECHO_T}$result" >&6; }
9351
9352
9353
9354           enablestring=
9355           defaultval=
9356           if test -z "$defaultval"; then
9357               if test x"$enablestring" = xdisable; then
9358                   defaultval=yes
9359               else
9360                   defaultval=no
9361               fi
9362           fi
9363
9364           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
9365 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
9366           # Check whether --enable-iniconf was given.
9367 if test "${enable_iniconf+set}" = set; then
9368   enableval=$enable_iniconf;
9369                           if test "$enableval" = yes; then
9370                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
9371                           else
9372                             wx_cv_use_iniconf='wxUSE_INICONF=no'
9373                           fi
9374                           cache=yes
9375
9376 else
9377
9378                           LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
9379                           if test "x$LINE" != x ; then
9380                               eval "DEFAULT_$LINE"
9381                               cache=yes
9382                           else
9383                               cache=no
9384                           fi
9385
9386                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
9387
9388 fi
9389
9390
9391           eval "$wx_cv_use_iniconf"
9392           if test "x$cache" = xyes; then
9393             echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
9394           fi
9395
9396           if test x"$enablestring" = xdisable; then
9397             if test $wxUSE_INICONF = yes; then
9398               result=no
9399             else
9400               result=yes
9401             fi
9402           else
9403             result=$wxUSE_INICONF
9404           fi
9405
9406           { echo "$as_me:$LINENO: result: $result" >&5
9407 echo "${ECHO_T}$result" >&6; }
9408
9409
9410           enablestring=
9411           defaultval=$wxUSE_ALL_FEATURES
9412           if test -z "$defaultval"; then
9413               if test x"$enablestring" = xdisable; then
9414                   defaultval=yes
9415               else
9416                   defaultval=no
9417               fi
9418           fi
9419
9420           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
9421 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
9422           # Check whether --enable-regkey was given.
9423 if test "${enable_regkey+set}" = set; then
9424   enableval=$enable_regkey;
9425                           if test "$enableval" = yes; then
9426                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
9427                           else
9428                             wx_cv_use_regkey='wxUSE_REGKEY=no'
9429                           fi
9430                           cache=yes
9431
9432 else
9433
9434                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
9435                           if test "x$LINE" != x ; then
9436                               eval "DEFAULT_$LINE"
9437                               cache=yes
9438                           else
9439                               cache=no
9440                           fi
9441
9442                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
9443
9444 fi
9445
9446
9447           eval "$wx_cv_use_regkey"
9448           if test "x$cache" = xyes; then
9449             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
9450           fi
9451
9452           if test x"$enablestring" = xdisable; then
9453             if test $wxUSE_REGKEY = yes; then
9454               result=no
9455             else
9456               result=yes
9457             fi
9458           else
9459             result=$wxUSE_REGKEY
9460           fi
9461
9462           { echo "$as_me:$LINENO: result: $result" >&5
9463 echo "${ECHO_T}$result" >&6; }
9464
9465
9466 if test "$wxUSE_GUI" = "yes"; then
9467
9468
9469
9470           enablestring=
9471           defaultval=$wxUSE_ALL_FEATURES
9472           if test -z "$defaultval"; then
9473               if test x"$enablestring" = xdisable; then
9474                   defaultval=yes
9475               else
9476                   defaultval=no
9477               fi
9478           fi
9479
9480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9481 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9482           # Check whether --enable-docview was given.
9483 if test "${enable_docview+set}" = set; then
9484   enableval=$enable_docview;
9485                           if test "$enableval" = yes; then
9486                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9487                           else
9488                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9489                           fi
9490                           cache=yes
9491
9492 else
9493
9494                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9495                           if test "x$LINE" != x ; then
9496                               eval "DEFAULT_$LINE"
9497                               cache=yes
9498                           else
9499                               cache=no
9500                           fi
9501
9502                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9503
9504 fi
9505
9506
9507           eval "$wx_cv_use_docview"
9508           if test "x$cache" = xyes; then
9509             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9510           fi
9511
9512           if test x"$enablestring" = xdisable; then
9513             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9514               result=no
9515             else
9516               result=yes
9517             fi
9518           else
9519             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9520           fi
9521
9522           { echo "$as_me:$LINENO: result: $result" >&5
9523 echo "${ECHO_T}$result" >&6; }
9524
9525
9526           enablestring=
9527           defaultval=$wxUSE_ALL_FEATURES
9528           if test -z "$defaultval"; then
9529               if test x"$enablestring" = xdisable; then
9530                   defaultval=yes
9531               else
9532                   defaultval=no
9533               fi
9534           fi
9535
9536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9537 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9538           # Check whether --enable-help was given.
9539 if test "${enable_help+set}" = set; then
9540   enableval=$enable_help;
9541                           if test "$enableval" = yes; then
9542                             wx_cv_use_help='wxUSE_HELP=yes'
9543                           else
9544                             wx_cv_use_help='wxUSE_HELP=no'
9545                           fi
9546                           cache=yes
9547
9548 else
9549
9550                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9551                           if test "x$LINE" != x ; then
9552                               eval "DEFAULT_$LINE"
9553                               cache=yes
9554                           else
9555                               cache=no
9556                           fi
9557
9558                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9559
9560 fi
9561
9562
9563           eval "$wx_cv_use_help"
9564           if test "x$cache" = xyes; then
9565             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9566           fi
9567
9568           if test x"$enablestring" = xdisable; then
9569             if test $wxUSE_HELP = yes; then
9570               result=no
9571             else
9572               result=yes
9573             fi
9574           else
9575             result=$wxUSE_HELP
9576           fi
9577
9578           { echo "$as_me:$LINENO: result: $result" >&5
9579 echo "${ECHO_T}$result" >&6; }
9580
9581
9582           enablestring=
9583           defaultval=$wxUSE_ALL_FEATURES
9584           if test -z "$defaultval"; then
9585               if test x"$enablestring" = xdisable; then
9586                   defaultval=yes
9587               else
9588                   defaultval=no
9589               fi
9590           fi
9591
9592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9593 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9594           # Check whether --enable-mshtmlhelp was given.
9595 if test "${enable_mshtmlhelp+set}" = set; then
9596   enableval=$enable_mshtmlhelp;
9597                           if test "$enableval" = yes; then
9598                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9599                           else
9600                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9601                           fi
9602                           cache=yes
9603
9604 else
9605
9606                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9607                           if test "x$LINE" != x ; then
9608                               eval "DEFAULT_$LINE"
9609                               cache=yes
9610                           else
9611                               cache=no
9612                           fi
9613
9614                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9615
9616 fi
9617
9618
9619           eval "$wx_cv_use_mshtmlhelp"
9620           if test "x$cache" = xyes; then
9621             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9622           fi
9623
9624           if test x"$enablestring" = xdisable; then
9625             if test $wxUSE_MS_HTML_HELP = yes; then
9626               result=no
9627             else
9628               result=yes
9629             fi
9630           else
9631             result=$wxUSE_MS_HTML_HELP
9632           fi
9633
9634           { echo "$as_me:$LINENO: result: $result" >&5
9635 echo "${ECHO_T}$result" >&6; }
9636
9637
9638           enablestring=
9639           defaultval=$wxUSE_ALL_FEATURES
9640           if test -z "$defaultval"; then
9641               if test x"$enablestring" = xdisable; then
9642                   defaultval=yes
9643               else
9644                   defaultval=no
9645               fi
9646           fi
9647
9648           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9649 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9650           # Check whether --enable-html was given.
9651 if test "${enable_html+set}" = set; then
9652   enableval=$enable_html;
9653                           if test "$enableval" = yes; then
9654                             wx_cv_use_html='wxUSE_HTML=yes'
9655                           else
9656                             wx_cv_use_html='wxUSE_HTML=no'
9657                           fi
9658                           cache=yes
9659
9660 else
9661
9662                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9663                           if test "x$LINE" != x ; then
9664                               eval "DEFAULT_$LINE"
9665                               cache=yes
9666                           else
9667                               cache=no
9668                           fi
9669
9670                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9671
9672 fi
9673
9674
9675           eval "$wx_cv_use_html"
9676           if test "x$cache" = xyes; then
9677             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9678           fi
9679
9680           if test x"$enablestring" = xdisable; then
9681             if test $wxUSE_HTML = yes; then
9682               result=no
9683             else
9684               result=yes
9685             fi
9686           else
9687             result=$wxUSE_HTML
9688           fi
9689
9690           { echo "$as_me:$LINENO: result: $result" >&5
9691 echo "${ECHO_T}$result" >&6; }
9692
9693
9694           enablestring=
9695           defaultval=$wxUSE_ALL_FEATURES
9696           if test -z "$defaultval"; then
9697               if test x"$enablestring" = xdisable; then
9698                   defaultval=yes
9699               else
9700                   defaultval=no
9701               fi
9702           fi
9703
9704           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9705 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9706           # Check whether --enable-htmlhelp was given.
9707 if test "${enable_htmlhelp+set}" = set; then
9708   enableval=$enable_htmlhelp;
9709                           if test "$enableval" = yes; then
9710                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9711                           else
9712                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9713                           fi
9714                           cache=yes
9715
9716 else
9717
9718                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9719                           if test "x$LINE" != x ; then
9720                               eval "DEFAULT_$LINE"
9721                               cache=yes
9722                           else
9723                               cache=no
9724                           fi
9725
9726                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9727
9728 fi
9729
9730
9731           eval "$wx_cv_use_htmlhelp"
9732           if test "x$cache" = xyes; then
9733             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9734           fi
9735
9736           if test x"$enablestring" = xdisable; then
9737             if test $wxUSE_WXHTML_HELP = yes; then
9738               result=no
9739             else
9740               result=yes
9741             fi
9742           else
9743             result=$wxUSE_WXHTML_HELP
9744           fi
9745
9746           { echo "$as_me:$LINENO: result: $result" >&5
9747 echo "${ECHO_T}$result" >&6; }
9748
9749
9750           enablestring=
9751           defaultval=$wxUSE_ALL_FEATURES
9752           if test -z "$defaultval"; then
9753               if test x"$enablestring" = xdisable; then
9754                   defaultval=yes
9755               else
9756                   defaultval=no
9757               fi
9758           fi
9759
9760           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9761 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9762           # Check whether --enable-xrc was given.
9763 if test "${enable_xrc+set}" = set; then
9764   enableval=$enable_xrc;
9765                           if test "$enableval" = yes; then
9766                             wx_cv_use_xrc='wxUSE_XRC=yes'
9767                           else
9768                             wx_cv_use_xrc='wxUSE_XRC=no'
9769                           fi
9770                           cache=yes
9771
9772 else
9773
9774                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9775                           if test "x$LINE" != x ; then
9776                               eval "DEFAULT_$LINE"
9777                               cache=yes
9778                           else
9779                               cache=no
9780                           fi
9781
9782                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9783
9784 fi
9785
9786
9787           eval "$wx_cv_use_xrc"
9788           if test "x$cache" = xyes; then
9789             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9790           fi
9791
9792           if test x"$enablestring" = xdisable; then
9793             if test $wxUSE_XRC = yes; then
9794               result=no
9795             else
9796               result=yes
9797             fi
9798           else
9799             result=$wxUSE_XRC
9800           fi
9801
9802           { echo "$as_me:$LINENO: result: $result" >&5
9803 echo "${ECHO_T}$result" >&6; }
9804
9805
9806           enablestring=
9807           defaultval=$wxUSE_ALL_FEATURES
9808           if test -z "$defaultval"; then
9809               if test x"$enablestring" = xdisable; then
9810                   defaultval=yes
9811               else
9812                   defaultval=no
9813               fi
9814           fi
9815
9816           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9817 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9818           # Check whether --enable-aui was given.
9819 if test "${enable_aui+set}" = set; then
9820   enableval=$enable_aui;
9821                           if test "$enableval" = yes; then
9822                             wx_cv_use_aui='wxUSE_AUI=yes'
9823                           else
9824                             wx_cv_use_aui='wxUSE_AUI=no'
9825                           fi
9826                           cache=yes
9827
9828 else
9829
9830                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9831                           if test "x$LINE" != x ; then
9832                               eval "DEFAULT_$LINE"
9833                               cache=yes
9834                           else
9835                               cache=no
9836                           fi
9837
9838                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9839
9840 fi
9841
9842
9843           eval "$wx_cv_use_aui"
9844           if test "x$cache" = xyes; then
9845             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9846           fi
9847
9848           if test x"$enablestring" = xdisable; then
9849             if test $wxUSE_AUI = yes; then
9850               result=no
9851             else
9852               result=yes
9853             fi
9854           else
9855             result=$wxUSE_AUI
9856           fi
9857
9858           { echo "$as_me:$LINENO: result: $result" >&5
9859 echo "${ECHO_T}$result" >&6; }
9860
9861
9862           enablestring=
9863           defaultval=$wxUSE_ALL_FEATURES
9864           if test -z "$defaultval"; then
9865               if test x"$enablestring" = xdisable; then
9866                   defaultval=yes
9867               else
9868                   defaultval=no
9869               fi
9870           fi
9871
9872           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9873 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9874           # Check whether --enable-stc was given.
9875 if test "${enable_stc+set}" = set; then
9876   enableval=$enable_stc;
9877                           if test "$enableval" = yes; then
9878                             wx_cv_use_stc='wxUSE_STC=yes'
9879                           else
9880                             wx_cv_use_stc='wxUSE_STC=no'
9881                           fi
9882                           cache=yes
9883
9884 else
9885
9886                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9887                           if test "x$LINE" != x ; then
9888                               eval "DEFAULT_$LINE"
9889                               cache=yes
9890                           else
9891                               cache=no
9892                           fi
9893
9894                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9895
9896 fi
9897
9898
9899           eval "$wx_cv_use_stc"
9900           if test "x$cache" = xyes; then
9901             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9902           fi
9903
9904           if test x"$enablestring" = xdisable; then
9905             if test $wxUSE_STC = yes; then
9906               result=no
9907             else
9908               result=yes
9909             fi
9910           else
9911             result=$wxUSE_STC
9912           fi
9913
9914           { echo "$as_me:$LINENO: result: $result" >&5
9915 echo "${ECHO_T}$result" >&6; }
9916
9917
9918           enablestring=
9919           defaultval=$wxUSE_ALL_FEATURES
9920           if test -z "$defaultval"; then
9921               if test x"$enablestring" = xdisable; then
9922                   defaultval=yes
9923               else
9924                   defaultval=no
9925               fi
9926           fi
9927
9928           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9929 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9930           # Check whether --enable-constraints was given.
9931 if test "${enable_constraints+set}" = set; then
9932   enableval=$enable_constraints;
9933                           if test "$enableval" = yes; then
9934                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9935                           else
9936                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9937                           fi
9938                           cache=yes
9939
9940 else
9941
9942                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9943                           if test "x$LINE" != x ; then
9944                               eval "DEFAULT_$LINE"
9945                               cache=yes
9946                           else
9947                               cache=no
9948                           fi
9949
9950                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9951
9952 fi
9953
9954
9955           eval "$wx_cv_use_constraints"
9956           if test "x$cache" = xyes; then
9957             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9958           fi
9959
9960           if test x"$enablestring" = xdisable; then
9961             if test $wxUSE_CONSTRAINTS = yes; then
9962               result=no
9963             else
9964               result=yes
9965             fi
9966           else
9967             result=$wxUSE_CONSTRAINTS
9968           fi
9969
9970           { echo "$as_me:$LINENO: result: $result" >&5
9971 echo "${ECHO_T}$result" >&6; }
9972
9973
9974           enablestring=
9975           defaultval=$wxUSE_ALL_FEATURES
9976           if test -z "$defaultval"; then
9977               if test x"$enablestring" = xdisable; then
9978                   defaultval=yes
9979               else
9980                   defaultval=no
9981               fi
9982           fi
9983
9984           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9985 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9986           # Check whether --enable-printarch was given.
9987 if test "${enable_printarch+set}" = set; then
9988   enableval=$enable_printarch;
9989                           if test "$enableval" = yes; then
9990                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9991                           else
9992                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9993                           fi
9994                           cache=yes
9995
9996 else
9997
9998                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9999                           if test "x$LINE" != x ; then
10000                               eval "DEFAULT_$LINE"
10001                               cache=yes
10002                           else
10003                               cache=no
10004                           fi
10005
10006                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
10007
10008 fi
10009
10010
10011           eval "$wx_cv_use_printarch"
10012           if test "x$cache" = xyes; then
10013             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10014           fi
10015
10016           if test x"$enablestring" = xdisable; then
10017             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
10018               result=no
10019             else
10020               result=yes
10021             fi
10022           else
10023             result=$wxUSE_PRINTING_ARCHITECTURE
10024           fi
10025
10026           { echo "$as_me:$LINENO: result: $result" >&5
10027 echo "${ECHO_T}$result" >&6; }
10028
10029
10030           enablestring=
10031           defaultval=$wxUSE_ALL_FEATURES
10032           if test -z "$defaultval"; then
10033               if test x"$enablestring" = xdisable; then
10034                   defaultval=yes
10035               else
10036                   defaultval=no
10037               fi
10038           fi
10039
10040           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
10041 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
10042           # Check whether --enable-mdi was given.
10043 if test "${enable_mdi+set}" = set; then
10044   enableval=$enable_mdi;
10045                           if test "$enableval" = yes; then
10046                             wx_cv_use_mdi='wxUSE_MDI=yes'
10047                           else
10048                             wx_cv_use_mdi='wxUSE_MDI=no'
10049                           fi
10050                           cache=yes
10051
10052 else
10053
10054                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
10055                           if test "x$LINE" != x ; then
10056                               eval "DEFAULT_$LINE"
10057                               cache=yes
10058                           else
10059                               cache=no
10060                           fi
10061
10062                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
10063
10064 fi
10065
10066
10067           eval "$wx_cv_use_mdi"
10068           if test "x$cache" = xyes; then
10069             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
10070           fi
10071
10072           if test x"$enablestring" = xdisable; then
10073             if test $wxUSE_MDI = yes; then
10074               result=no
10075             else
10076               result=yes
10077             fi
10078           else
10079             result=$wxUSE_MDI
10080           fi
10081
10082           { echo "$as_me:$LINENO: result: $result" >&5
10083 echo "${ECHO_T}$result" >&6; }
10084
10085
10086           enablestring=
10087           defaultval=$wxUSE_ALL_FEATURES
10088           if test -z "$defaultval"; then
10089               if test x"$enablestring" = xdisable; then
10090                   defaultval=yes
10091               else
10092                   defaultval=no
10093               fi
10094           fi
10095
10096           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
10097 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
10098           # Check whether --enable-mdidoc was given.
10099 if test "${enable_mdidoc+set}" = set; then
10100   enableval=$enable_mdidoc;
10101                           if test "$enableval" = yes; then
10102                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
10103                           else
10104                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
10105                           fi
10106                           cache=yes
10107
10108 else
10109
10110                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
10111                           if test "x$LINE" != x ; then
10112                               eval "DEFAULT_$LINE"
10113                               cache=yes
10114                           else
10115                               cache=no
10116                           fi
10117
10118                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
10119
10120 fi
10121
10122
10123           eval "$wx_cv_use_mdidoc"
10124           if test "x$cache" = xyes; then
10125             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
10126           fi
10127
10128           if test x"$enablestring" = xdisable; then
10129             if test $wxUSE_MDI_ARCHITECTURE = yes; then
10130               result=no
10131             else
10132               result=yes
10133             fi
10134           else
10135             result=$wxUSE_MDI_ARCHITECTURE
10136           fi
10137
10138           { echo "$as_me:$LINENO: result: $result" >&5
10139 echo "${ECHO_T}$result" >&6; }
10140
10141
10142           enablestring=
10143           defaultval=$wxUSE_ALL_FEATURES
10144           if test -z "$defaultval"; then
10145               if test x"$enablestring" = xdisable; then
10146                   defaultval=yes
10147               else
10148                   defaultval=no
10149               fi
10150           fi
10151
10152           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
10153 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
10154           # Check whether --enable-loggui was given.
10155 if test "${enable_loggui+set}" = set; then
10156   enableval=$enable_loggui;
10157                           if test "$enableval" = yes; then
10158                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
10159                           else
10160                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
10161                           fi
10162                           cache=yes
10163
10164 else
10165
10166                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
10167                           if test "x$LINE" != x ; then
10168                               eval "DEFAULT_$LINE"
10169                               cache=yes
10170                           else
10171                               cache=no
10172                           fi
10173
10174                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
10175
10176 fi
10177
10178
10179           eval "$wx_cv_use_loggui"
10180           if test "x$cache" = xyes; then
10181             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
10182           fi
10183
10184           if test x"$enablestring" = xdisable; then
10185             if test $wxUSE_LOGGUI = yes; then
10186               result=no
10187             else
10188               result=yes
10189             fi
10190           else
10191             result=$wxUSE_LOGGUI
10192           fi
10193
10194           { echo "$as_me:$LINENO: result: $result" >&5
10195 echo "${ECHO_T}$result" >&6; }
10196
10197
10198           enablestring=
10199           defaultval=$wxUSE_ALL_FEATURES
10200           if test -z "$defaultval"; then
10201               if test x"$enablestring" = xdisable; then
10202                   defaultval=yes
10203               else
10204                   defaultval=no
10205               fi
10206           fi
10207
10208           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
10209 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
10210           # Check whether --enable-logwin was given.
10211 if test "${enable_logwin+set}" = set; then
10212   enableval=$enable_logwin;
10213                           if test "$enableval" = yes; then
10214                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
10215                           else
10216                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
10217                           fi
10218                           cache=yes
10219
10220 else
10221
10222                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
10223                           if test "x$LINE" != x ; then
10224                               eval "DEFAULT_$LINE"
10225                               cache=yes
10226                           else
10227                               cache=no
10228                           fi
10229
10230                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
10231
10232 fi
10233
10234
10235           eval "$wx_cv_use_logwin"
10236           if test "x$cache" = xyes; then
10237             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
10238           fi
10239
10240           if test x"$enablestring" = xdisable; then
10241             if test $wxUSE_LOGWINDOW = yes; then
10242               result=no
10243             else
10244               result=yes
10245             fi
10246           else
10247             result=$wxUSE_LOGWINDOW
10248           fi
10249
10250           { echo "$as_me:$LINENO: result: $result" >&5
10251 echo "${ECHO_T}$result" >&6; }
10252
10253
10254           enablestring=
10255           defaultval=$wxUSE_ALL_FEATURES
10256           if test -z "$defaultval"; then
10257               if test x"$enablestring" = xdisable; then
10258                   defaultval=yes
10259               else
10260                   defaultval=no
10261               fi
10262           fi
10263
10264           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
10265 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
10266           # Check whether --enable-logdialog was given.
10267 if test "${enable_logdialog+set}" = set; then
10268   enableval=$enable_logdialog;
10269                           if test "$enableval" = yes; then
10270                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
10271                           else
10272                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
10273                           fi
10274                           cache=yes
10275
10276 else
10277
10278                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
10279                           if test "x$LINE" != x ; then
10280                               eval "DEFAULT_$LINE"
10281                               cache=yes
10282                           else
10283                               cache=no
10284                           fi
10285
10286                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
10287
10288 fi
10289
10290
10291           eval "$wx_cv_use_logdialog"
10292           if test "x$cache" = xyes; then
10293             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
10294           fi
10295
10296           if test x"$enablestring" = xdisable; then
10297             if test $wxUSE_LOGDIALOG = yes; then
10298               result=no
10299             else
10300               result=yes
10301             fi
10302           else
10303             result=$wxUSE_LOGDIALOG
10304           fi
10305
10306           { echo "$as_me:$LINENO: result: $result" >&5
10307 echo "${ECHO_T}$result" >&6; }
10308
10309
10310           enablestring=
10311           defaultval=$wxUSE_ALL_FEATURES
10312           if test -z "$defaultval"; then
10313               if test x"$enablestring" = xdisable; then
10314                   defaultval=yes
10315               else
10316                   defaultval=no
10317               fi
10318           fi
10319
10320           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
10321 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
10322           # Check whether --enable-webkit was given.
10323 if test "${enable_webkit+set}" = set; then
10324   enableval=$enable_webkit;
10325                           if test "$enableval" = yes; then
10326                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
10327                           else
10328                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
10329                           fi
10330                           cache=yes
10331
10332 else
10333
10334                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
10335                           if test "x$LINE" != x ; then
10336                               eval "DEFAULT_$LINE"
10337                               cache=yes
10338                           else
10339                               cache=no
10340                           fi
10341
10342                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
10343
10344 fi
10345
10346
10347           eval "$wx_cv_use_webkit"
10348           if test "x$cache" = xyes; then
10349             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
10350           fi
10351
10352           if test x"$enablestring" = xdisable; then
10353             if test $wxUSE_WEBKIT = yes; then
10354               result=no
10355             else
10356               result=yes
10357             fi
10358           else
10359             result=$wxUSE_WEBKIT
10360           fi
10361
10362           { echo "$as_me:$LINENO: result: $result" >&5
10363 echo "${ECHO_T}$result" >&6; }
10364
10365
10366           enablestring=
10367           defaultval=$wxUSE_ALL_FEATURES
10368           if test -z "$defaultval"; then
10369               if test x"$enablestring" = xdisable; then
10370                   defaultval=yes
10371               else
10372                   defaultval=no
10373               fi
10374           fi
10375
10376           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10377 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10378           # Check whether --enable-richtext was given.
10379 if test "${enable_richtext+set}" = set; then
10380   enableval=$enable_richtext;
10381                           if test "$enableval" = yes; then
10382                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10383                           else
10384                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10385                           fi
10386                           cache=yes
10387
10388 else
10389
10390                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10391                           if test "x$LINE" != x ; then
10392                               eval "DEFAULT_$LINE"
10393                               cache=yes
10394                           else
10395                               cache=no
10396                           fi
10397
10398                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10399
10400 fi
10401
10402
10403           eval "$wx_cv_use_richtext"
10404           if test "x$cache" = xyes; then
10405             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10406           fi
10407
10408           if test x"$enablestring" = xdisable; then
10409             if test $wxUSE_RICHTEXT = yes; then
10410               result=no
10411             else
10412               result=yes
10413             fi
10414           else
10415             result=$wxUSE_RICHTEXT
10416           fi
10417
10418           { echo "$as_me:$LINENO: result: $result" >&5
10419 echo "${ECHO_T}$result" >&6; }
10420
10421
10422           enablestring=
10423           defaultval=$wxUSE_ALL_FEATURES
10424           if test -z "$defaultval"; then
10425               if test x"$enablestring" = xdisable; then
10426                   defaultval=yes
10427               else
10428                   defaultval=no
10429               fi
10430           fi
10431
10432           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10433 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10434           # Check whether --enable-graphics_ctx was given.
10435 if test "${enable_graphics_ctx+set}" = set; then
10436   enableval=$enable_graphics_ctx;
10437                           if test "$enableval" = yes; then
10438                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10439                           else
10440                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10441                           fi
10442                           cache=yes
10443
10444 else
10445
10446                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10447                           if test "x$LINE" != x ; then
10448                               eval "DEFAULT_$LINE"
10449                               cache=yes
10450                           else
10451                               cache=no
10452                           fi
10453
10454                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10455
10456 fi
10457
10458
10459           eval "$wx_cv_use_graphics_ctx"
10460           if test "x$cache" = xyes; then
10461             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10462           fi
10463
10464           if test x"$enablestring" = xdisable; then
10465             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10466               result=no
10467             else
10468               result=yes
10469             fi
10470           else
10471             result=$wxUSE_GRAPHICS_CONTEXT
10472           fi
10473
10474           { echo "$as_me:$LINENO: result: $result" >&5
10475 echo "${ECHO_T}$result" >&6; }
10476
10477
10478           enablestring=
10479           defaultval=$wxUSE_ALL_FEATURES
10480           if test -z "$defaultval"; then
10481               if test x"$enablestring" = xdisable; then
10482                   defaultval=yes
10483               else
10484                   defaultval=no
10485               fi
10486           fi
10487
10488           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10489 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10490           # Check whether --enable-postscript was given.
10491 if test "${enable_postscript+set}" = set; then
10492   enableval=$enable_postscript;
10493                           if test "$enableval" = yes; then
10494                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10495                           else
10496                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10497                           fi
10498                           cache=yes
10499
10500 else
10501
10502                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10503                           if test "x$LINE" != x ; then
10504                               eval "DEFAULT_$LINE"
10505                               cache=yes
10506                           else
10507                               cache=no
10508                           fi
10509
10510                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10511
10512 fi
10513
10514
10515           eval "$wx_cv_use_postscript"
10516           if test "x$cache" = xyes; then
10517             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10518           fi
10519
10520           if test x"$enablestring" = xdisable; then
10521             if test $wxUSE_POSTSCRIPT = yes; then
10522               result=no
10523             else
10524               result=yes
10525             fi
10526           else
10527             result=$wxUSE_POSTSCRIPT
10528           fi
10529
10530           { echo "$as_me:$LINENO: result: $result" >&5
10531 echo "${ECHO_T}$result" >&6; }
10532
10533
10534           enablestring=
10535           defaultval=$wxUSE_ALL_FEATURES
10536           if test -z "$defaultval"; then
10537               if test x"$enablestring" = xdisable; then
10538                   defaultval=yes
10539               else
10540                   defaultval=no
10541               fi
10542           fi
10543
10544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10545 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10546           # Check whether --enable-svg was given.
10547 if test "${enable_svg+set}" = set; then
10548   enableval=$enable_svg;
10549                           if test "$enableval" = yes; then
10550                             wx_cv_use_svg='wxUSE_SVG=yes'
10551                           else
10552                             wx_cv_use_svg='wxUSE_SVG=no'
10553                           fi
10554                           cache=yes
10555
10556 else
10557
10558                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10559                           if test "x$LINE" != x ; then
10560                               eval "DEFAULT_$LINE"
10561                               cache=yes
10562                           else
10563                               cache=no
10564                           fi
10565
10566                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10567
10568 fi
10569
10570
10571           eval "$wx_cv_use_svg"
10572           if test "x$cache" = xyes; then
10573             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10574           fi
10575
10576           if test x"$enablestring" = xdisable; then
10577             if test $wxUSE_SVG = yes; then
10578               result=no
10579             else
10580               result=yes
10581             fi
10582           else
10583             result=$wxUSE_SVG
10584           fi
10585
10586           { echo "$as_me:$LINENO: result: $result" >&5
10587 echo "${ECHO_T}$result" >&6; }
10588
10589
10590
10591
10592           enablestring=
10593           defaultval=$wxUSE_ALL_FEATURES
10594           if test -z "$defaultval"; then
10595               if test x"$enablestring" = xdisable; then
10596                   defaultval=yes
10597               else
10598                   defaultval=no
10599               fi
10600           fi
10601
10602           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10603 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10604           # Check whether --enable-clipboard was given.
10605 if test "${enable_clipboard+set}" = set; then
10606   enableval=$enable_clipboard;
10607                           if test "$enableval" = yes; then
10608                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10609                           else
10610                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10611                           fi
10612                           cache=yes
10613
10614 else
10615
10616                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10617                           if test "x$LINE" != x ; then
10618                               eval "DEFAULT_$LINE"
10619                               cache=yes
10620                           else
10621                               cache=no
10622                           fi
10623
10624                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10625
10626 fi
10627
10628
10629           eval "$wx_cv_use_clipboard"
10630           if test "x$cache" = xyes; then
10631             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10632           fi
10633
10634           if test x"$enablestring" = xdisable; then
10635             if test $wxUSE_CLIPBOARD = yes; then
10636               result=no
10637             else
10638               result=yes
10639             fi
10640           else
10641             result=$wxUSE_CLIPBOARD
10642           fi
10643
10644           { echo "$as_me:$LINENO: result: $result" >&5
10645 echo "${ECHO_T}$result" >&6; }
10646
10647
10648           enablestring=
10649           defaultval=$wxUSE_ALL_FEATURES
10650           if test -z "$defaultval"; then
10651               if test x"$enablestring" = xdisable; then
10652                   defaultval=yes
10653               else
10654                   defaultval=no
10655               fi
10656           fi
10657
10658           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10659 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10660           # Check whether --enable-dnd was given.
10661 if test "${enable_dnd+set}" = set; then
10662   enableval=$enable_dnd;
10663                           if test "$enableval" = yes; then
10664                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10665                           else
10666                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10667                           fi
10668                           cache=yes
10669
10670 else
10671
10672                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10673                           if test "x$LINE" != x ; then
10674                               eval "DEFAULT_$LINE"
10675                               cache=yes
10676                           else
10677                               cache=no
10678                           fi
10679
10680                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10681
10682 fi
10683
10684
10685           eval "$wx_cv_use_dnd"
10686           if test "x$cache" = xyes; then
10687             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10688           fi
10689
10690           if test x"$enablestring" = xdisable; then
10691             if test $wxUSE_DRAG_AND_DROP = yes; then
10692               result=no
10693             else
10694               result=yes
10695             fi
10696           else
10697             result=$wxUSE_DRAG_AND_DROP
10698           fi
10699
10700           { echo "$as_me:$LINENO: result: $result" >&5
10701 echo "${ECHO_T}$result" >&6; }
10702
10703
10704           enablestring=
10705           defaultval=$wxUSE_ALL_FEATURES
10706           if test -z "$defaultval"; then
10707               if test x"$enablestring" = xdisable; then
10708                   defaultval=yes
10709               else
10710                   defaultval=no
10711               fi
10712           fi
10713
10714           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10715 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10716           # Check whether --enable-metafile was given.
10717 if test "${enable_metafile+set}" = set; then
10718   enableval=$enable_metafile;
10719                           if test "$enableval" = yes; then
10720                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10721                           else
10722                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10723                           fi
10724                           cache=yes
10725
10726 else
10727
10728                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10729                           if test "x$LINE" != x ; then
10730                               eval "DEFAULT_$LINE"
10731                               cache=yes
10732                           else
10733                               cache=no
10734                           fi
10735
10736                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10737
10738 fi
10739
10740
10741           eval "$wx_cv_use_metafile"
10742           if test "x$cache" = xyes; then
10743             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10744           fi
10745
10746           if test x"$enablestring" = xdisable; then
10747             if test $wxUSE_METAFILE = yes; then
10748               result=no
10749             else
10750               result=yes
10751             fi
10752           else
10753             result=$wxUSE_METAFILE
10754           fi
10755
10756           { echo "$as_me:$LINENO: result: $result" >&5
10757 echo "${ECHO_T}$result" >&6; }
10758
10759
10760
10761 DEFAULT_wxUSE_CONTROLS=none
10762
10763           enablestring=disable
10764           defaultval=
10765           if test -z "$defaultval"; then
10766               if test x"$enablestring" = xdisable; then
10767                   defaultval=yes
10768               else
10769                   defaultval=no
10770               fi
10771           fi
10772
10773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10774 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10775           # Check whether --enable-controls was given.
10776 if test "${enable_controls+set}" = set; then
10777   enableval=$enable_controls;
10778                           if test "$enableval" = yes; then
10779                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10780                           else
10781                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10782                           fi
10783                           cache=yes
10784
10785 else
10786
10787                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10788                           if test "x$LINE" != x ; then
10789                               eval "DEFAULT_$LINE"
10790                               cache=yes
10791                           else
10792                               cache=no
10793                           fi
10794
10795                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10796
10797 fi
10798
10799
10800           eval "$wx_cv_use_controls"
10801           if test "x$cache" = xyes; then
10802             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10803           fi
10804
10805           if test x"$enablestring" = xdisable; then
10806             if test $wxUSE_CONTROLS = yes; then
10807               result=no
10808             else
10809               result=yes
10810             fi
10811           else
10812             result=$wxUSE_CONTROLS
10813           fi
10814
10815           { echo "$as_me:$LINENO: result: $result" >&5
10816 echo "${ECHO_T}$result" >&6; }
10817
10818
10819 if test "$wxUSE_CONTROLS" = "yes"; then
10820   DEFAULT_wxUSE_ACCEL=yes
10821   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10822   DEFAULT_wxUSE_BMPBUTTON=yes
10823   DEFAULT_wxUSE_BUTTON=yes
10824   DEFAULT_wxUSE_CALCTRL=yes
10825   DEFAULT_wxUSE_CARET=yes
10826   DEFAULT_wxUSE_COMBOBOX=yes
10827   DEFAULT_wxUSE_CHECKBOX=yes
10828   DEFAULT_wxUSE_CHECKLISTBOX=yes
10829   DEFAULT_wxUSE_CHOICE=yes
10830   DEFAULT_wxUSE_CHOICEBOOK=yes
10831   DEFAULT_wxUSE_COLLPANE=yes
10832   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10833   DEFAULT_wxUSE_COMBOBOX=yes
10834   DEFAULT_wxUSE_DATEPICKCTRL=yes
10835   DEFAULT_wxUSE_DISPLAY=yes
10836   DEFAULT_wxUSE_DETECT_SM=yes
10837   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10838   DEFAULT_wxUSE_FILECTRL=yes
10839   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10840   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10841   DEFAULT_wxUSE_GAUGE=yes
10842   DEFAULT_wxUSE_GRID=yes
10843   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10844   DEFAULT_wxUSE_DATAVIEWCTRL=no
10845   DEFAULT_wxUSE_IMAGLIST=yes
10846   DEFAULT_wxUSE_LISTBOOK=yes
10847   DEFAULT_wxUSE_LISTBOX=yes
10848   DEFAULT_wxUSE_LISTCTRL=yes
10849   DEFAULT_wxUSE_NOTEBOOK=yes
10850   DEFAULT_wxUSE_RADIOBOX=yes
10851   DEFAULT_wxUSE_RADIOBTN=yes
10852   DEFAULT_wxUSE_SASH=yes
10853   DEFAULT_wxUSE_SCROLLBAR=yes
10854   DEFAULT_wxUSE_SEARCHCTRL=yes
10855   DEFAULT_wxUSE_SLIDER=yes
10856   DEFAULT_wxUSE_SPINBTN=yes
10857   DEFAULT_wxUSE_SPINCTRL=yes
10858   DEFAULT_wxUSE_SPLITTER=yes
10859   DEFAULT_wxUSE_STATBMP=yes
10860   DEFAULT_wxUSE_STATBOX=yes
10861   DEFAULT_wxUSE_STATLINE=yes
10862   DEFAULT_wxUSE_STATUSBAR=yes
10863   DEFAULT_wxUSE_TAB_DIALOG=yes
10864   DEFAULT_wxUSE_TOGGLEBTN=yes
10865   DEFAULT_wxUSE_TOOLBAR=yes
10866   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10867   DEFAULT_wxUSE_TOOLTIPS=yes
10868   DEFAULT_wxUSE_TREEBOOK=yes
10869   DEFAULT_wxUSE_TOOLBOOK=yes
10870   DEFAULT_wxUSE_TREECTRL=yes
10871   DEFAULT_wxUSE_POPUPWIN=yes
10872   DEFAULT_wxUSE_TIPWINDOW=yes
10873 elif test "$wxUSE_CONTROLS" = "no"; then
10874   DEFAULT_wxUSE_ACCEL=no
10875   DEFAULT_wxUSE_ANIMATIONCTRL=no
10876   DEFAULT_wxUSE_BMPBUTTON=no
10877   DEFAULT_wxUSE_BUTTON=no
10878   DEFAULT_wxUSE_CALCTRL=no
10879   DEFAULT_wxUSE_CARET=no
10880   DEFAULT_wxUSE_COLLPANE=no
10881   DEFAULT_wxUSE_COMBOBOX=no
10882   DEFAULT_wxUSE_CHECKBOX=no
10883   DEFAULT_wxUSE_CHECKLISTBOX=no
10884   DEFAULT_wxUSE_CHOICE=no
10885   DEFAULT_wxUSE_CHOICEBOOK=no
10886   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10887   DEFAULT_wxUSE_COMBOBOX=no
10888   DEFAULT_wxUSE_DATEPICKCTRL=no
10889   DEFAULT_wxUSE_DISPLAY=no
10890   DEFAULT_wxUSE_DETECT_SM=no
10891   DEFAULT_wxUSE_DIRPICKERCTRL=no
10892   DEFAULT_wxUSE_FILECTRL=no
10893   DEFAULT_wxUSE_FILEPICKERCTRL=no
10894   DEFAULT_wxUSE_FONTPICKERCTRL=no
10895   DEFAULT_wxUSE_GAUGE=no
10896   DEFAULT_wxUSE_GRID=no
10897   DEFAULT_wxUSE_HYPERLINKCTRL=no
10898   DEFAULT_wxUSE_DATAVIEWCTRL=no
10899   DEFAULT_wxUSE_IMAGLIST=no
10900   DEFAULT_wxUSE_LISTBOOK=no
10901   DEFAULT_wxUSE_LISTBOX=no
10902   DEFAULT_wxUSE_LISTCTRL=no
10903   DEFAULT_wxUSE_NOTEBOOK=no
10904   DEFAULT_wxUSE_RADIOBOX=no
10905   DEFAULT_wxUSE_RADIOBTN=no
10906   DEFAULT_wxUSE_SASH=no
10907   DEFAULT_wxUSE_SCROLLBAR=no
10908   DEFAULT_wxUSE_SEARCHCTRL=no
10909   DEFAULT_wxUSE_SLIDER=no
10910   DEFAULT_wxUSE_SPINBTN=no
10911   DEFAULT_wxUSE_SPINCTRL=no
10912   DEFAULT_wxUSE_SPLITTER=no
10913   DEFAULT_wxUSE_STATBMP=no
10914   DEFAULT_wxUSE_STATBOX=no
10915   DEFAULT_wxUSE_STATLINE=no
10916   DEFAULT_wxUSE_STATUSBAR=no
10917   DEFAULT_wxUSE_TAB_DIALOG=no
10918   DEFAULT_wxUSE_TOGGLEBTN=no
10919   DEFAULT_wxUSE_TOOLBAR=no
10920   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10921   DEFAULT_wxUSE_TOOLTIPS=no
10922   DEFAULT_wxUSE_TREEBOOK=no
10923   DEFAULT_wxUSE_TOOLBOOK=no
10924   DEFAULT_wxUSE_TREECTRL=no
10925   DEFAULT_wxUSE_POPUPWIN=no
10926   DEFAULT_wxUSE_TIPWINDOW=no
10927 fi
10928
10929
10930           enablestring=
10931           defaultval=$wxUSE_ALL_FEATURES
10932           if test -z "$defaultval"; then
10933               if test x"$enablestring" = xdisable; then
10934                   defaultval=yes
10935               else
10936                   defaultval=no
10937               fi
10938           fi
10939
10940           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10941 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10942           # Check whether --enable-accel was given.
10943 if test "${enable_accel+set}" = set; then
10944   enableval=$enable_accel;
10945                           if test "$enableval" = yes; then
10946                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10947                           else
10948                             wx_cv_use_accel='wxUSE_ACCEL=no'
10949                           fi
10950                           cache=yes
10951
10952 else
10953
10954                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10955                           if test "x$LINE" != x ; then
10956                               eval "DEFAULT_$LINE"
10957                               cache=yes
10958                           else
10959                               cache=no
10960                           fi
10961
10962                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10963
10964 fi
10965
10966
10967           eval "$wx_cv_use_accel"
10968           if test "x$cache" = xyes; then
10969             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10970           fi
10971
10972           if test x"$enablestring" = xdisable; then
10973             if test $wxUSE_ACCEL = yes; then
10974               result=no
10975             else
10976               result=yes
10977             fi
10978           else
10979             result=$wxUSE_ACCEL
10980           fi
10981
10982           { echo "$as_me:$LINENO: result: $result" >&5
10983 echo "${ECHO_T}$result" >&6; }
10984
10985
10986           enablestring=
10987           defaultval=$wxUSE_ALL_FEATURES
10988           if test -z "$defaultval"; then
10989               if test x"$enablestring" = xdisable; then
10990                   defaultval=yes
10991               else
10992                   defaultval=no
10993               fi
10994           fi
10995
10996           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10997 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10998           # Check whether --enable-animatectrl was given.
10999 if test "${enable_animatectrl+set}" = set; then
11000   enableval=$enable_animatectrl;
11001                           if test "$enableval" = yes; then
11002                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
11003                           else
11004                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
11005                           fi
11006                           cache=yes
11007
11008 else
11009
11010                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
11011                           if test "x$LINE" != x ; then
11012                               eval "DEFAULT_$LINE"
11013                               cache=yes
11014                           else
11015                               cache=no
11016                           fi
11017
11018                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
11019
11020 fi
11021
11022
11023           eval "$wx_cv_use_animatectrl"
11024           if test "x$cache" = xyes; then
11025             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
11026           fi
11027
11028           if test x"$enablestring" = xdisable; then
11029             if test $wxUSE_ANIMATIONCTRL = yes; then
11030               result=no
11031             else
11032               result=yes
11033             fi
11034           else
11035             result=$wxUSE_ANIMATIONCTRL
11036           fi
11037
11038           { echo "$as_me:$LINENO: result: $result" >&5
11039 echo "${ECHO_T}$result" >&6; }
11040
11041
11042           enablestring=
11043           defaultval=$wxUSE_ALL_FEATURES
11044           if test -z "$defaultval"; then
11045               if test x"$enablestring" = xdisable; then
11046                   defaultval=yes
11047               else
11048                   defaultval=no
11049               fi
11050           fi
11051
11052           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
11053 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
11054           # Check whether --enable-button was given.
11055 if test "${enable_button+set}" = set; then
11056   enableval=$enable_button;
11057                           if test "$enableval" = yes; then
11058                             wx_cv_use_button='wxUSE_BUTTON=yes'
11059                           else
11060                             wx_cv_use_button='wxUSE_BUTTON=no'
11061                           fi
11062                           cache=yes
11063
11064 else
11065
11066                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
11067                           if test "x$LINE" != x ; then
11068                               eval "DEFAULT_$LINE"
11069                               cache=yes
11070                           else
11071                               cache=no
11072                           fi
11073
11074                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
11075
11076 fi
11077
11078
11079           eval "$wx_cv_use_button"
11080           if test "x$cache" = xyes; then
11081             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
11082           fi
11083
11084           if test x"$enablestring" = xdisable; then
11085             if test $wxUSE_BUTTON = yes; then
11086               result=no
11087             else
11088               result=yes
11089             fi
11090           else
11091             result=$wxUSE_BUTTON
11092           fi
11093
11094           { echo "$as_me:$LINENO: result: $result" >&5
11095 echo "${ECHO_T}$result" >&6; }
11096
11097
11098           enablestring=
11099           defaultval=$wxUSE_ALL_FEATURES
11100           if test -z "$defaultval"; then
11101               if test x"$enablestring" = xdisable; then
11102                   defaultval=yes
11103               else
11104                   defaultval=no
11105               fi
11106           fi
11107
11108           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
11109 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
11110           # Check whether --enable-bmpbutton was given.
11111 if test "${enable_bmpbutton+set}" = set; then
11112   enableval=$enable_bmpbutton;
11113                           if test "$enableval" = yes; then
11114                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
11115                           else
11116                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
11117                           fi
11118                           cache=yes
11119
11120 else
11121
11122                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
11123                           if test "x$LINE" != x ; then
11124                               eval "DEFAULT_$LINE"
11125                               cache=yes
11126                           else
11127                               cache=no
11128                           fi
11129
11130                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
11131
11132 fi
11133
11134
11135           eval "$wx_cv_use_bmpbutton"
11136           if test "x$cache" = xyes; then
11137             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
11138           fi
11139
11140           if test x"$enablestring" = xdisable; then
11141             if test $wxUSE_BMPBUTTON = yes; then
11142               result=no
11143             else
11144               result=yes
11145             fi
11146           else
11147             result=$wxUSE_BMPBUTTON
11148           fi
11149
11150           { echo "$as_me:$LINENO: result: $result" >&5
11151 echo "${ECHO_T}$result" >&6; }
11152
11153
11154           enablestring=
11155           defaultval=$wxUSE_ALL_FEATURES
11156           if test -z "$defaultval"; then
11157               if test x"$enablestring" = xdisable; then
11158                   defaultval=yes
11159               else
11160                   defaultval=no
11161               fi
11162           fi
11163
11164           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
11165 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
11166           # Check whether --enable-bmpcombobox was given.
11167 if test "${enable_bmpcombobox+set}" = set; then
11168   enableval=$enable_bmpcombobox;
11169                           if test "$enableval" = yes; then
11170                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
11171                           else
11172                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
11173                           fi
11174                           cache=yes
11175
11176 else
11177
11178                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
11179                           if test "x$LINE" != x ; then
11180                               eval "DEFAULT_$LINE"
11181                               cache=yes
11182                           else
11183                               cache=no
11184                           fi
11185
11186                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
11187
11188 fi
11189
11190
11191           eval "$wx_cv_use_bmpcombobox"
11192           if test "x$cache" = xyes; then
11193             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
11194           fi
11195
11196           if test x"$enablestring" = xdisable; then
11197             if test $wxUSE_BITMAPCOMBOBOX = yes; then
11198               result=no
11199             else
11200               result=yes
11201             fi
11202           else
11203             result=$wxUSE_BITMAPCOMBOBOX
11204           fi
11205
11206           { echo "$as_me:$LINENO: result: $result" >&5
11207 echo "${ECHO_T}$result" >&6; }
11208
11209
11210           enablestring=
11211           defaultval=$wxUSE_ALL_FEATURES
11212           if test -z "$defaultval"; then
11213               if test x"$enablestring" = xdisable; then
11214                   defaultval=yes
11215               else
11216                   defaultval=no
11217               fi
11218           fi
11219
11220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
11221 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
11222           # Check whether --enable-calendar was given.
11223 if test "${enable_calendar+set}" = set; then
11224   enableval=$enable_calendar;
11225                           if test "$enableval" = yes; then
11226                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
11227                           else
11228                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
11229                           fi
11230                           cache=yes
11231
11232 else
11233
11234                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
11235                           if test "x$LINE" != x ; then
11236                               eval "DEFAULT_$LINE"
11237                               cache=yes
11238                           else
11239                               cache=no
11240                           fi
11241
11242                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
11243
11244 fi
11245
11246
11247           eval "$wx_cv_use_calendar"
11248           if test "x$cache" = xyes; then
11249             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
11250           fi
11251
11252           if test x"$enablestring" = xdisable; then
11253             if test $wxUSE_CALCTRL = yes; then
11254               result=no
11255             else
11256               result=yes
11257             fi
11258           else
11259             result=$wxUSE_CALCTRL
11260           fi
11261
11262           { echo "$as_me:$LINENO: result: $result" >&5
11263 echo "${ECHO_T}$result" >&6; }
11264
11265
11266           enablestring=
11267           defaultval=$wxUSE_ALL_FEATURES
11268           if test -z "$defaultval"; then
11269               if test x"$enablestring" = xdisable; then
11270                   defaultval=yes
11271               else
11272                   defaultval=no
11273               fi
11274           fi
11275
11276           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
11277 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
11278           # Check whether --enable-caret was given.
11279 if test "${enable_caret+set}" = set; then
11280   enableval=$enable_caret;
11281                           if test "$enableval" = yes; then
11282                             wx_cv_use_caret='wxUSE_CARET=yes'
11283                           else
11284                             wx_cv_use_caret='wxUSE_CARET=no'
11285                           fi
11286                           cache=yes
11287
11288 else
11289
11290                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
11291                           if test "x$LINE" != x ; then
11292                               eval "DEFAULT_$LINE"
11293                               cache=yes
11294                           else
11295                               cache=no
11296                           fi
11297
11298                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
11299
11300 fi
11301
11302
11303           eval "$wx_cv_use_caret"
11304           if test "x$cache" = xyes; then
11305             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
11306           fi
11307
11308           if test x"$enablestring" = xdisable; then
11309             if test $wxUSE_CARET = yes; then
11310               result=no
11311             else
11312               result=yes
11313             fi
11314           else
11315             result=$wxUSE_CARET
11316           fi
11317
11318           { echo "$as_me:$LINENO: result: $result" >&5
11319 echo "${ECHO_T}$result" >&6; }
11320
11321
11322           enablestring=
11323           defaultval=$wxUSE_ALL_FEATURES
11324           if test -z "$defaultval"; then
11325               if test x"$enablestring" = xdisable; then
11326                   defaultval=yes
11327               else
11328                   defaultval=no
11329               fi
11330           fi
11331
11332           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
11333 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
11334           # Check whether --enable-checkbox was given.
11335 if test "${enable_checkbox+set}" = set; then
11336   enableval=$enable_checkbox;
11337                           if test "$enableval" = yes; then
11338                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
11339                           else
11340                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
11341                           fi
11342                           cache=yes
11343
11344 else
11345
11346                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
11347                           if test "x$LINE" != x ; then
11348                               eval "DEFAULT_$LINE"
11349                               cache=yes
11350                           else
11351                               cache=no
11352                           fi
11353
11354                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
11355
11356 fi
11357
11358
11359           eval "$wx_cv_use_checkbox"
11360           if test "x$cache" = xyes; then
11361             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
11362           fi
11363
11364           if test x"$enablestring" = xdisable; then
11365             if test $wxUSE_CHECKBOX = yes; then
11366               result=no
11367             else
11368               result=yes
11369             fi
11370           else
11371             result=$wxUSE_CHECKBOX
11372           fi
11373
11374           { echo "$as_me:$LINENO: result: $result" >&5
11375 echo "${ECHO_T}$result" >&6; }
11376
11377
11378           enablestring=
11379           defaultval=$wxUSE_ALL_FEATURES
11380           if test -z "$defaultval"; then
11381               if test x"$enablestring" = xdisable; then
11382                   defaultval=yes
11383               else
11384                   defaultval=no
11385               fi
11386           fi
11387
11388           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
11389 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
11390           # Check whether --enable-checklst was given.
11391 if test "${enable_checklst+set}" = set; then
11392   enableval=$enable_checklst;
11393                           if test "$enableval" = yes; then
11394                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11395                           else
11396                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11397                           fi
11398                           cache=yes
11399
11400 else
11401
11402                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11403                           if test "x$LINE" != x ; then
11404                               eval "DEFAULT_$LINE"
11405                               cache=yes
11406                           else
11407                               cache=no
11408                           fi
11409
11410                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11411
11412 fi
11413
11414
11415           eval "$wx_cv_use_checklst"
11416           if test "x$cache" = xyes; then
11417             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11418           fi
11419
11420           if test x"$enablestring" = xdisable; then
11421             if test $wxUSE_CHECKLST = yes; then
11422               result=no
11423             else
11424               result=yes
11425             fi
11426           else
11427             result=$wxUSE_CHECKLST
11428           fi
11429
11430           { echo "$as_me:$LINENO: result: $result" >&5
11431 echo "${ECHO_T}$result" >&6; }
11432
11433
11434           enablestring=
11435           defaultval=$wxUSE_ALL_FEATURES
11436           if test -z "$defaultval"; then
11437               if test x"$enablestring" = xdisable; then
11438                   defaultval=yes
11439               else
11440                   defaultval=no
11441               fi
11442           fi
11443
11444           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11445 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11446           # Check whether --enable-choice was given.
11447 if test "${enable_choice+set}" = set; then
11448   enableval=$enable_choice;
11449                           if test "$enableval" = yes; then
11450                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11451                           else
11452                             wx_cv_use_choice='wxUSE_CHOICE=no'
11453                           fi
11454                           cache=yes
11455
11456 else
11457
11458                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11459                           if test "x$LINE" != x ; then
11460                               eval "DEFAULT_$LINE"
11461                               cache=yes
11462                           else
11463                               cache=no
11464                           fi
11465
11466                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11467
11468 fi
11469
11470
11471           eval "$wx_cv_use_choice"
11472           if test "x$cache" = xyes; then
11473             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11474           fi
11475
11476           if test x"$enablestring" = xdisable; then
11477             if test $wxUSE_CHOICE = yes; then
11478               result=no
11479             else
11480               result=yes
11481             fi
11482           else
11483             result=$wxUSE_CHOICE
11484           fi
11485
11486           { echo "$as_me:$LINENO: result: $result" >&5
11487 echo "${ECHO_T}$result" >&6; }
11488
11489
11490           enablestring=
11491           defaultval=$wxUSE_ALL_FEATURES
11492           if test -z "$defaultval"; then
11493               if test x"$enablestring" = xdisable; then
11494                   defaultval=yes
11495               else
11496                   defaultval=no
11497               fi
11498           fi
11499
11500           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11501 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11502           # Check whether --enable-choicebook was given.
11503 if test "${enable_choicebook+set}" = set; then
11504   enableval=$enable_choicebook;
11505                           if test "$enableval" = yes; then
11506                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11507                           else
11508                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11509                           fi
11510                           cache=yes
11511
11512 else
11513
11514                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11515                           if test "x$LINE" != x ; then
11516                               eval "DEFAULT_$LINE"
11517                               cache=yes
11518                           else
11519                               cache=no
11520                           fi
11521
11522                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11523
11524 fi
11525
11526
11527           eval "$wx_cv_use_choicebook"
11528           if test "x$cache" = xyes; then
11529             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11530           fi
11531
11532           if test x"$enablestring" = xdisable; then
11533             if test $wxUSE_CHOICEBOOK = yes; then
11534               result=no
11535             else
11536               result=yes
11537             fi
11538           else
11539             result=$wxUSE_CHOICEBOOK
11540           fi
11541
11542           { echo "$as_me:$LINENO: result: $result" >&5
11543 echo "${ECHO_T}$result" >&6; }
11544
11545
11546           enablestring=
11547           defaultval=$wxUSE_ALL_FEATURES
11548           if test -z "$defaultval"; then
11549               if test x"$enablestring" = xdisable; then
11550                   defaultval=yes
11551               else
11552                   defaultval=no
11553               fi
11554           fi
11555
11556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11557 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11558           # Check whether --enable-collpane was given.
11559 if test "${enable_collpane+set}" = set; then
11560   enableval=$enable_collpane;
11561                           if test "$enableval" = yes; then
11562                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11563                           else
11564                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11565                           fi
11566                           cache=yes
11567
11568 else
11569
11570                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11571                           if test "x$LINE" != x ; then
11572                               eval "DEFAULT_$LINE"
11573                               cache=yes
11574                           else
11575                               cache=no
11576                           fi
11577
11578                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11579
11580 fi
11581
11582
11583           eval "$wx_cv_use_collpane"
11584           if test "x$cache" = xyes; then
11585             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11586           fi
11587
11588           if test x"$enablestring" = xdisable; then
11589             if test $wxUSE_COLLPANE = yes; then
11590               result=no
11591             else
11592               result=yes
11593             fi
11594           else
11595             result=$wxUSE_COLLPANE
11596           fi
11597
11598           { echo "$as_me:$LINENO: result: $result" >&5
11599 echo "${ECHO_T}$result" >&6; }
11600
11601
11602           enablestring=
11603           defaultval=$wxUSE_ALL_FEATURES
11604           if test -z "$defaultval"; then
11605               if test x"$enablestring" = xdisable; then
11606                   defaultval=yes
11607               else
11608                   defaultval=no
11609               fi
11610           fi
11611
11612           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11613 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11614           # Check whether --enable-colourpicker was given.
11615 if test "${enable_colourpicker+set}" = set; then
11616   enableval=$enable_colourpicker;
11617                           if test "$enableval" = yes; then
11618                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11619                           else
11620                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11621                           fi
11622                           cache=yes
11623
11624 else
11625
11626                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11627                           if test "x$LINE" != x ; then
11628                               eval "DEFAULT_$LINE"
11629                               cache=yes
11630                           else
11631                               cache=no
11632                           fi
11633
11634                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11635
11636 fi
11637
11638
11639           eval "$wx_cv_use_colourpicker"
11640           if test "x$cache" = xyes; then
11641             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11642           fi
11643
11644           if test x"$enablestring" = xdisable; then
11645             if test $wxUSE_COLOURPICKERCTRL = yes; then
11646               result=no
11647             else
11648               result=yes
11649             fi
11650           else
11651             result=$wxUSE_COLOURPICKERCTRL
11652           fi
11653
11654           { echo "$as_me:$LINENO: result: $result" >&5
11655 echo "${ECHO_T}$result" >&6; }
11656
11657
11658           enablestring=
11659           defaultval=$wxUSE_ALL_FEATURES
11660           if test -z "$defaultval"; then
11661               if test x"$enablestring" = xdisable; then
11662                   defaultval=yes
11663               else
11664                   defaultval=no
11665               fi
11666           fi
11667
11668           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11669 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11670           # Check whether --enable-combobox was given.
11671 if test "${enable_combobox+set}" = set; then
11672   enableval=$enable_combobox;
11673                           if test "$enableval" = yes; then
11674                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11675                           else
11676                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11677                           fi
11678                           cache=yes
11679
11680 else
11681
11682                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11683                           if test "x$LINE" != x ; then
11684                               eval "DEFAULT_$LINE"
11685                               cache=yes
11686                           else
11687                               cache=no
11688                           fi
11689
11690                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11691
11692 fi
11693
11694
11695           eval "$wx_cv_use_combobox"
11696           if test "x$cache" = xyes; then
11697             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11698           fi
11699
11700           if test x"$enablestring" = xdisable; then
11701             if test $wxUSE_COMBOBOX = yes; then
11702               result=no
11703             else
11704               result=yes
11705             fi
11706           else
11707             result=$wxUSE_COMBOBOX
11708           fi
11709
11710           { echo "$as_me:$LINENO: result: $result" >&5
11711 echo "${ECHO_T}$result" >&6; }
11712
11713
11714           enablestring=
11715           defaultval=$wxUSE_ALL_FEATURES
11716           if test -z "$defaultval"; then
11717               if test x"$enablestring" = xdisable; then
11718                   defaultval=yes
11719               else
11720                   defaultval=no
11721               fi
11722           fi
11723
11724           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11725 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11726           # Check whether --enable-comboctrl was given.
11727 if test "${enable_comboctrl+set}" = set; then
11728   enableval=$enable_comboctrl;
11729                           if test "$enableval" = yes; then
11730                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11731                           else
11732                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11733                           fi
11734                           cache=yes
11735
11736 else
11737
11738                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11739                           if test "x$LINE" != x ; then
11740                               eval "DEFAULT_$LINE"
11741                               cache=yes
11742                           else
11743                               cache=no
11744                           fi
11745
11746                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11747
11748 fi
11749
11750
11751           eval "$wx_cv_use_comboctrl"
11752           if test "x$cache" = xyes; then
11753             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11754           fi
11755
11756           if test x"$enablestring" = xdisable; then
11757             if test $wxUSE_COMBOCTRL = yes; then
11758               result=no
11759             else
11760               result=yes
11761             fi
11762           else
11763             result=$wxUSE_COMBOCTRL
11764           fi
11765
11766           { echo "$as_me:$LINENO: result: $result" >&5
11767 echo "${ECHO_T}$result" >&6; }
11768
11769
11770           enablestring=
11771           defaultval=$wxUSE_ALL_FEATURES
11772           if test -z "$defaultval"; then
11773               if test x"$enablestring" = xdisable; then
11774                   defaultval=yes
11775               else
11776                   defaultval=no
11777               fi
11778           fi
11779
11780           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11781 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11782           # Check whether --enable-datepick was given.
11783 if test "${enable_datepick+set}" = set; then
11784   enableval=$enable_datepick;
11785                           if test "$enableval" = yes; then
11786                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11787                           else
11788                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11789                           fi
11790                           cache=yes
11791
11792 else
11793
11794                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11795                           if test "x$LINE" != x ; then
11796                               eval "DEFAULT_$LINE"
11797                               cache=yes
11798                           else
11799                               cache=no
11800                           fi
11801
11802                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11803
11804 fi
11805
11806
11807           eval "$wx_cv_use_datepick"
11808           if test "x$cache" = xyes; then
11809             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11810           fi
11811
11812           if test x"$enablestring" = xdisable; then
11813             if test $wxUSE_DATEPICKCTRL = yes; then
11814               result=no
11815             else
11816               result=yes
11817             fi
11818           else
11819             result=$wxUSE_DATEPICKCTRL
11820           fi
11821
11822           { echo "$as_me:$LINENO: result: $result" >&5
11823 echo "${ECHO_T}$result" >&6; }
11824
11825
11826           enablestring=
11827           defaultval=$wxUSE_ALL_FEATURES
11828           if test -z "$defaultval"; then
11829               if test x"$enablestring" = xdisable; then
11830                   defaultval=yes
11831               else
11832                   defaultval=no
11833               fi
11834           fi
11835
11836           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11837 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11838           # Check whether --enable-dirpicker was given.
11839 if test "${enable_dirpicker+set}" = set; then
11840   enableval=$enable_dirpicker;
11841                           if test "$enableval" = yes; then
11842                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11843                           else
11844                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11845                           fi
11846                           cache=yes
11847
11848 else
11849
11850                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11851                           if test "x$LINE" != x ; then
11852                               eval "DEFAULT_$LINE"
11853                               cache=yes
11854                           else
11855                               cache=no
11856                           fi
11857
11858                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11859
11860 fi
11861
11862
11863           eval "$wx_cv_use_dirpicker"
11864           if test "x$cache" = xyes; then
11865             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11866           fi
11867
11868           if test x"$enablestring" = xdisable; then
11869             if test $wxUSE_DIRPICKERCTRL = yes; then
11870               result=no
11871             else
11872               result=yes
11873             fi
11874           else
11875             result=$wxUSE_DIRPICKERCTRL
11876           fi
11877
11878           { echo "$as_me:$LINENO: result: $result" >&5
11879 echo "${ECHO_T}$result" >&6; }
11880
11881
11882           enablestring=
11883           defaultval=$wxUSE_ALL_FEATURES
11884           if test -z "$defaultval"; then
11885               if test x"$enablestring" = xdisable; then
11886                   defaultval=yes
11887               else
11888                   defaultval=no
11889               fi
11890           fi
11891
11892           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11893 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11894           # Check whether --enable-display was given.
11895 if test "${enable_display+set}" = set; then
11896   enableval=$enable_display;
11897                           if test "$enableval" = yes; then
11898                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11899                           else
11900                             wx_cv_use_display='wxUSE_DISPLAY=no'
11901                           fi
11902                           cache=yes
11903
11904 else
11905
11906                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11907                           if test "x$LINE" != x ; then
11908                               eval "DEFAULT_$LINE"
11909                               cache=yes
11910                           else
11911                               cache=no
11912                           fi
11913
11914                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11915
11916 fi
11917
11918
11919           eval "$wx_cv_use_display"
11920           if test "x$cache" = xyes; then
11921             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11922           fi
11923
11924           if test x"$enablestring" = xdisable; then
11925             if test $wxUSE_DISPLAY = yes; then
11926               result=no
11927             else
11928               result=yes
11929             fi
11930           else
11931             result=$wxUSE_DISPLAY
11932           fi
11933
11934           { echo "$as_me:$LINENO: result: $result" >&5
11935 echo "${ECHO_T}$result" >&6; }
11936
11937
11938           enablestring=
11939           defaultval=$wxUSE_ALL_FEATURES
11940           if test -z "$defaultval"; then
11941               if test x"$enablestring" = xdisable; then
11942                   defaultval=yes
11943               else
11944                   defaultval=no
11945               fi
11946           fi
11947
11948           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11949 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11950           # Check whether --enable-detect_sm was given.
11951 if test "${enable_detect_sm+set}" = set; then
11952   enableval=$enable_detect_sm;
11953                           if test "$enableval" = yes; then
11954                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11955                           else
11956                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11957                           fi
11958                           cache=yes
11959
11960 else
11961
11962                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11963                           if test "x$LINE" != x ; then
11964                               eval "DEFAULT_$LINE"
11965                               cache=yes
11966                           else
11967                               cache=no
11968                           fi
11969
11970                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11971
11972 fi
11973
11974
11975           eval "$wx_cv_use_detect_sm"
11976           if test "x$cache" = xyes; then
11977             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11978           fi
11979
11980           if test x"$enablestring" = xdisable; then
11981             if test $wxUSE_DETECT_SM = yes; then
11982               result=no
11983             else
11984               result=yes
11985             fi
11986           else
11987             result=$wxUSE_DETECT_SM
11988           fi
11989
11990           { echo "$as_me:$LINENO: result: $result" >&5
11991 echo "${ECHO_T}$result" >&6; }
11992
11993
11994           enablestring=
11995           defaultval=$wxUSE_ALL_FEATURES
11996           if test -z "$defaultval"; then
11997               if test x"$enablestring" = xdisable; then
11998                   defaultval=yes
11999               else
12000                   defaultval=no
12001               fi
12002           fi
12003
12004           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
12005 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
12006           # Check whether --enable-editablebox was given.
12007 if test "${enable_editablebox+set}" = set; then
12008   enableval=$enable_editablebox;
12009                           if test "$enableval" = yes; then
12010                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
12011                           else
12012                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
12013                           fi
12014                           cache=yes
12015
12016 else
12017
12018                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
12019                           if test "x$LINE" != x ; then
12020                               eval "DEFAULT_$LINE"
12021                               cache=yes
12022                           else
12023                               cache=no
12024                           fi
12025
12026                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
12027
12028 fi
12029
12030
12031           eval "$wx_cv_use_editablebox"
12032           if test "x$cache" = xyes; then
12033             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
12034           fi
12035
12036           if test x"$enablestring" = xdisable; then
12037             if test $wxUSE_EDITABLELISTBOX = yes; then
12038               result=no
12039             else
12040               result=yes
12041             fi
12042           else
12043             result=$wxUSE_EDITABLELISTBOX
12044           fi
12045
12046           { echo "$as_me:$LINENO: result: $result" >&5
12047 echo "${ECHO_T}$result" >&6; }
12048
12049
12050           enablestring=
12051           defaultval=$wxUSE_ALL_FEATURES
12052           if test -z "$defaultval"; then
12053               if test x"$enablestring" = xdisable; then
12054                   defaultval=yes
12055               else
12056                   defaultval=no
12057               fi
12058           fi
12059
12060           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
12061 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
12062           # Check whether --enable-filepicker was given.
12063 if test "${enable_filepicker+set}" = set; then
12064   enableval=$enable_filepicker;
12065                           if test "$enableval" = yes; then
12066                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
12067                           else
12068                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
12069                           fi
12070                           cache=yes
12071
12072 else
12073
12074                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
12075                           if test "x$LINE" != x ; then
12076                               eval "DEFAULT_$LINE"
12077                               cache=yes
12078                           else
12079                               cache=no
12080                           fi
12081
12082                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
12083
12084 fi
12085
12086
12087           eval "$wx_cv_use_filepicker"
12088           if test "x$cache" = xyes; then
12089             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12090           fi
12091
12092           if test x"$enablestring" = xdisable; then
12093             if test $wxUSE_FILEPICKERCTRL = yes; then
12094               result=no
12095             else
12096               result=yes
12097             fi
12098           else
12099             result=$wxUSE_FILEPICKERCTRL
12100           fi
12101
12102           { echo "$as_me:$LINENO: result: $result" >&5
12103 echo "${ECHO_T}$result" >&6; }
12104
12105
12106           enablestring=
12107           defaultval=$wxUSE_ALL_FEATURES
12108           if test -z "$defaultval"; then
12109               if test x"$enablestring" = xdisable; then
12110                   defaultval=yes
12111               else
12112                   defaultval=no
12113               fi
12114           fi
12115
12116           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filectrl" >&5
12117 echo $ECHO_N "checking for --${enablestring:-enable}-filectrl... $ECHO_C" >&6; }
12118           # Check whether --enable-filectrl was given.
12119 if test "${enable_filectrl+set}" = set; then
12120   enableval=$enable_filectrl;
12121                           if test "$enableval" = yes; then
12122                             wx_cv_use_filectrl='wxUSE_FILECTRL=yes'
12123                           else
12124                             wx_cv_use_filectrl='wxUSE_FILECTRL=no'
12125                           fi
12126                           cache=yes
12127
12128 else
12129
12130                           LINE=`grep "^wxUSE_FILECTRL=" ${wx_arg_cache_file}`
12131                           if test "x$LINE" != x ; then
12132                               eval "DEFAULT_$LINE"
12133                               cache=yes
12134                           else
12135                               cache=no
12136                           fi
12137
12138                           wx_cv_use_filectrl='wxUSE_FILECTRL=${'DEFAULT_wxUSE_FILECTRL":-$defaultval}"
12139
12140 fi
12141
12142
12143           eval "$wx_cv_use_filectrl"
12144           if test "x$cache" = xyes; then
12145             echo "wxUSE_FILECTRL=$wxUSE_FILECTRL" >> ${wx_arg_cache_file}.tmp
12146           fi
12147
12148           if test x"$enablestring" = xdisable; then
12149             if test $wxUSE_FILECTRL = yes; then
12150               result=no
12151             else
12152               result=yes
12153             fi
12154           else
12155             result=$wxUSE_FILECTRL
12156           fi
12157
12158           { echo "$as_me:$LINENO: result: $result" >&5
12159 echo "${ECHO_T}$result" >&6; }
12160
12161
12162           enablestring=
12163           defaultval=$wxUSE_ALL_FEATURES
12164           if test -z "$defaultval"; then
12165               if test x"$enablestring" = xdisable; then
12166                   defaultval=yes
12167               else
12168                   defaultval=no
12169               fi
12170           fi
12171
12172           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
12173 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
12174           # Check whether --enable-fontpicker was given.
12175 if test "${enable_fontpicker+set}" = set; then
12176   enableval=$enable_fontpicker;
12177                           if test "$enableval" = yes; then
12178                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
12179                           else
12180                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
12181                           fi
12182                           cache=yes
12183
12184 else
12185
12186                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
12187                           if test "x$LINE" != x ; then
12188                               eval "DEFAULT_$LINE"
12189                               cache=yes
12190                           else
12191                               cache=no
12192                           fi
12193
12194                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
12195
12196 fi
12197
12198
12199           eval "$wx_cv_use_fontpicker"
12200           if test "x$cache" = xyes; then
12201             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
12202           fi
12203
12204           if test x"$enablestring" = xdisable; then
12205             if test $wxUSE_FONTPICKERCTRL = yes; then
12206               result=no
12207             else
12208               result=yes
12209             fi
12210           else
12211             result=$wxUSE_FONTPICKERCTRL
12212           fi
12213
12214           { echo "$as_me:$LINENO: result: $result" >&5
12215 echo "${ECHO_T}$result" >&6; }
12216
12217
12218           enablestring=
12219           defaultval=$wxUSE_ALL_FEATURES
12220           if test -z "$defaultval"; then
12221               if test x"$enablestring" = xdisable; then
12222                   defaultval=yes
12223               else
12224                   defaultval=no
12225               fi
12226           fi
12227
12228           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
12229 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
12230           # Check whether --enable-gauge was given.
12231 if test "${enable_gauge+set}" = set; then
12232   enableval=$enable_gauge;
12233                           if test "$enableval" = yes; then
12234                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
12235                           else
12236                             wx_cv_use_gauge='wxUSE_GAUGE=no'
12237                           fi
12238                           cache=yes
12239
12240 else
12241
12242                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
12243                           if test "x$LINE" != x ; then
12244                               eval "DEFAULT_$LINE"
12245                               cache=yes
12246                           else
12247                               cache=no
12248                           fi
12249
12250                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
12251
12252 fi
12253
12254
12255           eval "$wx_cv_use_gauge"
12256           if test "x$cache" = xyes; then
12257             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
12258           fi
12259
12260           if test x"$enablestring" = xdisable; then
12261             if test $wxUSE_GAUGE = yes; then
12262               result=no
12263             else
12264               result=yes
12265             fi
12266           else
12267             result=$wxUSE_GAUGE
12268           fi
12269
12270           { echo "$as_me:$LINENO: result: $result" >&5
12271 echo "${ECHO_T}$result" >&6; }
12272
12273
12274           enablestring=
12275           defaultval=$wxUSE_ALL_FEATURES
12276           if test -z "$defaultval"; then
12277               if test x"$enablestring" = xdisable; then
12278                   defaultval=yes
12279               else
12280                   defaultval=no
12281               fi
12282           fi
12283
12284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
12285 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
12286           # Check whether --enable-grid was given.
12287 if test "${enable_grid+set}" = set; then
12288   enableval=$enable_grid;
12289                           if test "$enableval" = yes; then
12290                             wx_cv_use_grid='wxUSE_GRID=yes'
12291                           else
12292                             wx_cv_use_grid='wxUSE_GRID=no'
12293                           fi
12294                           cache=yes
12295
12296 else
12297
12298                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
12299                           if test "x$LINE" != x ; then
12300                               eval "DEFAULT_$LINE"
12301                               cache=yes
12302                           else
12303                               cache=no
12304                           fi
12305
12306                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
12307
12308 fi
12309
12310
12311           eval "$wx_cv_use_grid"
12312           if test "x$cache" = xyes; then
12313             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
12314           fi
12315
12316           if test x"$enablestring" = xdisable; then
12317             if test $wxUSE_GRID = yes; then
12318               result=no
12319             else
12320               result=yes
12321             fi
12322           else
12323             result=$wxUSE_GRID
12324           fi
12325
12326           { echo "$as_me:$LINENO: result: $result" >&5
12327 echo "${ECHO_T}$result" >&6; }
12328
12329
12330           enablestring=
12331           defaultval=$wxUSE_ALL_FEATURES
12332           if test -z "$defaultval"; then
12333               if test x"$enablestring" = xdisable; then
12334                   defaultval=yes
12335               else
12336                   defaultval=no
12337               fi
12338           fi
12339
12340           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
12341 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
12342           # Check whether --enable-dataviewctrl was given.
12343 if test "${enable_dataviewctrl+set}" = set; then
12344   enableval=$enable_dataviewctrl;
12345                           if test "$enableval" = yes; then
12346                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
12347                           else
12348                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
12349                           fi
12350                           cache=yes
12351
12352 else
12353
12354                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
12355                           if test "x$LINE" != x ; then
12356                               eval "DEFAULT_$LINE"
12357                               cache=yes
12358                           else
12359                               cache=no
12360                           fi
12361
12362                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
12363
12364 fi
12365
12366
12367           eval "$wx_cv_use_dataviewctrl"
12368           if test "x$cache" = xyes; then
12369             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
12370           fi
12371
12372           if test x"$enablestring" = xdisable; then
12373             if test $wxUSE_DATAVIEWCTRL = yes; then
12374               result=no
12375             else
12376               result=yes
12377             fi
12378           else
12379             result=$wxUSE_DATAVIEWCTRL
12380           fi
12381
12382           { echo "$as_me:$LINENO: result: $result" >&5
12383 echo "${ECHO_T}$result" >&6; }
12384
12385
12386           enablestring=
12387           defaultval=$wxUSE_ALL_FEATURES
12388           if test -z "$defaultval"; then
12389               if test x"$enablestring" = xdisable; then
12390                   defaultval=yes
12391               else
12392                   defaultval=no
12393               fi
12394           fi
12395
12396           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
12397 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
12398           # Check whether --enable-hyperlink was given.
12399 if test "${enable_hyperlink+set}" = set; then
12400   enableval=$enable_hyperlink;
12401                           if test "$enableval" = yes; then
12402                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
12403                           else
12404                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
12405                           fi
12406                           cache=yes
12407
12408 else
12409
12410                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
12411                           if test "x$LINE" != x ; then
12412                               eval "DEFAULT_$LINE"
12413                               cache=yes
12414                           else
12415                               cache=no
12416                           fi
12417
12418                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
12419
12420 fi
12421
12422
12423           eval "$wx_cv_use_hyperlink"
12424           if test "x$cache" = xyes; then
12425             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
12426           fi
12427
12428           if test x"$enablestring" = xdisable; then
12429             if test $wxUSE_HYPERLINKCTRL = yes; then
12430               result=no
12431             else
12432               result=yes
12433             fi
12434           else
12435             result=$wxUSE_HYPERLINKCTRL
12436           fi
12437
12438           { echo "$as_me:$LINENO: result: $result" >&5
12439 echo "${ECHO_T}$result" >&6; }
12440
12441
12442           enablestring=
12443           defaultval=$wxUSE_ALL_FEATURES
12444           if test -z "$defaultval"; then
12445               if test x"$enablestring" = xdisable; then
12446                   defaultval=yes
12447               else
12448                   defaultval=no
12449               fi
12450           fi
12451
12452           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
12453 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
12454           # Check whether --enable-imaglist was given.
12455 if test "${enable_imaglist+set}" = set; then
12456   enableval=$enable_imaglist;
12457                           if test "$enableval" = yes; then
12458                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
12459                           else
12460                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
12461                           fi
12462                           cache=yes
12463
12464 else
12465
12466                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
12467                           if test "x$LINE" != x ; then
12468                               eval "DEFAULT_$LINE"
12469                               cache=yes
12470                           else
12471                               cache=no
12472                           fi
12473
12474                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
12475
12476 fi
12477
12478
12479           eval "$wx_cv_use_imaglist"
12480           if test "x$cache" = xyes; then
12481             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
12482           fi
12483
12484           if test x"$enablestring" = xdisable; then
12485             if test $wxUSE_IMAGLIST = yes; then
12486               result=no
12487             else
12488               result=yes
12489             fi
12490           else
12491             result=$wxUSE_IMAGLIST
12492           fi
12493
12494           { echo "$as_me:$LINENO: result: $result" >&5
12495 echo "${ECHO_T}$result" >&6; }
12496
12497
12498           enablestring=
12499           defaultval=$wxUSE_ALL_FEATURES
12500           if test -z "$defaultval"; then
12501               if test x"$enablestring" = xdisable; then
12502                   defaultval=yes
12503               else
12504                   defaultval=no
12505               fi
12506           fi
12507
12508           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12509 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12510           # Check whether --enable-listbook was given.
12511 if test "${enable_listbook+set}" = set; then
12512   enableval=$enable_listbook;
12513                           if test "$enableval" = yes; then
12514                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12515                           else
12516                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12517                           fi
12518                           cache=yes
12519
12520 else
12521
12522                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12523                           if test "x$LINE" != x ; then
12524                               eval "DEFAULT_$LINE"
12525                               cache=yes
12526                           else
12527                               cache=no
12528                           fi
12529
12530                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12531
12532 fi
12533
12534
12535           eval "$wx_cv_use_listbook"
12536           if test "x$cache" = xyes; then
12537             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12538           fi
12539
12540           if test x"$enablestring" = xdisable; then
12541             if test $wxUSE_LISTBOOK = yes; then
12542               result=no
12543             else
12544               result=yes
12545             fi
12546           else
12547             result=$wxUSE_LISTBOOK
12548           fi
12549
12550           { echo "$as_me:$LINENO: result: $result" >&5
12551 echo "${ECHO_T}$result" >&6; }
12552
12553
12554           enablestring=
12555           defaultval=$wxUSE_ALL_FEATURES
12556           if test -z "$defaultval"; then
12557               if test x"$enablestring" = xdisable; then
12558                   defaultval=yes
12559               else
12560                   defaultval=no
12561               fi
12562           fi
12563
12564           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12565 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12566           # Check whether --enable-listbox was given.
12567 if test "${enable_listbox+set}" = set; then
12568   enableval=$enable_listbox;
12569                           if test "$enableval" = yes; then
12570                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12571                           else
12572                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12573                           fi
12574                           cache=yes
12575
12576 else
12577
12578                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12579                           if test "x$LINE" != x ; then
12580                               eval "DEFAULT_$LINE"
12581                               cache=yes
12582                           else
12583                               cache=no
12584                           fi
12585
12586                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12587
12588 fi
12589
12590
12591           eval "$wx_cv_use_listbox"
12592           if test "x$cache" = xyes; then
12593             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12594           fi
12595
12596           if test x"$enablestring" = xdisable; then
12597             if test $wxUSE_LISTBOX = yes; then
12598               result=no
12599             else
12600               result=yes
12601             fi
12602           else
12603             result=$wxUSE_LISTBOX
12604           fi
12605
12606           { echo "$as_me:$LINENO: result: $result" >&5
12607 echo "${ECHO_T}$result" >&6; }
12608
12609
12610           enablestring=
12611           defaultval=$wxUSE_ALL_FEATURES
12612           if test -z "$defaultval"; then
12613               if test x"$enablestring" = xdisable; then
12614                   defaultval=yes
12615               else
12616                   defaultval=no
12617               fi
12618           fi
12619
12620           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12621 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12622           # Check whether --enable-listctrl was given.
12623 if test "${enable_listctrl+set}" = set; then
12624   enableval=$enable_listctrl;
12625                           if test "$enableval" = yes; then
12626                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12627                           else
12628                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12629                           fi
12630                           cache=yes
12631
12632 else
12633
12634                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12635                           if test "x$LINE" != x ; then
12636                               eval "DEFAULT_$LINE"
12637                               cache=yes
12638                           else
12639                               cache=no
12640                           fi
12641
12642                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12643
12644 fi
12645
12646
12647           eval "$wx_cv_use_listctrl"
12648           if test "x$cache" = xyes; then
12649             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12650           fi
12651
12652           if test x"$enablestring" = xdisable; then
12653             if test $wxUSE_LISTCTRL = yes; then
12654               result=no
12655             else
12656               result=yes
12657             fi
12658           else
12659             result=$wxUSE_LISTCTRL
12660           fi
12661
12662           { echo "$as_me:$LINENO: result: $result" >&5
12663 echo "${ECHO_T}$result" >&6; }
12664
12665
12666           enablestring=
12667           defaultval=$wxUSE_ALL_FEATURES
12668           if test -z "$defaultval"; then
12669               if test x"$enablestring" = xdisable; then
12670                   defaultval=yes
12671               else
12672                   defaultval=no
12673               fi
12674           fi
12675
12676           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12677 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12678           # Check whether --enable-notebook was given.
12679 if test "${enable_notebook+set}" = set; then
12680   enableval=$enable_notebook;
12681                           if test "$enableval" = yes; then
12682                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12683                           else
12684                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12685                           fi
12686                           cache=yes
12687
12688 else
12689
12690                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12691                           if test "x$LINE" != x ; then
12692                               eval "DEFAULT_$LINE"
12693                               cache=yes
12694                           else
12695                               cache=no
12696                           fi
12697
12698                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12699
12700 fi
12701
12702
12703           eval "$wx_cv_use_notebook"
12704           if test "x$cache" = xyes; then
12705             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12706           fi
12707
12708           if test x"$enablestring" = xdisable; then
12709             if test $wxUSE_NOTEBOOK = yes; then
12710               result=no
12711             else
12712               result=yes
12713             fi
12714           else
12715             result=$wxUSE_NOTEBOOK
12716           fi
12717
12718           { echo "$as_me:$LINENO: result: $result" >&5
12719 echo "${ECHO_T}$result" >&6; }
12720
12721
12722           enablestring=
12723           defaultval=$wxUSE_ALL_FEATURES
12724           if test -z "$defaultval"; then
12725               if test x"$enablestring" = xdisable; then
12726                   defaultval=yes
12727               else
12728                   defaultval=no
12729               fi
12730           fi
12731
12732           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12733 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12734           # Check whether --enable-odcombobox was given.
12735 if test "${enable_odcombobox+set}" = set; then
12736   enableval=$enable_odcombobox;
12737                           if test "$enableval" = yes; then
12738                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12739                           else
12740                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12741                           fi
12742                           cache=yes
12743
12744 else
12745
12746                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12747                           if test "x$LINE" != x ; then
12748                               eval "DEFAULT_$LINE"
12749                               cache=yes
12750                           else
12751                               cache=no
12752                           fi
12753
12754                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12755
12756 fi
12757
12758
12759           eval "$wx_cv_use_odcombobox"
12760           if test "x$cache" = xyes; then
12761             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12762           fi
12763
12764           if test x"$enablestring" = xdisable; then
12765             if test $wxUSE_ODCOMBOBOX = yes; then
12766               result=no
12767             else
12768               result=yes
12769             fi
12770           else
12771             result=$wxUSE_ODCOMBOBOX
12772           fi
12773
12774           { echo "$as_me:$LINENO: result: $result" >&5
12775 echo "${ECHO_T}$result" >&6; }
12776
12777
12778           enablestring=
12779           defaultval=$wxUSE_ALL_FEATURES
12780           if test -z "$defaultval"; then
12781               if test x"$enablestring" = xdisable; then
12782                   defaultval=yes
12783               else
12784                   defaultval=no
12785               fi
12786           fi
12787
12788           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12789 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12790           # Check whether --enable-radiobox was given.
12791 if test "${enable_radiobox+set}" = set; then
12792   enableval=$enable_radiobox;
12793                           if test "$enableval" = yes; then
12794                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12795                           else
12796                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12797                           fi
12798                           cache=yes
12799
12800 else
12801
12802                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12803                           if test "x$LINE" != x ; then
12804                               eval "DEFAULT_$LINE"
12805                               cache=yes
12806                           else
12807                               cache=no
12808                           fi
12809
12810                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12811
12812 fi
12813
12814
12815           eval "$wx_cv_use_radiobox"
12816           if test "x$cache" = xyes; then
12817             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12818           fi
12819
12820           if test x"$enablestring" = xdisable; then
12821             if test $wxUSE_RADIOBOX = yes; then
12822               result=no
12823             else
12824               result=yes
12825             fi
12826           else
12827             result=$wxUSE_RADIOBOX
12828           fi
12829
12830           { echo "$as_me:$LINENO: result: $result" >&5
12831 echo "${ECHO_T}$result" >&6; }
12832
12833
12834           enablestring=
12835           defaultval=$wxUSE_ALL_FEATURES
12836           if test -z "$defaultval"; then
12837               if test x"$enablestring" = xdisable; then
12838                   defaultval=yes
12839               else
12840                   defaultval=no
12841               fi
12842           fi
12843
12844           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12845 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12846           # Check whether --enable-radiobtn was given.
12847 if test "${enable_radiobtn+set}" = set; then
12848   enableval=$enable_radiobtn;
12849                           if test "$enableval" = yes; then
12850                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12851                           else
12852                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12853                           fi
12854                           cache=yes
12855
12856 else
12857
12858                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12859                           if test "x$LINE" != x ; then
12860                               eval "DEFAULT_$LINE"
12861                               cache=yes
12862                           else
12863                               cache=no
12864                           fi
12865
12866                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12867
12868 fi
12869
12870
12871           eval "$wx_cv_use_radiobtn"
12872           if test "x$cache" = xyes; then
12873             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12874           fi
12875
12876           if test x"$enablestring" = xdisable; then
12877             if test $wxUSE_RADIOBTN = yes; then
12878               result=no
12879             else
12880               result=yes
12881             fi
12882           else
12883             result=$wxUSE_RADIOBTN
12884           fi
12885
12886           { echo "$as_me:$LINENO: result: $result" >&5
12887 echo "${ECHO_T}$result" >&6; }
12888
12889
12890           enablestring=
12891           defaultval=$wxUSE_ALL_FEATURES
12892           if test -z "$defaultval"; then
12893               if test x"$enablestring" = xdisable; then
12894                   defaultval=yes
12895               else
12896                   defaultval=no
12897               fi
12898           fi
12899
12900           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12901 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12902           # Check whether --enable-sash was given.
12903 if test "${enable_sash+set}" = set; then
12904   enableval=$enable_sash;
12905                           if test "$enableval" = yes; then
12906                             wx_cv_use_sash='wxUSE_SASH=yes'
12907                           else
12908                             wx_cv_use_sash='wxUSE_SASH=no'
12909                           fi
12910                           cache=yes
12911
12912 else
12913
12914                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12915                           if test "x$LINE" != x ; then
12916                               eval "DEFAULT_$LINE"
12917                               cache=yes
12918                           else
12919                               cache=no
12920                           fi
12921
12922                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12923
12924 fi
12925
12926
12927           eval "$wx_cv_use_sash"
12928           if test "x$cache" = xyes; then
12929             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12930           fi
12931
12932           if test x"$enablestring" = xdisable; then
12933             if test $wxUSE_SASH = yes; then
12934               result=no
12935             else
12936               result=yes
12937             fi
12938           else
12939             result=$wxUSE_SASH
12940           fi
12941
12942           { echo "$as_me:$LINENO: result: $result" >&5
12943 echo "${ECHO_T}$result" >&6; }
12944
12945
12946           enablestring=
12947           defaultval=$wxUSE_ALL_FEATURES
12948           if test -z "$defaultval"; then
12949               if test x"$enablestring" = xdisable; then
12950                   defaultval=yes
12951               else
12952                   defaultval=no
12953               fi
12954           fi
12955
12956           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12957 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12958           # Check whether --enable-scrollbar was given.
12959 if test "${enable_scrollbar+set}" = set; then
12960   enableval=$enable_scrollbar;
12961                           if test "$enableval" = yes; then
12962                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12963                           else
12964                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12965                           fi
12966                           cache=yes
12967
12968 else
12969
12970                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12971                           if test "x$LINE" != x ; then
12972                               eval "DEFAULT_$LINE"
12973                               cache=yes
12974                           else
12975                               cache=no
12976                           fi
12977
12978                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12979
12980 fi
12981
12982
12983           eval "$wx_cv_use_scrollbar"
12984           if test "x$cache" = xyes; then
12985             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12986           fi
12987
12988           if test x"$enablestring" = xdisable; then
12989             if test $wxUSE_SCROLLBAR = yes; then
12990               result=no
12991             else
12992               result=yes
12993             fi
12994           else
12995             result=$wxUSE_SCROLLBAR
12996           fi
12997
12998           { echo "$as_me:$LINENO: result: $result" >&5
12999 echo "${ECHO_T}$result" >&6; }
13000
13001
13002           enablestring=
13003           defaultval=$wxUSE_ALL_FEATURES
13004           if test -z "$defaultval"; then
13005               if test x"$enablestring" = xdisable; then
13006                   defaultval=yes
13007               else
13008                   defaultval=no
13009               fi
13010           fi
13011
13012           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
13013 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
13014           # Check whether --enable-searchctrl was given.
13015 if test "${enable_searchctrl+set}" = set; then
13016   enableval=$enable_searchctrl;
13017                           if test "$enableval" = yes; then
13018                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
13019                           else
13020                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
13021                           fi
13022                           cache=yes
13023
13024 else
13025
13026                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
13027                           if test "x$LINE" != x ; then
13028                               eval "DEFAULT_$LINE"
13029                               cache=yes
13030                           else
13031                               cache=no
13032                           fi
13033
13034                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
13035
13036 fi
13037
13038
13039           eval "$wx_cv_use_searchctrl"
13040           if test "x$cache" = xyes; then
13041             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
13042           fi
13043
13044           if test x"$enablestring" = xdisable; then
13045             if test $wxUSE_SEARCHCTRL = yes; then
13046               result=no
13047             else
13048               result=yes
13049             fi
13050           else
13051             result=$wxUSE_SEARCHCTRL
13052           fi
13053
13054           { echo "$as_me:$LINENO: result: $result" >&5
13055 echo "${ECHO_T}$result" >&6; }
13056
13057
13058           enablestring=
13059           defaultval=$wxUSE_ALL_FEATURES
13060           if test -z "$defaultval"; then
13061               if test x"$enablestring" = xdisable; then
13062                   defaultval=yes
13063               else
13064                   defaultval=no
13065               fi
13066           fi
13067
13068           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
13069 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
13070           # Check whether --enable-slider was given.
13071 if test "${enable_slider+set}" = set; then
13072   enableval=$enable_slider;
13073                           if test "$enableval" = yes; then
13074                             wx_cv_use_slider='wxUSE_SLIDER=yes'
13075                           else
13076                             wx_cv_use_slider='wxUSE_SLIDER=no'
13077                           fi
13078                           cache=yes
13079
13080 else
13081
13082                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
13083                           if test "x$LINE" != x ; then
13084                               eval "DEFAULT_$LINE"
13085                               cache=yes
13086                           else
13087                               cache=no
13088                           fi
13089
13090                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
13091
13092 fi
13093
13094
13095           eval "$wx_cv_use_slider"
13096           if test "x$cache" = xyes; then
13097             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
13098           fi
13099
13100           if test x"$enablestring" = xdisable; then
13101             if test $wxUSE_SLIDER = yes; then
13102               result=no
13103             else
13104               result=yes
13105             fi
13106           else
13107             result=$wxUSE_SLIDER
13108           fi
13109
13110           { echo "$as_me:$LINENO: result: $result" >&5
13111 echo "${ECHO_T}$result" >&6; }
13112
13113
13114           enablestring=
13115           defaultval=$wxUSE_ALL_FEATURES
13116           if test -z "$defaultval"; then
13117               if test x"$enablestring" = xdisable; then
13118                   defaultval=yes
13119               else
13120                   defaultval=no
13121               fi
13122           fi
13123
13124           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
13125 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
13126           # Check whether --enable-spinbtn was given.
13127 if test "${enable_spinbtn+set}" = set; then
13128   enableval=$enable_spinbtn;
13129                           if test "$enableval" = yes; then
13130                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
13131                           else
13132                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
13133                           fi
13134                           cache=yes
13135
13136 else
13137
13138                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
13139                           if test "x$LINE" != x ; then
13140                               eval "DEFAULT_$LINE"
13141                               cache=yes
13142                           else
13143                               cache=no
13144                           fi
13145
13146                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
13147
13148 fi
13149
13150
13151           eval "$wx_cv_use_spinbtn"
13152           if test "x$cache" = xyes; then
13153             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
13154           fi
13155
13156           if test x"$enablestring" = xdisable; then
13157             if test $wxUSE_SPINBTN = yes; then
13158               result=no
13159             else
13160               result=yes
13161             fi
13162           else
13163             result=$wxUSE_SPINBTN
13164           fi
13165
13166           { echo "$as_me:$LINENO: result: $result" >&5
13167 echo "${ECHO_T}$result" >&6; }
13168
13169
13170           enablestring=
13171           defaultval=$wxUSE_ALL_FEATURES
13172           if test -z "$defaultval"; then
13173               if test x"$enablestring" = xdisable; then
13174                   defaultval=yes
13175               else
13176                   defaultval=no
13177               fi
13178           fi
13179
13180           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
13181 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
13182           # Check whether --enable-spinctrl was given.
13183 if test "${enable_spinctrl+set}" = set; then
13184   enableval=$enable_spinctrl;
13185                           if test "$enableval" = yes; then
13186                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
13187                           else
13188                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
13189                           fi
13190                           cache=yes
13191
13192 else
13193
13194                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
13195                           if test "x$LINE" != x ; then
13196                               eval "DEFAULT_$LINE"
13197                               cache=yes
13198                           else
13199                               cache=no
13200                           fi
13201
13202                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
13203
13204 fi
13205
13206
13207           eval "$wx_cv_use_spinctrl"
13208           if test "x$cache" = xyes; then
13209             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
13210           fi
13211
13212           if test x"$enablestring" = xdisable; then
13213             if test $wxUSE_SPINCTRL = yes; then
13214               result=no
13215             else
13216               result=yes
13217             fi
13218           else
13219             result=$wxUSE_SPINCTRL
13220           fi
13221
13222           { echo "$as_me:$LINENO: result: $result" >&5
13223 echo "${ECHO_T}$result" >&6; }
13224
13225
13226           enablestring=
13227           defaultval=$wxUSE_ALL_FEATURES
13228           if test -z "$defaultval"; then
13229               if test x"$enablestring" = xdisable; then
13230                   defaultval=yes
13231               else
13232                   defaultval=no
13233               fi
13234           fi
13235
13236           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
13237 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
13238           # Check whether --enable-splitter was given.
13239 if test "${enable_splitter+set}" = set; then
13240   enableval=$enable_splitter;
13241                           if test "$enableval" = yes; then
13242                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
13243                           else
13244                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
13245                           fi
13246                           cache=yes
13247
13248 else
13249
13250                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
13251                           if test "x$LINE" != x ; then
13252                               eval "DEFAULT_$LINE"
13253                               cache=yes
13254                           else
13255                               cache=no
13256                           fi
13257
13258                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
13259
13260 fi
13261
13262
13263           eval "$wx_cv_use_splitter"
13264           if test "x$cache" = xyes; then
13265             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
13266           fi
13267
13268           if test x"$enablestring" = xdisable; then
13269             if test $wxUSE_SPLITTER = yes; then
13270               result=no
13271             else
13272               result=yes
13273             fi
13274           else
13275             result=$wxUSE_SPLITTER
13276           fi
13277
13278           { echo "$as_me:$LINENO: result: $result" >&5
13279 echo "${ECHO_T}$result" >&6; }
13280
13281
13282           enablestring=
13283           defaultval=$wxUSE_ALL_FEATURES
13284           if test -z "$defaultval"; then
13285               if test x"$enablestring" = xdisable; then
13286                   defaultval=yes
13287               else
13288                   defaultval=no
13289               fi
13290           fi
13291
13292           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
13293 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
13294           # Check whether --enable-statbmp was given.
13295 if test "${enable_statbmp+set}" = set; then
13296   enableval=$enable_statbmp;
13297                           if test "$enableval" = yes; then
13298                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
13299                           else
13300                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
13301                           fi
13302                           cache=yes
13303
13304 else
13305
13306                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
13307                           if test "x$LINE" != x ; then
13308                               eval "DEFAULT_$LINE"
13309                               cache=yes
13310                           else
13311                               cache=no
13312                           fi
13313
13314                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
13315
13316 fi
13317
13318
13319           eval "$wx_cv_use_statbmp"
13320           if test "x$cache" = xyes; then
13321             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
13322           fi
13323
13324           if test x"$enablestring" = xdisable; then
13325             if test $wxUSE_STATBMP = yes; then
13326               result=no
13327             else
13328               result=yes
13329             fi
13330           else
13331             result=$wxUSE_STATBMP
13332           fi
13333
13334           { echo "$as_me:$LINENO: result: $result" >&5
13335 echo "${ECHO_T}$result" >&6; }
13336
13337
13338           enablestring=
13339           defaultval=$wxUSE_ALL_FEATURES
13340           if test -z "$defaultval"; then
13341               if test x"$enablestring" = xdisable; then
13342                   defaultval=yes
13343               else
13344                   defaultval=no
13345               fi
13346           fi
13347
13348           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
13349 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
13350           # Check whether --enable-statbox was given.
13351 if test "${enable_statbox+set}" = set; then
13352   enableval=$enable_statbox;
13353                           if test "$enableval" = yes; then
13354                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
13355                           else
13356                             wx_cv_use_statbox='wxUSE_STATBOX=no'
13357                           fi
13358                           cache=yes
13359
13360 else
13361
13362                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
13363                           if test "x$LINE" != x ; then
13364                               eval "DEFAULT_$LINE"
13365                               cache=yes
13366                           else
13367                               cache=no
13368                           fi
13369
13370                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
13371
13372 fi
13373
13374
13375           eval "$wx_cv_use_statbox"
13376           if test "x$cache" = xyes; then
13377             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
13378           fi
13379
13380           if test x"$enablestring" = xdisable; then
13381             if test $wxUSE_STATBOX = yes; then
13382               result=no
13383             else
13384               result=yes
13385             fi
13386           else
13387             result=$wxUSE_STATBOX
13388           fi
13389
13390           { echo "$as_me:$LINENO: result: $result" >&5
13391 echo "${ECHO_T}$result" >&6; }
13392
13393
13394           enablestring=
13395           defaultval=$wxUSE_ALL_FEATURES
13396           if test -z "$defaultval"; then
13397               if test x"$enablestring" = xdisable; then
13398                   defaultval=yes
13399               else
13400                   defaultval=no
13401               fi
13402           fi
13403
13404           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
13405 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
13406           # Check whether --enable-statline was given.
13407 if test "${enable_statline+set}" = set; then
13408   enableval=$enable_statline;
13409                           if test "$enableval" = yes; then
13410                             wx_cv_use_statline='wxUSE_STATLINE=yes'
13411                           else
13412                             wx_cv_use_statline='wxUSE_STATLINE=no'
13413                           fi
13414                           cache=yes
13415
13416 else
13417
13418                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
13419                           if test "x$LINE" != x ; then
13420                               eval "DEFAULT_$LINE"
13421                               cache=yes
13422                           else
13423                               cache=no
13424                           fi
13425
13426                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
13427
13428 fi
13429
13430
13431           eval "$wx_cv_use_statline"
13432           if test "x$cache" = xyes; then
13433             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
13434           fi
13435
13436           if test x"$enablestring" = xdisable; then
13437             if test $wxUSE_STATLINE = yes; then
13438               result=no
13439             else
13440               result=yes
13441             fi
13442           else
13443             result=$wxUSE_STATLINE
13444           fi
13445
13446           { echo "$as_me:$LINENO: result: $result" >&5
13447 echo "${ECHO_T}$result" >&6; }
13448
13449
13450           enablestring=
13451           defaultval=$wxUSE_ALL_FEATURES
13452           if test -z "$defaultval"; then
13453               if test x"$enablestring" = xdisable; then
13454                   defaultval=yes
13455               else
13456                   defaultval=no
13457               fi
13458           fi
13459
13460           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
13461 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
13462           # Check whether --enable-stattext was given.
13463 if test "${enable_stattext+set}" = set; then
13464   enableval=$enable_stattext;
13465                           if test "$enableval" = yes; then
13466                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
13467                           else
13468                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
13469                           fi
13470                           cache=yes
13471
13472 else
13473
13474                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
13475                           if test "x$LINE" != x ; then
13476                               eval "DEFAULT_$LINE"
13477                               cache=yes
13478                           else
13479                               cache=no
13480                           fi
13481
13482                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
13483
13484 fi
13485
13486
13487           eval "$wx_cv_use_stattext"
13488           if test "x$cache" = xyes; then
13489             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
13490           fi
13491
13492           if test x"$enablestring" = xdisable; then
13493             if test $wxUSE_STATTEXT = yes; then
13494               result=no
13495             else
13496               result=yes
13497             fi
13498           else
13499             result=$wxUSE_STATTEXT
13500           fi
13501
13502           { echo "$as_me:$LINENO: result: $result" >&5
13503 echo "${ECHO_T}$result" >&6; }
13504
13505
13506           enablestring=
13507           defaultval=$wxUSE_ALL_FEATURES
13508           if test -z "$defaultval"; then
13509               if test x"$enablestring" = xdisable; then
13510                   defaultval=yes
13511               else
13512                   defaultval=no
13513               fi
13514           fi
13515
13516           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
13517 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
13518           # Check whether --enable-statusbar was given.
13519 if test "${enable_statusbar+set}" = set; then
13520   enableval=$enable_statusbar;
13521                           if test "$enableval" = yes; then
13522                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13523                           else
13524                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13525                           fi
13526                           cache=yes
13527
13528 else
13529
13530                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13531                           if test "x$LINE" != x ; then
13532                               eval "DEFAULT_$LINE"
13533                               cache=yes
13534                           else
13535                               cache=no
13536                           fi
13537
13538                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13539
13540 fi
13541
13542
13543           eval "$wx_cv_use_statusbar"
13544           if test "x$cache" = xyes; then
13545             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13546           fi
13547
13548           if test x"$enablestring" = xdisable; then
13549             if test $wxUSE_STATUSBAR = yes; then
13550               result=no
13551             else
13552               result=yes
13553             fi
13554           else
13555             result=$wxUSE_STATUSBAR
13556           fi
13557
13558           { echo "$as_me:$LINENO: result: $result" >&5
13559 echo "${ECHO_T}$result" >&6; }
13560
13561
13562           enablestring=
13563           defaultval=$wxUSE_ALL_FEATURES
13564           if test -z "$defaultval"; then
13565               if test x"$enablestring" = xdisable; then
13566                   defaultval=yes
13567               else
13568                   defaultval=no
13569               fi
13570           fi
13571
13572           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13573 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13574           # Check whether --enable-tabdialog was given.
13575 if test "${enable_tabdialog+set}" = set; then
13576   enableval=$enable_tabdialog;
13577                           if test "$enableval" = yes; then
13578                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13579                           else
13580                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13581                           fi
13582                           cache=yes
13583
13584 else
13585
13586                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13587                           if test "x$LINE" != x ; then
13588                               eval "DEFAULT_$LINE"
13589                               cache=yes
13590                           else
13591                               cache=no
13592                           fi
13593
13594                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13595
13596 fi
13597
13598
13599           eval "$wx_cv_use_tabdialog"
13600           if test "x$cache" = xyes; then
13601             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13602           fi
13603
13604           if test x"$enablestring" = xdisable; then
13605             if test $wxUSE_TAB_DIALOG = yes; then
13606               result=no
13607             else
13608               result=yes
13609             fi
13610           else
13611             result=$wxUSE_TAB_DIALOG
13612           fi
13613
13614           { echo "$as_me:$LINENO: result: $result" >&5
13615 echo "${ECHO_T}$result" >&6; }
13616
13617
13618           enablestring=
13619           defaultval=$wxUSE_ALL_FEATURES
13620           if test -z "$defaultval"; then
13621               if test x"$enablestring" = xdisable; then
13622                   defaultval=yes
13623               else
13624                   defaultval=no
13625               fi
13626           fi
13627
13628           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13629 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13630           # Check whether --enable-taskbaricon was given.
13631 if test "${enable_taskbaricon+set}" = set; then
13632   enableval=$enable_taskbaricon;
13633                           if test "$enableval" = yes; then
13634                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13635                           else
13636                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13637                           fi
13638                           cache=yes
13639
13640 else
13641
13642                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13643                           if test "x$LINE" != x ; then
13644                               eval "DEFAULT_$LINE"
13645                               cache=yes
13646                           else
13647                               cache=no
13648                           fi
13649
13650                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13651
13652 fi
13653
13654
13655           eval "$wx_cv_use_taskbaricon"
13656           if test "x$cache" = xyes; then
13657             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13658           fi
13659
13660           if test x"$enablestring" = xdisable; then
13661             if test $wxUSE_TASKBARICON = yes; then
13662               result=no
13663             else
13664               result=yes
13665             fi
13666           else
13667             result=$wxUSE_TASKBARICON
13668           fi
13669
13670           { echo "$as_me:$LINENO: result: $result" >&5
13671 echo "${ECHO_T}$result" >&6; }
13672
13673
13674           enablestring=
13675           defaultval=$wxUSE_ALL_FEATURES
13676           if test -z "$defaultval"; then
13677               if test x"$enablestring" = xdisable; then
13678                   defaultval=yes
13679               else
13680                   defaultval=no
13681               fi
13682           fi
13683
13684           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13685 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13686           # Check whether --enable-textctrl was given.
13687 if test "${enable_textctrl+set}" = set; then
13688   enableval=$enable_textctrl;
13689                           if test "$enableval" = yes; then
13690                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13691                           else
13692                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13693                           fi
13694                           cache=yes
13695
13696 else
13697
13698                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13699                           if test "x$LINE" != x ; then
13700                               eval "DEFAULT_$LINE"
13701                               cache=yes
13702                           else
13703                               cache=no
13704                           fi
13705
13706                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13707
13708 fi
13709
13710
13711           eval "$wx_cv_use_textctrl"
13712           if test "x$cache" = xyes; then
13713             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13714           fi
13715
13716           if test x"$enablestring" = xdisable; then
13717             if test $wxUSE_TEXTCTRL = yes; then
13718               result=no
13719             else
13720               result=yes
13721             fi
13722           else
13723             result=$wxUSE_TEXTCTRL
13724           fi
13725
13726           { echo "$as_me:$LINENO: result: $result" >&5
13727 echo "${ECHO_T}$result" >&6; }
13728
13729
13730           enablestring=
13731           defaultval=$wxUSE_ALL_FEATURES
13732           if test -z "$defaultval"; then
13733               if test x"$enablestring" = xdisable; then
13734                   defaultval=yes
13735               else
13736                   defaultval=no
13737               fi
13738           fi
13739
13740           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13741 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13742           # Check whether --enable-togglebtn was given.
13743 if test "${enable_togglebtn+set}" = set; then
13744   enableval=$enable_togglebtn;
13745                           if test "$enableval" = yes; then
13746                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13747                           else
13748                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13749                           fi
13750                           cache=yes
13751
13752 else
13753
13754                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13755                           if test "x$LINE" != x ; then
13756                               eval "DEFAULT_$LINE"
13757                               cache=yes
13758                           else
13759                               cache=no
13760                           fi
13761
13762                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13763
13764 fi
13765
13766
13767           eval "$wx_cv_use_togglebtn"
13768           if test "x$cache" = xyes; then
13769             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13770           fi
13771
13772           if test x"$enablestring" = xdisable; then
13773             if test $wxUSE_TOGGLEBTN = yes; then
13774               result=no
13775             else
13776               result=yes
13777             fi
13778           else
13779             result=$wxUSE_TOGGLEBTN
13780           fi
13781
13782           { echo "$as_me:$LINENO: result: $result" >&5
13783 echo "${ECHO_T}$result" >&6; }
13784
13785
13786           enablestring=
13787           defaultval=$wxUSE_ALL_FEATURES
13788           if test -z "$defaultval"; then
13789               if test x"$enablestring" = xdisable; then
13790                   defaultval=yes
13791               else
13792                   defaultval=no
13793               fi
13794           fi
13795
13796           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13797 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13798           # Check whether --enable-toolbar was given.
13799 if test "${enable_toolbar+set}" = set; then
13800   enableval=$enable_toolbar;
13801                           if test "$enableval" = yes; then
13802                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13803                           else
13804                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13805                           fi
13806                           cache=yes
13807
13808 else
13809
13810                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13811                           if test "x$LINE" != x ; then
13812                               eval "DEFAULT_$LINE"
13813                               cache=yes
13814                           else
13815                               cache=no
13816                           fi
13817
13818                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13819
13820 fi
13821
13822
13823           eval "$wx_cv_use_toolbar"
13824           if test "x$cache" = xyes; then
13825             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13826           fi
13827
13828           if test x"$enablestring" = xdisable; then
13829             if test $wxUSE_TOOLBAR = yes; then
13830               result=no
13831             else
13832               result=yes
13833             fi
13834           else
13835             result=$wxUSE_TOOLBAR
13836           fi
13837
13838           { echo "$as_me:$LINENO: result: $result" >&5
13839 echo "${ECHO_T}$result" >&6; }
13840
13841
13842           enablestring=
13843           defaultval=$wxUSE_ALL_FEATURES
13844           if test -z "$defaultval"; then
13845               if test x"$enablestring" = xdisable; then
13846                   defaultval=yes
13847               else
13848                   defaultval=no
13849               fi
13850           fi
13851
13852           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13853 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13854           # Check whether --enable-tbarnative was given.
13855 if test "${enable_tbarnative+set}" = set; then
13856   enableval=$enable_tbarnative;
13857                           if test "$enableval" = yes; then
13858                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13859                           else
13860                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13861                           fi
13862                           cache=yes
13863
13864 else
13865
13866                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13867                           if test "x$LINE" != x ; then
13868                               eval "DEFAULT_$LINE"
13869                               cache=yes
13870                           else
13871                               cache=no
13872                           fi
13873
13874                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13875
13876 fi
13877
13878
13879           eval "$wx_cv_use_tbarnative"
13880           if test "x$cache" = xyes; then
13881             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13882           fi
13883
13884           if test x"$enablestring" = xdisable; then
13885             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13886               result=no
13887             else
13888               result=yes
13889             fi
13890           else
13891             result=$wxUSE_TOOLBAR_NATIVE
13892           fi
13893
13894           { echo "$as_me:$LINENO: result: $result" >&5
13895 echo "${ECHO_T}$result" >&6; }
13896
13897
13898           enablestring=
13899           defaultval=$wxUSE_ALL_FEATURES
13900           if test -z "$defaultval"; then
13901               if test x"$enablestring" = xdisable; then
13902                   defaultval=yes
13903               else
13904                   defaultval=no
13905               fi
13906           fi
13907
13908           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13909 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13910           # Check whether --enable-treebook was given.
13911 if test "${enable_treebook+set}" = set; then
13912   enableval=$enable_treebook;
13913                           if test "$enableval" = yes; then
13914                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13915                           else
13916                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13917                           fi
13918                           cache=yes
13919
13920 else
13921
13922                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13923                           if test "x$LINE" != x ; then
13924                               eval "DEFAULT_$LINE"
13925                               cache=yes
13926                           else
13927                               cache=no
13928                           fi
13929
13930                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13931
13932 fi
13933
13934
13935           eval "$wx_cv_use_treebook"
13936           if test "x$cache" = xyes; then
13937             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13938           fi
13939
13940           if test x"$enablestring" = xdisable; then
13941             if test $wxUSE_TREEBOOK = yes; then
13942               result=no
13943             else
13944               result=yes
13945             fi
13946           else
13947             result=$wxUSE_TREEBOOK
13948           fi
13949
13950           { echo "$as_me:$LINENO: result: $result" >&5
13951 echo "${ECHO_T}$result" >&6; }
13952
13953
13954           enablestring=
13955           defaultval=$wxUSE_ALL_FEATURES
13956           if test -z "$defaultval"; then
13957               if test x"$enablestring" = xdisable; then
13958                   defaultval=yes
13959               else
13960                   defaultval=no
13961               fi
13962           fi
13963
13964           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13965 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13966           # Check whether --enable-toolbook was given.
13967 if test "${enable_toolbook+set}" = set; then
13968   enableval=$enable_toolbook;
13969                           if test "$enableval" = yes; then
13970                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13971                           else
13972                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13973                           fi
13974                           cache=yes
13975
13976 else
13977
13978                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13979                           if test "x$LINE" != x ; then
13980                               eval "DEFAULT_$LINE"
13981                               cache=yes
13982                           else
13983                               cache=no
13984                           fi
13985
13986                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13987
13988 fi
13989
13990
13991           eval "$wx_cv_use_toolbook"
13992           if test "x$cache" = xyes; then
13993             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13994           fi
13995
13996           if test x"$enablestring" = xdisable; then
13997             if test $wxUSE_TOOLBOOK = yes; then
13998               result=no
13999             else
14000               result=yes
14001             fi
14002           else
14003             result=$wxUSE_TOOLBOOK
14004           fi
14005
14006           { echo "$as_me:$LINENO: result: $result" >&5
14007 echo "${ECHO_T}$result" >&6; }
14008
14009
14010           enablestring=
14011           defaultval=$wxUSE_ALL_FEATURES
14012           if test -z "$defaultval"; then
14013               if test x"$enablestring" = xdisable; then
14014                   defaultval=yes
14015               else
14016                   defaultval=no
14017               fi
14018           fi
14019
14020           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
14021 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
14022           # Check whether --enable-treectrl was given.
14023 if test "${enable_treectrl+set}" = set; then
14024   enableval=$enable_treectrl;
14025                           if test "$enableval" = yes; then
14026                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
14027                           else
14028                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
14029                           fi
14030                           cache=yes
14031
14032 else
14033
14034                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
14035                           if test "x$LINE" != x ; then
14036                               eval "DEFAULT_$LINE"
14037                               cache=yes
14038                           else
14039                               cache=no
14040                           fi
14041
14042                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
14043
14044 fi
14045
14046
14047           eval "$wx_cv_use_treectrl"
14048           if test "x$cache" = xyes; then
14049             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
14050           fi
14051
14052           if test x"$enablestring" = xdisable; then
14053             if test $wxUSE_TREECTRL = yes; then
14054               result=no
14055             else
14056               result=yes
14057             fi
14058           else
14059             result=$wxUSE_TREECTRL
14060           fi
14061
14062           { echo "$as_me:$LINENO: result: $result" >&5
14063 echo "${ECHO_T}$result" >&6; }
14064
14065
14066           enablestring=
14067           defaultval=$wxUSE_ALL_FEATURES
14068           if test -z "$defaultval"; then
14069               if test x"$enablestring" = xdisable; then
14070                   defaultval=yes
14071               else
14072                   defaultval=no
14073               fi
14074           fi
14075
14076           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
14077 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
14078           # Check whether --enable-tipwindow was given.
14079 if test "${enable_tipwindow+set}" = set; then
14080   enableval=$enable_tipwindow;
14081                           if test "$enableval" = yes; then
14082                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
14083                           else
14084                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
14085                           fi
14086                           cache=yes
14087
14088 else
14089
14090                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
14091                           if test "x$LINE" != x ; then
14092                               eval "DEFAULT_$LINE"
14093                               cache=yes
14094                           else
14095                               cache=no
14096                           fi
14097
14098                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
14099
14100 fi
14101
14102
14103           eval "$wx_cv_use_tipwindow"
14104           if test "x$cache" = xyes; then
14105             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
14106           fi
14107
14108           if test x"$enablestring" = xdisable; then
14109             if test $wxUSE_TIPWINDOW = yes; then
14110               result=no
14111             else
14112               result=yes
14113             fi
14114           else
14115             result=$wxUSE_TIPWINDOW
14116           fi
14117
14118           { echo "$as_me:$LINENO: result: $result" >&5
14119 echo "${ECHO_T}$result" >&6; }
14120
14121
14122           enablestring=
14123           defaultval=$wxUSE_ALL_FEATURES
14124           if test -z "$defaultval"; then
14125               if test x"$enablestring" = xdisable; then
14126                   defaultval=yes
14127               else
14128                   defaultval=no
14129               fi
14130           fi
14131
14132           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
14133 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
14134           # Check whether --enable-popupwin was given.
14135 if test "${enable_popupwin+set}" = set; then
14136   enableval=$enable_popupwin;
14137                           if test "$enableval" = yes; then
14138                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
14139                           else
14140                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
14141                           fi
14142                           cache=yes
14143
14144 else
14145
14146                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
14147                           if test "x$LINE" != x ; then
14148                               eval "DEFAULT_$LINE"
14149                               cache=yes
14150                           else
14151                               cache=no
14152                           fi
14153
14154                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
14155
14156 fi
14157
14158
14159           eval "$wx_cv_use_popupwin"
14160           if test "x$cache" = xyes; then
14161             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
14162           fi
14163
14164           if test x"$enablestring" = xdisable; then
14165             if test $wxUSE_POPUPWIN = yes; then
14166               result=no
14167             else
14168               result=yes
14169             fi
14170           else
14171             result=$wxUSE_POPUPWIN
14172           fi
14173
14174           { echo "$as_me:$LINENO: result: $result" >&5
14175 echo "${ECHO_T}$result" >&6; }
14176
14177
14178
14179
14180           enablestring=
14181           defaultval=$wxUSE_ALL_FEATURES
14182           if test -z "$defaultval"; then
14183               if test x"$enablestring" = xdisable; then
14184                   defaultval=yes
14185               else
14186                   defaultval=no
14187               fi
14188           fi
14189
14190           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
14191 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
14192           # Check whether --enable-commondlg was given.
14193 if test "${enable_commondlg+set}" = set; then
14194   enableval=$enable_commondlg;
14195                           if test "$enableval" = yes; then
14196                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
14197                           else
14198                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
14199                           fi
14200                           cache=yes
14201
14202 else
14203
14204                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
14205                           if test "x$LINE" != x ; then
14206                               eval "DEFAULT_$LINE"
14207                               cache=yes
14208                           else
14209                               cache=no
14210                           fi
14211
14212                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
14213
14214 fi
14215
14216
14217           eval "$wx_cv_use_commondlg"
14218           if test "x$cache" = xyes; then
14219             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
14220           fi
14221
14222           if test x"$enablestring" = xdisable; then
14223             if test $wxUSE_COMMONDLGS = yes; then
14224               result=no
14225             else
14226               result=yes
14227             fi
14228           else
14229             result=$wxUSE_COMMONDLGS
14230           fi
14231
14232           { echo "$as_me:$LINENO: result: $result" >&5
14233 echo "${ECHO_T}$result" >&6; }
14234
14235
14236           enablestring=
14237           defaultval=$wxUSE_ALL_FEATURES
14238           if test -z "$defaultval"; then
14239               if test x"$enablestring" = xdisable; then
14240                   defaultval=yes
14241               else
14242                   defaultval=no
14243               fi
14244           fi
14245
14246           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
14247 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
14248           # Check whether --enable-aboutdlg was given.
14249 if test "${enable_aboutdlg+set}" = set; then
14250   enableval=$enable_aboutdlg;
14251                           if test "$enableval" = yes; then
14252                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
14253                           else
14254                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
14255                           fi
14256                           cache=yes
14257
14258 else
14259
14260                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
14261                           if test "x$LINE" != x ; then
14262                               eval "DEFAULT_$LINE"
14263                               cache=yes
14264                           else
14265                               cache=no
14266                           fi
14267
14268                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
14269
14270 fi
14271
14272
14273           eval "$wx_cv_use_aboutdlg"
14274           if test "x$cache" = xyes; then
14275             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
14276           fi
14277
14278           if test x"$enablestring" = xdisable; then
14279             if test $wxUSE_ABOUTDLG = yes; then
14280               result=no
14281             else
14282               result=yes
14283             fi
14284           else
14285             result=$wxUSE_ABOUTDLG
14286           fi
14287
14288           { echo "$as_me:$LINENO: result: $result" >&5
14289 echo "${ECHO_T}$result" >&6; }
14290
14291
14292           enablestring=
14293           defaultval=$wxUSE_ALL_FEATURES
14294           if test -z "$defaultval"; then
14295               if test x"$enablestring" = xdisable; then
14296                   defaultval=yes
14297               else
14298                   defaultval=no
14299               fi
14300           fi
14301
14302           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
14303 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
14304           # Check whether --enable-choicedlg was given.
14305 if test "${enable_choicedlg+set}" = set; then
14306   enableval=$enable_choicedlg;
14307                           if test "$enableval" = yes; then
14308                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
14309                           else
14310                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
14311                           fi
14312                           cache=yes
14313
14314 else
14315
14316                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
14317                           if test "x$LINE" != x ; then
14318                               eval "DEFAULT_$LINE"
14319                               cache=yes
14320                           else
14321                               cache=no
14322                           fi
14323
14324                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
14325
14326 fi
14327
14328
14329           eval "$wx_cv_use_choicedlg"
14330           if test "x$cache" = xyes; then
14331             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
14332           fi
14333
14334           if test x"$enablestring" = xdisable; then
14335             if test $wxUSE_CHOICEDLG = yes; then
14336               result=no
14337             else
14338               result=yes
14339             fi
14340           else
14341             result=$wxUSE_CHOICEDLG
14342           fi
14343
14344           { echo "$as_me:$LINENO: result: $result" >&5
14345 echo "${ECHO_T}$result" >&6; }
14346
14347
14348           enablestring=
14349           defaultval=$wxUSE_ALL_FEATURES
14350           if test -z "$defaultval"; then
14351               if test x"$enablestring" = xdisable; then
14352                   defaultval=yes
14353               else
14354                   defaultval=no
14355               fi
14356           fi
14357
14358           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
14359 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
14360           # Check whether --enable-coldlg was given.
14361 if test "${enable_coldlg+set}" = set; then
14362   enableval=$enable_coldlg;
14363                           if test "$enableval" = yes; then
14364                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
14365                           else
14366                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
14367                           fi
14368                           cache=yes
14369
14370 else
14371
14372                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
14373                           if test "x$LINE" != x ; then
14374                               eval "DEFAULT_$LINE"
14375                               cache=yes
14376                           else
14377                               cache=no
14378                           fi
14379
14380                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
14381
14382 fi
14383
14384
14385           eval "$wx_cv_use_coldlg"
14386           if test "x$cache" = xyes; then
14387             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
14388           fi
14389
14390           if test x"$enablestring" = xdisable; then
14391             if test $wxUSE_COLOURDLG = yes; then
14392               result=no
14393             else
14394               result=yes
14395             fi
14396           else
14397             result=$wxUSE_COLOURDLG
14398           fi
14399
14400           { echo "$as_me:$LINENO: result: $result" >&5
14401 echo "${ECHO_T}$result" >&6; }
14402
14403
14404           enablestring=
14405           defaultval=$wxUSE_ALL_FEATURES
14406           if test -z "$defaultval"; then
14407               if test x"$enablestring" = xdisable; then
14408                   defaultval=yes
14409               else
14410                   defaultval=no
14411               fi
14412           fi
14413
14414           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
14415 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
14416           # Check whether --enable-filedlg was given.
14417 if test "${enable_filedlg+set}" = set; then
14418   enableval=$enable_filedlg;
14419                           if test "$enableval" = yes; then
14420                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
14421                           else
14422                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
14423                           fi
14424                           cache=yes
14425
14426 else
14427
14428                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
14429                           if test "x$LINE" != x ; then
14430                               eval "DEFAULT_$LINE"
14431                               cache=yes
14432                           else
14433                               cache=no
14434                           fi
14435
14436                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
14437
14438 fi
14439
14440
14441           eval "$wx_cv_use_filedlg"
14442           if test "x$cache" = xyes; then
14443             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
14444           fi
14445
14446           if test x"$enablestring" = xdisable; then
14447             if test $wxUSE_FILEDLG = yes; then
14448               result=no
14449             else
14450               result=yes
14451             fi
14452           else
14453             result=$wxUSE_FILEDLG
14454           fi
14455
14456           { echo "$as_me:$LINENO: result: $result" >&5
14457 echo "${ECHO_T}$result" >&6; }
14458
14459
14460           enablestring=
14461           defaultval=$wxUSE_ALL_FEATURES
14462           if test -z "$defaultval"; then
14463               if test x"$enablestring" = xdisable; then
14464                   defaultval=yes
14465               else
14466                   defaultval=no
14467               fi
14468           fi
14469
14470           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
14471 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
14472           # Check whether --enable-finddlg was given.
14473 if test "${enable_finddlg+set}" = set; then
14474   enableval=$enable_finddlg;
14475                           if test "$enableval" = yes; then
14476                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
14477                           else
14478                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
14479                           fi
14480                           cache=yes
14481
14482 else
14483
14484                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
14485                           if test "x$LINE" != x ; then
14486                               eval "DEFAULT_$LINE"
14487                               cache=yes
14488                           else
14489                               cache=no
14490                           fi
14491
14492                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
14493
14494 fi
14495
14496
14497           eval "$wx_cv_use_finddlg"
14498           if test "x$cache" = xyes; then
14499             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
14500           fi
14501
14502           if test x"$enablestring" = xdisable; then
14503             if test $wxUSE_FINDREPLDLG = yes; then
14504               result=no
14505             else
14506               result=yes
14507             fi
14508           else
14509             result=$wxUSE_FINDREPLDLG
14510           fi
14511
14512           { echo "$as_me:$LINENO: result: $result" >&5
14513 echo "${ECHO_T}$result" >&6; }
14514
14515
14516           enablestring=
14517           defaultval=$wxUSE_ALL_FEATURES
14518           if test -z "$defaultval"; then
14519               if test x"$enablestring" = xdisable; then
14520                   defaultval=yes
14521               else
14522                   defaultval=no
14523               fi
14524           fi
14525
14526           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
14527 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
14528           # Check whether --enable-fontdlg was given.
14529 if test "${enable_fontdlg+set}" = set; then
14530   enableval=$enable_fontdlg;
14531                           if test "$enableval" = yes; then
14532                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
14533                           else
14534                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
14535                           fi
14536                           cache=yes
14537
14538 else
14539
14540                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
14541                           if test "x$LINE" != x ; then
14542                               eval "DEFAULT_$LINE"
14543                               cache=yes
14544                           else
14545                               cache=no
14546                           fi
14547
14548                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
14549
14550 fi
14551
14552
14553           eval "$wx_cv_use_fontdlg"
14554           if test "x$cache" = xyes; then
14555             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
14556           fi
14557
14558           if test x"$enablestring" = xdisable; then
14559             if test $wxUSE_FONTDLG = yes; then
14560               result=no
14561             else
14562               result=yes
14563             fi
14564           else
14565             result=$wxUSE_FONTDLG
14566           fi
14567
14568           { echo "$as_me:$LINENO: result: $result" >&5
14569 echo "${ECHO_T}$result" >&6; }
14570
14571
14572           enablestring=
14573           defaultval=$wxUSE_ALL_FEATURES
14574           if test -z "$defaultval"; then
14575               if test x"$enablestring" = xdisable; then
14576                   defaultval=yes
14577               else
14578                   defaultval=no
14579               fi
14580           fi
14581
14582           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14583 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14584           # Check whether --enable-dirdlg was given.
14585 if test "${enable_dirdlg+set}" = set; then
14586   enableval=$enable_dirdlg;
14587                           if test "$enableval" = yes; then
14588                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14589                           else
14590                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14591                           fi
14592                           cache=yes
14593
14594 else
14595
14596                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14597                           if test "x$LINE" != x ; then
14598                               eval "DEFAULT_$LINE"
14599                               cache=yes
14600                           else
14601                               cache=no
14602                           fi
14603
14604                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14605
14606 fi
14607
14608
14609           eval "$wx_cv_use_dirdlg"
14610           if test "x$cache" = xyes; then
14611             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14612           fi
14613
14614           if test x"$enablestring" = xdisable; then
14615             if test $wxUSE_DIRDLG = yes; then
14616               result=no
14617             else
14618               result=yes
14619             fi
14620           else
14621             result=$wxUSE_DIRDLG
14622           fi
14623
14624           { echo "$as_me:$LINENO: result: $result" >&5
14625 echo "${ECHO_T}$result" >&6; }
14626
14627
14628           enablestring=
14629           defaultval=$wxUSE_ALL_FEATURES
14630           if test -z "$defaultval"; then
14631               if test x"$enablestring" = xdisable; then
14632                   defaultval=yes
14633               else
14634                   defaultval=no
14635               fi
14636           fi
14637
14638           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14639 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14640           # Check whether --enable-msgdlg was given.
14641 if test "${enable_msgdlg+set}" = set; then
14642   enableval=$enable_msgdlg;
14643                           if test "$enableval" = yes; then
14644                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14645                           else
14646                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14647                           fi
14648                           cache=yes
14649
14650 else
14651
14652                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14653                           if test "x$LINE" != x ; then
14654                               eval "DEFAULT_$LINE"
14655                               cache=yes
14656                           else
14657                               cache=no
14658                           fi
14659
14660                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14661
14662 fi
14663
14664
14665           eval "$wx_cv_use_msgdlg"
14666           if test "x$cache" = xyes; then
14667             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14668           fi
14669
14670           if test x"$enablestring" = xdisable; then
14671             if test $wxUSE_MSGDLG = yes; then
14672               result=no
14673             else
14674               result=yes
14675             fi
14676           else
14677             result=$wxUSE_MSGDLG
14678           fi
14679
14680           { echo "$as_me:$LINENO: result: $result" >&5
14681 echo "${ECHO_T}$result" >&6; }
14682
14683
14684           enablestring=
14685           defaultval=$wxUSE_ALL_FEATURES
14686           if test -z "$defaultval"; then
14687               if test x"$enablestring" = xdisable; then
14688                   defaultval=yes
14689               else
14690                   defaultval=no
14691               fi
14692           fi
14693
14694           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14695 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14696           # Check whether --enable-numberdlg was given.
14697 if test "${enable_numberdlg+set}" = set; then
14698   enableval=$enable_numberdlg;
14699                           if test "$enableval" = yes; then
14700                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14701                           else
14702                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14703                           fi
14704                           cache=yes
14705
14706 else
14707
14708                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14709                           if test "x$LINE" != x ; then
14710                               eval "DEFAULT_$LINE"
14711                               cache=yes
14712                           else
14713                               cache=no
14714                           fi
14715
14716                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14717
14718 fi
14719
14720
14721           eval "$wx_cv_use_numberdlg"
14722           if test "x$cache" = xyes; then
14723             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14724           fi
14725
14726           if test x"$enablestring" = xdisable; then
14727             if test $wxUSE_NUMBERDLG = yes; then
14728               result=no
14729             else
14730               result=yes
14731             fi
14732           else
14733             result=$wxUSE_NUMBERDLG
14734           fi
14735
14736           { echo "$as_me:$LINENO: result: $result" >&5
14737 echo "${ECHO_T}$result" >&6; }
14738
14739
14740           enablestring=
14741           defaultval=$wxUSE_ALL_FEATURES
14742           if test -z "$defaultval"; then
14743               if test x"$enablestring" = xdisable; then
14744                   defaultval=yes
14745               else
14746                   defaultval=no
14747               fi
14748           fi
14749
14750           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14751 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14752           # Check whether --enable-splash was given.
14753 if test "${enable_splash+set}" = set; then
14754   enableval=$enable_splash;
14755                           if test "$enableval" = yes; then
14756                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14757                           else
14758                             wx_cv_use_splash='wxUSE_SPLASH=no'
14759                           fi
14760                           cache=yes
14761
14762 else
14763
14764                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14765                           if test "x$LINE" != x ; then
14766                               eval "DEFAULT_$LINE"
14767                               cache=yes
14768                           else
14769                               cache=no
14770                           fi
14771
14772                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14773
14774 fi
14775
14776
14777           eval "$wx_cv_use_splash"
14778           if test "x$cache" = xyes; then
14779             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14780           fi
14781
14782           if test x"$enablestring" = xdisable; then
14783             if test $wxUSE_SPLASH = yes; then
14784               result=no
14785             else
14786               result=yes
14787             fi
14788           else
14789             result=$wxUSE_SPLASH
14790           fi
14791
14792           { echo "$as_me:$LINENO: result: $result" >&5
14793 echo "${ECHO_T}$result" >&6; }
14794
14795
14796           enablestring=
14797           defaultval=$wxUSE_ALL_FEATURES
14798           if test -z "$defaultval"; then
14799               if test x"$enablestring" = xdisable; then
14800                   defaultval=yes
14801               else
14802                   defaultval=no
14803               fi
14804           fi
14805
14806           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14807 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14808           # Check whether --enable-textdlg was given.
14809 if test "${enable_textdlg+set}" = set; then
14810   enableval=$enable_textdlg;
14811                           if test "$enableval" = yes; then
14812                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14813                           else
14814                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14815                           fi
14816                           cache=yes
14817
14818 else
14819
14820                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14821                           if test "x$LINE" != x ; then
14822                               eval "DEFAULT_$LINE"
14823                               cache=yes
14824                           else
14825                               cache=no
14826                           fi
14827
14828                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14829
14830 fi
14831
14832
14833           eval "$wx_cv_use_textdlg"
14834           if test "x$cache" = xyes; then
14835             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14836           fi
14837
14838           if test x"$enablestring" = xdisable; then
14839             if test $wxUSE_TEXTDLG = yes; then
14840               result=no
14841             else
14842               result=yes
14843             fi
14844           else
14845             result=$wxUSE_TEXTDLG
14846           fi
14847
14848           { echo "$as_me:$LINENO: result: $result" >&5
14849 echo "${ECHO_T}$result" >&6; }
14850
14851
14852           enablestring=
14853           defaultval=$wxUSE_ALL_FEATURES
14854           if test -z "$defaultval"; then
14855               if test x"$enablestring" = xdisable; then
14856                   defaultval=yes
14857               else
14858                   defaultval=no
14859               fi
14860           fi
14861
14862           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14863 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14864           # Check whether --enable-tipdlg was given.
14865 if test "${enable_tipdlg+set}" = set; then
14866   enableval=$enable_tipdlg;
14867                           if test "$enableval" = yes; then
14868                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14869                           else
14870                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14871                           fi
14872                           cache=yes
14873
14874 else
14875
14876                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14877                           if test "x$LINE" != x ; then
14878                               eval "DEFAULT_$LINE"
14879                               cache=yes
14880                           else
14881                               cache=no
14882                           fi
14883
14884                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14885
14886 fi
14887
14888
14889           eval "$wx_cv_use_tipdlg"
14890           if test "x$cache" = xyes; then
14891             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14892           fi
14893
14894           if test x"$enablestring" = xdisable; then
14895             if test $wxUSE_STARTUP_TIPS = yes; then
14896               result=no
14897             else
14898               result=yes
14899             fi
14900           else
14901             result=$wxUSE_STARTUP_TIPS
14902           fi
14903
14904           { echo "$as_me:$LINENO: result: $result" >&5
14905 echo "${ECHO_T}$result" >&6; }
14906
14907
14908           enablestring=
14909           defaultval=$wxUSE_ALL_FEATURES
14910           if test -z "$defaultval"; then
14911               if test x"$enablestring" = xdisable; then
14912                   defaultval=yes
14913               else
14914                   defaultval=no
14915               fi
14916           fi
14917
14918           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14919 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14920           # Check whether --enable-progressdlg was given.
14921 if test "${enable_progressdlg+set}" = set; then
14922   enableval=$enable_progressdlg;
14923                           if test "$enableval" = yes; then
14924                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14925                           else
14926                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14927                           fi
14928                           cache=yes
14929
14930 else
14931
14932                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14933                           if test "x$LINE" != x ; then
14934                               eval "DEFAULT_$LINE"
14935                               cache=yes
14936                           else
14937                               cache=no
14938                           fi
14939
14940                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14941
14942 fi
14943
14944
14945           eval "$wx_cv_use_progressdlg"
14946           if test "x$cache" = xyes; then
14947             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14948           fi
14949
14950           if test x"$enablestring" = xdisable; then
14951             if test $wxUSE_PROGRESSDLG = yes; then
14952               result=no
14953             else
14954               result=yes
14955             fi
14956           else
14957             result=$wxUSE_PROGRESSDLG
14958           fi
14959
14960           { echo "$as_me:$LINENO: result: $result" >&5
14961 echo "${ECHO_T}$result" >&6; }
14962
14963
14964           enablestring=
14965           defaultval=$wxUSE_ALL_FEATURES
14966           if test -z "$defaultval"; then
14967               if test x"$enablestring" = xdisable; then
14968                   defaultval=yes
14969               else
14970                   defaultval=no
14971               fi
14972           fi
14973
14974           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14975 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14976           # Check whether --enable-wizarddlg was given.
14977 if test "${enable_wizarddlg+set}" = set; then
14978   enableval=$enable_wizarddlg;
14979                           if test "$enableval" = yes; then
14980                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14981                           else
14982                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14983                           fi
14984                           cache=yes
14985
14986 else
14987
14988                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14989                           if test "x$LINE" != x ; then
14990                               eval "DEFAULT_$LINE"
14991                               cache=yes
14992                           else
14993                               cache=no
14994                           fi
14995
14996                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14997
14998 fi
14999
15000
15001           eval "$wx_cv_use_wizarddlg"
15002           if test "x$cache" = xyes; then
15003             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
15004           fi
15005
15006           if test x"$enablestring" = xdisable; then
15007             if test $wxUSE_WIZARDDLG = yes; then
15008               result=no
15009             else
15010               result=yes
15011             fi
15012           else
15013             result=$wxUSE_WIZARDDLG
15014           fi
15015
15016           { echo "$as_me:$LINENO: result: $result" >&5
15017 echo "${ECHO_T}$result" >&6; }
15018
15019
15020
15021
15022           enablestring=
15023           defaultval=$wxUSE_ALL_FEATURES
15024           if test -z "$defaultval"; then
15025               if test x"$enablestring" = xdisable; then
15026                   defaultval=yes
15027               else
15028                   defaultval=no
15029               fi
15030           fi
15031
15032           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
15033 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
15034           # Check whether --enable-menus was given.
15035 if test "${enable_menus+set}" = set; then
15036   enableval=$enable_menus;
15037                           if test "$enableval" = yes; then
15038                             wx_cv_use_menus='wxUSE_MENUS=yes'
15039                           else
15040                             wx_cv_use_menus='wxUSE_MENUS=no'
15041                           fi
15042                           cache=yes
15043
15044 else
15045
15046                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
15047                           if test "x$LINE" != x ; then
15048                               eval "DEFAULT_$LINE"
15049                               cache=yes
15050                           else
15051                               cache=no
15052                           fi
15053
15054                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
15055
15056 fi
15057
15058
15059           eval "$wx_cv_use_menus"
15060           if test "x$cache" = xyes; then
15061             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
15062           fi
15063
15064           if test x"$enablestring" = xdisable; then
15065             if test $wxUSE_MENUS = yes; then
15066               result=no
15067             else
15068               result=yes
15069             fi
15070           else
15071             result=$wxUSE_MENUS
15072           fi
15073
15074           { echo "$as_me:$LINENO: result: $result" >&5
15075 echo "${ECHO_T}$result" >&6; }
15076
15077
15078           enablestring=
15079           defaultval=$wxUSE_ALL_FEATURES
15080           if test -z "$defaultval"; then
15081               if test x"$enablestring" = xdisable; then
15082                   defaultval=yes
15083               else
15084                   defaultval=no
15085               fi
15086           fi
15087
15088           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
15089 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
15090           # Check whether --enable-miniframe was given.
15091 if test "${enable_miniframe+set}" = set; then
15092   enableval=$enable_miniframe;
15093                           if test "$enableval" = yes; then
15094                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
15095                           else
15096                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
15097                           fi
15098                           cache=yes
15099
15100 else
15101
15102                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
15103                           if test "x$LINE" != x ; then
15104                               eval "DEFAULT_$LINE"
15105                               cache=yes
15106                           else
15107                               cache=no
15108                           fi
15109
15110                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
15111
15112 fi
15113
15114
15115           eval "$wx_cv_use_miniframe"
15116           if test "x$cache" = xyes; then
15117             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
15118           fi
15119
15120           if test x"$enablestring" = xdisable; then
15121             if test $wxUSE_MINIFRAME = yes; then
15122               result=no
15123             else
15124               result=yes
15125             fi
15126           else
15127             result=$wxUSE_MINIFRAME
15128           fi
15129
15130           { echo "$as_me:$LINENO: result: $result" >&5
15131 echo "${ECHO_T}$result" >&6; }
15132
15133
15134           enablestring=
15135           defaultval=$wxUSE_ALL_FEATURES
15136           if test -z "$defaultval"; then
15137               if test x"$enablestring" = xdisable; then
15138                   defaultval=yes
15139               else
15140                   defaultval=no
15141               fi
15142           fi
15143
15144           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
15145 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
15146           # Check whether --enable-tooltips was given.
15147 if test "${enable_tooltips+set}" = set; then
15148   enableval=$enable_tooltips;
15149                           if test "$enableval" = yes; then
15150                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
15151                           else
15152                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
15153                           fi
15154                           cache=yes
15155
15156 else
15157
15158                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
15159                           if test "x$LINE" != x ; then
15160                               eval "DEFAULT_$LINE"
15161                               cache=yes
15162                           else
15163                               cache=no
15164                           fi
15165
15166                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
15167
15168 fi
15169
15170
15171           eval "$wx_cv_use_tooltips"
15172           if test "x$cache" = xyes; then
15173             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
15174           fi
15175
15176           if test x"$enablestring" = xdisable; then
15177             if test $wxUSE_TOOLTIPS = yes; then
15178               result=no
15179             else
15180               result=yes
15181             fi
15182           else
15183             result=$wxUSE_TOOLTIPS
15184           fi
15185
15186           { echo "$as_me:$LINENO: result: $result" >&5
15187 echo "${ECHO_T}$result" >&6; }
15188
15189
15190           enablestring=
15191           defaultval=$wxUSE_ALL_FEATURES
15192           if test -z "$defaultval"; then
15193               if test x"$enablestring" = xdisable; then
15194                   defaultval=yes
15195               else
15196                   defaultval=no
15197               fi
15198           fi
15199
15200           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
15201 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
15202           # Check whether --enable-splines was given.
15203 if test "${enable_splines+set}" = set; then
15204   enableval=$enable_splines;
15205                           if test "$enableval" = yes; then
15206                             wx_cv_use_splines='wxUSE_SPLINES=yes'
15207                           else
15208                             wx_cv_use_splines='wxUSE_SPLINES=no'
15209                           fi
15210                           cache=yes
15211
15212 else
15213
15214                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
15215                           if test "x$LINE" != x ; then
15216                               eval "DEFAULT_$LINE"
15217                               cache=yes
15218                           else
15219                               cache=no
15220                           fi
15221
15222                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
15223
15224 fi
15225
15226
15227           eval "$wx_cv_use_splines"
15228           if test "x$cache" = xyes; then
15229             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
15230           fi
15231
15232           if test x"$enablestring" = xdisable; then
15233             if test $wxUSE_SPLINES = yes; then
15234               result=no
15235             else
15236               result=yes
15237             fi
15238           else
15239             result=$wxUSE_SPLINES
15240           fi
15241
15242           { echo "$as_me:$LINENO: result: $result" >&5
15243 echo "${ECHO_T}$result" >&6; }
15244
15245
15246           enablestring=
15247           defaultval=$wxUSE_ALL_FEATURES
15248           if test -z "$defaultval"; then
15249               if test x"$enablestring" = xdisable; then
15250                   defaultval=yes
15251               else
15252                   defaultval=no
15253               fi
15254           fi
15255
15256           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
15257 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
15258           # Check whether --enable-mousewheel was given.
15259 if test "${enable_mousewheel+set}" = set; then
15260   enableval=$enable_mousewheel;
15261                           if test "$enableval" = yes; then
15262                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
15263                           else
15264                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
15265                           fi
15266                           cache=yes
15267
15268 else
15269
15270                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
15271                           if test "x$LINE" != x ; then
15272                               eval "DEFAULT_$LINE"
15273                               cache=yes
15274                           else
15275                               cache=no
15276                           fi
15277
15278                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
15279
15280 fi
15281
15282
15283           eval "$wx_cv_use_mousewheel"
15284           if test "x$cache" = xyes; then
15285             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
15286           fi
15287
15288           if test x"$enablestring" = xdisable; then
15289             if test $wxUSE_MOUSEWHEEL = yes; then
15290               result=no
15291             else
15292               result=yes
15293             fi
15294           else
15295             result=$wxUSE_MOUSEWHEEL
15296           fi
15297
15298           { echo "$as_me:$LINENO: result: $result" >&5
15299 echo "${ECHO_T}$result" >&6; }
15300
15301
15302           enablestring=
15303           defaultval=$wxUSE_ALL_FEATURES
15304           if test -z "$defaultval"; then
15305               if test x"$enablestring" = xdisable; then
15306                   defaultval=yes
15307               else
15308                   defaultval=no
15309               fi
15310           fi
15311
15312           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
15313 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
15314           # Check whether --enable-validators was given.
15315 if test "${enable_validators+set}" = set; then
15316   enableval=$enable_validators;
15317                           if test "$enableval" = yes; then
15318                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
15319                           else
15320                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
15321                           fi
15322                           cache=yes
15323
15324 else
15325
15326                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
15327                           if test "x$LINE" != x ; then
15328                               eval "DEFAULT_$LINE"
15329                               cache=yes
15330                           else
15331                               cache=no
15332                           fi
15333
15334                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
15335
15336 fi
15337
15338
15339           eval "$wx_cv_use_validators"
15340           if test "x$cache" = xyes; then
15341             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
15342           fi
15343
15344           if test x"$enablestring" = xdisable; then
15345             if test $wxUSE_VALIDATORS = yes; then
15346               result=no
15347             else
15348               result=yes
15349             fi
15350           else
15351             result=$wxUSE_VALIDATORS
15352           fi
15353
15354           { echo "$as_me:$LINENO: result: $result" >&5
15355 echo "${ECHO_T}$result" >&6; }
15356
15357
15358           enablestring=
15359           defaultval=$wxUSE_ALL_FEATURES
15360           if test -z "$defaultval"; then
15361               if test x"$enablestring" = xdisable; then
15362                   defaultval=yes
15363               else
15364                   defaultval=no
15365               fi
15366           fi
15367
15368           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
15369 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
15370           # Check whether --enable-busyinfo was given.
15371 if test "${enable_busyinfo+set}" = set; then
15372   enableval=$enable_busyinfo;
15373                           if test "$enableval" = yes; then
15374                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
15375                           else
15376                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
15377                           fi
15378                           cache=yes
15379
15380 else
15381
15382                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
15383                           if test "x$LINE" != x ; then
15384                               eval "DEFAULT_$LINE"
15385                               cache=yes
15386                           else
15387                               cache=no
15388                           fi
15389
15390                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
15391
15392 fi
15393
15394
15395           eval "$wx_cv_use_busyinfo"
15396           if test "x$cache" = xyes; then
15397             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
15398           fi
15399
15400           if test x"$enablestring" = xdisable; then
15401             if test $wxUSE_BUSYINFO = yes; then
15402               result=no
15403             else
15404               result=yes
15405             fi
15406           else
15407             result=$wxUSE_BUSYINFO
15408           fi
15409
15410           { echo "$as_me:$LINENO: result: $result" >&5
15411 echo "${ECHO_T}$result" >&6; }
15412
15413
15414           enablestring=
15415           defaultval=$wxUSE_ALL_FEATURES
15416           if test -z "$defaultval"; then
15417               if test x"$enablestring" = xdisable; then
15418                   defaultval=yes
15419               else
15420                   defaultval=no
15421               fi
15422           fi
15423
15424           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
15425 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
15426           # Check whether --enable-joystick was given.
15427 if test "${enable_joystick+set}" = set; then
15428   enableval=$enable_joystick;
15429                           if test "$enableval" = yes; then
15430                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
15431                           else
15432                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
15433                           fi
15434                           cache=yes
15435
15436 else
15437
15438                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
15439                           if test "x$LINE" != x ; then
15440                               eval "DEFAULT_$LINE"
15441                               cache=yes
15442                           else
15443                               cache=no
15444                           fi
15445
15446                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
15447
15448 fi
15449
15450
15451           eval "$wx_cv_use_joystick"
15452           if test "x$cache" = xyes; then
15453             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
15454           fi
15455
15456           if test x"$enablestring" = xdisable; then
15457             if test $wxUSE_JOYSTICK = yes; then
15458               result=no
15459             else
15460               result=yes
15461             fi
15462           else
15463             result=$wxUSE_JOYSTICK
15464           fi
15465
15466           { echo "$as_me:$LINENO: result: $result" >&5
15467 echo "${ECHO_T}$result" >&6; }
15468
15469
15470           enablestring=
15471           defaultval=$wxUSE_ALL_FEATURES
15472           if test -z "$defaultval"; then
15473               if test x"$enablestring" = xdisable; then
15474                   defaultval=yes
15475               else
15476                   defaultval=no
15477               fi
15478           fi
15479
15480           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
15481 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
15482           # Check whether --enable-metafile was given.
15483 if test "${enable_metafile+set}" = set; then
15484   enableval=$enable_metafile;
15485                           if test "$enableval" = yes; then
15486                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
15487                           else
15488                             wx_cv_use_metafile='wxUSE_METAFILE=no'
15489                           fi
15490                           cache=yes
15491
15492 else
15493
15494                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
15495                           if test "x$LINE" != x ; then
15496                               eval "DEFAULT_$LINE"
15497                               cache=yes
15498                           else
15499                               cache=no
15500                           fi
15501
15502                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
15503
15504 fi
15505
15506
15507           eval "$wx_cv_use_metafile"
15508           if test "x$cache" = xyes; then
15509             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
15510           fi
15511
15512           if test x"$enablestring" = xdisable; then
15513             if test $wxUSE_METAFILE = yes; then
15514               result=no
15515             else
15516               result=yes
15517             fi
15518           else
15519             result=$wxUSE_METAFILE
15520           fi
15521
15522           { echo "$as_me:$LINENO: result: $result" >&5
15523 echo "${ECHO_T}$result" >&6; }
15524
15525
15526           enablestring=
15527           defaultval=$wxUSE_ALL_FEATURES
15528           if test -z "$defaultval"; then
15529               if test x"$enablestring" = xdisable; then
15530                   defaultval=yes
15531               else
15532                   defaultval=no
15533               fi
15534           fi
15535
15536           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
15537 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
15538           # Check whether --enable-dragimage was given.
15539 if test "${enable_dragimage+set}" = set; then
15540   enableval=$enable_dragimage;
15541                           if test "$enableval" = yes; then
15542                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
15543                           else
15544                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
15545                           fi
15546                           cache=yes
15547
15548 else
15549
15550                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
15551                           if test "x$LINE" != x ; then
15552                               eval "DEFAULT_$LINE"
15553                               cache=yes
15554                           else
15555                               cache=no
15556                           fi
15557
15558                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
15559
15560 fi
15561
15562
15563           eval "$wx_cv_use_dragimage"
15564           if test "x$cache" = xyes; then
15565             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
15566           fi
15567
15568           if test x"$enablestring" = xdisable; then
15569             if test $wxUSE_DRAGIMAGE = yes; then
15570               result=no
15571             else
15572               result=yes
15573             fi
15574           else
15575             result=$wxUSE_DRAGIMAGE
15576           fi
15577
15578           { echo "$as_me:$LINENO: result: $result" >&5
15579 echo "${ECHO_T}$result" >&6; }
15580
15581
15582           enablestring=
15583           defaultval=$wxUSE_ALL_FEATURES
15584           if test -z "$defaultval"; then
15585               if test x"$enablestring" = xdisable; then
15586                   defaultval=yes
15587               else
15588                   defaultval=no
15589               fi
15590           fi
15591
15592           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
15593 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
15594           # Check whether --enable-accessibility was given.
15595 if test "${enable_accessibility+set}" = set; then
15596   enableval=$enable_accessibility;
15597                           if test "$enableval" = yes; then
15598                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15599                           else
15600                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15601                           fi
15602                           cache=yes
15603
15604 else
15605
15606                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15607                           if test "x$LINE" != x ; then
15608                               eval "DEFAULT_$LINE"
15609                               cache=yes
15610                           else
15611                               cache=no
15612                           fi
15613
15614                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15615
15616 fi
15617
15618
15619           eval "$wx_cv_use_accessibility"
15620           if test "x$cache" = xyes; then
15621             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15622           fi
15623
15624           if test x"$enablestring" = xdisable; then
15625             if test $wxUSE_ACCESSIBILITY = yes; then
15626               result=no
15627             else
15628               result=yes
15629             fi
15630           else
15631             result=$wxUSE_ACCESSIBILITY
15632           fi
15633
15634           { echo "$as_me:$LINENO: result: $result" >&5
15635 echo "${ECHO_T}$result" >&6; }
15636
15637
15638
15639
15640           enablestring=
15641           defaultval=$wxUSE_ALL_FEATURES
15642           if test -z "$defaultval"; then
15643               if test x"$enablestring" = xdisable; then
15644                   defaultval=yes
15645               else
15646                   defaultval=no
15647               fi
15648           fi
15649
15650           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15651 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15652           # Check whether --enable-palette was given.
15653 if test "${enable_palette+set}" = set; then
15654   enableval=$enable_palette;
15655                           if test "$enableval" = yes; then
15656                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15657                           else
15658                             wx_cv_use_palette='wxUSE_PALETTE=no'
15659                           fi
15660                           cache=yes
15661
15662 else
15663
15664                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15665                           if test "x$LINE" != x ; then
15666                               eval "DEFAULT_$LINE"
15667                               cache=yes
15668                           else
15669                               cache=no
15670                           fi
15671
15672                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15673
15674 fi
15675
15676
15677           eval "$wx_cv_use_palette"
15678           if test "x$cache" = xyes; then
15679             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15680           fi
15681
15682           if test x"$enablestring" = xdisable; then
15683             if test $wxUSE_PALETTE = yes; then
15684               result=no
15685             else
15686               result=yes
15687             fi
15688           else
15689             result=$wxUSE_PALETTE
15690           fi
15691
15692           { echo "$as_me:$LINENO: result: $result" >&5
15693 echo "${ECHO_T}$result" >&6; }
15694
15695
15696           enablestring=
15697           defaultval=$wxUSE_ALL_FEATURES
15698           if test -z "$defaultval"; then
15699               if test x"$enablestring" = xdisable; then
15700                   defaultval=yes
15701               else
15702                   defaultval=no
15703               fi
15704           fi
15705
15706           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15707 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15708           # Check whether --enable-image was given.
15709 if test "${enable_image+set}" = set; then
15710   enableval=$enable_image;
15711                           if test "$enableval" = yes; then
15712                             wx_cv_use_image='wxUSE_IMAGE=yes'
15713                           else
15714                             wx_cv_use_image='wxUSE_IMAGE=no'
15715                           fi
15716                           cache=yes
15717
15718 else
15719
15720                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15721                           if test "x$LINE" != x ; then
15722                               eval "DEFAULT_$LINE"
15723                               cache=yes
15724                           else
15725                               cache=no
15726                           fi
15727
15728                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15729
15730 fi
15731
15732
15733           eval "$wx_cv_use_image"
15734           if test "x$cache" = xyes; then
15735             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15736           fi
15737
15738           if test x"$enablestring" = xdisable; then
15739             if test $wxUSE_IMAGE = yes; then
15740               result=no
15741             else
15742               result=yes
15743             fi
15744           else
15745             result=$wxUSE_IMAGE
15746           fi
15747
15748           { echo "$as_me:$LINENO: result: $result" >&5
15749 echo "${ECHO_T}$result" >&6; }
15750
15751
15752           enablestring=
15753           defaultval=$wxUSE_ALL_FEATURES
15754           if test -z "$defaultval"; then
15755               if test x"$enablestring" = xdisable; then
15756                   defaultval=yes
15757               else
15758                   defaultval=no
15759               fi
15760           fi
15761
15762           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15763 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15764           # Check whether --enable-gif was given.
15765 if test "${enable_gif+set}" = set; then
15766   enableval=$enable_gif;
15767                           if test "$enableval" = yes; then
15768                             wx_cv_use_gif='wxUSE_GIF=yes'
15769                           else
15770                             wx_cv_use_gif='wxUSE_GIF=no'
15771                           fi
15772                           cache=yes
15773
15774 else
15775
15776                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15777                           if test "x$LINE" != x ; then
15778                               eval "DEFAULT_$LINE"
15779                               cache=yes
15780                           else
15781                               cache=no
15782                           fi
15783
15784                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15785
15786 fi
15787
15788
15789           eval "$wx_cv_use_gif"
15790           if test "x$cache" = xyes; then
15791             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15792           fi
15793
15794           if test x"$enablestring" = xdisable; then
15795             if test $wxUSE_GIF = yes; then
15796               result=no
15797             else
15798               result=yes
15799             fi
15800           else
15801             result=$wxUSE_GIF
15802           fi
15803
15804           { echo "$as_me:$LINENO: result: $result" >&5
15805 echo "${ECHO_T}$result" >&6; }
15806
15807
15808           enablestring=
15809           defaultval=$wxUSE_ALL_FEATURES
15810           if test -z "$defaultval"; then
15811               if test x"$enablestring" = xdisable; then
15812                   defaultval=yes
15813               else
15814                   defaultval=no
15815               fi
15816           fi
15817
15818           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15819 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15820           # Check whether --enable-pcx was given.
15821 if test "${enable_pcx+set}" = set; then
15822   enableval=$enable_pcx;
15823                           if test "$enableval" = yes; then
15824                             wx_cv_use_pcx='wxUSE_PCX=yes'
15825                           else
15826                             wx_cv_use_pcx='wxUSE_PCX=no'
15827                           fi
15828                           cache=yes
15829
15830 else
15831
15832                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15833                           if test "x$LINE" != x ; then
15834                               eval "DEFAULT_$LINE"
15835                               cache=yes
15836                           else
15837                               cache=no
15838                           fi
15839
15840                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15841
15842 fi
15843
15844
15845           eval "$wx_cv_use_pcx"
15846           if test "x$cache" = xyes; then
15847             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15848           fi
15849
15850           if test x"$enablestring" = xdisable; then
15851             if test $wxUSE_PCX = yes; then
15852               result=no
15853             else
15854               result=yes
15855             fi
15856           else
15857             result=$wxUSE_PCX
15858           fi
15859
15860           { echo "$as_me:$LINENO: result: $result" >&5
15861 echo "${ECHO_T}$result" >&6; }
15862
15863
15864           enablestring=
15865           defaultval=$wxUSE_ALL_FEATURES
15866           if test -z "$defaultval"; then
15867               if test x"$enablestring" = xdisable; then
15868                   defaultval=yes
15869               else
15870                   defaultval=no
15871               fi
15872           fi
15873
15874           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15875 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15876           # Check whether --enable-tga was given.
15877 if test "${enable_tga+set}" = set; then
15878   enableval=$enable_tga;
15879                           if test "$enableval" = yes; then
15880                             wx_cv_use_tga='wxUSE_TGA=yes'
15881                           else
15882                             wx_cv_use_tga='wxUSE_TGA=no'
15883                           fi
15884                           cache=yes
15885
15886 else
15887
15888                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15889                           if test "x$LINE" != x ; then
15890                               eval "DEFAULT_$LINE"
15891                               cache=yes
15892                           else
15893                               cache=no
15894                           fi
15895
15896                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15897
15898 fi
15899
15900
15901           eval "$wx_cv_use_tga"
15902           if test "x$cache" = xyes; then
15903             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15904           fi
15905
15906           if test x"$enablestring" = xdisable; then
15907             if test $wxUSE_TGA = yes; then
15908               result=no
15909             else
15910               result=yes
15911             fi
15912           else
15913             result=$wxUSE_TGA
15914           fi
15915
15916           { echo "$as_me:$LINENO: result: $result" >&5
15917 echo "${ECHO_T}$result" >&6; }
15918
15919
15920           enablestring=
15921           defaultval=$wxUSE_ALL_FEATURES
15922           if test -z "$defaultval"; then
15923               if test x"$enablestring" = xdisable; then
15924                   defaultval=yes
15925               else
15926                   defaultval=no
15927               fi
15928           fi
15929
15930           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15931 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15932           # Check whether --enable-iff was given.
15933 if test "${enable_iff+set}" = set; then
15934   enableval=$enable_iff;
15935                           if test "$enableval" = yes; then
15936                             wx_cv_use_iff='wxUSE_IFF=yes'
15937                           else
15938                             wx_cv_use_iff='wxUSE_IFF=no'
15939                           fi
15940                           cache=yes
15941
15942 else
15943
15944                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15945                           if test "x$LINE" != x ; then
15946                               eval "DEFAULT_$LINE"
15947                               cache=yes
15948                           else
15949                               cache=no
15950                           fi
15951
15952                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15953
15954 fi
15955
15956
15957           eval "$wx_cv_use_iff"
15958           if test "x$cache" = xyes; then
15959             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15960           fi
15961
15962           if test x"$enablestring" = xdisable; then
15963             if test $wxUSE_IFF = yes; then
15964               result=no
15965             else
15966               result=yes
15967             fi
15968           else
15969             result=$wxUSE_IFF
15970           fi
15971
15972           { echo "$as_me:$LINENO: result: $result" >&5
15973 echo "${ECHO_T}$result" >&6; }
15974
15975
15976           enablestring=
15977           defaultval=$wxUSE_ALL_FEATURES
15978           if test -z "$defaultval"; then
15979               if test x"$enablestring" = xdisable; then
15980                   defaultval=yes
15981               else
15982                   defaultval=no
15983               fi
15984           fi
15985
15986           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15987 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15988           # Check whether --enable-pnm was given.
15989 if test "${enable_pnm+set}" = set; then
15990   enableval=$enable_pnm;
15991                           if test "$enableval" = yes; then
15992                             wx_cv_use_pnm='wxUSE_PNM=yes'
15993                           else
15994                             wx_cv_use_pnm='wxUSE_PNM=no'
15995                           fi
15996                           cache=yes
15997
15998 else
15999
16000                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
16001                           if test "x$LINE" != x ; then
16002                               eval "DEFAULT_$LINE"
16003                               cache=yes
16004                           else
16005                               cache=no
16006                           fi
16007
16008                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
16009
16010 fi
16011
16012
16013           eval "$wx_cv_use_pnm"
16014           if test "x$cache" = xyes; then
16015             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
16016           fi
16017
16018           if test x"$enablestring" = xdisable; then
16019             if test $wxUSE_PNM = yes; then
16020               result=no
16021             else
16022               result=yes
16023             fi
16024           else
16025             result=$wxUSE_PNM
16026           fi
16027
16028           { echo "$as_me:$LINENO: result: $result" >&5
16029 echo "${ECHO_T}$result" >&6; }
16030
16031
16032           enablestring=
16033           defaultval=$wxUSE_ALL_FEATURES
16034           if test -z "$defaultval"; then
16035               if test x"$enablestring" = xdisable; then
16036                   defaultval=yes
16037               else
16038                   defaultval=no
16039               fi
16040           fi
16041
16042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
16043 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
16044           # Check whether --enable-xpm was given.
16045 if test "${enable_xpm+set}" = set; then
16046   enableval=$enable_xpm;
16047                           if test "$enableval" = yes; then
16048                             wx_cv_use_xpm='wxUSE_XPM=yes'
16049                           else
16050                             wx_cv_use_xpm='wxUSE_XPM=no'
16051                           fi
16052                           cache=yes
16053
16054 else
16055
16056                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
16057                           if test "x$LINE" != x ; then
16058                               eval "DEFAULT_$LINE"
16059                               cache=yes
16060                           else
16061                               cache=no
16062                           fi
16063
16064                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
16065
16066 fi
16067
16068
16069           eval "$wx_cv_use_xpm"
16070           if test "x$cache" = xyes; then
16071             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
16072           fi
16073
16074           if test x"$enablestring" = xdisable; then
16075             if test $wxUSE_XPM = yes; then
16076               result=no
16077             else
16078               result=yes
16079             fi
16080           else
16081             result=$wxUSE_XPM
16082           fi
16083
16084           { echo "$as_me:$LINENO: result: $result" >&5
16085 echo "${ECHO_T}$result" >&6; }
16086
16087
16088           enablestring=
16089           defaultval=$wxUSE_ALL_FEATURES
16090           if test -z "$defaultval"; then
16091               if test x"$enablestring" = xdisable; then
16092                   defaultval=yes
16093               else
16094                   defaultval=no
16095               fi
16096           fi
16097
16098           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
16099 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
16100           # Check whether --enable-ico_cur was given.
16101 if test "${enable_ico_cur+set}" = set; then
16102   enableval=$enable_ico_cur;
16103                           if test "$enableval" = yes; then
16104                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
16105                           else
16106                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
16107                           fi
16108                           cache=yes
16109
16110 else
16111
16112                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
16113                           if test "x$LINE" != x ; then
16114                               eval "DEFAULT_$LINE"
16115                               cache=yes
16116                           else
16117                               cache=no
16118                           fi
16119
16120                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
16121
16122 fi
16123
16124
16125           eval "$wx_cv_use_ico_cur"
16126           if test "x$cache" = xyes; then
16127             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
16128           fi
16129
16130           if test x"$enablestring" = xdisable; then
16131             if test $wxUSE_ICO_CUR = yes; then
16132               result=no
16133             else
16134               result=yes
16135             fi
16136           else
16137             result=$wxUSE_ICO_CUR
16138           fi
16139
16140           { echo "$as_me:$LINENO: result: $result" >&5
16141 echo "${ECHO_T}$result" >&6; }
16142
16143
16144
16145
16146           enablestring=
16147           defaultval=$wxUSE_ALL_FEATURES
16148           if test -z "$defaultval"; then
16149               if test x"$enablestring" = xdisable; then
16150                   defaultval=yes
16151               else
16152                   defaultval=no
16153               fi
16154           fi
16155
16156           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
16157 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
16158           # Check whether --enable-dccache was given.
16159 if test "${enable_dccache+set}" = set; then
16160   enableval=$enable_dccache;
16161                           if test "$enableval" = yes; then
16162                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
16163                           else
16164                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
16165                           fi
16166                           cache=yes
16167
16168 else
16169
16170                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
16171                           if test "x$LINE" != x ; then
16172                               eval "DEFAULT_$LINE"
16173                               cache=yes
16174                           else
16175                               cache=no
16176                           fi
16177
16178                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
16179
16180 fi
16181
16182
16183           eval "$wx_cv_use_dccache"
16184           if test "x$cache" = xyes; then
16185             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
16186           fi
16187
16188           if test x"$enablestring" = xdisable; then
16189             if test $wxUSE_DC_CACHEING = yes; then
16190               result=no
16191             else
16192               result=yes
16193             fi
16194           else
16195             result=$wxUSE_DC_CACHEING
16196           fi
16197
16198           { echo "$as_me:$LINENO: result: $result" >&5
16199 echo "${ECHO_T}$result" >&6; }
16200
16201
16202           enablestring=
16203           defaultval=$wxUSE_ALL_FEATURES
16204           if test -z "$defaultval"; then
16205               if test x"$enablestring" = xdisable; then
16206                   defaultval=yes
16207               else
16208                   defaultval=no
16209               fi
16210           fi
16211
16212           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
16213 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
16214           # Check whether --enable-ps-in-msw was given.
16215 if test "${enable_ps_in_msw+set}" = set; then
16216   enableval=$enable_ps_in_msw;
16217                           if test "$enableval" = yes; then
16218                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
16219                           else
16220                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
16221                           fi
16222                           cache=yes
16223
16224 else
16225
16226                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
16227                           if test "x$LINE" != x ; then
16228                               eval "DEFAULT_$LINE"
16229                               cache=yes
16230                           else
16231                               cache=no
16232                           fi
16233
16234                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
16235
16236 fi
16237
16238
16239           eval "$wx_cv_use_ps_in_msw"
16240           if test "x$cache" = xyes; then
16241             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
16242           fi
16243
16244           if test x"$enablestring" = xdisable; then
16245             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
16246               result=no
16247             else
16248               result=yes
16249             fi
16250           else
16251             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
16252           fi
16253
16254           { echo "$as_me:$LINENO: result: $result" >&5
16255 echo "${ECHO_T}$result" >&6; }
16256
16257
16258           enablestring=
16259           defaultval=$wxUSE_ALL_FEATURES
16260           if test -z "$defaultval"; then
16261               if test x"$enablestring" = xdisable; then
16262                   defaultval=yes
16263               else
16264                   defaultval=no
16265               fi
16266           fi
16267
16268           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
16269 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
16270           # Check whether --enable-ownerdrawn was given.
16271 if test "${enable_ownerdrawn+set}" = set; then
16272   enableval=$enable_ownerdrawn;
16273                           if test "$enableval" = yes; then
16274                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
16275                           else
16276                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
16277                           fi
16278                           cache=yes
16279
16280 else
16281
16282                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
16283                           if test "x$LINE" != x ; then
16284                               eval "DEFAULT_$LINE"
16285                               cache=yes
16286                           else
16287                               cache=no
16288                           fi
16289
16290                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
16291
16292 fi
16293
16294
16295           eval "$wx_cv_use_ownerdrawn"
16296           if test "x$cache" = xyes; then
16297             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
16298           fi
16299
16300           if test x"$enablestring" = xdisable; then
16301             if test $wxUSE_OWNER_DRAWN = yes; then
16302               result=no
16303             else
16304               result=yes
16305             fi
16306           else
16307             result=$wxUSE_OWNER_DRAWN
16308           fi
16309
16310           { echo "$as_me:$LINENO: result: $result" >&5
16311 echo "${ECHO_T}$result" >&6; }
16312
16313
16314           enablestring=
16315           defaultval=$wxUSE_ALL_FEATURES
16316           if test -z "$defaultval"; then
16317               if test x"$enablestring" = xdisable; then
16318                   defaultval=yes
16319               else
16320                   defaultval=no
16321               fi
16322           fi
16323
16324           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
16325 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
16326           # Check whether --enable-uxtheme was given.
16327 if test "${enable_uxtheme+set}" = set; then
16328   enableval=$enable_uxtheme;
16329                           if test "$enableval" = yes; then
16330                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
16331                           else
16332                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
16333                           fi
16334                           cache=yes
16335
16336 else
16337
16338                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
16339                           if test "x$LINE" != x ; then
16340                               eval "DEFAULT_$LINE"
16341                               cache=yes
16342                           else
16343                               cache=no
16344                           fi
16345
16346                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
16347
16348 fi
16349
16350
16351           eval "$wx_cv_use_uxtheme"
16352           if test "x$cache" = xyes; then
16353             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
16354           fi
16355
16356           if test x"$enablestring" = xdisable; then
16357             if test $wxUSE_UXTHEME = yes; then
16358               result=no
16359             else
16360               result=yes
16361             fi
16362           else
16363             result=$wxUSE_UXTHEME
16364           fi
16365
16366           { echo "$as_me:$LINENO: result: $result" >&5
16367 echo "${ECHO_T}$result" >&6; }
16368
16369
16370           enablestring=
16371           defaultval=$wxUSE_ALL_FEATURES
16372           if test -z "$defaultval"; then
16373               if test x"$enablestring" = xdisable; then
16374                   defaultval=yes
16375               else
16376                   defaultval=no
16377               fi
16378           fi
16379
16380           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
16381 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
16382           # Check whether --enable-wxdib was given.
16383 if test "${enable_wxdib+set}" = set; then
16384   enableval=$enable_wxdib;
16385                           if test "$enableval" = yes; then
16386                             wx_cv_use_wxdib='wxUSE_DIB=yes'
16387                           else
16388                             wx_cv_use_wxdib='wxUSE_DIB=no'
16389                           fi
16390                           cache=yes
16391
16392 else
16393
16394                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
16395                           if test "x$LINE" != x ; then
16396                               eval "DEFAULT_$LINE"
16397                               cache=yes
16398                           else
16399                               cache=no
16400                           fi
16401
16402                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
16403
16404 fi
16405
16406
16407           eval "$wx_cv_use_wxdib"
16408           if test "x$cache" = xyes; then
16409             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
16410           fi
16411
16412           if test x"$enablestring" = xdisable; then
16413             if test $wxUSE_DIB = yes; then
16414               result=no
16415             else
16416               result=yes
16417             fi
16418           else
16419             result=$wxUSE_DIB
16420           fi
16421
16422           { echo "$as_me:$LINENO: result: $result" >&5
16423 echo "${ECHO_T}$result" >&6; }
16424
16425
16426 fi
16427
16428
16429           echo "saving argument cache $wx_arg_cache_file"
16430           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
16431
16432
16433
16434 { echo "$as_me:$LINENO: checking for toolkit" >&5
16435 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
16436
16437 # In Wine, we need to default to MSW, not GTK or MOTIF
16438 if test "$wxUSE_WINE" = "yes"; then
16439     DEFAULT_DEFAULT_wxUSE_GTK=0
16440     DEFAULT_DEFAULT_wxUSE_MOTIF=0
16441     DEFAULT_DEFAULT_wxUSE_MSW=1
16442     wxUSE_SHARED=no
16443     CC=${CC:-winegcc}
16444     CXX=${CXX:-wineg++}
16445 fi
16446
16447
16448 if test "$wxUSE_GUI" = "yes"; then
16449
16450     if test "$USE_BEOS" = 1; then
16451         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
16452 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
16453    { (exit 1); exit 1; }; }
16454     fi
16455
16456     if test "$TOOLKIT_GIVEN" = 1; then
16457             for toolkit in $ALL_TOOLKITS; do
16458         var=wxUSE_$toolkit
16459         eval "value=\$${var}"
16460         if test "x$value" = "xno"; then
16461           eval "$var=0"
16462         elif test "x$value" != "x"; then
16463           eval "$var=1"
16464         fi
16465
16466         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
16467           eval "wx${toolkit}_VERSION=$value"
16468         fi
16469       done
16470     else
16471             for toolkit in $ALL_TOOLKITS; do
16472         if test "$has_toolkit_in_cache" != 1; then
16473           var=DEFAULT_DEFAULT_wxUSE_$toolkit
16474         else
16475           var=DEFAULT_wxUSE_$toolkit
16476
16477           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
16478           if test "x$version" != "x"; then
16479             eval "wx${toolkit}_VERSION=$version"
16480           fi
16481         fi
16482         eval "wxUSE_$toolkit=\$${var}"
16483       done
16484     fi
16485
16486             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
16487                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
16488                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
16489
16490         case "${host}" in
16491       *-pc-os2_emx | *-pc-os2-emx )
16492         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
16493     esac
16494
16495     case "$NUM_TOOLKITS" in
16496       1)
16497       ;;
16498       0)
16499         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
16500 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
16501    { (exit 1); exit 1; }; }
16502       ;;
16503       *)
16504         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
16505 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
16506    { (exit 1); exit 1; }; }
16507     esac
16508
16509     # to be removed when --disable-gtk2 isn't needed
16510     if test "x$wxUSE_GTK2" = "xyes"; then
16511         wxGTK_VERSION=2
16512     elif test "x$wxUSE_GTK2" = "xno"; then
16513         wxGTK_VERSION=1
16514     fi
16515
16516         for toolkit in $ALL_TOOLKITS; do
16517       var=wxUSE_$toolkit
16518       eval "value=\$${var}"
16519       if test "x$value" != x; then
16520         cache_var=CACHE_$toolkit
16521         eval "cache=\$${cache_var}"
16522         if test "$cache" = 1; then
16523           echo "$var=$value" >> ${wx_arg_cache_file}
16524           eval "version=\$wx${toolkit}_VERSION"
16525           if test "x$version" != "x"; then
16526             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16527           fi
16528         fi
16529         if test "$value" = 1; then
16530           toolkit_echo=`echo $toolkit | tr A-Z a-z`
16531           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16532 echo "${ECHO_T}$toolkit_echo" >&6; }
16533         fi
16534       fi
16535     done
16536 else
16537     if test "x$host_alias" != "x"; then
16538         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16539 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
16540     else
16541         { echo "$as_me:$LINENO: result: base only" >&5
16542 echo "${ECHO_T}base only" >&6; }
16543     fi
16544 fi
16545
16546
16547 cat >confcache <<\_ACEOF
16548 # This file is a shell script that caches the results of configure
16549 # tests run on this system so they can be shared between configure
16550 # scripts and configure runs, see configure's option --config-cache.
16551 # It is not useful on other systems.  If it contains results you don't
16552 # want to keep, you may remove or edit it.
16553 #
16554 # config.status only pays attention to the cache file if you give it
16555 # the --recheck option to rerun configure.
16556 #
16557 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16558 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16559 # following values.
16560
16561 _ACEOF
16562
16563 # The following way of writing the cache mishandles newlines in values,
16564 # but we know of no workaround that is simple, portable, and efficient.
16565 # So, we kill variables containing newlines.
16566 # Ultrix sh set writes to stderr and can't be redirected directly,
16567 # and sets the high bit in the cache file unless we assign to the vars.
16568 (
16569   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16570     eval ac_val=\$$ac_var
16571     case $ac_val in #(
16572     *${as_nl}*)
16573       case $ac_var in #(
16574       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16576       esac
16577       case $ac_var in #(
16578       _ | IFS | as_nl) ;; #(
16579       *) $as_unset $ac_var ;;
16580       esac ;;
16581     esac
16582   done
16583
16584   (set) 2>&1 |
16585     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16586     *${as_nl}ac_space=\ *)
16587       # `set' does not quote correctly, so add quotes (double-quote
16588       # substitution turns \\\\ into \\, and sed turns \\ into \).
16589       sed -n \
16590         "s/'/'\\\\''/g;
16591           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16592       ;; #(
16593     *)
16594       # `set' quotes correctly as required by POSIX, so do not add quotes.
16595       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16596       ;;
16597     esac |
16598     sort
16599 ) |
16600   sed '
16601      /^ac_cv_env_/b end
16602      t clear
16603      :clear
16604      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16605      t end
16606      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16607      :end' >>confcache
16608 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16609   if test -w "$cache_file"; then
16610     test "x$cache_file" != "x/dev/null" &&
16611       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16612 echo "$as_me: updating cache $cache_file" >&6;}
16613     cat confcache >$cache_file
16614   else
16615     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16616 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16617   fi
16618 fi
16619 rm -f confcache
16620
16621 CFLAGS=${CFLAGS:=}
16622
16623
16624
16625     ac_ext=c
16626 ac_cpp='$CPP $CPPFLAGS'
16627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16630 if test -n "$ac_tool_prefix"; then
16631   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16632 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16635 if test "${ac_cv_prog_CC+set}" = set; then
16636   echo $ECHO_N "(cached) $ECHO_C" >&6
16637 else
16638   if test -n "$CC"; then
16639   ac_cv_prog_CC="$CC" # Let the user override the test.
16640 else
16641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16643 do
16644   IFS=$as_save_IFS
16645   test -z "$as_dir" && as_dir=.
16646   for ac_exec_ext in '' $ac_executable_extensions; do
16647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16648     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16649     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16650     break 2
16651   fi
16652 done
16653 done
16654 IFS=$as_save_IFS
16655
16656 fi
16657 fi
16658 CC=$ac_cv_prog_CC
16659 if test -n "$CC"; then
16660   { echo "$as_me:$LINENO: result: $CC" >&5
16661 echo "${ECHO_T}$CC" >&6; }
16662 else
16663   { echo "$as_me:$LINENO: result: no" >&5
16664 echo "${ECHO_T}no" >&6; }
16665 fi
16666
16667
16668 fi
16669 if test -z "$ac_cv_prog_CC"; then
16670   ac_ct_CC=$CC
16671   # Extract the first word of "gcc", so it can be a program name with args.
16672 set dummy gcc; ac_word=$2
16673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16675 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16676   echo $ECHO_N "(cached) $ECHO_C" >&6
16677 else
16678   if test -n "$ac_ct_CC"; then
16679   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16680 else
16681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16682 for as_dir in $PATH
16683 do
16684   IFS=$as_save_IFS
16685   test -z "$as_dir" && as_dir=.
16686   for ac_exec_ext in '' $ac_executable_extensions; do
16687   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16688     ac_cv_prog_ac_ct_CC="gcc"
16689     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16690     break 2
16691   fi
16692 done
16693 done
16694 IFS=$as_save_IFS
16695
16696 fi
16697 fi
16698 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16699 if test -n "$ac_ct_CC"; then
16700   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16701 echo "${ECHO_T}$ac_ct_CC" >&6; }
16702 else
16703   { echo "$as_me:$LINENO: result: no" >&5
16704 echo "${ECHO_T}no" >&6; }
16705 fi
16706
16707   if test "x$ac_ct_CC" = x; then
16708     CC=""
16709   else
16710     case $cross_compiling:$ac_tool_warned in
16711 yes:)
16712 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16713 whose name does not start with the host triplet.  If you think this
16714 configuration is useful to you, please write to autoconf@gnu.org." >&5
16715 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16716 whose name does not start with the host triplet.  If you think this
16717 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16718 ac_tool_warned=yes ;;
16719 esac
16720     CC=$ac_ct_CC
16721   fi
16722 else
16723   CC="$ac_cv_prog_CC"
16724 fi
16725
16726 if test -z "$CC"; then
16727           if test -n "$ac_tool_prefix"; then
16728     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16729 set dummy ${ac_tool_prefix}cc; ac_word=$2
16730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16732 if test "${ac_cv_prog_CC+set}" = set; then
16733   echo $ECHO_N "(cached) $ECHO_C" >&6
16734 else
16735   if test -n "$CC"; then
16736   ac_cv_prog_CC="$CC" # Let the user override the test.
16737 else
16738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16739 for as_dir in $PATH
16740 do
16741   IFS=$as_save_IFS
16742   test -z "$as_dir" && as_dir=.
16743   for ac_exec_ext in '' $ac_executable_extensions; do
16744   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16745     ac_cv_prog_CC="${ac_tool_prefix}cc"
16746     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16747     break 2
16748   fi
16749 done
16750 done
16751 IFS=$as_save_IFS
16752
16753 fi
16754 fi
16755 CC=$ac_cv_prog_CC
16756 if test -n "$CC"; then
16757   { echo "$as_me:$LINENO: result: $CC" >&5
16758 echo "${ECHO_T}$CC" >&6; }
16759 else
16760   { echo "$as_me:$LINENO: result: no" >&5
16761 echo "${ECHO_T}no" >&6; }
16762 fi
16763
16764
16765   fi
16766 fi
16767 if test -z "$CC"; then
16768   # Extract the first word of "cc", so it can be a program name with args.
16769 set dummy cc; ac_word=$2
16770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16772 if test "${ac_cv_prog_CC+set}" = set; then
16773   echo $ECHO_N "(cached) $ECHO_C" >&6
16774 else
16775   if test -n "$CC"; then
16776   ac_cv_prog_CC="$CC" # Let the user override the test.
16777 else
16778   ac_prog_rejected=no
16779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780 for as_dir in $PATH
16781 do
16782   IFS=$as_save_IFS
16783   test -z "$as_dir" && as_dir=.
16784   for ac_exec_ext in '' $ac_executable_extensions; do
16785   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16786     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16787        ac_prog_rejected=yes
16788        continue
16789      fi
16790     ac_cv_prog_CC="cc"
16791     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16792     break 2
16793   fi
16794 done
16795 done
16796 IFS=$as_save_IFS
16797
16798 if test $ac_prog_rejected = yes; then
16799   # We found a bogon in the path, so make sure we never use it.
16800   set dummy $ac_cv_prog_CC
16801   shift
16802   if test $# != 0; then
16803     # We chose a different compiler from the bogus one.
16804     # However, it has the same basename, so the bogon will be chosen
16805     # first if we set CC to just the basename; use the full file name.
16806     shift
16807     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16808   fi
16809 fi
16810 fi
16811 fi
16812 CC=$ac_cv_prog_CC
16813 if test -n "$CC"; then
16814   { echo "$as_me:$LINENO: result: $CC" >&5
16815 echo "${ECHO_T}$CC" >&6; }
16816 else
16817   { echo "$as_me:$LINENO: result: no" >&5
16818 echo "${ECHO_T}no" >&6; }
16819 fi
16820
16821
16822 fi
16823 if test -z "$CC"; then
16824   if test -n "$ac_tool_prefix"; then
16825   for ac_prog in cl.exe
16826   do
16827     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16828 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16829 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16830 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16831 if test "${ac_cv_prog_CC+set}" = set; then
16832   echo $ECHO_N "(cached) $ECHO_C" >&6
16833 else
16834   if test -n "$CC"; then
16835   ac_cv_prog_CC="$CC" # Let the user override the test.
16836 else
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838 for as_dir in $PATH
16839 do
16840   IFS=$as_save_IFS
16841   test -z "$as_dir" && as_dir=.
16842   for ac_exec_ext in '' $ac_executable_extensions; do
16843   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16844     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16845     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16846     break 2
16847   fi
16848 done
16849 done
16850 IFS=$as_save_IFS
16851
16852 fi
16853 fi
16854 CC=$ac_cv_prog_CC
16855 if test -n "$CC"; then
16856   { echo "$as_me:$LINENO: result: $CC" >&5
16857 echo "${ECHO_T}$CC" >&6; }
16858 else
16859   { echo "$as_me:$LINENO: result: no" >&5
16860 echo "${ECHO_T}no" >&6; }
16861 fi
16862
16863
16864     test -n "$CC" && break
16865   done
16866 fi
16867 if test -z "$CC"; then
16868   ac_ct_CC=$CC
16869   for ac_prog in cl.exe
16870 do
16871   # Extract the first word of "$ac_prog", so it can be a program name with args.
16872 set dummy $ac_prog; ac_word=$2
16873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16875 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16876   echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878   if test -n "$ac_ct_CC"; then
16879   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16880 else
16881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16882 for as_dir in $PATH
16883 do
16884   IFS=$as_save_IFS
16885   test -z "$as_dir" && as_dir=.
16886   for ac_exec_ext in '' $ac_executable_extensions; do
16887   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16888     ac_cv_prog_ac_ct_CC="$ac_prog"
16889     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16890     break 2
16891   fi
16892 done
16893 done
16894 IFS=$as_save_IFS
16895
16896 fi
16897 fi
16898 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16899 if test -n "$ac_ct_CC"; then
16900   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16901 echo "${ECHO_T}$ac_ct_CC" >&6; }
16902 else
16903   { echo "$as_me:$LINENO: result: no" >&5
16904 echo "${ECHO_T}no" >&6; }
16905 fi
16906
16907
16908   test -n "$ac_ct_CC" && break
16909 done
16910
16911   if test "x$ac_ct_CC" = x; then
16912     CC=""
16913   else
16914     case $cross_compiling:$ac_tool_warned in
16915 yes:)
16916 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16917 whose name does not start with the host triplet.  If you think this
16918 configuration is useful to you, please write to autoconf@gnu.org." >&5
16919 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16920 whose name does not start with the host triplet.  If you think this
16921 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16922 ac_tool_warned=yes ;;
16923 esac
16924     CC=$ac_ct_CC
16925   fi
16926 fi
16927
16928 fi
16929
16930
16931 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16932 See \`config.log' for more details." >&5
16933 echo "$as_me: error: no acceptable C compiler found in \$PATH
16934 See \`config.log' for more details." >&2;}
16935    { (exit 1); exit 1; }; }
16936
16937 # Provide some information about the compiler.
16938 echo "$as_me:$LINENO: checking for C compiler version" >&5
16939 ac_compiler=`set X $ac_compile; echo $2`
16940 { (ac_try="$ac_compiler --version >&5"
16941 case "(($ac_try" in
16942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943   *) ac_try_echo=$ac_try;;
16944 esac
16945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16946   (eval "$ac_compiler --version >&5") 2>&5
16947   ac_status=$?
16948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16949   (exit $ac_status); }
16950 { (ac_try="$ac_compiler -v >&5"
16951 case "(($ac_try" in
16952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16953   *) ac_try_echo=$ac_try;;
16954 esac
16955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16956   (eval "$ac_compiler -v >&5") 2>&5
16957   ac_status=$?
16958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16959   (exit $ac_status); }
16960 { (ac_try="$ac_compiler -V >&5"
16961 case "(($ac_try" in
16962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16963   *) ac_try_echo=$ac_try;;
16964 esac
16965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16966   (eval "$ac_compiler -V >&5") 2>&5
16967   ac_status=$?
16968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16969   (exit $ac_status); }
16970
16971 cat >conftest.$ac_ext <<_ACEOF
16972 /* confdefs.h.  */
16973 _ACEOF
16974 cat confdefs.h >>conftest.$ac_ext
16975 cat >>conftest.$ac_ext <<_ACEOF
16976 /* end confdefs.h.  */
16977
16978 int
16979 main ()
16980 {
16981
16982   ;
16983   return 0;
16984 }
16985 _ACEOF
16986 ac_clean_files_save=$ac_clean_files
16987 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16988 # Try to create an executable without -o first, disregard a.out.
16989 # It will help us diagnose broken compilers, and finding out an intuition
16990 # of exeext.
16991 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16992 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16993 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16994 #
16995 # List of possible output files, starting from the most likely.
16996 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16997 # only as a last resort.  b.out is created by i960 compilers.
16998 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16999 #
17000 # The IRIX 6 linker writes into existing files which may not be
17001 # executable, retaining their permissions.  Remove them first so a
17002 # subsequent execution test works.
17003 ac_rmfiles=
17004 for ac_file in $ac_files
17005 do
17006   case $ac_file in
17007     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17008     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
17009   esac
17010 done
17011 rm -f $ac_rmfiles
17012
17013 if { (ac_try="$ac_link_default"
17014 case "(($ac_try" in
17015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17016   *) ac_try_echo=$ac_try;;
17017 esac
17018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17019   (eval "$ac_link_default") 2>&5
17020   ac_status=$?
17021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17022   (exit $ac_status); }; then
17023   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
17024 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
17025 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
17026 # so that the user can short-circuit this test for compilers unknown to
17027 # Autoconf.
17028 for ac_file in $ac_files ''
17029 do
17030   test -f "$ac_file" || continue
17031   case $ac_file in
17032     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
17033         ;;
17034     [ab].out )
17035         # We found the default executable, but exeext='' is most
17036         # certainly right.
17037         break;;
17038     *.* )
17039         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
17040         then :; else
17041            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17042         fi
17043         # We set ac_cv_exeext here because the later test for it is not
17044         # safe: cross compilers may not add the suffix if given an `-o'
17045         # argument, so we may need to know it at that point already.
17046         # Even if this section looks crufty: it has the advantage of
17047         # actually working.
17048         break;;
17049     * )
17050         break;;
17051   esac
17052 done
17053 test "$ac_cv_exeext" = no && ac_cv_exeext=
17054
17055 else
17056   ac_file=''
17057 fi
17058
17059 { echo "$as_me:$LINENO: result: $ac_file" >&5
17060 echo "${ECHO_T}$ac_file" >&6; }
17061 if test -z "$ac_file"; then
17062   echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
17066 See \`config.log' for more details." >&5
17067 echo "$as_me: error: C compiler cannot create executables
17068 See \`config.log' for more details." >&2;}
17069    { (exit 77); exit 77; }; }
17070 fi
17071
17072 ac_exeext=$ac_cv_exeext
17073
17074 # Check that the compiler produces executables we can run.  If not, either
17075 # the compiler is broken, or we cross compile.
17076 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
17077 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
17078 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
17079 # If not cross compiling, check that we can run a simple program.
17080 if test "$cross_compiling" != yes; then
17081   if { ac_try='./$ac_file'
17082   { (case "(($ac_try" in
17083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17084   *) ac_try_echo=$ac_try;;
17085 esac
17086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17087   (eval "$ac_try") 2>&5
17088   ac_status=$?
17089   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090   (exit $ac_status); }; }; then
17091     cross_compiling=no
17092   else
17093     if test "$cross_compiling" = maybe; then
17094         cross_compiling=yes
17095     else
17096         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
17097 If you meant to cross compile, use \`--host'.
17098 See \`config.log' for more details." >&5
17099 echo "$as_me: error: cannot run C compiled programs.
17100 If you meant to cross compile, use \`--host'.
17101 See \`config.log' for more details." >&2;}
17102    { (exit 1); exit 1; }; }
17103     fi
17104   fi
17105 fi
17106 { echo "$as_me:$LINENO: result: yes" >&5
17107 echo "${ECHO_T}yes" >&6; }
17108
17109 rm -f a.out a.exe conftest$ac_cv_exeext b.out
17110 ac_clean_files=$ac_clean_files_save
17111 # Check that the compiler produces executables we can run.  If not, either
17112 # the compiler is broken, or we cross compile.
17113 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
17114 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
17115 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
17116 echo "${ECHO_T}$cross_compiling" >&6; }
17117
17118 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
17119 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123   *) ac_try_echo=$ac_try;;
17124 esac
17125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17126   (eval "$ac_link") 2>&5
17127   ac_status=$?
17128   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17129   (exit $ac_status); }; then
17130   # If both `conftest.exe' and `conftest' are `present' (well, observable)
17131 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
17132 # work properly (i.e., refer to `conftest.exe'), while it won't with
17133 # `rm'.
17134 for ac_file in conftest.exe conftest conftest.*; do
17135   test -f "$ac_file" || continue
17136   case $ac_file in
17137     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
17138     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
17139           break;;
17140     * ) break;;
17141   esac
17142 done
17143 else
17144   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
17145 See \`config.log' for more details." >&5
17146 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
17147 See \`config.log' for more details." >&2;}
17148    { (exit 1); exit 1; }; }
17149 fi
17150
17151 rm -f conftest$ac_cv_exeext
17152 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
17153 echo "${ECHO_T}$ac_cv_exeext" >&6; }
17154
17155 rm -f conftest.$ac_ext
17156 EXEEXT=$ac_cv_exeext
17157 ac_exeext=$EXEEXT
17158 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
17159 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
17160 if test "${ac_cv_objext+set}" = set; then
17161   echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163   cat >conftest.$ac_ext <<_ACEOF
17164 /* confdefs.h.  */
17165 _ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h.  */
17169
17170 int
17171 main ()
17172 {
17173
17174   ;
17175   return 0;
17176 }
17177 _ACEOF
17178 rm -f conftest.o conftest.obj
17179 if { (ac_try="$ac_compile"
17180 case "(($ac_try" in
17181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17182   *) ac_try_echo=$ac_try;;
17183 esac
17184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17185   (eval "$ac_compile") 2>&5
17186   ac_status=$?
17187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17188   (exit $ac_status); }; then
17189   for ac_file in conftest.o conftest.obj conftest.*; do
17190   test -f "$ac_file" || continue;
17191   case $ac_file in
17192     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
17193     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
17194        break;;
17195   esac
17196 done
17197 else
17198   echo "$as_me: failed program was:" >&5
17199 sed 's/^/| /' conftest.$ac_ext >&5
17200
17201 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
17202 See \`config.log' for more details." >&5
17203 echo "$as_me: error: cannot compute suffix of object files: cannot compile
17204 See \`config.log' for more details." >&2;}
17205    { (exit 1); exit 1; }; }
17206 fi
17207
17208 rm -f conftest.$ac_cv_objext conftest.$ac_ext
17209 fi
17210 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
17211 echo "${ECHO_T}$ac_cv_objext" >&6; }
17212 OBJEXT=$ac_cv_objext
17213 ac_objext=$OBJEXT
17214 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
17215 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
17216 if test "${ac_cv_c_compiler_gnu+set}" = set; then
17217   echo $ECHO_N "(cached) $ECHO_C" >&6
17218 else
17219   cat >conftest.$ac_ext <<_ACEOF
17220 /* confdefs.h.  */
17221 _ACEOF
17222 cat confdefs.h >>conftest.$ac_ext
17223 cat >>conftest.$ac_ext <<_ACEOF
17224 /* end confdefs.h.  */
17225
17226 int
17227 main ()
17228 {
17229 #ifndef __GNUC__
17230        choke me
17231 #endif
17232
17233   ;
17234   return 0;
17235 }
17236 _ACEOF
17237 rm -f conftest.$ac_objext
17238 if { (ac_try="$ac_compile"
17239 case "(($ac_try" in
17240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241   *) ac_try_echo=$ac_try;;
17242 esac
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244   (eval "$ac_compile") 2>conftest.er1
17245   ac_status=$?
17246   grep -v '^ *+' conftest.er1 >conftest.err
17247   rm -f conftest.er1
17248   cat conftest.err >&5
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); } && {
17251          test -z "$ac_c_werror_flag" ||
17252          test ! -s conftest.err
17253        } && test -s conftest.$ac_objext; then
17254   ac_compiler_gnu=yes
17255 else
17256   echo "$as_me: failed program was:" >&5
17257 sed 's/^/| /' conftest.$ac_ext >&5
17258
17259         ac_compiler_gnu=no
17260 fi
17261
17262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263 ac_cv_c_compiler_gnu=$ac_compiler_gnu
17264
17265 fi
17266 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
17267 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
17268 GCC=`test $ac_compiler_gnu = yes && echo yes`
17269 ac_test_CFLAGS=${CFLAGS+set}
17270 ac_save_CFLAGS=$CFLAGS
17271 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17272 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17273 if test "${ac_cv_prog_cc_g+set}" = set; then
17274   echo $ECHO_N "(cached) $ECHO_C" >&6
17275 else
17276   ac_save_c_werror_flag=$ac_c_werror_flag
17277    ac_c_werror_flag=yes
17278    ac_cv_prog_cc_g=no
17279    CFLAGS="-g"
17280    cat >conftest.$ac_ext <<_ACEOF
17281 /* confdefs.h.  */
17282 _ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h.  */
17286
17287 int
17288 main ()
17289 {
17290
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 rm -f conftest.$ac_objext
17296 if { (ac_try="$ac_compile"
17297 case "(($ac_try" in
17298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17299   *) ac_try_echo=$ac_try;;
17300 esac
17301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17302   (eval "$ac_compile") 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } && {
17309          test -z "$ac_c_werror_flag" ||
17310          test ! -s conftest.err
17311        } && test -s conftest.$ac_objext; then
17312   ac_cv_prog_cc_g=yes
17313 else
17314   echo "$as_me: failed program was:" >&5
17315 sed 's/^/| /' conftest.$ac_ext >&5
17316
17317         CFLAGS=""
17318       cat >conftest.$ac_ext <<_ACEOF
17319 /* confdefs.h.  */
17320 _ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h.  */
17324
17325 int
17326 main ()
17327 {
17328
17329   ;
17330   return 0;
17331 }
17332 _ACEOF
17333 rm -f conftest.$ac_objext
17334 if { (ac_try="$ac_compile"
17335 case "(($ac_try" in
17336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337   *) ac_try_echo=$ac_try;;
17338 esac
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340   (eval "$ac_compile") 2>conftest.er1
17341   ac_status=$?
17342   grep -v '^ *+' conftest.er1 >conftest.err
17343   rm -f conftest.er1
17344   cat conftest.err >&5
17345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17346   (exit $ac_status); } && {
17347          test -z "$ac_c_werror_flag" ||
17348          test ! -s conftest.err
17349        } && test -s conftest.$ac_objext; then
17350   :
17351 else
17352   echo "$as_me: failed program was:" >&5
17353 sed 's/^/| /' conftest.$ac_ext >&5
17354
17355         ac_c_werror_flag=$ac_save_c_werror_flag
17356          CFLAGS="-g"
17357          cat >conftest.$ac_ext <<_ACEOF
17358 /* confdefs.h.  */
17359 _ACEOF
17360 cat confdefs.h >>conftest.$ac_ext
17361 cat >>conftest.$ac_ext <<_ACEOF
17362 /* end confdefs.h.  */
17363
17364 int
17365 main ()
17366 {
17367
17368   ;
17369   return 0;
17370 }
17371 _ACEOF
17372 rm -f conftest.$ac_objext
17373 if { (ac_try="$ac_compile"
17374 case "(($ac_try" in
17375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376   *) ac_try_echo=$ac_try;;
17377 esac
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379   (eval "$ac_compile") 2>conftest.er1
17380   ac_status=$?
17381   grep -v '^ *+' conftest.er1 >conftest.err
17382   rm -f conftest.er1
17383   cat conftest.err >&5
17384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17385   (exit $ac_status); } && {
17386          test -z "$ac_c_werror_flag" ||
17387          test ! -s conftest.err
17388        } && test -s conftest.$ac_objext; then
17389   ac_cv_prog_cc_g=yes
17390 else
17391   echo "$as_me: failed program was:" >&5
17392 sed 's/^/| /' conftest.$ac_ext >&5
17393
17394
17395 fi
17396
17397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398 fi
17399
17400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17401 fi
17402
17403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17404    ac_c_werror_flag=$ac_save_c_werror_flag
17405 fi
17406 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17407 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17408 if test "$ac_test_CFLAGS" = set; then
17409   CFLAGS=$ac_save_CFLAGS
17410 elif test $ac_cv_prog_cc_g = yes; then
17411   if test "$GCC" = yes; then
17412     CFLAGS="-g -O2"
17413   else
17414     CFLAGS="-g"
17415   fi
17416 else
17417   if test "$GCC" = yes; then
17418     CFLAGS="-O2"
17419   else
17420     CFLAGS=
17421   fi
17422 fi
17423 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
17424 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
17425 if test "${ac_cv_prog_cc_c89+set}" = set; then
17426   echo $ECHO_N "(cached) $ECHO_C" >&6
17427 else
17428   ac_cv_prog_cc_c89=no
17429 ac_save_CC=$CC
17430 cat >conftest.$ac_ext <<_ACEOF
17431 /* confdefs.h.  */
17432 _ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h.  */
17436 #include <stdarg.h>
17437 #include <stdio.h>
17438 #include <sys/types.h>
17439 #include <sys/stat.h>
17440 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
17441 struct buf { int x; };
17442 FILE * (*rcsopen) (struct buf *, struct stat *, int);
17443 static char *e (p, i)
17444      char **p;
17445      int i;
17446 {
17447   return p[i];
17448 }
17449 static char *f (char * (*g) (char **, int), char **p, ...)
17450 {
17451   char *s;
17452   va_list v;
17453   va_start (v,p);
17454   s = g (p, va_arg (v,int));
17455   va_end (v);
17456   return s;
17457 }
17458
17459 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
17460    function prototypes and stuff, but not '\xHH' hex character constants.
17461    These don't provoke an error unfortunately, instead are silently treated
17462    as 'x'.  The following induces an error, until -std is added to get
17463    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
17464    array size at least.  It's necessary to write '\x00'==0 to get something
17465    that's true only with -std.  */
17466 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
17467
17468 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
17469    inside strings and character constants.  */
17470 #define FOO(x) 'x'
17471 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
17472
17473 int test (int i, double x);
17474 struct s1 {int (*f) (int a);};
17475 struct s2 {int (*f) (double a);};
17476 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
17477 int argc;
17478 char **argv;
17479 int
17480 main ()
17481 {
17482 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
17483   ;
17484   return 0;
17485 }
17486 _ACEOF
17487 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
17488         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
17489 do
17490   CC="$ac_save_CC $ac_arg"
17491   rm -f conftest.$ac_objext
17492 if { (ac_try="$ac_compile"
17493 case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498   (eval "$ac_compile") 2>conftest.er1
17499   ac_status=$?
17500   grep -v '^ *+' conftest.er1 >conftest.err
17501   rm -f conftest.er1
17502   cat conftest.err >&5
17503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504   (exit $ac_status); } && {
17505          test -z "$ac_c_werror_flag" ||
17506          test ! -s conftest.err
17507        } && test -s conftest.$ac_objext; then
17508   ac_cv_prog_cc_c89=$ac_arg
17509 else
17510   echo "$as_me: failed program was:" >&5
17511 sed 's/^/| /' conftest.$ac_ext >&5
17512
17513
17514 fi
17515
17516 rm -f core conftest.err conftest.$ac_objext
17517   test "x$ac_cv_prog_cc_c89" != "xno" && break
17518 done
17519 rm -f conftest.$ac_ext
17520 CC=$ac_save_CC
17521
17522 fi
17523 # AC_CACHE_VAL
17524 case "x$ac_cv_prog_cc_c89" in
17525   x)
17526     { echo "$as_me:$LINENO: result: none needed" >&5
17527 echo "${ECHO_T}none needed" >&6; } ;;
17528   xno)
17529     { echo "$as_me:$LINENO: result: unsupported" >&5
17530 echo "${ECHO_T}unsupported" >&6; } ;;
17531   *)
17532     CC="$CC $ac_cv_prog_cc_c89"
17533     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17534 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
17535 esac
17536
17537
17538 ac_ext=c
17539 ac_cpp='$CPP $CPPFLAGS'
17540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17543
17544
17545
17546
17547     ac_ext=c
17548 ac_cpp='$CPP $CPPFLAGS'
17549 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17550 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17551 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17552
17553     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17554 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
17555 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17556   echo $ECHO_N "(cached) $ECHO_C" >&6
17557 else
17558   cat >conftest.$ac_ext <<_ACEOF
17559 /* confdefs.h.  */
17560 _ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h.  */
17564
17565 int
17566 main ()
17567 {
17568
17569              #ifndef __INTEL_COMPILER
17570                 choke me
17571              #endif
17572
17573   ;
17574   return 0;
17575 }
17576 _ACEOF
17577 rm -f conftest.$ac_objext
17578 if { (ac_try="$ac_compile"
17579 case "(($ac_try" in
17580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581   *) ac_try_echo=$ac_try;;
17582 esac
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584   (eval "$ac_compile") 2>conftest.er1
17585   ac_status=$?
17586   grep -v '^ *+' conftest.er1 >conftest.err
17587   rm -f conftest.er1
17588   cat conftest.err >&5
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); } && {
17591          test -z "$ac_c_werror_flag" ||
17592          test ! -s conftest.err
17593        } && test -s conftest.$ac_objext; then
17594   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17595 else
17596   echo "$as_me: failed program was:" >&5
17597 sed 's/^/| /' conftest.$ac_ext >&5
17598
17599         bakefile_cv_c_compiler___INTEL_COMPILER=no
17600
17601 fi
17602
17603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17604
17605
17606 fi
17607 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17608 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17609     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17610         :; INTELCC=yes
17611     else
17612         :;
17613     fi
17614     ac_ext=c
17615 ac_cpp='$CPP $CPPFLAGS'
17616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17619
17620
17621
17622
17623         if test "x$GCC" != "xyes"; then
17624         if test "xCC" = "xC"; then
17625             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17626 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17627 if test "${bakefile_cv_c_exto+set}" = set; then
17628   echo $ECHO_N "(cached) $ECHO_C" >&6
17629 else
17630   cat >conftest.$ac_ext <<_ACEOF
17631 /* confdefs.h.  */
17632 _ACEOF
17633 cat confdefs.h >>conftest.$ac_ext
17634 cat >>conftest.$ac_ext <<_ACEOF
17635 /* end confdefs.h.  */
17636
17637 int
17638 main ()
17639 {
17640
17641   ;
17642   return 0;
17643 }
17644 _ACEOF
17645 rm -f conftest.$ac_objext conftest.$ac_ext.o
17646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17647   (eval $ac_compile) 2>&5
17648   ac_status=$?
17649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17650   (exit $ac_status); }; then
17651   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17652     case $ac_file in
17653         conftest.$ac_ext.o)
17654             bakefile_cv_c_exto="-ext o"
17655             ;;
17656         *)
17657             ;;
17658     esac
17659 done
17660 else
17661   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17662 See \`config.log' for more details." >&5
17663 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17664 See \`config.log' for more details." >&2;}
17665    { (exit 1); exit 1; }; }
17666
17667 fi
17668
17669 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17670
17671 fi
17672 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17673 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17674 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17675     if test "c" = "c"; then
17676         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17677     fi
17678     if test "c" = "cxx"; then
17679         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17680     fi
17681 fi
17682
17683             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17684                 unset ac_cv_prog_cc_g
17685                 ac_test_CFLAGS=${CFLAGS+set}
17686 ac_save_CFLAGS=$CFLAGS
17687 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17688 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17689 if test "${ac_cv_prog_cc_g+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   ac_save_c_werror_flag=$ac_c_werror_flag
17693    ac_c_werror_flag=yes
17694    ac_cv_prog_cc_g=no
17695    CFLAGS="-g"
17696    cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h.  */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h.  */
17702
17703 int
17704 main ()
17705 {
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718   (eval "$ac_compile") 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } && {
17725          test -z "$ac_c_werror_flag" ||
17726          test ! -s conftest.err
17727        } && test -s conftest.$ac_objext; then
17728   ac_cv_prog_cc_g=yes
17729 else
17730   echo "$as_me: failed program was:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17732
17733         CFLAGS=""
17734       cat >conftest.$ac_ext <<_ACEOF
17735 /* confdefs.h.  */
17736 _ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h.  */
17740
17741 int
17742 main ()
17743 {
17744
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext
17750 if { (ac_try="$ac_compile"
17751 case "(($ac_try" in
17752   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753   *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756   (eval "$ac_compile") 2>conftest.er1
17757   ac_status=$?
17758   grep -v '^ *+' conftest.er1 >conftest.err
17759   rm -f conftest.er1
17760   cat conftest.err >&5
17761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762   (exit $ac_status); } && {
17763          test -z "$ac_c_werror_flag" ||
17764          test ! -s conftest.err
17765        } && test -s conftest.$ac_objext; then
17766   :
17767 else
17768   echo "$as_me: failed program was:" >&5
17769 sed 's/^/| /' conftest.$ac_ext >&5
17770
17771         ac_c_werror_flag=$ac_save_c_werror_flag
17772          CFLAGS="-g"
17773          cat >conftest.$ac_ext <<_ACEOF
17774 /* confdefs.h.  */
17775 _ACEOF
17776 cat confdefs.h >>conftest.$ac_ext
17777 cat >>conftest.$ac_ext <<_ACEOF
17778 /* end confdefs.h.  */
17779
17780 int
17781 main ()
17782 {
17783
17784   ;
17785   return 0;
17786 }
17787 _ACEOF
17788 rm -f conftest.$ac_objext
17789 if { (ac_try="$ac_compile"
17790 case "(($ac_try" in
17791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17792   *) ac_try_echo=$ac_try;;
17793 esac
17794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17795   (eval "$ac_compile") 2>conftest.er1
17796   ac_status=$?
17797   grep -v '^ *+' conftest.er1 >conftest.err
17798   rm -f conftest.er1
17799   cat conftest.err >&5
17800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17801   (exit $ac_status); } && {
17802          test -z "$ac_c_werror_flag" ||
17803          test ! -s conftest.err
17804        } && test -s conftest.$ac_objext; then
17805   ac_cv_prog_cc_g=yes
17806 else
17807   echo "$as_me: failed program was:" >&5
17808 sed 's/^/| /' conftest.$ac_ext >&5
17809
17810
17811 fi
17812
17813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17814 fi
17815
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817 fi
17818
17819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17820    ac_c_werror_flag=$ac_save_c_werror_flag
17821 fi
17822 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17823 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17824 if test "$ac_test_CFLAGS" = set; then
17825   CFLAGS=$ac_save_CFLAGS
17826 elif test $ac_cv_prog_cc_g = yes; then
17827   if test "$GCC" = yes; then
17828     CFLAGS="-g -O2"
17829   else
17830     CFLAGS="-g"
17831   fi
17832 else
17833   if test "$GCC" = yes; then
17834     CFLAGS="-O2"
17835   else
17836     CFLAGS=
17837   fi
17838 fi
17839             fi
17840         fi
17841
17842                         case `uname -s` in
17843             AIX*)
17844
17845
17846     ac_ext=c
17847 ac_cpp='$CPP $CPPFLAGS'
17848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17851
17852     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17853 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17854 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17855   echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857   cat >conftest.$ac_ext <<_ACEOF
17858 /* confdefs.h.  */
17859 _ACEOF
17860 cat confdefs.h >>conftest.$ac_ext
17861 cat >>conftest.$ac_ext <<_ACEOF
17862 /* end confdefs.h.  */
17863
17864 int
17865 main ()
17866 {
17867
17868              #ifndef __xlC__
17869                 choke me
17870              #endif
17871
17872   ;
17873   return 0;
17874 }
17875 _ACEOF
17876 rm -f conftest.$ac_objext
17877 if { (ac_try="$ac_compile"
17878 case "(($ac_try" in
17879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880   *) ac_try_echo=$ac_try;;
17881 esac
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883   (eval "$ac_compile") 2>conftest.er1
17884   ac_status=$?
17885   grep -v '^ *+' conftest.er1 >conftest.err
17886   rm -f conftest.er1
17887   cat conftest.err >&5
17888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17889   (exit $ac_status); } && {
17890          test -z "$ac_c_werror_flag" ||
17891          test ! -s conftest.err
17892        } && test -s conftest.$ac_objext; then
17893   bakefile_cv_c_compiler___xlC__=yes
17894 else
17895   echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898         bakefile_cv_c_compiler___xlC__=no
17899
17900 fi
17901
17902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17903
17904
17905 fi
17906 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17907 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17908     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17909         :; XLCC=yes
17910     else
17911         :;
17912     fi
17913     ac_ext=c
17914 ac_cpp='$CPP $CPPFLAGS'
17915 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17916 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17917 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17918
17919
17920
17921                 ;;
17922
17923             Darwin)
17924
17925
17926     ac_ext=c
17927 ac_cpp='$CPP $CPPFLAGS'
17928 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17929 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17930 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17931
17932     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17933 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17934 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17935   echo $ECHO_N "(cached) $ECHO_C" >&6
17936 else
17937   cat >conftest.$ac_ext <<_ACEOF
17938 /* confdefs.h.  */
17939 _ACEOF
17940 cat confdefs.h >>conftest.$ac_ext
17941 cat >>conftest.$ac_ext <<_ACEOF
17942 /* end confdefs.h.  */
17943
17944 int
17945 main ()
17946 {
17947
17948              #ifndef __MWERKS__
17949                 choke me
17950              #endif
17951
17952   ;
17953   return 0;
17954 }
17955 _ACEOF
17956 rm -f conftest.$ac_objext
17957 if { (ac_try="$ac_compile"
17958 case "(($ac_try" in
17959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17960   *) ac_try_echo=$ac_try;;
17961 esac
17962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17963   (eval "$ac_compile") 2>conftest.er1
17964   ac_status=$?
17965   grep -v '^ *+' conftest.er1 >conftest.err
17966   rm -f conftest.er1
17967   cat conftest.err >&5
17968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17969   (exit $ac_status); } && {
17970          test -z "$ac_c_werror_flag" ||
17971          test ! -s conftest.err
17972        } && test -s conftest.$ac_objext; then
17973   bakefile_cv_c_compiler___MWERKS__=yes
17974 else
17975   echo "$as_me: failed program was:" >&5
17976 sed 's/^/| /' conftest.$ac_ext >&5
17977
17978         bakefile_cv_c_compiler___MWERKS__=no
17979
17980 fi
17981
17982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17983
17984
17985 fi
17986 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17987 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17988     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17989         :; MWCC=yes
17990     else
17991         :;
17992     fi
17993     ac_ext=c
17994 ac_cpp='$CPP $CPPFLAGS'
17995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17998
17999
18000
18001
18002
18003     ac_ext=c
18004 ac_cpp='$CPP $CPPFLAGS'
18005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18008
18009     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
18010 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
18011 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
18012   echo $ECHO_N "(cached) $ECHO_C" >&6
18013 else
18014   cat >conftest.$ac_ext <<_ACEOF
18015 /* confdefs.h.  */
18016 _ACEOF
18017 cat confdefs.h >>conftest.$ac_ext
18018 cat >>conftest.$ac_ext <<_ACEOF
18019 /* end confdefs.h.  */
18020
18021 int
18022 main ()
18023 {
18024
18025              #ifndef __xlC__
18026                 choke me
18027              #endif
18028
18029   ;
18030   return 0;
18031 }
18032 _ACEOF
18033 rm -f conftest.$ac_objext
18034 if { (ac_try="$ac_compile"
18035 case "(($ac_try" in
18036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037   *) ac_try_echo=$ac_try;;
18038 esac
18039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18040   (eval "$ac_compile") 2>conftest.er1
18041   ac_status=$?
18042   grep -v '^ *+' conftest.er1 >conftest.err
18043   rm -f conftest.er1
18044   cat conftest.err >&5
18045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18046   (exit $ac_status); } && {
18047          test -z "$ac_c_werror_flag" ||
18048          test ! -s conftest.err
18049        } && test -s conftest.$ac_objext; then
18050   bakefile_cv_c_compiler___xlC__=yes
18051 else
18052   echo "$as_me: failed program was:" >&5
18053 sed 's/^/| /' conftest.$ac_ext >&5
18054
18055         bakefile_cv_c_compiler___xlC__=no
18056
18057 fi
18058
18059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18060
18061
18062 fi
18063 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
18064 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
18065     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
18066         :; XLCC=yes
18067     else
18068         :;
18069     fi
18070     ac_ext=c
18071 ac_cpp='$CPP $CPPFLAGS'
18072 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18073 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18074 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18075
18076
18077
18078                 ;;
18079
18080             IRIX*)
18081
18082
18083     ac_ext=c
18084 ac_cpp='$CPP $CPPFLAGS'
18085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18088
18089     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
18090 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
18091 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
18092   echo $ECHO_N "(cached) $ECHO_C" >&6
18093 else
18094   cat >conftest.$ac_ext <<_ACEOF
18095 /* confdefs.h.  */
18096 _ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h.  */
18100
18101 int
18102 main ()
18103 {
18104
18105              #ifndef _SGI_COMPILER_VERSION
18106                 choke me
18107              #endif
18108
18109   ;
18110   return 0;
18111 }
18112 _ACEOF
18113 rm -f conftest.$ac_objext
18114 if { (ac_try="$ac_compile"
18115 case "(($ac_try" in
18116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18117   *) ac_try_echo=$ac_try;;
18118 esac
18119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18120   (eval "$ac_compile") 2>conftest.er1
18121   ac_status=$?
18122   grep -v '^ *+' conftest.er1 >conftest.err
18123   rm -f conftest.er1
18124   cat conftest.err >&5
18125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18126   (exit $ac_status); } && {
18127          test -z "$ac_c_werror_flag" ||
18128          test ! -s conftest.err
18129        } && test -s conftest.$ac_objext; then
18130   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
18131 else
18132   echo "$as_me: failed program was:" >&5
18133 sed 's/^/| /' conftest.$ac_ext >&5
18134
18135         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
18136
18137 fi
18138
18139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18140
18141
18142 fi
18143 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
18144 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
18145     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
18146         :; SGICC=yes
18147     else
18148         :;
18149     fi
18150     ac_ext=c
18151 ac_cpp='$CPP $CPPFLAGS'
18152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18155
18156
18157
18158                 ;;
18159
18160             Linux*)
18161
18162
18163     ac_ext=c
18164 ac_cpp='$CPP $CPPFLAGS'
18165 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18166 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18167 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18168
18169     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18170 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18171 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18172   echo $ECHO_N "(cached) $ECHO_C" >&6
18173 else
18174   cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h.  */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h.  */
18180
18181 int
18182 main ()
18183 {
18184
18185              #ifndef __SUNPRO_C
18186                 choke me
18187              #endif
18188
18189   ;
18190   return 0;
18191 }
18192 _ACEOF
18193 rm -f conftest.$ac_objext
18194 if { (ac_try="$ac_compile"
18195 case "(($ac_try" in
18196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18197   *) ac_try_echo=$ac_try;;
18198 esac
18199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18200   (eval "$ac_compile") 2>conftest.er1
18201   ac_status=$?
18202   grep -v '^ *+' conftest.er1 >conftest.err
18203   rm -f conftest.er1
18204   cat conftest.err >&5
18205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18206   (exit $ac_status); } && {
18207          test -z "$ac_c_werror_flag" ||
18208          test ! -s conftest.err
18209        } && test -s conftest.$ac_objext; then
18210   bakefile_cv_c_compiler___SUNPRO_C=yes
18211 else
18212   echo "$as_me: failed program was:" >&5
18213 sed 's/^/| /' conftest.$ac_ext >&5
18214
18215         bakefile_cv_c_compiler___SUNPRO_C=no
18216
18217 fi
18218
18219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18220
18221
18222 fi
18223 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18224 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18225     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18226         :; SUNCC=yes
18227     else
18228         :;
18229     fi
18230     ac_ext=c
18231 ac_cpp='$CPP $CPPFLAGS'
18232 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18233 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18234 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18235
18236
18237
18238                 ;;
18239
18240             HP-UX*)
18241
18242
18243     ac_ext=c
18244 ac_cpp='$CPP $CPPFLAGS'
18245 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18246 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18247 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18248
18249     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
18250 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
18251 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
18252   echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18254   cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h.  */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h.  */
18260
18261 int
18262 main ()
18263 {
18264
18265              #ifndef __HP_cc
18266                 choke me
18267              #endif
18268
18269   ;
18270   return 0;
18271 }
18272 _ACEOF
18273 rm -f conftest.$ac_objext
18274 if { (ac_try="$ac_compile"
18275 case "(($ac_try" in
18276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277   *) ac_try_echo=$ac_try;;
18278 esac
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280   (eval "$ac_compile") 2>conftest.er1
18281   ac_status=$?
18282   grep -v '^ *+' conftest.er1 >conftest.err
18283   rm -f conftest.er1
18284   cat conftest.err >&5
18285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18286   (exit $ac_status); } && {
18287          test -z "$ac_c_werror_flag" ||
18288          test ! -s conftest.err
18289        } && test -s conftest.$ac_objext; then
18290   bakefile_cv_c_compiler___HP_cc=yes
18291 else
18292   echo "$as_me: failed program was:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18294
18295         bakefile_cv_c_compiler___HP_cc=no
18296
18297 fi
18298
18299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18300
18301
18302 fi
18303 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
18304 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
18305     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
18306         :; HPCC=yes
18307     else
18308         :;
18309     fi
18310     ac_ext=c
18311 ac_cpp='$CPP $CPPFLAGS'
18312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18315
18316
18317
18318                 ;;
18319
18320             OSF1)
18321
18322
18323     ac_ext=c
18324 ac_cpp='$CPP $CPPFLAGS'
18325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18328
18329     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
18330 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
18331 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
18332   echo $ECHO_N "(cached) $ECHO_C" >&6
18333 else
18334   cat >conftest.$ac_ext <<_ACEOF
18335 /* confdefs.h.  */
18336 _ACEOF
18337 cat confdefs.h >>conftest.$ac_ext
18338 cat >>conftest.$ac_ext <<_ACEOF
18339 /* end confdefs.h.  */
18340
18341 int
18342 main ()
18343 {
18344
18345              #ifndef __DECC
18346                 choke me
18347              #endif
18348
18349   ;
18350   return 0;
18351 }
18352 _ACEOF
18353 rm -f conftest.$ac_objext
18354 if { (ac_try="$ac_compile"
18355 case "(($ac_try" in
18356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18357   *) ac_try_echo=$ac_try;;
18358 esac
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360   (eval "$ac_compile") 2>conftest.er1
18361   ac_status=$?
18362   grep -v '^ *+' conftest.er1 >conftest.err
18363   rm -f conftest.er1
18364   cat conftest.err >&5
18365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18366   (exit $ac_status); } && {
18367          test -z "$ac_c_werror_flag" ||
18368          test ! -s conftest.err
18369        } && test -s conftest.$ac_objext; then
18370   bakefile_cv_c_compiler___DECC=yes
18371 else
18372   echo "$as_me: failed program was:" >&5
18373 sed 's/^/| /' conftest.$ac_ext >&5
18374
18375         bakefile_cv_c_compiler___DECC=no
18376
18377 fi
18378
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380
18381
18382 fi
18383 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
18384 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
18385     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
18386         :; COMPAQCC=yes
18387     else
18388         :;
18389     fi
18390     ac_ext=c
18391 ac_cpp='$CPP $CPPFLAGS'
18392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18395
18396
18397
18398                 ;;
18399
18400             SunOS)
18401
18402
18403     ac_ext=c
18404 ac_cpp='$CPP $CPPFLAGS'
18405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18408
18409     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
18410 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
18411 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
18412   echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414   cat >conftest.$ac_ext <<_ACEOF
18415 /* confdefs.h.  */
18416 _ACEOF
18417 cat confdefs.h >>conftest.$ac_ext
18418 cat >>conftest.$ac_ext <<_ACEOF
18419 /* end confdefs.h.  */
18420
18421 int
18422 main ()
18423 {
18424
18425              #ifndef __SUNPRO_C
18426                 choke me
18427              #endif
18428
18429   ;
18430   return 0;
18431 }
18432 _ACEOF
18433 rm -f conftest.$ac_objext
18434 if { (ac_try="$ac_compile"
18435 case "(($ac_try" in
18436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437   *) ac_try_echo=$ac_try;;
18438 esac
18439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18440   (eval "$ac_compile") 2>conftest.er1
18441   ac_status=$?
18442   grep -v '^ *+' conftest.er1 >conftest.err
18443   rm -f conftest.er1
18444   cat conftest.err >&5
18445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446   (exit $ac_status); } && {
18447          test -z "$ac_c_werror_flag" ||
18448          test ! -s conftest.err
18449        } && test -s conftest.$ac_objext; then
18450   bakefile_cv_c_compiler___SUNPRO_C=yes
18451 else
18452   echo "$as_me: failed program was:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18454
18455         bakefile_cv_c_compiler___SUNPRO_C=no
18456
18457 fi
18458
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18460
18461
18462 fi
18463 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
18464 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
18465     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
18466         :; SUNCC=yes
18467     else
18468         :;
18469     fi
18470     ac_ext=c
18471 ac_cpp='$CPP $CPPFLAGS'
18472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18475
18476
18477
18478                 ;;
18479         esac
18480     fi
18481
18482
18483
18484 ac_ext=c
18485 ac_cpp='$CPP $CPPFLAGS'
18486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18489 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
18490 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
18491 # On Suns, sometimes $CPP names a directory.
18492 if test -n "$CPP" && test -d "$CPP"; then
18493   CPP=
18494 fi
18495 if test -z "$CPP"; then
18496   if test "${ac_cv_prog_CPP+set}" = set; then
18497   echo $ECHO_N "(cached) $ECHO_C" >&6
18498 else
18499       # Double quotes because CPP needs to be expanded
18500     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
18501     do
18502       ac_preproc_ok=false
18503 for ac_c_preproc_warn_flag in '' yes
18504 do
18505   # Use a header file that comes with gcc, so configuring glibc
18506   # with a fresh cross-compiler works.
18507   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508   # <limits.h> exists even on freestanding compilers.
18509   # On the NeXT, cc -E runs the code through the compiler's parser,
18510   # not just through cpp. "Syntax error" is here to catch this case.
18511   cat >conftest.$ac_ext <<_ACEOF
18512 /* confdefs.h.  */
18513 _ACEOF
18514 cat confdefs.h >>conftest.$ac_ext
18515 cat >>conftest.$ac_ext <<_ACEOF
18516 /* end confdefs.h.  */
18517 #ifdef __STDC__
18518 # include <limits.h>
18519 #else
18520 # include <assert.h>
18521 #endif
18522                      Syntax error
18523 _ACEOF
18524 if { (ac_try="$ac_cpp conftest.$ac_ext"
18525 case "(($ac_try" in
18526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18527   *) ac_try_echo=$ac_try;;
18528 esac
18529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18530   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18531   ac_status=$?
18532   grep -v '^ *+' conftest.er1 >conftest.err
18533   rm -f conftest.er1
18534   cat conftest.err >&5
18535   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18536   (exit $ac_status); } >/dev/null && {
18537          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18538          test ! -s conftest.err
18539        }; then
18540   :
18541 else
18542   echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18544
18545   # Broken: fails on valid input.
18546 continue
18547 fi
18548
18549 rm -f conftest.err conftest.$ac_ext
18550
18551   # OK, works on sane cases.  Now check whether nonexistent headers
18552   # can be detected and how.
18553   cat >conftest.$ac_ext <<_ACEOF
18554 /* confdefs.h.  */
18555 _ACEOF
18556 cat confdefs.h >>conftest.$ac_ext
18557 cat >>conftest.$ac_ext <<_ACEOF
18558 /* end confdefs.h.  */
18559 #include <ac_nonexistent.h>
18560 _ACEOF
18561 if { (ac_try="$ac_cpp conftest.$ac_ext"
18562 case "(($ac_try" in
18563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564   *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18568   ac_status=$?
18569   grep -v '^ *+' conftest.er1 >conftest.err
18570   rm -f conftest.er1
18571   cat conftest.err >&5
18572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573   (exit $ac_status); } >/dev/null && {
18574          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18575          test ! -s conftest.err
18576        }; then
18577   # Broken: success on invalid input.
18578 continue
18579 else
18580   echo "$as_me: failed program was:" >&5
18581 sed 's/^/| /' conftest.$ac_ext >&5
18582
18583   # Passes both tests.
18584 ac_preproc_ok=:
18585 break
18586 fi
18587
18588 rm -f conftest.err conftest.$ac_ext
18589
18590 done
18591 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18592 rm -f conftest.err conftest.$ac_ext
18593 if $ac_preproc_ok; then
18594   break
18595 fi
18596
18597     done
18598     ac_cv_prog_CPP=$CPP
18599
18600 fi
18601   CPP=$ac_cv_prog_CPP
18602 else
18603   ac_cv_prog_CPP=$CPP
18604 fi
18605 { echo "$as_me:$LINENO: result: $CPP" >&5
18606 echo "${ECHO_T}$CPP" >&6; }
18607 ac_preproc_ok=false
18608 for ac_c_preproc_warn_flag in '' yes
18609 do
18610   # Use a header file that comes with gcc, so configuring glibc
18611   # with a fresh cross-compiler works.
18612   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18613   # <limits.h> exists even on freestanding compilers.
18614   # On the NeXT, cc -E runs the code through the compiler's parser,
18615   # not just through cpp. "Syntax error" is here to catch this case.
18616   cat >conftest.$ac_ext <<_ACEOF
18617 /* confdefs.h.  */
18618 _ACEOF
18619 cat confdefs.h >>conftest.$ac_ext
18620 cat >>conftest.$ac_ext <<_ACEOF
18621 /* end confdefs.h.  */
18622 #ifdef __STDC__
18623 # include <limits.h>
18624 #else
18625 # include <assert.h>
18626 #endif
18627                      Syntax error
18628 _ACEOF
18629 if { (ac_try="$ac_cpp conftest.$ac_ext"
18630 case "(($ac_try" in
18631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18632   *) ac_try_echo=$ac_try;;
18633 esac
18634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18635   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18636   ac_status=$?
18637   grep -v '^ *+' conftest.er1 >conftest.err
18638   rm -f conftest.er1
18639   cat conftest.err >&5
18640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18641   (exit $ac_status); } >/dev/null && {
18642          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18643          test ! -s conftest.err
18644        }; then
18645   :
18646 else
18647   echo "$as_me: failed program was:" >&5
18648 sed 's/^/| /' conftest.$ac_ext >&5
18649
18650   # Broken: fails on valid input.
18651 continue
18652 fi
18653
18654 rm -f conftest.err conftest.$ac_ext
18655
18656   # OK, works on sane cases.  Now check whether nonexistent headers
18657   # can be detected and how.
18658   cat >conftest.$ac_ext <<_ACEOF
18659 /* confdefs.h.  */
18660 _ACEOF
18661 cat confdefs.h >>conftest.$ac_ext
18662 cat >>conftest.$ac_ext <<_ACEOF
18663 /* end confdefs.h.  */
18664 #include <ac_nonexistent.h>
18665 _ACEOF
18666 if { (ac_try="$ac_cpp conftest.$ac_ext"
18667 case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18673   ac_status=$?
18674   grep -v '^ *+' conftest.er1 >conftest.err
18675   rm -f conftest.er1
18676   cat conftest.err >&5
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); } >/dev/null && {
18679          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18680          test ! -s conftest.err
18681        }; then
18682   # Broken: success on invalid input.
18683 continue
18684 else
18685   echo "$as_me: failed program was:" >&5
18686 sed 's/^/| /' conftest.$ac_ext >&5
18687
18688   # Passes both tests.
18689 ac_preproc_ok=:
18690 break
18691 fi
18692
18693 rm -f conftest.err conftest.$ac_ext
18694
18695 done
18696 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18697 rm -f conftest.err conftest.$ac_ext
18698 if $ac_preproc_ok; then
18699   :
18700 else
18701   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18702 See \`config.log' for more details." >&5
18703 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18704 See \`config.log' for more details." >&2;}
18705    { (exit 1); exit 1; }; }
18706 fi
18707
18708 ac_ext=c
18709 ac_cpp='$CPP $CPPFLAGS'
18710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18713
18714
18715 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18716 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18717 if test "${ac_cv_path_GREP+set}" = set; then
18718   echo $ECHO_N "(cached) $ECHO_C" >&6
18719 else
18720   # Extract the first word of "grep ggrep" to use in msg output
18721 if test -z "$GREP"; then
18722 set dummy grep ggrep; ac_prog_name=$2
18723 if test "${ac_cv_path_GREP+set}" = set; then
18724   echo $ECHO_N "(cached) $ECHO_C" >&6
18725 else
18726   ac_path_GREP_found=false
18727 # Loop through the user's path and test for each of PROGNAME-LIST
18728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18729 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18730 do
18731   IFS=$as_save_IFS
18732   test -z "$as_dir" && as_dir=.
18733   for ac_prog in grep ggrep; do
18734   for ac_exec_ext in '' $ac_executable_extensions; do
18735     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18736     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18737     # Check for GNU ac_path_GREP and select it if it is found.
18738   # Check for GNU $ac_path_GREP
18739 case `"$ac_path_GREP" --version 2>&1` in
18740 *GNU*)
18741   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18742 *)
18743   ac_count=0
18744   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18745   while :
18746   do
18747     cat "conftest.in" "conftest.in" >"conftest.tmp"
18748     mv "conftest.tmp" "conftest.in"
18749     cp "conftest.in" "conftest.nl"
18750     echo 'GREP' >> "conftest.nl"
18751     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18752     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18753     ac_count=`expr $ac_count + 1`
18754     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18755       # Best one so far, save it but keep looking for a better one
18756       ac_cv_path_GREP="$ac_path_GREP"
18757       ac_path_GREP_max=$ac_count
18758     fi
18759     # 10*(2^10) chars as input seems more than enough
18760     test $ac_count -gt 10 && break
18761   done
18762   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18763 esac
18764
18765
18766     $ac_path_GREP_found && break 3
18767   done
18768 done
18769
18770 done
18771 IFS=$as_save_IFS
18772
18773
18774 fi
18775
18776 GREP="$ac_cv_path_GREP"
18777 if test -z "$GREP"; then
18778   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18779 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18780    { (exit 1); exit 1; }; }
18781 fi
18782
18783 else
18784   ac_cv_path_GREP=$GREP
18785 fi
18786
18787
18788 fi
18789 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18790 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18791  GREP="$ac_cv_path_GREP"
18792
18793
18794 { echo "$as_me:$LINENO: checking for egrep" >&5
18795 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18796 if test "${ac_cv_path_EGREP+set}" = set; then
18797   echo $ECHO_N "(cached) $ECHO_C" >&6
18798 else
18799   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18800    then ac_cv_path_EGREP="$GREP -E"
18801    else
18802      # Extract the first word of "egrep" to use in msg output
18803 if test -z "$EGREP"; then
18804 set dummy egrep; ac_prog_name=$2
18805 if test "${ac_cv_path_EGREP+set}" = set; then
18806   echo $ECHO_N "(cached) $ECHO_C" >&6
18807 else
18808   ac_path_EGREP_found=false
18809 # Loop through the user's path and test for each of PROGNAME-LIST
18810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18811 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18812 do
18813   IFS=$as_save_IFS
18814   test -z "$as_dir" && as_dir=.
18815   for ac_prog in egrep; do
18816   for ac_exec_ext in '' $ac_executable_extensions; do
18817     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18818     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18819     # Check for GNU ac_path_EGREP and select it if it is found.
18820   # Check for GNU $ac_path_EGREP
18821 case `"$ac_path_EGREP" --version 2>&1` in
18822 *GNU*)
18823   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18824 *)
18825   ac_count=0
18826   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18827   while :
18828   do
18829     cat "conftest.in" "conftest.in" >"conftest.tmp"
18830     mv "conftest.tmp" "conftest.in"
18831     cp "conftest.in" "conftest.nl"
18832     echo 'EGREP' >> "conftest.nl"
18833     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18834     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18835     ac_count=`expr $ac_count + 1`
18836     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18837       # Best one so far, save it but keep looking for a better one
18838       ac_cv_path_EGREP="$ac_path_EGREP"
18839       ac_path_EGREP_max=$ac_count
18840     fi
18841     # 10*(2^10) chars as input seems more than enough
18842     test $ac_count -gt 10 && break
18843   done
18844   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18845 esac
18846
18847
18848     $ac_path_EGREP_found && break 3
18849   done
18850 done
18851
18852 done
18853 IFS=$as_save_IFS
18854
18855
18856 fi
18857
18858 EGREP="$ac_cv_path_EGREP"
18859 if test -z "$EGREP"; then
18860   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18861 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18862    { (exit 1); exit 1; }; }
18863 fi
18864
18865 else
18866   ac_cv_path_EGREP=$EGREP
18867 fi
18868
18869
18870    fi
18871 fi
18872 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18873 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18874  EGREP="$ac_cv_path_EGREP"
18875
18876
18877 if test $ac_cv_c_compiler_gnu = yes; then
18878     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18879 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18880 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18881   echo $ECHO_N "(cached) $ECHO_C" >&6
18882 else
18883     ac_pattern="Autoconf.*'x'"
18884   cat >conftest.$ac_ext <<_ACEOF
18885 /* confdefs.h.  */
18886 _ACEOF
18887 cat confdefs.h >>conftest.$ac_ext
18888 cat >>conftest.$ac_ext <<_ACEOF
18889 /* end confdefs.h.  */
18890 #include <sgtty.h>
18891 Autoconf TIOCGETP
18892 _ACEOF
18893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18894   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18895   ac_cv_prog_gcc_traditional=yes
18896 else
18897   ac_cv_prog_gcc_traditional=no
18898 fi
18899 rm -f conftest*
18900
18901
18902   if test $ac_cv_prog_gcc_traditional = no; then
18903     cat >conftest.$ac_ext <<_ACEOF
18904 /* confdefs.h.  */
18905 _ACEOF
18906 cat confdefs.h >>conftest.$ac_ext
18907 cat >>conftest.$ac_ext <<_ACEOF
18908 /* end confdefs.h.  */
18909 #include <termio.h>
18910 Autoconf TCGETA
18911 _ACEOF
18912 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18913   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18914   ac_cv_prog_gcc_traditional=yes
18915 fi
18916 rm -f conftest*
18917
18918   fi
18919 fi
18920 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18921 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18922   if test $ac_cv_prog_gcc_traditional = yes; then
18923     CC="$CC -traditional"
18924   fi
18925 fi
18926
18927
18928 CXXFLAGS=${CXXFLAGS:=}
18929
18930
18931
18932     ac_ext=cpp
18933 ac_cpp='$CXXCPP $CPPFLAGS'
18934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18937 if test -z "$CXX"; then
18938   if test -n "$CCC"; then
18939     CXX=$CCC
18940   else
18941     if test -n "$ac_tool_prefix"; then
18942   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18943   do
18944     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18945 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18946 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18947 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18948 if test "${ac_cv_prog_CXX+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951   if test -n "$CXX"; then
18952   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18953 else
18954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18955 for as_dir in $PATH
18956 do
18957   IFS=$as_save_IFS
18958   test -z "$as_dir" && as_dir=.
18959   for ac_exec_ext in '' $ac_executable_extensions; do
18960   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18961     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18962     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18963     break 2
18964   fi
18965 done
18966 done
18967 IFS=$as_save_IFS
18968
18969 fi
18970 fi
18971 CXX=$ac_cv_prog_CXX
18972 if test -n "$CXX"; then
18973   { echo "$as_me:$LINENO: result: $CXX" >&5
18974 echo "${ECHO_T}$CXX" >&6; }
18975 else
18976   { echo "$as_me:$LINENO: result: no" >&5
18977 echo "${ECHO_T}no" >&6; }
18978 fi
18979
18980
18981     test -n "$CXX" && break
18982   done
18983 fi
18984 if test -z "$CXX"; then
18985   ac_ct_CXX=$CXX
18986   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18987 do
18988   # Extract the first word of "$ac_prog", so it can be a program name with args.
18989 set dummy $ac_prog; ac_word=$2
18990 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18991 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18992 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18993   echo $ECHO_N "(cached) $ECHO_C" >&6
18994 else
18995   if test -n "$ac_ct_CXX"; then
18996   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18997 else
18998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18999 for as_dir in $PATH
19000 do
19001   IFS=$as_save_IFS
19002   test -z "$as_dir" && as_dir=.
19003   for ac_exec_ext in '' $ac_executable_extensions; do
19004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19005     ac_cv_prog_ac_ct_CXX="$ac_prog"
19006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19007     break 2
19008   fi
19009 done
19010 done
19011 IFS=$as_save_IFS
19012
19013 fi
19014 fi
19015 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
19016 if test -n "$ac_ct_CXX"; then
19017   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
19018 echo "${ECHO_T}$ac_ct_CXX" >&6; }
19019 else
19020   { echo "$as_me:$LINENO: result: no" >&5
19021 echo "${ECHO_T}no" >&6; }
19022 fi
19023
19024
19025   test -n "$ac_ct_CXX" && break
19026 done
19027
19028   if test "x$ac_ct_CXX" = x; then
19029     CXX="g++"
19030   else
19031     case $cross_compiling:$ac_tool_warned in
19032 yes:)
19033 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19034 whose name does not start with the host triplet.  If you think this
19035 configuration is useful to you, please write to autoconf@gnu.org." >&5
19036 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19037 whose name does not start with the host triplet.  If you think this
19038 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19039 ac_tool_warned=yes ;;
19040 esac
19041     CXX=$ac_ct_CXX
19042   fi
19043 fi
19044
19045   fi
19046 fi
19047 # Provide some information about the compiler.
19048 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
19049 ac_compiler=`set X $ac_compile; echo $2`
19050 { (ac_try="$ac_compiler --version >&5"
19051 case "(($ac_try" in
19052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19053   *) ac_try_echo=$ac_try;;
19054 esac
19055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19056   (eval "$ac_compiler --version >&5") 2>&5
19057   ac_status=$?
19058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19059   (exit $ac_status); }
19060 { (ac_try="$ac_compiler -v >&5"
19061 case "(($ac_try" in
19062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19063   *) ac_try_echo=$ac_try;;
19064 esac
19065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19066   (eval "$ac_compiler -v >&5") 2>&5
19067   ac_status=$?
19068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19069   (exit $ac_status); }
19070 { (ac_try="$ac_compiler -V >&5"
19071 case "(($ac_try" in
19072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073   *) ac_try_echo=$ac_try;;
19074 esac
19075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19076   (eval "$ac_compiler -V >&5") 2>&5
19077   ac_status=$?
19078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079   (exit $ac_status); }
19080
19081 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
19082 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
19083 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
19084   echo $ECHO_N "(cached) $ECHO_C" >&6
19085 else
19086   cat >conftest.$ac_ext <<_ACEOF
19087 /* confdefs.h.  */
19088 _ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h.  */
19092
19093 int
19094 main ()
19095 {
19096 #ifndef __GNUC__
19097        choke me
19098 #endif
19099
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 rm -f conftest.$ac_objext
19105 if { (ac_try="$ac_compile"
19106 case "(($ac_try" in
19107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19108   *) ac_try_echo=$ac_try;;
19109 esac
19110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19111   (eval "$ac_compile") 2>conftest.er1
19112   ac_status=$?
19113   grep -v '^ *+' conftest.er1 >conftest.err
19114   rm -f conftest.er1
19115   cat conftest.err >&5
19116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117   (exit $ac_status); } && {
19118          test -z "$ac_cxx_werror_flag" ||
19119          test ! -s conftest.err
19120        } && test -s conftest.$ac_objext; then
19121   ac_compiler_gnu=yes
19122 else
19123   echo "$as_me: failed program was:" >&5
19124 sed 's/^/| /' conftest.$ac_ext >&5
19125
19126         ac_compiler_gnu=no
19127 fi
19128
19129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
19131
19132 fi
19133 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
19134 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
19135 GXX=`test $ac_compiler_gnu = yes && echo yes`
19136 ac_test_CXXFLAGS=${CXXFLAGS+set}
19137 ac_save_CXXFLAGS=$CXXFLAGS
19138 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
19139 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
19140 if test "${ac_cv_prog_cxx_g+set}" = set; then
19141   echo $ECHO_N "(cached) $ECHO_C" >&6
19142 else
19143   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
19144    ac_cxx_werror_flag=yes
19145    ac_cv_prog_cxx_g=no
19146    CXXFLAGS="-g"
19147    cat >conftest.$ac_ext <<_ACEOF
19148 /* confdefs.h.  */
19149 _ACEOF
19150 cat confdefs.h >>conftest.$ac_ext
19151 cat >>conftest.$ac_ext <<_ACEOF
19152 /* end confdefs.h.  */
19153
19154 int
19155 main ()
19156 {
19157
19158   ;
19159   return 0;
19160 }
19161 _ACEOF
19162 rm -f conftest.$ac_objext
19163 if { (ac_try="$ac_compile"
19164 case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_compile") 2>conftest.er1
19170   ac_status=$?
19171   grep -v '^ *+' conftest.er1 >conftest.err
19172   rm -f conftest.er1
19173   cat conftest.err >&5
19174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175   (exit $ac_status); } && {
19176          test -z "$ac_cxx_werror_flag" ||
19177          test ! -s conftest.err
19178        } && test -s conftest.$ac_objext; then
19179   ac_cv_prog_cxx_g=yes
19180 else
19181   echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184         CXXFLAGS=""
19185       cat >conftest.$ac_ext <<_ACEOF
19186 /* confdefs.h.  */
19187 _ACEOF
19188 cat confdefs.h >>conftest.$ac_ext
19189 cat >>conftest.$ac_ext <<_ACEOF
19190 /* end confdefs.h.  */
19191
19192 int
19193 main ()
19194 {
19195
19196   ;
19197   return 0;
19198 }
19199 _ACEOF
19200 rm -f conftest.$ac_objext
19201 if { (ac_try="$ac_compile"
19202 case "(($ac_try" in
19203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204   *) ac_try_echo=$ac_try;;
19205 esac
19206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19207   (eval "$ac_compile") 2>conftest.er1
19208   ac_status=$?
19209   grep -v '^ *+' conftest.er1 >conftest.err
19210   rm -f conftest.er1
19211   cat conftest.err >&5
19212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19213   (exit $ac_status); } && {
19214          test -z "$ac_cxx_werror_flag" ||
19215          test ! -s conftest.err
19216        } && test -s conftest.$ac_objext; then
19217   :
19218 else
19219   echo "$as_me: failed program was:" >&5
19220 sed 's/^/| /' conftest.$ac_ext >&5
19221
19222         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19223          CXXFLAGS="-g"
19224          cat >conftest.$ac_ext <<_ACEOF
19225 /* confdefs.h.  */
19226 _ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h.  */
19230
19231 int
19232 main ()
19233 {
19234
19235   ;
19236   return 0;
19237 }
19238 _ACEOF
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243   *) ac_try_echo=$ac_try;;
19244 esac
19245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19246   (eval "$ac_compile") 2>conftest.er1
19247   ac_status=$?
19248   grep -v '^ *+' conftest.er1 >conftest.err
19249   rm -f conftest.er1
19250   cat conftest.err >&5
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); } && {
19253          test -z "$ac_cxx_werror_flag" ||
19254          test ! -s conftest.err
19255        } && test -s conftest.$ac_objext; then
19256   ac_cv_prog_cxx_g=yes
19257 else
19258   echo "$as_me: failed program was:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19260
19261
19262 fi
19263
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19265 fi
19266
19267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19268 fi
19269
19270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19271    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
19272 fi
19273 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
19274 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
19275 if test "$ac_test_CXXFLAGS" = set; then
19276   CXXFLAGS=$ac_save_CXXFLAGS
19277 elif test $ac_cv_prog_cxx_g = yes; then
19278   if test "$GXX" = yes; then
19279     CXXFLAGS="-g -O2"
19280   else
19281     CXXFLAGS="-g"
19282   fi
19283 else
19284   if test "$GXX" = yes; then
19285     CXXFLAGS="-O2"
19286   else
19287     CXXFLAGS=
19288   fi
19289 fi
19290 ac_ext=c
19291 ac_cpp='$CPP $CPPFLAGS'
19292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19295
19296
19297
19298
19299     ac_ext=cpp
19300 ac_cpp='$CXXCPP $CPPFLAGS'
19301 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19302 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19303 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19304
19305     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
19306 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
19307 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
19308   echo $ECHO_N "(cached) $ECHO_C" >&6
19309 else
19310   cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h.  */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h.  */
19316
19317 int
19318 main ()
19319 {
19320
19321              #ifndef __INTEL_COMPILER
19322                 choke me
19323              #endif
19324
19325   ;
19326   return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext
19330 if { (ac_try="$ac_compile"
19331 case "(($ac_try" in
19332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333   *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336   (eval "$ac_compile") 2>conftest.er1
19337   ac_status=$?
19338   grep -v '^ *+' conftest.er1 >conftest.err
19339   rm -f conftest.er1
19340   cat conftest.err >&5
19341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342   (exit $ac_status); } && {
19343          test -z "$ac_cxx_werror_flag" ||
19344          test ! -s conftest.err
19345        } && test -s conftest.$ac_objext; then
19346   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
19347 else
19348   echo "$as_me: failed program was:" >&5
19349 sed 's/^/| /' conftest.$ac_ext >&5
19350
19351         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
19352
19353 fi
19354
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19356
19357
19358 fi
19359 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
19360 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
19361     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
19362         :; INTELCXX=yes
19363     else
19364         :;
19365     fi
19366     ac_ext=c
19367 ac_cpp='$CPP $CPPFLAGS'
19368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19371
19372
19373
19374
19375         if test "x$GCXX" != "xyes"; then
19376         if test "xCXX" = "xC"; then
19377             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
19378 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
19379 if test "${bakefile_cv_c_exto+set}" = set; then
19380   echo $ECHO_N "(cached) $ECHO_C" >&6
19381 else
19382   cat >conftest.$ac_ext <<_ACEOF
19383 /* confdefs.h.  */
19384 _ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h.  */
19388
19389 int
19390 main ()
19391 {
19392
19393   ;
19394   return 0;
19395 }
19396 _ACEOF
19397 rm -f conftest.$ac_objext conftest.$ac_ext.o
19398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19399   (eval $ac_compile) 2>&5
19400   ac_status=$?
19401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19402   (exit $ac_status); }; then
19403   for ac_file in `(ls conftest.* 2>/dev/null)`; do
19404     case $ac_file in
19405         conftest.$ac_ext.o)
19406             bakefile_cv_c_exto="-ext o"
19407             ;;
19408         *)
19409             ;;
19410     esac
19411 done
19412 else
19413   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
19414 See \`config.log' for more details." >&5
19415 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
19416 See \`config.log' for more details." >&2;}
19417    { (exit 1); exit 1; }; }
19418
19419 fi
19420
19421 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
19422
19423 fi
19424 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
19425 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
19426 if test "x$bakefile_cv_c_exto" '!=' "x"; then
19427     if test "c" = "c"; then
19428         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
19429     fi
19430     if test "c" = "cxx"; then
19431         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
19432     fi
19433 fi
19434
19435             if test "x$bakefile_cv_c_exto" '!=' "x"; then
19436                 unset ac_cv_prog_cc_g
19437                 ac_test_CFLAGS=${CFLAGS+set}
19438 ac_save_CFLAGS=$CFLAGS
19439 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19440 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
19441 if test "${ac_cv_prog_cc_g+set}" = set; then
19442   echo $ECHO_N "(cached) $ECHO_C" >&6
19443 else
19444   ac_save_c_werror_flag=$ac_c_werror_flag
19445    ac_c_werror_flag=yes
19446    ac_cv_prog_cc_g=no
19447    CFLAGS="-g"
19448    cat >conftest.$ac_ext <<_ACEOF
19449 /* confdefs.h.  */
19450 _ACEOF
19451 cat confdefs.h >>conftest.$ac_ext
19452 cat >>conftest.$ac_ext <<_ACEOF
19453 /* end confdefs.h.  */
19454
19455 int
19456 main ()
19457 {
19458
19459   ;
19460   return 0;
19461 }
19462 _ACEOF
19463 rm -f conftest.$ac_objext
19464 if { (ac_try="$ac_compile"
19465 case "(($ac_try" in
19466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19467   *) ac_try_echo=$ac_try;;
19468 esac
19469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19470   (eval "$ac_compile") 2>conftest.er1
19471   ac_status=$?
19472   grep -v '^ *+' conftest.er1 >conftest.err
19473   rm -f conftest.er1
19474   cat conftest.err >&5
19475   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19476   (exit $ac_status); } && {
19477          test -z "$ac_c_werror_flag" ||
19478          test ! -s conftest.err
19479        } && test -s conftest.$ac_objext; then
19480   ac_cv_prog_cc_g=yes
19481 else
19482   echo "$as_me: failed program was:" >&5
19483 sed 's/^/| /' conftest.$ac_ext >&5
19484
19485         CFLAGS=""
19486       cat >conftest.$ac_ext <<_ACEOF
19487 /* confdefs.h.  */
19488 _ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h.  */
19492
19493 int
19494 main ()
19495 {
19496
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (ac_try="$ac_compile"
19503 case "(($ac_try" in
19504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19505   *) ac_try_echo=$ac_try;;
19506 esac
19507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19508   (eval "$ac_compile") 2>conftest.er1
19509   ac_status=$?
19510   grep -v '^ *+' conftest.er1 >conftest.err
19511   rm -f conftest.er1
19512   cat conftest.err >&5
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); } && {
19515          test -z "$ac_c_werror_flag" ||
19516          test ! -s conftest.err
19517        } && test -s conftest.$ac_objext; then
19518   :
19519 else
19520   echo "$as_me: failed program was:" >&5
19521 sed 's/^/| /' conftest.$ac_ext >&5
19522
19523         ac_c_werror_flag=$ac_save_c_werror_flag
19524          CFLAGS="-g"
19525          cat >conftest.$ac_ext <<_ACEOF
19526 /* confdefs.h.  */
19527 _ACEOF
19528 cat confdefs.h >>conftest.$ac_ext
19529 cat >>conftest.$ac_ext <<_ACEOF
19530 /* end confdefs.h.  */
19531
19532 int
19533 main ()
19534 {
19535
19536   ;
19537   return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext
19541 if { (ac_try="$ac_compile"
19542 case "(($ac_try" in
19543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544   *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547   (eval "$ac_compile") 2>conftest.er1
19548   ac_status=$?
19549   grep -v '^ *+' conftest.er1 >conftest.err
19550   rm -f conftest.er1
19551   cat conftest.err >&5
19552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553   (exit $ac_status); } && {
19554          test -z "$ac_c_werror_flag" ||
19555          test ! -s conftest.err
19556        } && test -s conftest.$ac_objext; then
19557   ac_cv_prog_cc_g=yes
19558 else
19559   echo "$as_me: failed program was:" >&5
19560 sed 's/^/| /' conftest.$ac_ext >&5
19561
19562
19563 fi
19564
19565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19566 fi
19567
19568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19569 fi
19570
19571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19572    ac_c_werror_flag=$ac_save_c_werror_flag
19573 fi
19574 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19575 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19576 if test "$ac_test_CFLAGS" = set; then
19577   CFLAGS=$ac_save_CFLAGS
19578 elif test $ac_cv_prog_cc_g = yes; then
19579   if test "$GCC" = yes; then
19580     CFLAGS="-g -O2"
19581   else
19582     CFLAGS="-g"
19583   fi
19584 else
19585   if test "$GCC" = yes; then
19586     CFLAGS="-O2"
19587   else
19588     CFLAGS=
19589   fi
19590 fi
19591             fi
19592         fi
19593
19594                         case `uname -s` in
19595             AIX*)
19596
19597
19598     ac_ext=cpp
19599 ac_cpp='$CXXCPP $CPPFLAGS'
19600 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19601 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19602 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19603
19604     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19605 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19606 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19607   echo $ECHO_N "(cached) $ECHO_C" >&6
19608 else
19609   cat >conftest.$ac_ext <<_ACEOF
19610 /* confdefs.h.  */
19611 _ACEOF
19612 cat confdefs.h >>conftest.$ac_ext
19613 cat >>conftest.$ac_ext <<_ACEOF
19614 /* end confdefs.h.  */
19615
19616 int
19617 main ()
19618 {
19619
19620              #ifndef __xlC__
19621                 choke me
19622              #endif
19623
19624   ;
19625   return 0;
19626 }
19627 _ACEOF
19628 rm -f conftest.$ac_objext
19629 if { (ac_try="$ac_compile"
19630 case "(($ac_try" in
19631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632   *) ac_try_echo=$ac_try;;
19633 esac
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635   (eval "$ac_compile") 2>conftest.er1
19636   ac_status=$?
19637   grep -v '^ *+' conftest.er1 >conftest.err
19638   rm -f conftest.er1
19639   cat conftest.err >&5
19640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19641   (exit $ac_status); } && {
19642          test -z "$ac_cxx_werror_flag" ||
19643          test ! -s conftest.err
19644        } && test -s conftest.$ac_objext; then
19645   bakefile_cv_cxx_compiler___xlC__=yes
19646 else
19647   echo "$as_me: failed program was:" >&5
19648 sed 's/^/| /' conftest.$ac_ext >&5
19649
19650         bakefile_cv_cxx_compiler___xlC__=no
19651
19652 fi
19653
19654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19655
19656
19657 fi
19658 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19659 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19660     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19661         :; XLCXX=yes
19662     else
19663         :;
19664     fi
19665     ac_ext=c
19666 ac_cpp='$CPP $CPPFLAGS'
19667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19670
19671
19672
19673                 ;;
19674
19675             Darwin)
19676
19677
19678     ac_ext=cpp
19679 ac_cpp='$CXXCPP $CPPFLAGS'
19680 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19681 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19682 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19683
19684     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19685 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19686 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19687   echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689   cat >conftest.$ac_ext <<_ACEOF
19690 /* confdefs.h.  */
19691 _ACEOF
19692 cat confdefs.h >>conftest.$ac_ext
19693 cat >>conftest.$ac_ext <<_ACEOF
19694 /* end confdefs.h.  */
19695
19696 int
19697 main ()
19698 {
19699
19700              #ifndef __MWERKS__
19701                 choke me
19702              #endif
19703
19704   ;
19705   return 0;
19706 }
19707 _ACEOF
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712   *) ac_try_echo=$ac_try;;
19713 esac
19714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19715   (eval "$ac_compile") 2>conftest.er1
19716   ac_status=$?
19717   grep -v '^ *+' conftest.er1 >conftest.err
19718   rm -f conftest.er1
19719   cat conftest.err >&5
19720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19721   (exit $ac_status); } && {
19722          test -z "$ac_cxx_werror_flag" ||
19723          test ! -s conftest.err
19724        } && test -s conftest.$ac_objext; then
19725   bakefile_cv_cxx_compiler___MWERKS__=yes
19726 else
19727   echo "$as_me: failed program was:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19729
19730         bakefile_cv_cxx_compiler___MWERKS__=no
19731
19732 fi
19733
19734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19735
19736
19737 fi
19738 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19739 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19740     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19741         :; MWCXX=yes
19742     else
19743         :;
19744     fi
19745     ac_ext=c
19746 ac_cpp='$CPP $CPPFLAGS'
19747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19750
19751
19752
19753
19754
19755     ac_ext=cpp
19756 ac_cpp='$CXXCPP $CPPFLAGS'
19757 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19758 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19759 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19760
19761     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19762 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19763 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19764   echo $ECHO_N "(cached) $ECHO_C" >&6
19765 else
19766   cat >conftest.$ac_ext <<_ACEOF
19767 /* confdefs.h.  */
19768 _ACEOF
19769 cat confdefs.h >>conftest.$ac_ext
19770 cat >>conftest.$ac_ext <<_ACEOF
19771 /* end confdefs.h.  */
19772
19773 int
19774 main ()
19775 {
19776
19777              #ifndef __xlC__
19778                 choke me
19779              #endif
19780
19781   ;
19782   return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (ac_try="$ac_compile"
19787 case "(($ac_try" in
19788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789   *) ac_try_echo=$ac_try;;
19790 esac
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792   (eval "$ac_compile") 2>conftest.er1
19793   ac_status=$?
19794   grep -v '^ *+' conftest.er1 >conftest.err
19795   rm -f conftest.er1
19796   cat conftest.err >&5
19797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19798   (exit $ac_status); } && {
19799          test -z "$ac_cxx_werror_flag" ||
19800          test ! -s conftest.err
19801        } && test -s conftest.$ac_objext; then
19802   bakefile_cv_cxx_compiler___xlC__=yes
19803 else
19804   echo "$as_me: failed program was:" >&5
19805 sed 's/^/| /' conftest.$ac_ext >&5
19806
19807         bakefile_cv_cxx_compiler___xlC__=no
19808
19809 fi
19810
19811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19812
19813
19814 fi
19815 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19816 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19817     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19818         :; XLCXX=yes
19819     else
19820         :;
19821     fi
19822     ac_ext=c
19823 ac_cpp='$CPP $CPPFLAGS'
19824 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19825 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19826 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19827
19828
19829
19830                 ;;
19831
19832             IRIX*)
19833
19834
19835     ac_ext=cpp
19836 ac_cpp='$CXXCPP $CPPFLAGS'
19837 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19838 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19839 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19840
19841     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19842 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19843 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19844   echo $ECHO_N "(cached) $ECHO_C" >&6
19845 else
19846   cat >conftest.$ac_ext <<_ACEOF
19847 /* confdefs.h.  */
19848 _ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h.  */
19852
19853 int
19854 main ()
19855 {
19856
19857              #ifndef _SGI_COMPILER_VERSION
19858                 choke me
19859              #endif
19860
19861   ;
19862   return 0;
19863 }
19864 _ACEOF
19865 rm -f conftest.$ac_objext
19866 if { (ac_try="$ac_compile"
19867 case "(($ac_try" in
19868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19869   *) ac_try_echo=$ac_try;;
19870 esac
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872   (eval "$ac_compile") 2>conftest.er1
19873   ac_status=$?
19874   grep -v '^ *+' conftest.er1 >conftest.err
19875   rm -f conftest.er1
19876   cat conftest.err >&5
19877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878   (exit $ac_status); } && {
19879          test -z "$ac_cxx_werror_flag" ||
19880          test ! -s conftest.err
19881        } && test -s conftest.$ac_objext; then
19882   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19883 else
19884   echo "$as_me: failed program was:" >&5
19885 sed 's/^/| /' conftest.$ac_ext >&5
19886
19887         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19888
19889 fi
19890
19891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19892
19893
19894 fi
19895 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19896 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19897     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19898         :; SGICXX=yes
19899     else
19900         :;
19901     fi
19902     ac_ext=c
19903 ac_cpp='$CPP $CPPFLAGS'
19904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19907
19908
19909
19910                 ;;
19911
19912             Linux*)
19913
19914
19915     ac_ext=cpp
19916 ac_cpp='$CXXCPP $CPPFLAGS'
19917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19920
19921     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19922 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19923 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19924   echo $ECHO_N "(cached) $ECHO_C" >&6
19925 else
19926   cat >conftest.$ac_ext <<_ACEOF
19927 /* confdefs.h.  */
19928 _ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h.  */
19932
19933 int
19934 main ()
19935 {
19936
19937              #ifndef __SUNPRO_CC
19938                 choke me
19939              #endif
19940
19941   ;
19942   return 0;
19943 }
19944 _ACEOF
19945 rm -f conftest.$ac_objext
19946 if { (ac_try="$ac_compile"
19947 case "(($ac_try" in
19948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949   *) ac_try_echo=$ac_try;;
19950 esac
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952   (eval "$ac_compile") 2>conftest.er1
19953   ac_status=$?
19954   grep -v '^ *+' conftest.er1 >conftest.err
19955   rm -f conftest.er1
19956   cat conftest.err >&5
19957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19958   (exit $ac_status); } && {
19959          test -z "$ac_cxx_werror_flag" ||
19960          test ! -s conftest.err
19961        } && test -s conftest.$ac_objext; then
19962   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19963 else
19964   echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19968
19969 fi
19970
19971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19972
19973
19974 fi
19975 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19976 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19977     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19978         :; SUNCXX=yes
19979     else
19980         :;
19981     fi
19982     ac_ext=c
19983 ac_cpp='$CPP $CPPFLAGS'
19984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19987
19988
19989
19990                 ;;
19991
19992             HP-UX*)
19993
19994
19995     ac_ext=cpp
19996 ac_cpp='$CXXCPP $CPPFLAGS'
19997 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19998 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19999 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20000
20001     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
20002 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
20003 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
20004   echo $ECHO_N "(cached) $ECHO_C" >&6
20005 else
20006   cat >conftest.$ac_ext <<_ACEOF
20007 /* confdefs.h.  */
20008 _ACEOF
20009 cat confdefs.h >>conftest.$ac_ext
20010 cat >>conftest.$ac_ext <<_ACEOF
20011 /* end confdefs.h.  */
20012
20013 int
20014 main ()
20015 {
20016
20017              #ifndef __HP_aCC
20018                 choke me
20019              #endif
20020
20021   ;
20022   return 0;
20023 }
20024 _ACEOF
20025 rm -f conftest.$ac_objext
20026 if { (ac_try="$ac_compile"
20027 case "(($ac_try" in
20028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029   *) ac_try_echo=$ac_try;;
20030 esac
20031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20032   (eval "$ac_compile") 2>conftest.er1
20033   ac_status=$?
20034   grep -v '^ *+' conftest.er1 >conftest.err
20035   rm -f conftest.er1
20036   cat conftest.err >&5
20037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20038   (exit $ac_status); } && {
20039          test -z "$ac_cxx_werror_flag" ||
20040          test ! -s conftest.err
20041        } && test -s conftest.$ac_objext; then
20042   bakefile_cv_cxx_compiler___HP_aCC=yes
20043 else
20044   echo "$as_me: failed program was:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20046
20047         bakefile_cv_cxx_compiler___HP_aCC=no
20048
20049 fi
20050
20051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052
20053
20054 fi
20055 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
20056 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
20057     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
20058         :; HPCXX=yes
20059     else
20060         :;
20061     fi
20062     ac_ext=c
20063 ac_cpp='$CPP $CPPFLAGS'
20064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20067
20068
20069
20070                 ;;
20071
20072             OSF1)
20073
20074
20075     ac_ext=cpp
20076 ac_cpp='$CXXCPP $CPPFLAGS'
20077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20080
20081     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
20082 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
20083 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
20084   echo $ECHO_N "(cached) $ECHO_C" >&6
20085 else
20086   cat >conftest.$ac_ext <<_ACEOF
20087 /* confdefs.h.  */
20088 _ACEOF
20089 cat confdefs.h >>conftest.$ac_ext
20090 cat >>conftest.$ac_ext <<_ACEOF
20091 /* end confdefs.h.  */
20092
20093 int
20094 main ()
20095 {
20096
20097              #ifndef __DECCXX
20098                 choke me
20099              #endif
20100
20101   ;
20102   return 0;
20103 }
20104 _ACEOF
20105 rm -f conftest.$ac_objext
20106 if { (ac_try="$ac_compile"
20107 case "(($ac_try" in
20108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20109   *) ac_try_echo=$ac_try;;
20110 esac
20111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20112   (eval "$ac_compile") 2>conftest.er1
20113   ac_status=$?
20114   grep -v '^ *+' conftest.er1 >conftest.err
20115   rm -f conftest.er1
20116   cat conftest.err >&5
20117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118   (exit $ac_status); } && {
20119          test -z "$ac_cxx_werror_flag" ||
20120          test ! -s conftest.err
20121        } && test -s conftest.$ac_objext; then
20122   bakefile_cv_cxx_compiler___DECCXX=yes
20123 else
20124   echo "$as_me: failed program was:" >&5
20125 sed 's/^/| /' conftest.$ac_ext >&5
20126
20127         bakefile_cv_cxx_compiler___DECCXX=no
20128
20129 fi
20130
20131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20132
20133
20134 fi
20135 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
20136 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
20137     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
20138         :; COMPAQCXX=yes
20139     else
20140         :;
20141     fi
20142     ac_ext=c
20143 ac_cpp='$CPP $CPPFLAGS'
20144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20147
20148
20149
20150                 ;;
20151
20152             SunOS)
20153
20154
20155     ac_ext=cpp
20156 ac_cpp='$CXXCPP $CPPFLAGS'
20157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20160
20161     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
20162 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
20163 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
20164   echo $ECHO_N "(cached) $ECHO_C" >&6
20165 else
20166   cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h.  */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h.  */
20172
20173 int
20174 main ()
20175 {
20176
20177              #ifndef __SUNPRO_CC
20178                 choke me
20179              #endif
20180
20181   ;
20182   return 0;
20183 }
20184 _ACEOF
20185 rm -f conftest.$ac_objext
20186 if { (ac_try="$ac_compile"
20187 case "(($ac_try" in
20188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189   *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192   (eval "$ac_compile") 2>conftest.er1
20193   ac_status=$?
20194   grep -v '^ *+' conftest.er1 >conftest.err
20195   rm -f conftest.er1
20196   cat conftest.err >&5
20197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20198   (exit $ac_status); } && {
20199          test -z "$ac_cxx_werror_flag" ||
20200          test ! -s conftest.err
20201        } && test -s conftest.$ac_objext; then
20202   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
20203 else
20204   echo "$as_me: failed program was:" >&5
20205 sed 's/^/| /' conftest.$ac_ext >&5
20206
20207         bakefile_cv_cxx_compiler___SUNPRO_CC=no
20208
20209 fi
20210
20211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20212
20213
20214 fi
20215 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
20216 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
20217     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
20218         :; SUNCXX=yes
20219     else
20220         :;
20221     fi
20222     ac_ext=c
20223 ac_cpp='$CPP $CPPFLAGS'
20224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20227
20228
20229
20230                 ;;
20231         esac
20232     fi
20233
20234
20235
20236 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
20237     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
20238 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
20239    { (exit 1); exit 1; }; }
20240 fi
20241
20242 if test "x$SUNCXX" != xyes; then
20243     if test -n "$ac_tool_prefix"; then
20244   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
20245 set dummy ${ac_tool_prefix}ar; ac_word=$2
20246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20248 if test "${ac_cv_prog_AR+set}" = set; then
20249   echo $ECHO_N "(cached) $ECHO_C" >&6
20250 else
20251   if test -n "$AR"; then
20252   ac_cv_prog_AR="$AR" # Let the user override the test.
20253 else
20254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20255 for as_dir in $PATH
20256 do
20257   IFS=$as_save_IFS
20258   test -z "$as_dir" && as_dir=.
20259   for ac_exec_ext in '' $ac_executable_extensions; do
20260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20261     ac_cv_prog_AR="${ac_tool_prefix}ar"
20262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20263     break 2
20264   fi
20265 done
20266 done
20267 IFS=$as_save_IFS
20268
20269 fi
20270 fi
20271 AR=$ac_cv_prog_AR
20272 if test -n "$AR"; then
20273   { echo "$as_me:$LINENO: result: $AR" >&5
20274 echo "${ECHO_T}$AR" >&6; }
20275 else
20276   { echo "$as_me:$LINENO: result: no" >&5
20277 echo "${ECHO_T}no" >&6; }
20278 fi
20279
20280
20281 fi
20282 if test -z "$ac_cv_prog_AR"; then
20283   ac_ct_AR=$AR
20284   # Extract the first word of "ar", so it can be a program name with args.
20285 set dummy ar; ac_word=$2
20286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20288 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
20289   echo $ECHO_N "(cached) $ECHO_C" >&6
20290 else
20291   if test -n "$ac_ct_AR"; then
20292   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
20293 else
20294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20295 for as_dir in $PATH
20296 do
20297   IFS=$as_save_IFS
20298   test -z "$as_dir" && as_dir=.
20299   for ac_exec_ext in '' $ac_executable_extensions; do
20300   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20301     ac_cv_prog_ac_ct_AR="ar"
20302     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20303     break 2
20304   fi
20305 done
20306 done
20307 IFS=$as_save_IFS
20308
20309 fi
20310 fi
20311 ac_ct_AR=$ac_cv_prog_ac_ct_AR
20312 if test -n "$ac_ct_AR"; then
20313   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
20314 echo "${ECHO_T}$ac_ct_AR" >&6; }
20315 else
20316   { echo "$as_me:$LINENO: result: no" >&5
20317 echo "${ECHO_T}no" >&6; }
20318 fi
20319
20320   if test "x$ac_ct_AR" = x; then
20321     AR=""
20322   else
20323     case $cross_compiling:$ac_tool_warned in
20324 yes:)
20325 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20326 whose name does not start with the host triplet.  If you think this
20327 configuration is useful to you, please write to autoconf@gnu.org." >&5
20328 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20329 whose name does not start with the host triplet.  If you think this
20330 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20331 ac_tool_warned=yes ;;
20332 esac
20333     AR=$ac_ct_AR
20334   fi
20335 else
20336   AR="$ac_cv_prog_AR"
20337 fi
20338
20339     if test "x$AR" = "x" ; then
20340         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
20341 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
20342    { (exit 1); exit 1; }; }
20343     fi
20344 fi
20345
20346 retest_macosx_linking=no
20347
20348 #if test "$wxUSE_MAC" = 1; then
20349     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20350                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20351             # Implicitly turn on the new --with-macosx-sdk using the default
20352             # SDK which provides the behavior this option has always had.
20353             if test "x$wxUSE_MACOSX_SDK" = "x"; then
20354                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20355 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20356                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20357 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20358                 wxUSE_MACOSX_SDK=yes
20359             fi
20360         else
20361             # Complain to user if he specified an argument to --enable-universal_binary
20362             # and also 1) specified --with-macosx-sdk using the default (yes) or
20363             # 2) specified --with-macosx-sdk using a path or 3) specified
20364             # --without-macosx-sdk (no).
20365             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20366                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20367 See \`config.log' for more details." >&5
20368 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20369 See \`config.log' for more details." >&2;}
20370    { (exit 1); exit 1; }; }
20371             else
20372                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
20373                 # special-case the empty string because the below test simply
20374                 # converts "no" to the empty string anyway.
20375                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20376                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20377 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20378             fi
20379         fi
20380                 OSX_UNIV_OPTS="-arch ppc -arch i386"
20381         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20382         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20383         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20384                                                                                                                 retest_macosx_linking=yes
20385
20386                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20387 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20388         bk_use_pch=no
20389     fi
20390 #fi
20391
20392 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20393     wxUSE_MACOSX_SDK=
20394 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20395     # TODO: Search for most recent SDK and use it.
20396     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20397 fi
20398
20399
20400 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20401     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20402 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20403     if ! test -d "$wxUSE_MACOSX_SDK"; then
20404         { { echo "$as_me:$LINENO: error: not found
20405 See \`config.log' for more details." >&5
20406 echo "$as_me: error: not found
20407 See \`config.log' for more details." >&2;}
20408    { (exit 1); exit 1; }; }
20409     else
20410         { echo "$as_me:$LINENO: result: exists" >&5
20411 echo "${ECHO_T}exists" >&6; }
20412     fi
20413     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20414     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20415     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20416     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20417     retest_macosx_linking=yes
20418             fi
20419
20420 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20421     wxUSE_MACOSX_VERSION_MIN=
20422 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20423     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20424         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20425 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20426
20427         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/'`
20428
20429         # If that failed, try again with the new key
20430         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" == "x"; then
20431
20432             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/'`
20433
20434         fi
20435
20436         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20437             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20438             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20439 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20440         else
20441             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20442 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20443             wxUSE_MACOSX_VERSION_MIN=
20444         fi
20445     else
20446         wxUSE_MACOSX_VERSION_MIN=
20447     fi
20448 fi
20449
20450 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20451     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20452     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20453     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20454     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20455     retest_macosx_linking=yes
20456 fi
20457
20458 if test "x$retest_macosx_linking" = "xyes"; then
20459     ac_ext=c
20460 ac_cpp='$CPP $CPPFLAGS'
20461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20464
20465     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20466 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20467     cat >conftest.$ac_ext <<_ACEOF
20468 /* confdefs.h.  */
20469 _ACEOF
20470 cat confdefs.h >>conftest.$ac_ext
20471 cat >>conftest.$ac_ext <<_ACEOF
20472 /* end confdefs.h.  */
20473
20474 int
20475 main ()
20476 {
20477
20478   ;
20479   return 0;
20480 }
20481 _ACEOF
20482 rm -f conftest.$ac_objext conftest$ac_exeext
20483 if { (ac_try="$ac_link"
20484 case "(($ac_try" in
20485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20486   *) ac_try_echo=$ac_try;;
20487 esac
20488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20489   (eval "$ac_link") 2>conftest.er1
20490   ac_status=$?
20491   grep -v '^ *+' conftest.er1 >conftest.err
20492   rm -f conftest.er1
20493   cat conftest.err >&5
20494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20495   (exit $ac_status); } && {
20496          test -z "$ac_c_werror_flag" ||
20497          test ! -s conftest.err
20498        } && test -s conftest$ac_exeext &&
20499        $as_test_x conftest$ac_exeext; then
20500   { echo "$as_me:$LINENO: result: yes" >&5
20501 echo "${ECHO_T}yes" >&6; }
20502 else
20503   echo "$as_me: failed program was:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20505
20506         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20507 See \`config.log' for more details." >&5
20508 echo "$as_me: error: no.  Try a different SDK
20509 See \`config.log' for more details." >&2;}
20510    { (exit 1); exit 1; }; }; exit 1
20511 fi
20512
20513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20514       conftest$ac_exeext conftest.$ac_ext
20515     ac_ext=c
20516 ac_cpp='$CPP $CPPFLAGS'
20517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20520
20521
20522     ac_ext=cpp
20523 ac_cpp='$CXXCPP $CPPFLAGS'
20524 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20525 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20526 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20527
20528     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20529 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20530     cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h.  */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h.  */
20536
20537 int
20538 main ()
20539 {
20540
20541   ;
20542   return 0;
20543 }
20544 _ACEOF
20545 rm -f conftest.$ac_objext conftest$ac_exeext
20546 if { (ac_try="$ac_link"
20547 case "(($ac_try" in
20548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549   *) ac_try_echo=$ac_try;;
20550 esac
20551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20552   (eval "$ac_link") 2>conftest.er1
20553   ac_status=$?
20554   grep -v '^ *+' conftest.er1 >conftest.err
20555   rm -f conftest.er1
20556   cat conftest.err >&5
20557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20558   (exit $ac_status); } && {
20559          test -z "$ac_cxx_werror_flag" ||
20560          test ! -s conftest.err
20561        } && test -s conftest$ac_exeext &&
20562        $as_test_x conftest$ac_exeext; then
20563   { echo "$as_me:$LINENO: result: yes" >&5
20564 echo "${ECHO_T}yes" >&6; }
20565 else
20566   echo "$as_me: failed program was:" >&5
20567 sed 's/^/| /' conftest.$ac_ext >&5
20568
20569         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20570 See \`config.log' for more details." >&5
20571 echo "$as_me: error: no.  Try a different SDK
20572 See \`config.log' for more details." >&2;}
20573    { (exit 1); exit 1; }; }; exit 1
20574 fi
20575
20576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20577       conftest$ac_exeext conftest.$ac_ext
20578     ac_ext=c
20579 ac_cpp='$CPP $CPPFLAGS'
20580 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20581 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20582 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20583
20584 fi
20585
20586
20587 case "${host}" in
20588
20589                 *-*-darwin* )
20590         INSTALL_PROGRAM="cp -fp"
20591         INSTALL_DATA="cp -fp"
20592         ;;
20593     *)
20594         ;;
20595 esac
20596
20597
20598 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20599     CXXFLAGS="-qunique $CXXFLAGS"
20600 fi
20601
20602 case "${host}" in
20603   powerpc-*-darwin* )
20604     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20605 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20606     cat >conftest.$ac_ext <<_ACEOF
20607 /* confdefs.h.  */
20608 _ACEOF
20609 cat confdefs.h >>conftest.$ac_ext
20610 cat >>conftest.$ac_ext <<_ACEOF
20611 /* end confdefs.h.  */
20612
20613 int
20614 main ()
20615 {
20616 #ifndef __POWERPC__
20617         choke me for lack of PowerPC
20618 #endif
20619
20620   ;
20621   return 0;
20622 }
20623 _ACEOF
20624 rm -f conftest.$ac_objext
20625 if { (ac_try="$ac_compile"
20626 case "(($ac_try" in
20627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20628   *) ac_try_echo=$ac_try;;
20629 esac
20630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20631   (eval "$ac_compile") 2>conftest.er1
20632   ac_status=$?
20633   grep -v '^ *+' conftest.er1 >conftest.err
20634   rm -f conftest.er1
20635   cat conftest.err >&5
20636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20637   (exit $ac_status); } && {
20638          test -z "$ac_c_werror_flag" ||
20639          test ! -s conftest.err
20640        } && test -s conftest.$ac_objext; then
20641   { echo "$as_me:$LINENO: result: yes" >&5
20642 echo "${ECHO_T}yes" >&6; }
20643 else
20644   echo "$as_me: failed program was:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20646
20647         { echo "$as_me:$LINENO: result: no" >&5
20648 echo "${ECHO_T}no" >&6; }
20649         cat >>confdefs.h <<\_ACEOF
20650 #define __POWERPC__ 1
20651 _ACEOF
20652
20653
20654 fi
20655
20656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20657   ;;
20658 esac
20659
20660 case "${host}" in
20661   *-*-darwin* )
20662     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20663 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20664     cat >conftest.$ac_ext <<_ACEOF
20665 /* confdefs.h.  */
20666 _ACEOF
20667 cat confdefs.h >>conftest.$ac_ext
20668 cat >>conftest.$ac_ext <<_ACEOF
20669 /* end confdefs.h.  */
20670 #include <CoreFoundation/CFBase.h>
20671
20672 int
20673 main ()
20674 {
20675
20676   ;
20677   return 0;
20678 }
20679 _ACEOF
20680 rm -f conftest.$ac_objext
20681 if { (ac_try="$ac_compile"
20682 case "(($ac_try" in
20683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684   *) ac_try_echo=$ac_try;;
20685 esac
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687   (eval "$ac_compile") 2>conftest.er1
20688   ac_status=$?
20689   grep -v '^ *+' conftest.er1 >conftest.err
20690   rm -f conftest.er1
20691   cat conftest.err >&5
20692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20693   (exit $ac_status); } && {
20694          test -z "$ac_c_werror_flag" ||
20695          test ! -s conftest.err
20696        } && test -s conftest.$ac_objext; then
20697   { echo "$as_me:$LINENO: result: yes" >&5
20698 echo "${ECHO_T}yes" >&6; }
20699 else
20700   echo "$as_me: failed program was:" >&5
20701 sed 's/^/| /' conftest.$ac_ext >&5
20702
20703         { echo "$as_me:$LINENO: result: no" >&5
20704 echo "${ECHO_T}no" >&6; }
20705         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20706 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20707         cat >conftest.$ac_ext <<_ACEOF
20708 /* confdefs.h.  */
20709 _ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h.  */
20713 #define __CF_USE_FRAMEWORK_INCLUDES__
20714 #include <CoreFoundation/CFBase.h>
20715
20716 int
20717 main ()
20718 {
20719
20720   ;
20721   return 0;
20722 }
20723 _ACEOF
20724 rm -f conftest.$ac_objext
20725 if { (ac_try="$ac_compile"
20726 case "(($ac_try" in
20727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728   *) ac_try_echo=$ac_try;;
20729 esac
20730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20731   (eval "$ac_compile") 2>conftest.er1
20732   ac_status=$?
20733   grep -v '^ *+' conftest.er1 >conftest.err
20734   rm -f conftest.er1
20735   cat conftest.err >&5
20736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20737   (exit $ac_status); } && {
20738          test -z "$ac_c_werror_flag" ||
20739          test ! -s conftest.err
20740        } && test -s conftest.$ac_objext; then
20741   { echo "$as_me:$LINENO: result: yes" >&5
20742 echo "${ECHO_T}yes" >&6; }
20743                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20744 else
20745   echo "$as_me: failed program was:" >&5
20746 sed 's/^/| /' conftest.$ac_ext >&5
20747
20748         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20749 See \`config.log' for more details." >&5
20750 echo "$as_me: error: no.  CoreFoundation not available.
20751 See \`config.log' for more details." >&2;}
20752    { (exit 1); exit 1; }; }
20753
20754 fi
20755
20756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20757
20758
20759 fi
20760
20761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20762   ;;
20763 esac
20764
20765 wants_win32=0
20766 doesnt_want_win32=0
20767 case "${host}" in
20768   *-*-cygwin*)
20769       if test "$wxUSE_MSW" = 1 ; then
20770         wants_win32=1
20771       else
20772                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20773 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20774 if test "${wx_cv_nocygwin+set}" = set; then
20775   echo $ECHO_N "(cached) $ECHO_C" >&6
20776 else
20777
20778                 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h.  */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h.  */
20784
20785 int
20786 main ()
20787 {
20788
20789                         #ifdef __MINGW32__
20790                             choke me
20791                         #endif
20792
20793   ;
20794   return 0;
20795 }
20796 _ACEOF
20797 rm -f conftest.$ac_objext
20798 if { (ac_try="$ac_compile"
20799 case "(($ac_try" in
20800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20801   *) ac_try_echo=$ac_try;;
20802 esac
20803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20804   (eval "$ac_compile") 2>conftest.er1
20805   ac_status=$?
20806   grep -v '^ *+' conftest.er1 >conftest.err
20807   rm -f conftest.er1
20808   cat conftest.err >&5
20809   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810   (exit $ac_status); } && {
20811          test -z "$ac_c_werror_flag" ||
20812          test ! -s conftest.err
20813        } && test -s conftest.$ac_objext; then
20814   wx_cv_nocygwin=no
20815 else
20816   echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819         wx_cv_nocygwin=yes
20820
20821 fi
20822
20823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20824
20825
20826 fi
20827 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20828 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20829
20830         if test "$wx_cv_nocygwin" = "yes"; then
20831             wants_win32=1
20832         else
20833             doesnt_want_win32=1
20834         fi
20835       fi
20836       if test "$wants_win32" = 1 ; then
20837         BAKEFILE_FORCE_PLATFORM=win32
20838       fi
20839   ;;
20840   *-*-mingw*)
20841       wants_win32=1
20842   ;;
20843 esac
20844
20845 if test "$wxUSE_WINE" = "yes"; then
20846     wants_win32=1
20847     LDFLAGS_GUI="-mwindows"
20848 fi
20849
20850 if test "$wants_win32" = 1 ; then
20851     USE_UNIX=0
20852     USE_WIN32=1
20853     cat >>confdefs.h <<\_ACEOF
20854 #define __WIN32__ 1
20855 _ACEOF
20856
20857     cat >>confdefs.h <<\_ACEOF
20858 #define __WIN95__ 1
20859 _ACEOF
20860
20861     cat >>confdefs.h <<\_ACEOF
20862 #define __WINDOWS__ 1
20863 _ACEOF
20864
20865     cat >>confdefs.h <<\_ACEOF
20866 #define __GNUWIN32__ 1
20867 _ACEOF
20868
20869     cat >>confdefs.h <<\_ACEOF
20870 #define STRICT 1
20871 _ACEOF
20872
20873 fi
20874 if test "$doesnt_want_win32" = 1 ; then
20875     USE_UNIX=1
20876     USE_WIN32=0
20877 fi
20878
20879 if test "$USE_UNIX" = 1 ; then
20880     wxUSE_UNIX=yes
20881     cat >>confdefs.h <<\_ACEOF
20882 #define __UNIX__ 1
20883 _ACEOF
20884
20885 fi
20886
20887 case "${host}" in
20888   *-pc-os2_emx | *-pc-os2-emx )
20889                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
20890                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
20891 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
20892 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
20893   echo $ECHO_N "(cached) $ECHO_C" >&6
20894 else
20895   ac_check_lib_save_LIBS=$LIBS
20896 LIBS="-lcExt  $LIBS"
20897 cat >conftest.$ac_ext <<_ACEOF
20898 /* confdefs.h.  */
20899 _ACEOF
20900 cat confdefs.h >>conftest.$ac_ext
20901 cat >>conftest.$ac_ext <<_ACEOF
20902 /* end confdefs.h.  */
20903
20904 /* Override any GCC internal prototype to avoid an error.
20905    Use char because int might match the return type of a GCC
20906    builtin and then its argument prototype would still apply.  */
20907 #ifdef __cplusplus
20908 extern "C"
20909 #endif
20910 char drand48 ();
20911 int
20912 main ()
20913 {
20914 return drand48 ();
20915   ;
20916   return 0;
20917 }
20918 _ACEOF
20919 rm -f conftest.$ac_objext conftest$ac_exeext
20920 if { (ac_try="$ac_link"
20921 case "(($ac_try" in
20922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20923   *) ac_try_echo=$ac_try;;
20924 esac
20925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20926   (eval "$ac_link") 2>conftest.er1
20927   ac_status=$?
20928   grep -v '^ *+' conftest.er1 >conftest.err
20929   rm -f conftest.er1
20930   cat conftest.err >&5
20931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20932   (exit $ac_status); } && {
20933          test -z "$ac_c_werror_flag" ||
20934          test ! -s conftest.err
20935        } && test -s conftest$ac_exeext &&
20936        $as_test_x conftest$ac_exeext; then
20937   ac_cv_lib_cExt_drand48=yes
20938 else
20939   echo "$as_me: failed program was:" >&5
20940 sed 's/^/| /' conftest.$ac_ext >&5
20941
20942         ac_cv_lib_cExt_drand48=no
20943 fi
20944
20945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20946       conftest$ac_exeext conftest.$ac_ext
20947 LIBS=$ac_check_lib_save_LIBS
20948 fi
20949 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
20950 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
20951 if test $ac_cv_lib_cExt_drand48 = yes; then
20952   LIBS="$LIBS -lcExt"
20953 fi
20954
20955       else
20956                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
20957       fi
20958                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
20959 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
20960 if test "${wx_cv_gccversion+set}" = set; then
20961   echo $ECHO_N "(cached) $ECHO_C" >&6
20962 else
20963
20964           if test "$cross_compiling" = yes; then
20965                 wx_cv_gccversion="EMX2"
20966
20967 else
20968   cat >conftest.$ac_ext <<_ACEOF
20969 /* confdefs.h.  */
20970 _ACEOF
20971 cat confdefs.h >>conftest.$ac_ext
20972 cat >>conftest.$ac_ext <<_ACEOF
20973 /* end confdefs.h.  */
20974
20975                   #include <stdio.h>
20976
20977                   int main()
20978                   {
20979                       FILE *f=fopen("conftestval", "w");
20980                       if (!f) exit(1);
20981                       fprintf(f,
20982                   #if (__GNUC__ < 3)
20983                               "EMX2"
20984                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
20985                               "EMX3"
20986                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
20987                               "Innotek5"
20988                   #else
20989                               "Innotek6"
20990                   #endif
20991                       );
20992                       exit(0);
20993                   }
20994
20995 _ACEOF
20996 rm -f conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000   *) ac_try_echo=$ac_try;;
21001 esac
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003   (eval "$ac_link") 2>&5
21004   ac_status=$?
21005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21006   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21007   { (case "(($ac_try" in
21008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21009   *) ac_try_echo=$ac_try;;
21010 esac
21011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21012   (eval "$ac_try") 2>&5
21013   ac_status=$?
21014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21015   (exit $ac_status); }; }; then
21016   wx_cv_gccversion=`cat conftestval`
21017 else
21018   echo "$as_me: program exited with status $ac_status" >&5
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ( exit $ac_status )
21023 wx_cv_gccversion="EMX2"
21024 fi
21025 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21026 fi
21027
21028
21029
21030 fi
21031 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21032 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21033       if test "$wx_cv_gccversion" = "EMX2"; then
21034           LIBS="$LIBS -lstdcpp"
21035           LDFLAGS="$LDFLAGS -Zsysv-signals"
21036       else
21037           if test "$wx_cv_gccversion" = "EMX3"; then
21038               LIBS="$LIBS -lstdcxx -lgcc"
21039               LDFLAGS="$LDFLAGS -Zsysv-signals"
21040           else
21041               LIBS="$LIBS -lstdc++"
21042           fi
21043       fi
21044       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21045         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21046 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21047         wxUSE_OMF=yes
21048         enable_omf=yes
21049       fi
21050         ;;
21051   *)
21052
21053       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21054 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21055 if test "${ac_cv_string_strcasecmp+set}" = set; then
21056   echo $ECHO_N "(cached) $ECHO_C" >&6
21057 else
21058
21059           cat >conftest.$ac_ext <<_ACEOF
21060 /* confdefs.h.  */
21061 _ACEOF
21062 cat confdefs.h >>conftest.$ac_ext
21063 cat >>conftest.$ac_ext <<_ACEOF
21064 /* end confdefs.h.  */
21065
21066               #include <string.h>
21067
21068 int
21069 main ()
21070 {
21071
21072                   strcasecmp("foo", "bar");
21073
21074   ;
21075   return 0;
21076 }
21077 _ACEOF
21078 rm -f conftest.$ac_objext conftest$ac_exeext
21079 if { (ac_try="$ac_link"
21080 case "(($ac_try" in
21081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21082   *) ac_try_echo=$ac_try;;
21083 esac
21084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21085   (eval "$ac_link") 2>conftest.er1
21086   ac_status=$?
21087   grep -v '^ *+' conftest.er1 >conftest.err
21088   rm -f conftest.er1
21089   cat conftest.err >&5
21090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21091   (exit $ac_status); } && {
21092          test -z "$ac_c_werror_flag" ||
21093          test ! -s conftest.err
21094        } && test -s conftest$ac_exeext &&
21095        $as_test_x conftest$ac_exeext; then
21096   ac_cv_string_strcasecmp=yes
21097 else
21098   echo "$as_me: failed program was:" >&5
21099 sed 's/^/| /' conftest.$ac_ext >&5
21100
21101         ac_cv_string_strcasecmp=no
21102
21103 fi
21104
21105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21106       conftest$ac_exeext conftest.$ac_ext
21107
21108 fi
21109 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21110 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21111
21112       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21113           cat >>confdefs.h <<\_ACEOF
21114 #define HAVE_STRCASECMP_IN_STRING_H 1
21115 _ACEOF
21116
21117       else
21118           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21119 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21120 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21121   echo $ECHO_N "(cached) $ECHO_C" >&6
21122 else
21123
21124               cat >conftest.$ac_ext <<_ACEOF
21125 /* confdefs.h.  */
21126 _ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h.  */
21130
21131                   #include <strings.h>
21132
21133 int
21134 main ()
21135 {
21136
21137                       strcasecmp("foo", "bar");
21138
21139   ;
21140   return 0;
21141 }
21142 _ACEOF
21143 rm -f conftest.$ac_objext conftest$ac_exeext
21144 if { (ac_try="$ac_link"
21145 case "(($ac_try" in
21146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147   *) ac_try_echo=$ac_try;;
21148 esac
21149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21150   (eval "$ac_link") 2>conftest.er1
21151   ac_status=$?
21152   grep -v '^ *+' conftest.er1 >conftest.err
21153   rm -f conftest.er1
21154   cat conftest.err >&5
21155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156   (exit $ac_status); } && {
21157          test -z "$ac_c_werror_flag" ||
21158          test ! -s conftest.err
21159        } && test -s conftest$ac_exeext &&
21160        $as_test_x conftest$ac_exeext; then
21161   ac_cv_strings_strcasecmp=yes
21162 else
21163   echo "$as_me: failed program was:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21165
21166         ac_cv_strings_strcasecmp=no
21167
21168 fi
21169
21170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21171       conftest$ac_exeext conftest.$ac_ext
21172
21173 fi
21174 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21175 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21176
21177           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21178               cat >>confdefs.h <<\_ACEOF
21179 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21180 _ACEOF
21181
21182           else
21183               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21184 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21185    { (exit 1); exit 1; }; }
21186           fi
21187       fi
21188
21189         ;;
21190 esac
21191
21192
21193 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21194 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21195 if test "${ac_cv_header_stdc+set}" = set; then
21196   echo $ECHO_N "(cached) $ECHO_C" >&6
21197 else
21198   cat >conftest.$ac_ext <<_ACEOF
21199 /* confdefs.h.  */
21200 _ACEOF
21201 cat confdefs.h >>conftest.$ac_ext
21202 cat >>conftest.$ac_ext <<_ACEOF
21203 /* end confdefs.h.  */
21204 #include <stdlib.h>
21205 #include <stdarg.h>
21206 #include <string.h>
21207 #include <float.h>
21208
21209 int
21210 main ()
21211 {
21212
21213   ;
21214   return 0;
21215 }
21216 _ACEOF
21217 rm -f conftest.$ac_objext
21218 if { (ac_try="$ac_compile"
21219 case "(($ac_try" in
21220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21221   *) ac_try_echo=$ac_try;;
21222 esac
21223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21224   (eval "$ac_compile") 2>conftest.er1
21225   ac_status=$?
21226   grep -v '^ *+' conftest.er1 >conftest.err
21227   rm -f conftest.er1
21228   cat conftest.err >&5
21229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230   (exit $ac_status); } && {
21231          test -z "$ac_c_werror_flag" ||
21232          test ! -s conftest.err
21233        } && test -s conftest.$ac_objext; then
21234   ac_cv_header_stdc=yes
21235 else
21236   echo "$as_me: failed program was:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21238
21239         ac_cv_header_stdc=no
21240 fi
21241
21242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21243
21244 if test $ac_cv_header_stdc = yes; then
21245   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21246   cat >conftest.$ac_ext <<_ACEOF
21247 /* confdefs.h.  */
21248 _ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h.  */
21252 #include <string.h>
21253
21254 _ACEOF
21255 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21256   $EGREP "memchr" >/dev/null 2>&1; then
21257   :
21258 else
21259   ac_cv_header_stdc=no
21260 fi
21261 rm -f conftest*
21262
21263 fi
21264
21265 if test $ac_cv_header_stdc = yes; then
21266   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21267   cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h.  */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h.  */
21273 #include <stdlib.h>
21274
21275 _ACEOF
21276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21277   $EGREP "free" >/dev/null 2>&1; then
21278   :
21279 else
21280   ac_cv_header_stdc=no
21281 fi
21282 rm -f conftest*
21283
21284 fi
21285
21286 if test $ac_cv_header_stdc = yes; then
21287   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21288   if test "$cross_compiling" = yes; then
21289   :
21290 else
21291   cat >conftest.$ac_ext <<_ACEOF
21292 /* confdefs.h.  */
21293 _ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h.  */
21297 #include <ctype.h>
21298 #include <stdlib.h>
21299 #if ((' ' & 0x0FF) == 0x020)
21300 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21301 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21302 #else
21303 # define ISLOWER(c) \
21304                    (('a' <= (c) && (c) <= 'i') \
21305                      || ('j' <= (c) && (c) <= 'r') \
21306                      || ('s' <= (c) && (c) <= 'z'))
21307 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21308 #endif
21309
21310 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21311 int
21312 main ()
21313 {
21314   int i;
21315   for (i = 0; i < 256; i++)
21316     if (XOR (islower (i), ISLOWER (i))
21317         || toupper (i) != TOUPPER (i))
21318       return 2;
21319   return 0;
21320 }
21321 _ACEOF
21322 rm -f conftest$ac_exeext
21323 if { (ac_try="$ac_link"
21324 case "(($ac_try" in
21325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326   *) ac_try_echo=$ac_try;;
21327 esac
21328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21329   (eval "$ac_link") 2>&5
21330   ac_status=$?
21331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21333   { (case "(($ac_try" in
21334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21335   *) ac_try_echo=$ac_try;;
21336 esac
21337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21338   (eval "$ac_try") 2>&5
21339   ac_status=$?
21340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21341   (exit $ac_status); }; }; then
21342   :
21343 else
21344   echo "$as_me: program exited with status $ac_status" >&5
21345 echo "$as_me: failed program was:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21347
21348 ( exit $ac_status )
21349 ac_cv_header_stdc=no
21350 fi
21351 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21352 fi
21353
21354
21355 fi
21356 fi
21357 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21358 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21359 if test $ac_cv_header_stdc = yes; then
21360
21361 cat >>confdefs.h <<\_ACEOF
21362 #define STDC_HEADERS 1
21363 _ACEOF
21364
21365 fi
21366
21367 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21368
21369
21370
21371
21372
21373
21374
21375
21376
21377 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21378                   inttypes.h stdint.h unistd.h
21379 do
21380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21381 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21382 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21384   echo $ECHO_N "(cached) $ECHO_C" >&6
21385 else
21386   cat >conftest.$ac_ext <<_ACEOF
21387 /* confdefs.h.  */
21388 _ACEOF
21389 cat confdefs.h >>conftest.$ac_ext
21390 cat >>conftest.$ac_ext <<_ACEOF
21391 /* end confdefs.h.  */
21392 $ac_includes_default
21393
21394 #include <$ac_header>
21395 _ACEOF
21396 rm -f conftest.$ac_objext
21397 if { (ac_try="$ac_compile"
21398 case "(($ac_try" in
21399   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400   *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403   (eval "$ac_compile") 2>conftest.er1
21404   ac_status=$?
21405   grep -v '^ *+' conftest.er1 >conftest.err
21406   rm -f conftest.er1
21407   cat conftest.err >&5
21408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409   (exit $ac_status); } && {
21410          test -z "$ac_c_werror_flag" ||
21411          test ! -s conftest.err
21412        } && test -s conftest.$ac_objext; then
21413   eval "$as_ac_Header=yes"
21414 else
21415   echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418         eval "$as_ac_Header=no"
21419 fi
21420
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 fi
21423 ac_res=`eval echo '${'$as_ac_Header'}'`
21424                { echo "$as_me:$LINENO: result: $ac_res" >&5
21425 echo "${ECHO_T}$ac_res" >&6; }
21426 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21427   cat >>confdefs.h <<_ACEOF
21428 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21429 _ACEOF
21430
21431 fi
21432
21433 done
21434
21435
21436
21437
21438 for ac_header in langinfo.h wchar.h
21439 do
21440 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21444   echo $ECHO_N "(cached) $ECHO_C" >&6
21445 else
21446   cat >conftest.$ac_ext <<_ACEOF
21447 /* confdefs.h.  */
21448 _ACEOF
21449 cat confdefs.h >>conftest.$ac_ext
21450 cat >>conftest.$ac_ext <<_ACEOF
21451 /* end confdefs.h.  */
21452 $ac_includes_default
21453
21454 #include <$ac_header>
21455 _ACEOF
21456 rm -f conftest.$ac_objext
21457 if { (ac_try="$ac_compile"
21458 case "(($ac_try" in
21459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21460   *) ac_try_echo=$ac_try;;
21461 esac
21462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21463   (eval "$ac_compile") 2>conftest.er1
21464   ac_status=$?
21465   grep -v '^ *+' conftest.er1 >conftest.err
21466   rm -f conftest.er1
21467   cat conftest.err >&5
21468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21469   (exit $ac_status); } && {
21470          test -z "$ac_c_werror_flag" ||
21471          test ! -s conftest.err
21472        } && test -s conftest.$ac_objext; then
21473   eval "$as_ac_Header=yes"
21474 else
21475   echo "$as_me: failed program was:" >&5
21476 sed 's/^/| /' conftest.$ac_ext >&5
21477
21478         eval "$as_ac_Header=no"
21479 fi
21480
21481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21482 fi
21483 ac_res=`eval echo '${'$as_ac_Header'}'`
21484                { echo "$as_me:$LINENO: result: $ac_res" >&5
21485 echo "${ECHO_T}$ac_res" >&6; }
21486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21487   cat >>confdefs.h <<_ACEOF
21488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489 _ACEOF
21490
21491 fi
21492
21493 done
21494
21495
21496 if test "$ac_cv_header_wchar_h" != "yes"; then
21497
21498 for ac_header in wcstr.h
21499 do
21500 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21504   echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506   cat >conftest.$ac_ext <<_ACEOF
21507 /* confdefs.h.  */
21508 _ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h.  */
21512 $ac_includes_default
21513
21514 #include <$ac_header>
21515 _ACEOF
21516 rm -f conftest.$ac_objext
21517 if { (ac_try="$ac_compile"
21518 case "(($ac_try" in
21519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21520   *) ac_try_echo=$ac_try;;
21521 esac
21522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21523   (eval "$ac_compile") 2>conftest.er1
21524   ac_status=$?
21525   grep -v '^ *+' conftest.er1 >conftest.err
21526   rm -f conftest.er1
21527   cat conftest.err >&5
21528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21529   (exit $ac_status); } && {
21530          test -z "$ac_c_werror_flag" ||
21531          test ! -s conftest.err
21532        } && test -s conftest.$ac_objext; then
21533   eval "$as_ac_Header=yes"
21534 else
21535   echo "$as_me: failed program was:" >&5
21536 sed 's/^/| /' conftest.$ac_ext >&5
21537
21538         eval "$as_ac_Header=no"
21539 fi
21540
21541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21542 fi
21543 ac_res=`eval echo '${'$as_ac_Header'}'`
21544                { echo "$as_me:$LINENO: result: $ac_res" >&5
21545 echo "${ECHO_T}$ac_res" >&6; }
21546 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21547   cat >>confdefs.h <<_ACEOF
21548 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21549 _ACEOF
21550
21551 fi
21552
21553 done
21554
21555 fi
21556
21557 case "${host}" in
21558   *-pc-os2_emx | *-pc-os2-emx )
21559                   if test $ac_cv_header_langinfo_h = "yes" \
21560                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21561                      -o "$wx_cv_gccversion" = "EMX3" \
21562                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21563           LIBS="$LIBS -lintl"
21564       fi
21565   ;;
21566 esac
21567
21568 if test "$USE_UNIX" = 1 ; then
21569
21570 for ac_header in sys/select.h
21571 do
21572 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21576   echo $ECHO_N "(cached) $ECHO_C" >&6
21577 else
21578   cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h.  */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h.  */
21584 $ac_includes_default
21585
21586 #include <$ac_header>
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592   *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595   (eval "$ac_compile") 2>conftest.er1
21596   ac_status=$?
21597   grep -v '^ *+' conftest.er1 >conftest.err
21598   rm -f conftest.er1
21599   cat conftest.err >&5
21600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601   (exit $ac_status); } && {
21602          test -z "$ac_c_werror_flag" ||
21603          test ! -s conftest.err
21604        } && test -s conftest.$ac_objext; then
21605   eval "$as_ac_Header=yes"
21606 else
21607   echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610         eval "$as_ac_Header=no"
21611 fi
21612
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 fi
21615 ac_res=`eval echo '${'$as_ac_Header'}'`
21616                { echo "$as_me:$LINENO: result: $ac_res" >&5
21617 echo "${ECHO_T}$ac_res" >&6; }
21618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21619   cat >>confdefs.h <<_ACEOF
21620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21621 _ACEOF
21622
21623 fi
21624
21625 done
21626
21627 fi
21628
21629
21630 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21631 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21632 if test "${ac_cv_c_const+set}" = set; then
21633   echo $ECHO_N "(cached) $ECHO_C" >&6
21634 else
21635   cat >conftest.$ac_ext <<_ACEOF
21636 /* confdefs.h.  */
21637 _ACEOF
21638 cat confdefs.h >>conftest.$ac_ext
21639 cat >>conftest.$ac_ext <<_ACEOF
21640 /* end confdefs.h.  */
21641
21642 int
21643 main ()
21644 {
21645 /* FIXME: Include the comments suggested by Paul. */
21646 #ifndef __cplusplus
21647   /* Ultrix mips cc rejects this.  */
21648   typedef int charset[2];
21649   const charset cs;
21650   /* SunOS 4.1.1 cc rejects this.  */
21651   char const *const *pcpcc;
21652   char **ppc;
21653   /* NEC SVR4.0.2 mips cc rejects this.  */
21654   struct point {int x, y;};
21655   static struct point const zero = {0,0};
21656   /* AIX XL C 1.02.0.0 rejects this.
21657      It does not let you subtract one const X* pointer from another in
21658      an arm of an if-expression whose if-part is not a constant
21659      expression */
21660   const char *g = "string";
21661   pcpcc = &g + (g ? g-g : 0);
21662   /* HPUX 7.0 cc rejects these. */
21663   ++pcpcc;
21664   ppc = (char**) pcpcc;
21665   pcpcc = (char const *const *) ppc;
21666   { /* SCO 3.2v4 cc rejects this.  */
21667     char *t;
21668     char const *s = 0 ? (char *) 0 : (char const *) 0;
21669
21670     *t++ = 0;
21671     if (s) return 0;
21672   }
21673   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21674     int x[] = {25, 17};
21675     const int *foo = &x[0];
21676     ++foo;
21677   }
21678   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21679     typedef const int *iptr;
21680     iptr p = 0;
21681     ++p;
21682   }
21683   { /* AIX XL C 1.02.0.0 rejects this saying
21684        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21685     struct s { int j; const int *ap[3]; };
21686     struct s *b; b->j = 5;
21687   }
21688   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21689     const int foo = 10;
21690     if (!foo) return 0;
21691   }
21692   return !cs[0] && !zero.x;
21693 #endif
21694
21695   ;
21696   return 0;
21697 }
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703   *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706   (eval "$ac_compile") 2>conftest.er1
21707   ac_status=$?
21708   grep -v '^ *+' conftest.er1 >conftest.err
21709   rm -f conftest.er1
21710   cat conftest.err >&5
21711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712   (exit $ac_status); } && {
21713          test -z "$ac_c_werror_flag" ||
21714          test ! -s conftest.err
21715        } && test -s conftest.$ac_objext; then
21716   ac_cv_c_const=yes
21717 else
21718   echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721         ac_cv_c_const=no
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 fi
21726 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21727 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21728 if test $ac_cv_c_const = no; then
21729
21730 cat >>confdefs.h <<\_ACEOF
21731 #define const
21732 _ACEOF
21733
21734 fi
21735
21736 { echo "$as_me:$LINENO: checking for inline" >&5
21737 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21738 if test "${ac_cv_c_inline+set}" = set; then
21739   echo $ECHO_N "(cached) $ECHO_C" >&6
21740 else
21741   ac_cv_c_inline=no
21742 for ac_kw in inline __inline__ __inline; do
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 #ifndef __cplusplus
21750 typedef int foo_t;
21751 static $ac_kw foo_t static_foo () {return 0; }
21752 $ac_kw foo_t foo () {return 0; }
21753 #endif
21754
21755 _ACEOF
21756 rm -f conftest.$ac_objext
21757 if { (ac_try="$ac_compile"
21758 case "(($ac_try" in
21759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21760   *) ac_try_echo=$ac_try;;
21761 esac
21762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21763   (eval "$ac_compile") 2>conftest.er1
21764   ac_status=$?
21765   grep -v '^ *+' conftest.er1 >conftest.err
21766   rm -f conftest.er1
21767   cat conftest.err >&5
21768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21769   (exit $ac_status); } && {
21770          test -z "$ac_c_werror_flag" ||
21771          test ! -s conftest.err
21772        } && test -s conftest.$ac_objext; then
21773   ac_cv_c_inline=$ac_kw
21774 else
21775   echo "$as_me: failed program was:" >&5
21776 sed 's/^/| /' conftest.$ac_ext >&5
21777
21778
21779 fi
21780
21781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21782   test "$ac_cv_c_inline" != no && break
21783 done
21784
21785 fi
21786 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21787 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21788
21789
21790 case $ac_cv_c_inline in
21791   inline | yes) ;;
21792   *)
21793     case $ac_cv_c_inline in
21794       no) ac_val=;;
21795       *) ac_val=$ac_cv_c_inline;;
21796     esac
21797     cat >>confdefs.h <<_ACEOF
21798 #ifndef __cplusplus
21799 #define inline $ac_val
21800 #endif
21801 _ACEOF
21802     ;;
21803 esac
21804
21805
21806 { echo "$as_me:$LINENO: checking for short" >&5
21807 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21808 if test "${ac_cv_type_short+set}" = set; then
21809   echo $ECHO_N "(cached) $ECHO_C" >&6
21810 else
21811   cat >conftest.$ac_ext <<_ACEOF
21812 /* confdefs.h.  */
21813 _ACEOF
21814 cat confdefs.h >>conftest.$ac_ext
21815 cat >>conftest.$ac_ext <<_ACEOF
21816 /* end confdefs.h.  */
21817 $ac_includes_default
21818 typedef short ac__type_new_;
21819 int
21820 main ()
21821 {
21822 if ((ac__type_new_ *) 0)
21823   return 0;
21824 if (sizeof (ac__type_new_))
21825   return 0;
21826   ;
21827   return 0;
21828 }
21829 _ACEOF
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834   *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837   (eval "$ac_compile") 2>conftest.er1
21838   ac_status=$?
21839   grep -v '^ *+' conftest.er1 >conftest.err
21840   rm -f conftest.er1
21841   cat conftest.err >&5
21842   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21843   (exit $ac_status); } && {
21844          test -z "$ac_c_werror_flag" ||
21845          test ! -s conftest.err
21846        } && test -s conftest.$ac_objext; then
21847   ac_cv_type_short=yes
21848 else
21849   echo "$as_me: failed program was:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21851
21852         ac_cv_type_short=no
21853 fi
21854
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 fi
21857 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
21858 echo "${ECHO_T}$ac_cv_type_short" >&6; }
21859
21860 # The cast to long int works around a bug in the HP C Compiler
21861 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21862 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21863 # This bug is HP SR number 8606223364.
21864 { echo "$as_me:$LINENO: checking size of short" >&5
21865 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
21866 if test "${ac_cv_sizeof_short+set}" = set; then
21867   echo $ECHO_N "(cached) $ECHO_C" >&6
21868 else
21869   if test "$cross_compiling" = yes; then
21870   # Depending upon the size, compute the lo and hi bounds.
21871 cat >conftest.$ac_ext <<_ACEOF
21872 /* confdefs.h.  */
21873 _ACEOF
21874 cat confdefs.h >>conftest.$ac_ext
21875 cat >>conftest.$ac_ext <<_ACEOF
21876 /* end confdefs.h.  */
21877 $ac_includes_default
21878    typedef short ac__type_sizeof_;
21879 int
21880 main ()
21881 {
21882 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
21883 test_array [0] = 0
21884
21885   ;
21886   return 0;
21887 }
21888 _ACEOF
21889 rm -f conftest.$ac_objext
21890 if { (ac_try="$ac_compile"
21891 case "(($ac_try" in
21892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21893   *) ac_try_echo=$ac_try;;
21894 esac
21895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21896   (eval "$ac_compile") 2>conftest.er1
21897   ac_status=$?
21898   grep -v '^ *+' conftest.er1 >conftest.err
21899   rm -f conftest.er1
21900   cat conftest.err >&5
21901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21902   (exit $ac_status); } && {
21903          test -z "$ac_c_werror_flag" ||
21904          test ! -s conftest.err
21905        } && test -s conftest.$ac_objext; then
21906   ac_lo=0 ac_mid=0
21907   while :; do
21908     cat >conftest.$ac_ext <<_ACEOF
21909 /* confdefs.h.  */
21910 _ACEOF
21911 cat confdefs.h >>conftest.$ac_ext
21912 cat >>conftest.$ac_ext <<_ACEOF
21913 /* end confdefs.h.  */
21914 $ac_includes_default
21915    typedef short ac__type_sizeof_;
21916 int
21917 main ()
21918 {
21919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
21920 test_array [0] = 0
21921
21922   ;
21923   return 0;
21924 }
21925 _ACEOF
21926 rm -f conftest.$ac_objext
21927 if { (ac_try="$ac_compile"
21928 case "(($ac_try" in
21929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21930   *) ac_try_echo=$ac_try;;
21931 esac
21932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21933   (eval "$ac_compile") 2>conftest.er1
21934   ac_status=$?
21935   grep -v '^ *+' conftest.er1 >conftest.err
21936   rm -f conftest.er1
21937   cat conftest.err >&5
21938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21939   (exit $ac_status); } && {
21940          test -z "$ac_c_werror_flag" ||
21941          test ! -s conftest.err
21942        } && test -s conftest.$ac_objext; then
21943   ac_hi=$ac_mid; break
21944 else
21945   echo "$as_me: failed program was:" >&5
21946 sed 's/^/| /' conftest.$ac_ext >&5
21947
21948         ac_lo=`expr $ac_mid + 1`
21949                         if test $ac_lo -le $ac_mid; then
21950                           ac_lo= ac_hi=
21951                           break
21952                         fi
21953                         ac_mid=`expr 2 '*' $ac_mid + 1`
21954 fi
21955
21956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21957   done
21958 else
21959   echo "$as_me: failed program was:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21961
21962         cat >conftest.$ac_ext <<_ACEOF
21963 /* confdefs.h.  */
21964 _ACEOF
21965 cat confdefs.h >>conftest.$ac_ext
21966 cat >>conftest.$ac_ext <<_ACEOF
21967 /* end confdefs.h.  */
21968 $ac_includes_default
21969    typedef short ac__type_sizeof_;
21970 int
21971 main ()
21972 {
21973 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
21974 test_array [0] = 0
21975
21976   ;
21977   return 0;
21978 }
21979 _ACEOF
21980 rm -f conftest.$ac_objext
21981 if { (ac_try="$ac_compile"
21982 case "(($ac_try" in
21983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21984   *) ac_try_echo=$ac_try;;
21985 esac
21986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21987   (eval "$ac_compile") 2>conftest.er1
21988   ac_status=$?
21989   grep -v '^ *+' conftest.er1 >conftest.err
21990   rm -f conftest.er1
21991   cat conftest.err >&5
21992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21993   (exit $ac_status); } && {
21994          test -z "$ac_c_werror_flag" ||
21995          test ! -s conftest.err
21996        } && test -s conftest.$ac_objext; then
21997   ac_hi=-1 ac_mid=-1
21998   while :; do
21999     cat >conftest.$ac_ext <<_ACEOF
22000 /* confdefs.h.  */
22001 _ACEOF
22002 cat confdefs.h >>conftest.$ac_ext
22003 cat >>conftest.$ac_ext <<_ACEOF
22004 /* end confdefs.h.  */
22005 $ac_includes_default
22006    typedef short ac__type_sizeof_;
22007 int
22008 main ()
22009 {
22010 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22011 test_array [0] = 0
22012
22013   ;
22014   return 0;
22015 }
22016 _ACEOF
22017 rm -f conftest.$ac_objext
22018 if { (ac_try="$ac_compile"
22019 case "(($ac_try" in
22020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22021   *) ac_try_echo=$ac_try;;
22022 esac
22023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22024   (eval "$ac_compile") 2>conftest.er1
22025   ac_status=$?
22026   grep -v '^ *+' conftest.er1 >conftest.err
22027   rm -f conftest.er1
22028   cat conftest.err >&5
22029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22030   (exit $ac_status); } && {
22031          test -z "$ac_c_werror_flag" ||
22032          test ! -s conftest.err
22033        } && test -s conftest.$ac_objext; then
22034   ac_lo=$ac_mid; break
22035 else
22036   echo "$as_me: failed program was:" >&5
22037 sed 's/^/| /' conftest.$ac_ext >&5
22038
22039         ac_hi=`expr '(' $ac_mid ')' - 1`
22040                         if test $ac_mid -le $ac_hi; then
22041                           ac_lo= ac_hi=
22042                           break
22043                         fi
22044                         ac_mid=`expr 2 '*' $ac_mid`
22045 fi
22046
22047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22048   done
22049 else
22050   echo "$as_me: failed program was:" >&5
22051 sed 's/^/| /' conftest.$ac_ext >&5
22052
22053         ac_lo= ac_hi=
22054 fi
22055
22056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22057 fi
22058
22059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22060 # Binary search between lo and hi bounds.
22061 while test "x$ac_lo" != "x$ac_hi"; do
22062   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22063   cat >conftest.$ac_ext <<_ACEOF
22064 /* confdefs.h.  */
22065 _ACEOF
22066 cat confdefs.h >>conftest.$ac_ext
22067 cat >>conftest.$ac_ext <<_ACEOF
22068 /* end confdefs.h.  */
22069 $ac_includes_default
22070    typedef short ac__type_sizeof_;
22071 int
22072 main ()
22073 {
22074 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22075 test_array [0] = 0
22076
22077   ;
22078   return 0;
22079 }
22080 _ACEOF
22081 rm -f conftest.$ac_objext
22082 if { (ac_try="$ac_compile"
22083 case "(($ac_try" in
22084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22085   *) ac_try_echo=$ac_try;;
22086 esac
22087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22088   (eval "$ac_compile") 2>conftest.er1
22089   ac_status=$?
22090   grep -v '^ *+' conftest.er1 >conftest.err
22091   rm -f conftest.er1
22092   cat conftest.err >&5
22093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094   (exit $ac_status); } && {
22095          test -z "$ac_c_werror_flag" ||
22096          test ! -s conftest.err
22097        } && test -s conftest.$ac_objext; then
22098   ac_hi=$ac_mid
22099 else
22100   echo "$as_me: failed program was:" >&5
22101 sed 's/^/| /' conftest.$ac_ext >&5
22102
22103         ac_lo=`expr '(' $ac_mid ')' + 1`
22104 fi
22105
22106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22107 done
22108 case $ac_lo in
22109 ?*) ac_cv_sizeof_short=$ac_lo;;
22110 '') if test "$ac_cv_type_short" = yes; then
22111      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22112 See \`config.log' for more details." >&5
22113 echo "$as_me: error: cannot compute sizeof (short)
22114 See \`config.log' for more details." >&2;}
22115    { (exit 77); exit 77; }; }
22116    else
22117      ac_cv_sizeof_short=0
22118    fi ;;
22119 esac
22120 else
22121   cat >conftest.$ac_ext <<_ACEOF
22122 /* confdefs.h.  */
22123 _ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h.  */
22127 $ac_includes_default
22128    typedef short ac__type_sizeof_;
22129 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22130 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22131 #include <stdio.h>
22132 #include <stdlib.h>
22133 int
22134 main ()
22135 {
22136
22137   FILE *f = fopen ("conftest.val", "w");
22138   if (! f)
22139     return 1;
22140   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22141     {
22142       long int i = longval ();
22143       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22144         return 1;
22145       fprintf (f, "%ld\n", i);
22146     }
22147   else
22148     {
22149       unsigned long int i = ulongval ();
22150       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22151         return 1;
22152       fprintf (f, "%lu\n", i);
22153     }
22154   return ferror (f) || fclose (f) != 0;
22155
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 rm -f conftest$ac_exeext
22161 if { (ac_try="$ac_link"
22162 case "(($ac_try" in
22163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164   *) ac_try_echo=$ac_try;;
22165 esac
22166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22167   (eval "$ac_link") 2>&5
22168   ac_status=$?
22169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22170   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22171   { (case "(($ac_try" in
22172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22173   *) ac_try_echo=$ac_try;;
22174 esac
22175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22176   (eval "$ac_try") 2>&5
22177   ac_status=$?
22178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22179   (exit $ac_status); }; }; then
22180   ac_cv_sizeof_short=`cat conftest.val`
22181 else
22182   echo "$as_me: program exited with status $ac_status" >&5
22183 echo "$as_me: failed program was:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22185
22186 ( exit $ac_status )
22187 if test "$ac_cv_type_short" = yes; then
22188      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22189 See \`config.log' for more details." >&5
22190 echo "$as_me: error: cannot compute sizeof (short)
22191 See \`config.log' for more details." >&2;}
22192    { (exit 77); exit 77; }; }
22193    else
22194      ac_cv_sizeof_short=0
22195    fi
22196 fi
22197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22198 fi
22199 rm -f conftest.val
22200 fi
22201 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22202 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22203
22204
22205
22206 cat >>confdefs.h <<_ACEOF
22207 #define SIZEOF_SHORT $ac_cv_sizeof_short
22208 _ACEOF
22209
22210
22211 { echo "$as_me:$LINENO: checking for void *" >&5
22212 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22213 if test "${ac_cv_type_void_p+set}" = set; then
22214   echo $ECHO_N "(cached) $ECHO_C" >&6
22215 else
22216   cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h.  */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h.  */
22222 $ac_includes_default
22223 typedef void * ac__type_new_;
22224 int
22225 main ()
22226 {
22227 if ((ac__type_new_ *) 0)
22228   return 0;
22229 if (sizeof (ac__type_new_))
22230   return 0;
22231   ;
22232   return 0;
22233 }
22234 _ACEOF
22235 rm -f conftest.$ac_objext
22236 if { (ac_try="$ac_compile"
22237 case "(($ac_try" in
22238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22239   *) ac_try_echo=$ac_try;;
22240 esac
22241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22242   (eval "$ac_compile") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } && {
22249          test -z "$ac_c_werror_flag" ||
22250          test ! -s conftest.err
22251        } && test -s conftest.$ac_objext; then
22252   ac_cv_type_void_p=yes
22253 else
22254   echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257         ac_cv_type_void_p=no
22258 fi
22259
22260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22261 fi
22262 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22263 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22264
22265 # The cast to long int works around a bug in the HP C Compiler
22266 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22267 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22268 # This bug is HP SR number 8606223364.
22269 { echo "$as_me:$LINENO: checking size of void *" >&5
22270 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22271 if test "${ac_cv_sizeof_void_p+set}" = set; then
22272   echo $ECHO_N "(cached) $ECHO_C" >&6
22273 else
22274   if test "$cross_compiling" = yes; then
22275   # Depending upon the size, compute the lo and hi bounds.
22276 cat >conftest.$ac_ext <<_ACEOF
22277 /* confdefs.h.  */
22278 _ACEOF
22279 cat confdefs.h >>conftest.$ac_ext
22280 cat >>conftest.$ac_ext <<_ACEOF
22281 /* end confdefs.h.  */
22282 $ac_includes_default
22283    typedef void * ac__type_sizeof_;
22284 int
22285 main ()
22286 {
22287 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22288 test_array [0] = 0
22289
22290   ;
22291   return 0;
22292 }
22293 _ACEOF
22294 rm -f conftest.$ac_objext
22295 if { (ac_try="$ac_compile"
22296 case "(($ac_try" in
22297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22298   *) ac_try_echo=$ac_try;;
22299 esac
22300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22301   (eval "$ac_compile") 2>conftest.er1
22302   ac_status=$?
22303   grep -v '^ *+' conftest.er1 >conftest.err
22304   rm -f conftest.er1
22305   cat conftest.err >&5
22306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307   (exit $ac_status); } && {
22308          test -z "$ac_c_werror_flag" ||
22309          test ! -s conftest.err
22310        } && test -s conftest.$ac_objext; then
22311   ac_lo=0 ac_mid=0
22312   while :; do
22313     cat >conftest.$ac_ext <<_ACEOF
22314 /* confdefs.h.  */
22315 _ACEOF
22316 cat confdefs.h >>conftest.$ac_ext
22317 cat >>conftest.$ac_ext <<_ACEOF
22318 /* end confdefs.h.  */
22319 $ac_includes_default
22320    typedef void * ac__type_sizeof_;
22321 int
22322 main ()
22323 {
22324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22325 test_array [0] = 0
22326
22327   ;
22328   return 0;
22329 }
22330 _ACEOF
22331 rm -f conftest.$ac_objext
22332 if { (ac_try="$ac_compile"
22333 case "(($ac_try" in
22334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22335   *) ac_try_echo=$ac_try;;
22336 esac
22337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22338   (eval "$ac_compile") 2>conftest.er1
22339   ac_status=$?
22340   grep -v '^ *+' conftest.er1 >conftest.err
22341   rm -f conftest.er1
22342   cat conftest.err >&5
22343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22344   (exit $ac_status); } && {
22345          test -z "$ac_c_werror_flag" ||
22346          test ! -s conftest.err
22347        } && test -s conftest.$ac_objext; then
22348   ac_hi=$ac_mid; break
22349 else
22350   echo "$as_me: failed program was:" >&5
22351 sed 's/^/| /' conftest.$ac_ext >&5
22352
22353         ac_lo=`expr $ac_mid + 1`
22354                         if test $ac_lo -le $ac_mid; then
22355                           ac_lo= ac_hi=
22356                           break
22357                         fi
22358                         ac_mid=`expr 2 '*' $ac_mid + 1`
22359 fi
22360
22361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22362   done
22363 else
22364   echo "$as_me: failed program was:" >&5
22365 sed 's/^/| /' conftest.$ac_ext >&5
22366
22367         cat >conftest.$ac_ext <<_ACEOF
22368 /* confdefs.h.  */
22369 _ACEOF
22370 cat confdefs.h >>conftest.$ac_ext
22371 cat >>conftest.$ac_ext <<_ACEOF
22372 /* end confdefs.h.  */
22373 $ac_includes_default
22374    typedef void * ac__type_sizeof_;
22375 int
22376 main ()
22377 {
22378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22379 test_array [0] = 0
22380
22381   ;
22382   return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (ac_try="$ac_compile"
22387 case "(($ac_try" in
22388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389   *) ac_try_echo=$ac_try;;
22390 esac
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392   (eval "$ac_compile") 2>conftest.er1
22393   ac_status=$?
22394   grep -v '^ *+' conftest.er1 >conftest.err
22395   rm -f conftest.er1
22396   cat conftest.err >&5
22397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398   (exit $ac_status); } && {
22399          test -z "$ac_c_werror_flag" ||
22400          test ! -s conftest.err
22401        } && test -s conftest.$ac_objext; then
22402   ac_hi=-1 ac_mid=-1
22403   while :; do
22404     cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h.  */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h.  */
22410 $ac_includes_default
22411    typedef void * ac__type_sizeof_;
22412 int
22413 main ()
22414 {
22415 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22416 test_array [0] = 0
22417
22418   ;
22419   return 0;
22420 }
22421 _ACEOF
22422 rm -f conftest.$ac_objext
22423 if { (ac_try="$ac_compile"
22424 case "(($ac_try" in
22425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426   *) ac_try_echo=$ac_try;;
22427 esac
22428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22429   (eval "$ac_compile") 2>conftest.er1
22430   ac_status=$?
22431   grep -v '^ *+' conftest.er1 >conftest.err
22432   rm -f conftest.er1
22433   cat conftest.err >&5
22434   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22435   (exit $ac_status); } && {
22436          test -z "$ac_c_werror_flag" ||
22437          test ! -s conftest.err
22438        } && test -s conftest.$ac_objext; then
22439   ac_lo=$ac_mid; break
22440 else
22441   echo "$as_me: failed program was:" >&5
22442 sed 's/^/| /' conftest.$ac_ext >&5
22443
22444         ac_hi=`expr '(' $ac_mid ')' - 1`
22445                         if test $ac_mid -le $ac_hi; then
22446                           ac_lo= ac_hi=
22447                           break
22448                         fi
22449                         ac_mid=`expr 2 '*' $ac_mid`
22450 fi
22451
22452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22453   done
22454 else
22455   echo "$as_me: failed program was:" >&5
22456 sed 's/^/| /' conftest.$ac_ext >&5
22457
22458         ac_lo= ac_hi=
22459 fi
22460
22461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22462 fi
22463
22464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22465 # Binary search between lo and hi bounds.
22466 while test "x$ac_lo" != "x$ac_hi"; do
22467   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22468   cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h.  */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h.  */
22474 $ac_includes_default
22475    typedef void * ac__type_sizeof_;
22476 int
22477 main ()
22478 {
22479 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22480 test_array [0] = 0
22481
22482   ;
22483   return 0;
22484 }
22485 _ACEOF
22486 rm -f conftest.$ac_objext
22487 if { (ac_try="$ac_compile"
22488 case "(($ac_try" in
22489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22490   *) ac_try_echo=$ac_try;;
22491 esac
22492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22493   (eval "$ac_compile") 2>conftest.er1
22494   ac_status=$?
22495   grep -v '^ *+' conftest.er1 >conftest.err
22496   rm -f conftest.er1
22497   cat conftest.err >&5
22498   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22499   (exit $ac_status); } && {
22500          test -z "$ac_c_werror_flag" ||
22501          test ! -s conftest.err
22502        } && test -s conftest.$ac_objext; then
22503   ac_hi=$ac_mid
22504 else
22505   echo "$as_me: failed program was:" >&5
22506 sed 's/^/| /' conftest.$ac_ext >&5
22507
22508         ac_lo=`expr '(' $ac_mid ')' + 1`
22509 fi
22510
22511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22512 done
22513 case $ac_lo in
22514 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22515 '') if test "$ac_cv_type_void_p" = yes; then
22516      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22517 See \`config.log' for more details." >&5
22518 echo "$as_me: error: cannot compute sizeof (void *)
22519 See \`config.log' for more details." >&2;}
22520    { (exit 77); exit 77; }; }
22521    else
22522      ac_cv_sizeof_void_p=0
22523    fi ;;
22524 esac
22525 else
22526   cat >conftest.$ac_ext <<_ACEOF
22527 /* confdefs.h.  */
22528 _ACEOF
22529 cat confdefs.h >>conftest.$ac_ext
22530 cat >>conftest.$ac_ext <<_ACEOF
22531 /* end confdefs.h.  */
22532 $ac_includes_default
22533    typedef void * ac__type_sizeof_;
22534 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22535 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22536 #include <stdio.h>
22537 #include <stdlib.h>
22538 int
22539 main ()
22540 {
22541
22542   FILE *f = fopen ("conftest.val", "w");
22543   if (! f)
22544     return 1;
22545   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22546     {
22547       long int i = longval ();
22548       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22549         return 1;
22550       fprintf (f, "%ld\n", i);
22551     }
22552   else
22553     {
22554       unsigned long int i = ulongval ();
22555       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22556         return 1;
22557       fprintf (f, "%lu\n", i);
22558     }
22559   return ferror (f) || fclose (f) != 0;
22560
22561   ;
22562   return 0;
22563 }
22564 _ACEOF
22565 rm -f conftest$ac_exeext
22566 if { (ac_try="$ac_link"
22567 case "(($ac_try" in
22568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22569   *) ac_try_echo=$ac_try;;
22570 esac
22571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22572   (eval "$ac_link") 2>&5
22573   ac_status=$?
22574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22575   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22576   { (case "(($ac_try" in
22577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578   *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581   (eval "$ac_try") 2>&5
22582   ac_status=$?
22583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22584   (exit $ac_status); }; }; then
22585   ac_cv_sizeof_void_p=`cat conftest.val`
22586 else
22587   echo "$as_me: program exited with status $ac_status" >&5
22588 echo "$as_me: failed program was:" >&5
22589 sed 's/^/| /' conftest.$ac_ext >&5
22590
22591 ( exit $ac_status )
22592 if test "$ac_cv_type_void_p" = yes; then
22593      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22594 See \`config.log' for more details." >&5
22595 echo "$as_me: error: cannot compute sizeof (void *)
22596 See \`config.log' for more details." >&2;}
22597    { (exit 77); exit 77; }; }
22598    else
22599      ac_cv_sizeof_void_p=0
22600    fi
22601 fi
22602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22603 fi
22604 rm -f conftest.val
22605 fi
22606 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22607 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22608
22609
22610
22611 cat >>confdefs.h <<_ACEOF
22612 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22613 _ACEOF
22614
22615
22616 { echo "$as_me:$LINENO: checking for int" >&5
22617 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22618 if test "${ac_cv_type_int+set}" = set; then
22619   echo $ECHO_N "(cached) $ECHO_C" >&6
22620 else
22621   cat >conftest.$ac_ext <<_ACEOF
22622 /* confdefs.h.  */
22623 _ACEOF
22624 cat confdefs.h >>conftest.$ac_ext
22625 cat >>conftest.$ac_ext <<_ACEOF
22626 /* end confdefs.h.  */
22627 $ac_includes_default
22628 typedef int ac__type_new_;
22629 int
22630 main ()
22631 {
22632 if ((ac__type_new_ *) 0)
22633   return 0;
22634 if (sizeof (ac__type_new_))
22635   return 0;
22636   ;
22637   return 0;
22638 }
22639 _ACEOF
22640 rm -f conftest.$ac_objext
22641 if { (ac_try="$ac_compile"
22642 case "(($ac_try" in
22643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22644   *) ac_try_echo=$ac_try;;
22645 esac
22646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22647   (eval "$ac_compile") 2>conftest.er1
22648   ac_status=$?
22649   grep -v '^ *+' conftest.er1 >conftest.err
22650   rm -f conftest.er1
22651   cat conftest.err >&5
22652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22653   (exit $ac_status); } && {
22654          test -z "$ac_c_werror_flag" ||
22655          test ! -s conftest.err
22656        } && test -s conftest.$ac_objext; then
22657   ac_cv_type_int=yes
22658 else
22659   echo "$as_me: failed program was:" >&5
22660 sed 's/^/| /' conftest.$ac_ext >&5
22661
22662         ac_cv_type_int=no
22663 fi
22664
22665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22666 fi
22667 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22668 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22669
22670 # The cast to long int works around a bug in the HP C Compiler
22671 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22672 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22673 # This bug is HP SR number 8606223364.
22674 { echo "$as_me:$LINENO: checking size of int" >&5
22675 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22676 if test "${ac_cv_sizeof_int+set}" = set; then
22677   echo $ECHO_N "(cached) $ECHO_C" >&6
22678 else
22679   if test "$cross_compiling" = yes; then
22680   # Depending upon the size, compute the lo and hi bounds.
22681 cat >conftest.$ac_ext <<_ACEOF
22682 /* confdefs.h.  */
22683 _ACEOF
22684 cat confdefs.h >>conftest.$ac_ext
22685 cat >>conftest.$ac_ext <<_ACEOF
22686 /* end confdefs.h.  */
22687 $ac_includes_default
22688    typedef int ac__type_sizeof_;
22689 int
22690 main ()
22691 {
22692 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22693 test_array [0] = 0
22694
22695   ;
22696   return 0;
22697 }
22698 _ACEOF
22699 rm -f conftest.$ac_objext
22700 if { (ac_try="$ac_compile"
22701 case "(($ac_try" in
22702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22703   *) ac_try_echo=$ac_try;;
22704 esac
22705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22706   (eval "$ac_compile") 2>conftest.er1
22707   ac_status=$?
22708   grep -v '^ *+' conftest.er1 >conftest.err
22709   rm -f conftest.er1
22710   cat conftest.err >&5
22711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22712   (exit $ac_status); } && {
22713          test -z "$ac_c_werror_flag" ||
22714          test ! -s conftest.err
22715        } && test -s conftest.$ac_objext; then
22716   ac_lo=0 ac_mid=0
22717   while :; do
22718     cat >conftest.$ac_ext <<_ACEOF
22719 /* confdefs.h.  */
22720 _ACEOF
22721 cat confdefs.h >>conftest.$ac_ext
22722 cat >>conftest.$ac_ext <<_ACEOF
22723 /* end confdefs.h.  */
22724 $ac_includes_default
22725    typedef int ac__type_sizeof_;
22726 int
22727 main ()
22728 {
22729 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22730 test_array [0] = 0
22731
22732   ;
22733   return 0;
22734 }
22735 _ACEOF
22736 rm -f conftest.$ac_objext
22737 if { (ac_try="$ac_compile"
22738 case "(($ac_try" in
22739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740   *) ac_try_echo=$ac_try;;
22741 esac
22742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22743   (eval "$ac_compile") 2>conftest.er1
22744   ac_status=$?
22745   grep -v '^ *+' conftest.er1 >conftest.err
22746   rm -f conftest.er1
22747   cat conftest.err >&5
22748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22749   (exit $ac_status); } && {
22750          test -z "$ac_c_werror_flag" ||
22751          test ! -s conftest.err
22752        } && test -s conftest.$ac_objext; then
22753   ac_hi=$ac_mid; break
22754 else
22755   echo "$as_me: failed program was:" >&5
22756 sed 's/^/| /' conftest.$ac_ext >&5
22757
22758         ac_lo=`expr $ac_mid + 1`
22759                         if test $ac_lo -le $ac_mid; then
22760                           ac_lo= ac_hi=
22761                           break
22762                         fi
22763                         ac_mid=`expr 2 '*' $ac_mid + 1`
22764 fi
22765
22766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22767   done
22768 else
22769   echo "$as_me: failed program was:" >&5
22770 sed 's/^/| /' conftest.$ac_ext >&5
22771
22772         cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h.  */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h.  */
22778 $ac_includes_default
22779    typedef int ac__type_sizeof_;
22780 int
22781 main ()
22782 {
22783 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22784 test_array [0] = 0
22785
22786   ;
22787   return 0;
22788 }
22789 _ACEOF
22790 rm -f conftest.$ac_objext
22791 if { (ac_try="$ac_compile"
22792 case "(($ac_try" in
22793   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22794   *) ac_try_echo=$ac_try;;
22795 esac
22796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22797   (eval "$ac_compile") 2>conftest.er1
22798   ac_status=$?
22799   grep -v '^ *+' conftest.er1 >conftest.err
22800   rm -f conftest.er1
22801   cat conftest.err >&5
22802   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22803   (exit $ac_status); } && {
22804          test -z "$ac_c_werror_flag" ||
22805          test ! -s conftest.err
22806        } && test -s conftest.$ac_objext; then
22807   ac_hi=-1 ac_mid=-1
22808   while :; do
22809     cat >conftest.$ac_ext <<_ACEOF
22810 /* confdefs.h.  */
22811 _ACEOF
22812 cat confdefs.h >>conftest.$ac_ext
22813 cat >>conftest.$ac_ext <<_ACEOF
22814 /* end confdefs.h.  */
22815 $ac_includes_default
22816    typedef int ac__type_sizeof_;
22817 int
22818 main ()
22819 {
22820 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22821 test_array [0] = 0
22822
22823   ;
22824   return 0;
22825 }
22826 _ACEOF
22827 rm -f conftest.$ac_objext
22828 if { (ac_try="$ac_compile"
22829 case "(($ac_try" in
22830   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22831   *) ac_try_echo=$ac_try;;
22832 esac
22833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22834   (eval "$ac_compile") 2>conftest.er1
22835   ac_status=$?
22836   grep -v '^ *+' conftest.er1 >conftest.err
22837   rm -f conftest.er1
22838   cat conftest.err >&5
22839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840   (exit $ac_status); } && {
22841          test -z "$ac_c_werror_flag" ||
22842          test ! -s conftest.err
22843        } && test -s conftest.$ac_objext; then
22844   ac_lo=$ac_mid; break
22845 else
22846   echo "$as_me: failed program was:" >&5
22847 sed 's/^/| /' conftest.$ac_ext >&5
22848
22849         ac_hi=`expr '(' $ac_mid ')' - 1`
22850                         if test $ac_mid -le $ac_hi; then
22851                           ac_lo= ac_hi=
22852                           break
22853                         fi
22854                         ac_mid=`expr 2 '*' $ac_mid`
22855 fi
22856
22857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22858   done
22859 else
22860   echo "$as_me: failed program was:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22862
22863         ac_lo= ac_hi=
22864 fi
22865
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 fi
22868
22869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22870 # Binary search between lo and hi bounds.
22871 while test "x$ac_lo" != "x$ac_hi"; do
22872   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22873   cat >conftest.$ac_ext <<_ACEOF
22874 /* confdefs.h.  */
22875 _ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h.  */
22879 $ac_includes_default
22880    typedef int ac__type_sizeof_;
22881 int
22882 main ()
22883 {
22884 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22885 test_array [0] = 0
22886
22887   ;
22888   return 0;
22889 }
22890 _ACEOF
22891 rm -f conftest.$ac_objext
22892 if { (ac_try="$ac_compile"
22893 case "(($ac_try" in
22894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22895   *) ac_try_echo=$ac_try;;
22896 esac
22897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22898   (eval "$ac_compile") 2>conftest.er1
22899   ac_status=$?
22900   grep -v '^ *+' conftest.er1 >conftest.err
22901   rm -f conftest.er1
22902   cat conftest.err >&5
22903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22904   (exit $ac_status); } && {
22905          test -z "$ac_c_werror_flag" ||
22906          test ! -s conftest.err
22907        } && test -s conftest.$ac_objext; then
22908   ac_hi=$ac_mid
22909 else
22910   echo "$as_me: failed program was:" >&5
22911 sed 's/^/| /' conftest.$ac_ext >&5
22912
22913         ac_lo=`expr '(' $ac_mid ')' + 1`
22914 fi
22915
22916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22917 done
22918 case $ac_lo in
22919 ?*) ac_cv_sizeof_int=$ac_lo;;
22920 '') if test "$ac_cv_type_int" = yes; then
22921      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22922 See \`config.log' for more details." >&5
22923 echo "$as_me: error: cannot compute sizeof (int)
22924 See \`config.log' for more details." >&2;}
22925    { (exit 77); exit 77; }; }
22926    else
22927      ac_cv_sizeof_int=0
22928    fi ;;
22929 esac
22930 else
22931   cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h.  */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h.  */
22937 $ac_includes_default
22938    typedef int ac__type_sizeof_;
22939 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22940 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22941 #include <stdio.h>
22942 #include <stdlib.h>
22943 int
22944 main ()
22945 {
22946
22947   FILE *f = fopen ("conftest.val", "w");
22948   if (! f)
22949     return 1;
22950   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22951     {
22952       long int i = longval ();
22953       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22954         return 1;
22955       fprintf (f, "%ld\n", i);
22956     }
22957   else
22958     {
22959       unsigned long int i = ulongval ();
22960       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22961         return 1;
22962       fprintf (f, "%lu\n", i);
22963     }
22964   return ferror (f) || fclose (f) != 0;
22965
22966   ;
22967   return 0;
22968 }
22969 _ACEOF
22970 rm -f conftest$ac_exeext
22971 if { (ac_try="$ac_link"
22972 case "(($ac_try" in
22973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22974   *) ac_try_echo=$ac_try;;
22975 esac
22976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22977   (eval "$ac_link") 2>&5
22978   ac_status=$?
22979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22980   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22981   { (case "(($ac_try" in
22982   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22983   *) ac_try_echo=$ac_try;;
22984 esac
22985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22986   (eval "$ac_try") 2>&5
22987   ac_status=$?
22988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22989   (exit $ac_status); }; }; then
22990   ac_cv_sizeof_int=`cat conftest.val`
22991 else
22992   echo "$as_me: program exited with status $ac_status" >&5
22993 echo "$as_me: failed program was:" >&5
22994 sed 's/^/| /' conftest.$ac_ext >&5
22995
22996 ( exit $ac_status )
22997 if test "$ac_cv_type_int" = yes; then
22998      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
22999 See \`config.log' for more details." >&5
23000 echo "$as_me: error: cannot compute sizeof (int)
23001 See \`config.log' for more details." >&2;}
23002    { (exit 77); exit 77; }; }
23003    else
23004      ac_cv_sizeof_int=0
23005    fi
23006 fi
23007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23008 fi
23009 rm -f conftest.val
23010 fi
23011 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23012 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23013
23014
23015
23016 cat >>confdefs.h <<_ACEOF
23017 #define SIZEOF_INT $ac_cv_sizeof_int
23018 _ACEOF
23019
23020
23021 { echo "$as_me:$LINENO: checking for long" >&5
23022 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23023 if test "${ac_cv_type_long+set}" = set; then
23024   echo $ECHO_N "(cached) $ECHO_C" >&6
23025 else
23026   cat >conftest.$ac_ext <<_ACEOF
23027 /* confdefs.h.  */
23028 _ACEOF
23029 cat confdefs.h >>conftest.$ac_ext
23030 cat >>conftest.$ac_ext <<_ACEOF
23031 /* end confdefs.h.  */
23032 $ac_includes_default
23033 typedef long ac__type_new_;
23034 int
23035 main ()
23036 {
23037 if ((ac__type_new_ *) 0)
23038   return 0;
23039 if (sizeof (ac__type_new_))
23040   return 0;
23041   ;
23042   return 0;
23043 }
23044 _ACEOF
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049   *) ac_try_echo=$ac_try;;
23050 esac
23051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23052   (eval "$ac_compile") 2>conftest.er1
23053   ac_status=$?
23054   grep -v '^ *+' conftest.er1 >conftest.err
23055   rm -f conftest.er1
23056   cat conftest.err >&5
23057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23058   (exit $ac_status); } && {
23059          test -z "$ac_c_werror_flag" ||
23060          test ! -s conftest.err
23061        } && test -s conftest.$ac_objext; then
23062   ac_cv_type_long=yes
23063 else
23064   echo "$as_me: failed program was:" >&5
23065 sed 's/^/| /' conftest.$ac_ext >&5
23066
23067         ac_cv_type_long=no
23068 fi
23069
23070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23071 fi
23072 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23073 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23074
23075 # The cast to long int works around a bug in the HP C Compiler
23076 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23077 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23078 # This bug is HP SR number 8606223364.
23079 { echo "$as_me:$LINENO: checking size of long" >&5
23080 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23081 if test "${ac_cv_sizeof_long+set}" = set; then
23082   echo $ECHO_N "(cached) $ECHO_C" >&6
23083 else
23084   if test "$cross_compiling" = yes; then
23085   # Depending upon the size, compute the lo and hi bounds.
23086 cat >conftest.$ac_ext <<_ACEOF
23087 /* confdefs.h.  */
23088 _ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h.  */
23092 $ac_includes_default
23093    typedef long ac__type_sizeof_;
23094 int
23095 main ()
23096 {
23097 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23098 test_array [0] = 0
23099
23100   ;
23101   return 0;
23102 }
23103 _ACEOF
23104 rm -f conftest.$ac_objext
23105 if { (ac_try="$ac_compile"
23106 case "(($ac_try" in
23107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23108   *) ac_try_echo=$ac_try;;
23109 esac
23110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23111   (eval "$ac_compile") 2>conftest.er1
23112   ac_status=$?
23113   grep -v '^ *+' conftest.er1 >conftest.err
23114   rm -f conftest.er1
23115   cat conftest.err >&5
23116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23117   (exit $ac_status); } && {
23118          test -z "$ac_c_werror_flag" ||
23119          test ! -s conftest.err
23120        } && test -s conftest.$ac_objext; then
23121   ac_lo=0 ac_mid=0
23122   while :; do
23123     cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h.  */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h.  */
23129 $ac_includes_default
23130    typedef long ac__type_sizeof_;
23131 int
23132 main ()
23133 {
23134 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23135 test_array [0] = 0
23136
23137   ;
23138   return 0;
23139 }
23140 _ACEOF
23141 rm -f conftest.$ac_objext
23142 if { (ac_try="$ac_compile"
23143 case "(($ac_try" in
23144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23145   *) ac_try_echo=$ac_try;;
23146 esac
23147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23148   (eval "$ac_compile") 2>conftest.er1
23149   ac_status=$?
23150   grep -v '^ *+' conftest.er1 >conftest.err
23151   rm -f conftest.er1
23152   cat conftest.err >&5
23153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23154   (exit $ac_status); } && {
23155          test -z "$ac_c_werror_flag" ||
23156          test ! -s conftest.err
23157        } && test -s conftest.$ac_objext; then
23158   ac_hi=$ac_mid; break
23159 else
23160   echo "$as_me: failed program was:" >&5
23161 sed 's/^/| /' conftest.$ac_ext >&5
23162
23163         ac_lo=`expr $ac_mid + 1`
23164                         if test $ac_lo -le $ac_mid; then
23165                           ac_lo= ac_hi=
23166                           break
23167                         fi
23168                         ac_mid=`expr 2 '*' $ac_mid + 1`
23169 fi
23170
23171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23172   done
23173 else
23174   echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177         cat >conftest.$ac_ext <<_ACEOF
23178 /* confdefs.h.  */
23179 _ACEOF
23180 cat confdefs.h >>conftest.$ac_ext
23181 cat >>conftest.$ac_ext <<_ACEOF
23182 /* end confdefs.h.  */
23183 $ac_includes_default
23184    typedef long ac__type_sizeof_;
23185 int
23186 main ()
23187 {
23188 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23189 test_array [0] = 0
23190
23191   ;
23192   return 0;
23193 }
23194 _ACEOF
23195 rm -f conftest.$ac_objext
23196 if { (ac_try="$ac_compile"
23197 case "(($ac_try" in
23198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23199   *) ac_try_echo=$ac_try;;
23200 esac
23201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23202   (eval "$ac_compile") 2>conftest.er1
23203   ac_status=$?
23204   grep -v '^ *+' conftest.er1 >conftest.err
23205   rm -f conftest.er1
23206   cat conftest.err >&5
23207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23208   (exit $ac_status); } && {
23209          test -z "$ac_c_werror_flag" ||
23210          test ! -s conftest.err
23211        } && test -s conftest.$ac_objext; then
23212   ac_hi=-1 ac_mid=-1
23213   while :; do
23214     cat >conftest.$ac_ext <<_ACEOF
23215 /* confdefs.h.  */
23216 _ACEOF
23217 cat confdefs.h >>conftest.$ac_ext
23218 cat >>conftest.$ac_ext <<_ACEOF
23219 /* end confdefs.h.  */
23220 $ac_includes_default
23221    typedef long ac__type_sizeof_;
23222 int
23223 main ()
23224 {
23225 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23226 test_array [0] = 0
23227
23228   ;
23229   return 0;
23230 }
23231 _ACEOF
23232 rm -f conftest.$ac_objext
23233 if { (ac_try="$ac_compile"
23234 case "(($ac_try" in
23235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236   *) ac_try_echo=$ac_try;;
23237 esac
23238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23239   (eval "$ac_compile") 2>conftest.er1
23240   ac_status=$?
23241   grep -v '^ *+' conftest.er1 >conftest.err
23242   rm -f conftest.er1
23243   cat conftest.err >&5
23244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23245   (exit $ac_status); } && {
23246          test -z "$ac_c_werror_flag" ||
23247          test ! -s conftest.err
23248        } && test -s conftest.$ac_objext; then
23249   ac_lo=$ac_mid; break
23250 else
23251   echo "$as_me: failed program was:" >&5
23252 sed 's/^/| /' conftest.$ac_ext >&5
23253
23254         ac_hi=`expr '(' $ac_mid ')' - 1`
23255                         if test $ac_mid -le $ac_hi; then
23256                           ac_lo= ac_hi=
23257                           break
23258                         fi
23259                         ac_mid=`expr 2 '*' $ac_mid`
23260 fi
23261
23262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23263   done
23264 else
23265   echo "$as_me: failed program was:" >&5
23266 sed 's/^/| /' conftest.$ac_ext >&5
23267
23268         ac_lo= ac_hi=
23269 fi
23270
23271 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23272 fi
23273
23274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23275 # Binary search between lo and hi bounds.
23276 while test "x$ac_lo" != "x$ac_hi"; do
23277   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23278   cat >conftest.$ac_ext <<_ACEOF
23279 /* confdefs.h.  */
23280 _ACEOF
23281 cat confdefs.h >>conftest.$ac_ext
23282 cat >>conftest.$ac_ext <<_ACEOF
23283 /* end confdefs.h.  */
23284 $ac_includes_default
23285    typedef long ac__type_sizeof_;
23286 int
23287 main ()
23288 {
23289 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23290 test_array [0] = 0
23291
23292   ;
23293   return 0;
23294 }
23295 _ACEOF
23296 rm -f conftest.$ac_objext
23297 if { (ac_try="$ac_compile"
23298 case "(($ac_try" in
23299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23300   *) ac_try_echo=$ac_try;;
23301 esac
23302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23303   (eval "$ac_compile") 2>conftest.er1
23304   ac_status=$?
23305   grep -v '^ *+' conftest.er1 >conftest.err
23306   rm -f conftest.er1
23307   cat conftest.err >&5
23308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23309   (exit $ac_status); } && {
23310          test -z "$ac_c_werror_flag" ||
23311          test ! -s conftest.err
23312        } && test -s conftest.$ac_objext; then
23313   ac_hi=$ac_mid
23314 else
23315   echo "$as_me: failed program was:" >&5
23316 sed 's/^/| /' conftest.$ac_ext >&5
23317
23318         ac_lo=`expr '(' $ac_mid ')' + 1`
23319 fi
23320
23321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23322 done
23323 case $ac_lo in
23324 ?*) ac_cv_sizeof_long=$ac_lo;;
23325 '') if test "$ac_cv_type_long" = yes; then
23326      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23327 See \`config.log' for more details." >&5
23328 echo "$as_me: error: cannot compute sizeof (long)
23329 See \`config.log' for more details." >&2;}
23330    { (exit 77); exit 77; }; }
23331    else
23332      ac_cv_sizeof_long=0
23333    fi ;;
23334 esac
23335 else
23336   cat >conftest.$ac_ext <<_ACEOF
23337 /* confdefs.h.  */
23338 _ACEOF
23339 cat confdefs.h >>conftest.$ac_ext
23340 cat >>conftest.$ac_ext <<_ACEOF
23341 /* end confdefs.h.  */
23342 $ac_includes_default
23343    typedef long ac__type_sizeof_;
23344 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23345 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23346 #include <stdio.h>
23347 #include <stdlib.h>
23348 int
23349 main ()
23350 {
23351
23352   FILE *f = fopen ("conftest.val", "w");
23353   if (! f)
23354     return 1;
23355   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23356     {
23357       long int i = longval ();
23358       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23359         return 1;
23360       fprintf (f, "%ld\n", i);
23361     }
23362   else
23363     {
23364       unsigned long int i = ulongval ();
23365       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23366         return 1;
23367       fprintf (f, "%lu\n", i);
23368     }
23369   return ferror (f) || fclose (f) != 0;
23370
23371   ;
23372   return 0;
23373 }
23374 _ACEOF
23375 rm -f conftest$ac_exeext
23376 if { (ac_try="$ac_link"
23377 case "(($ac_try" in
23378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379   *) ac_try_echo=$ac_try;;
23380 esac
23381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382   (eval "$ac_link") 2>&5
23383   ac_status=$?
23384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23386   { (case "(($ac_try" in
23387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23388   *) ac_try_echo=$ac_try;;
23389 esac
23390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23391   (eval "$ac_try") 2>&5
23392   ac_status=$?
23393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394   (exit $ac_status); }; }; then
23395   ac_cv_sizeof_long=`cat conftest.val`
23396 else
23397   echo "$as_me: program exited with status $ac_status" >&5
23398 echo "$as_me: failed program was:" >&5
23399 sed 's/^/| /' conftest.$ac_ext >&5
23400
23401 ( exit $ac_status )
23402 if test "$ac_cv_type_long" = yes; then
23403      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23404 See \`config.log' for more details." >&5
23405 echo "$as_me: error: cannot compute sizeof (long)
23406 See \`config.log' for more details." >&2;}
23407    { (exit 77); exit 77; }; }
23408    else
23409      ac_cv_sizeof_long=0
23410    fi
23411 fi
23412 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23413 fi
23414 rm -f conftest.val
23415 fi
23416 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23417 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23418
23419
23420
23421 cat >>confdefs.h <<_ACEOF
23422 #define SIZEOF_LONG $ac_cv_sizeof_long
23423 _ACEOF
23424
23425
23426 { echo "$as_me:$LINENO: checking for size_t" >&5
23427 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23428 if test "${ac_cv_type_size_t+set}" = set; then
23429   echo $ECHO_N "(cached) $ECHO_C" >&6
23430 else
23431   cat >conftest.$ac_ext <<_ACEOF
23432 /* confdefs.h.  */
23433 _ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h.  */
23437 $ac_includes_default
23438 typedef size_t ac__type_new_;
23439 int
23440 main ()
23441 {
23442 if ((ac__type_new_ *) 0)
23443   return 0;
23444 if (sizeof (ac__type_new_))
23445   return 0;
23446   ;
23447   return 0;
23448 }
23449 _ACEOF
23450 rm -f conftest.$ac_objext
23451 if { (ac_try="$ac_compile"
23452 case "(($ac_try" in
23453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23454   *) ac_try_echo=$ac_try;;
23455 esac
23456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23457   (eval "$ac_compile") 2>conftest.er1
23458   ac_status=$?
23459   grep -v '^ *+' conftest.er1 >conftest.err
23460   rm -f conftest.er1
23461   cat conftest.err >&5
23462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463   (exit $ac_status); } && {
23464          test -z "$ac_c_werror_flag" ||
23465          test ! -s conftest.err
23466        } && test -s conftest.$ac_objext; then
23467   ac_cv_type_size_t=yes
23468 else
23469   echo "$as_me: failed program was:" >&5
23470 sed 's/^/| /' conftest.$ac_ext >&5
23471
23472         ac_cv_type_size_t=no
23473 fi
23474
23475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23476 fi
23477 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23478 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23479
23480 # The cast to long int works around a bug in the HP C Compiler
23481 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23482 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23483 # This bug is HP SR number 8606223364.
23484 { echo "$as_me:$LINENO: checking size of size_t" >&5
23485 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23486 if test "${ac_cv_sizeof_size_t+set}" = set; then
23487   echo $ECHO_N "(cached) $ECHO_C" >&6
23488 else
23489   if test "$cross_compiling" = yes; then
23490   # Depending upon the size, compute the lo and hi bounds.
23491 cat >conftest.$ac_ext <<_ACEOF
23492 /* confdefs.h.  */
23493 _ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h.  */
23497 $ac_includes_default
23498    typedef size_t ac__type_sizeof_;
23499 int
23500 main ()
23501 {
23502 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23503 test_array [0] = 0
23504
23505   ;
23506   return 0;
23507 }
23508 _ACEOF
23509 rm -f conftest.$ac_objext
23510 if { (ac_try="$ac_compile"
23511 case "(($ac_try" in
23512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513   *) ac_try_echo=$ac_try;;
23514 esac
23515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23516   (eval "$ac_compile") 2>conftest.er1
23517   ac_status=$?
23518   grep -v '^ *+' conftest.er1 >conftest.err
23519   rm -f conftest.er1
23520   cat conftest.err >&5
23521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23522   (exit $ac_status); } && {
23523          test -z "$ac_c_werror_flag" ||
23524          test ! -s conftest.err
23525        } && test -s conftest.$ac_objext; then
23526   ac_lo=0 ac_mid=0
23527   while :; do
23528     cat >conftest.$ac_ext <<_ACEOF
23529 /* confdefs.h.  */
23530 _ACEOF
23531 cat confdefs.h >>conftest.$ac_ext
23532 cat >>conftest.$ac_ext <<_ACEOF
23533 /* end confdefs.h.  */
23534 $ac_includes_default
23535    typedef size_t ac__type_sizeof_;
23536 int
23537 main ()
23538 {
23539 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23540 test_array [0] = 0
23541
23542   ;
23543   return 0;
23544 }
23545 _ACEOF
23546 rm -f conftest.$ac_objext
23547 if { (ac_try="$ac_compile"
23548 case "(($ac_try" in
23549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23550   *) ac_try_echo=$ac_try;;
23551 esac
23552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23553   (eval "$ac_compile") 2>conftest.er1
23554   ac_status=$?
23555   grep -v '^ *+' conftest.er1 >conftest.err
23556   rm -f conftest.er1
23557   cat conftest.err >&5
23558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23559   (exit $ac_status); } && {
23560          test -z "$ac_c_werror_flag" ||
23561          test ! -s conftest.err
23562        } && test -s conftest.$ac_objext; then
23563   ac_hi=$ac_mid; break
23564 else
23565   echo "$as_me: failed program was:" >&5
23566 sed 's/^/| /' conftest.$ac_ext >&5
23567
23568         ac_lo=`expr $ac_mid + 1`
23569                         if test $ac_lo -le $ac_mid; then
23570                           ac_lo= ac_hi=
23571                           break
23572                         fi
23573                         ac_mid=`expr 2 '*' $ac_mid + 1`
23574 fi
23575
23576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23577   done
23578 else
23579   echo "$as_me: failed program was:" >&5
23580 sed 's/^/| /' conftest.$ac_ext >&5
23581
23582         cat >conftest.$ac_ext <<_ACEOF
23583 /* confdefs.h.  */
23584 _ACEOF
23585 cat confdefs.h >>conftest.$ac_ext
23586 cat >>conftest.$ac_ext <<_ACEOF
23587 /* end confdefs.h.  */
23588 $ac_includes_default
23589    typedef size_t ac__type_sizeof_;
23590 int
23591 main ()
23592 {
23593 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23594 test_array [0] = 0
23595
23596   ;
23597   return 0;
23598 }
23599 _ACEOF
23600 rm -f conftest.$ac_objext
23601 if { (ac_try="$ac_compile"
23602 case "(($ac_try" in
23603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23604   *) ac_try_echo=$ac_try;;
23605 esac
23606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23607   (eval "$ac_compile") 2>conftest.er1
23608   ac_status=$?
23609   grep -v '^ *+' conftest.er1 >conftest.err
23610   rm -f conftest.er1
23611   cat conftest.err >&5
23612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613   (exit $ac_status); } && {
23614          test -z "$ac_c_werror_flag" ||
23615          test ! -s conftest.err
23616        } && test -s conftest.$ac_objext; then
23617   ac_hi=-1 ac_mid=-1
23618   while :; do
23619     cat >conftest.$ac_ext <<_ACEOF
23620 /* confdefs.h.  */
23621 _ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h.  */
23625 $ac_includes_default
23626    typedef size_t ac__type_sizeof_;
23627 int
23628 main ()
23629 {
23630 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23631 test_array [0] = 0
23632
23633   ;
23634   return 0;
23635 }
23636 _ACEOF
23637 rm -f conftest.$ac_objext
23638 if { (ac_try="$ac_compile"
23639 case "(($ac_try" in
23640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23641   *) ac_try_echo=$ac_try;;
23642 esac
23643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23644   (eval "$ac_compile") 2>conftest.er1
23645   ac_status=$?
23646   grep -v '^ *+' conftest.er1 >conftest.err
23647   rm -f conftest.er1
23648   cat conftest.err >&5
23649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650   (exit $ac_status); } && {
23651          test -z "$ac_c_werror_flag" ||
23652          test ! -s conftest.err
23653        } && test -s conftest.$ac_objext; then
23654   ac_lo=$ac_mid; break
23655 else
23656   echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659         ac_hi=`expr '(' $ac_mid ')' - 1`
23660                         if test $ac_mid -le $ac_hi; then
23661                           ac_lo= ac_hi=
23662                           break
23663                         fi
23664                         ac_mid=`expr 2 '*' $ac_mid`
23665 fi
23666
23667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23668   done
23669 else
23670   echo "$as_me: failed program was:" >&5
23671 sed 's/^/| /' conftest.$ac_ext >&5
23672
23673         ac_lo= ac_hi=
23674 fi
23675
23676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23677 fi
23678
23679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23680 # Binary search between lo and hi bounds.
23681 while test "x$ac_lo" != "x$ac_hi"; do
23682   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23683   cat >conftest.$ac_ext <<_ACEOF
23684 /* confdefs.h.  */
23685 _ACEOF
23686 cat confdefs.h >>conftest.$ac_ext
23687 cat >>conftest.$ac_ext <<_ACEOF
23688 /* end confdefs.h.  */
23689 $ac_includes_default
23690    typedef size_t ac__type_sizeof_;
23691 int
23692 main ()
23693 {
23694 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23695 test_array [0] = 0
23696
23697   ;
23698   return 0;
23699 }
23700 _ACEOF
23701 rm -f conftest.$ac_objext
23702 if { (ac_try="$ac_compile"
23703 case "(($ac_try" in
23704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23705   *) ac_try_echo=$ac_try;;
23706 esac
23707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23708   (eval "$ac_compile") 2>conftest.er1
23709   ac_status=$?
23710   grep -v '^ *+' conftest.er1 >conftest.err
23711   rm -f conftest.er1
23712   cat conftest.err >&5
23713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23714   (exit $ac_status); } && {
23715          test -z "$ac_c_werror_flag" ||
23716          test ! -s conftest.err
23717        } && test -s conftest.$ac_objext; then
23718   ac_hi=$ac_mid
23719 else
23720   echo "$as_me: failed program was:" >&5
23721 sed 's/^/| /' conftest.$ac_ext >&5
23722
23723         ac_lo=`expr '(' $ac_mid ')' + 1`
23724 fi
23725
23726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23727 done
23728 case $ac_lo in
23729 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23730 '') if test "$ac_cv_type_size_t" = yes; then
23731      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23732 See \`config.log' for more details." >&5
23733 echo "$as_me: error: cannot compute sizeof (size_t)
23734 See \`config.log' for more details." >&2;}
23735    { (exit 77); exit 77; }; }
23736    else
23737      ac_cv_sizeof_size_t=0
23738    fi ;;
23739 esac
23740 else
23741   cat >conftest.$ac_ext <<_ACEOF
23742 /* confdefs.h.  */
23743 _ACEOF
23744 cat confdefs.h >>conftest.$ac_ext
23745 cat >>conftest.$ac_ext <<_ACEOF
23746 /* end confdefs.h.  */
23747 $ac_includes_default
23748    typedef size_t ac__type_sizeof_;
23749 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23750 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23751 #include <stdio.h>
23752 #include <stdlib.h>
23753 int
23754 main ()
23755 {
23756
23757   FILE *f = fopen ("conftest.val", "w");
23758   if (! f)
23759     return 1;
23760   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23761     {
23762       long int i = longval ();
23763       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23764         return 1;
23765       fprintf (f, "%ld\n", i);
23766     }
23767   else
23768     {
23769       unsigned long int i = ulongval ();
23770       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23771         return 1;
23772       fprintf (f, "%lu\n", i);
23773     }
23774   return ferror (f) || fclose (f) != 0;
23775
23776   ;
23777   return 0;
23778 }
23779 _ACEOF
23780 rm -f conftest$ac_exeext
23781 if { (ac_try="$ac_link"
23782 case "(($ac_try" in
23783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23784   *) ac_try_echo=$ac_try;;
23785 esac
23786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23787   (eval "$ac_link") 2>&5
23788   ac_status=$?
23789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23790   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23791   { (case "(($ac_try" in
23792   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23793   *) ac_try_echo=$ac_try;;
23794 esac
23795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23796   (eval "$ac_try") 2>&5
23797   ac_status=$?
23798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799   (exit $ac_status); }; }; then
23800   ac_cv_sizeof_size_t=`cat conftest.val`
23801 else
23802   echo "$as_me: program exited with status $ac_status" >&5
23803 echo "$as_me: failed program was:" >&5
23804 sed 's/^/| /' conftest.$ac_ext >&5
23805
23806 ( exit $ac_status )
23807 if test "$ac_cv_type_size_t" = yes; then
23808      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23809 See \`config.log' for more details." >&5
23810 echo "$as_me: error: cannot compute sizeof (size_t)
23811 See \`config.log' for more details." >&2;}
23812    { (exit 77); exit 77; }; }
23813    else
23814      ac_cv_sizeof_size_t=0
23815    fi
23816 fi
23817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23818 fi
23819 rm -f conftest.val
23820 fi
23821 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23822 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23823
23824
23825
23826 cat >>confdefs.h <<_ACEOF
23827 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23828 _ACEOF
23829
23830
23831
23832 case "${host}" in
23833     arm-*-linux* )
23834         { echo "$as_me:$LINENO: checking for long long" >&5
23835 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23836 if test "${ac_cv_type_long_long+set}" = set; then
23837   echo $ECHO_N "(cached) $ECHO_C" >&6
23838 else
23839   cat >conftest.$ac_ext <<_ACEOF
23840 /* confdefs.h.  */
23841 _ACEOF
23842 cat confdefs.h >>conftest.$ac_ext
23843 cat >>conftest.$ac_ext <<_ACEOF
23844 /* end confdefs.h.  */
23845 $ac_includes_default
23846 typedef long long ac__type_new_;
23847 int
23848 main ()
23849 {
23850 if ((ac__type_new_ *) 0)
23851   return 0;
23852 if (sizeof (ac__type_new_))
23853   return 0;
23854   ;
23855   return 0;
23856 }
23857 _ACEOF
23858 rm -f conftest.$ac_objext
23859 if { (ac_try="$ac_compile"
23860 case "(($ac_try" in
23861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862   *) ac_try_echo=$ac_try;;
23863 esac
23864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23865   (eval "$ac_compile") 2>conftest.er1
23866   ac_status=$?
23867   grep -v '^ *+' conftest.er1 >conftest.err
23868   rm -f conftest.er1
23869   cat conftest.err >&5
23870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23871   (exit $ac_status); } && {
23872          test -z "$ac_c_werror_flag" ||
23873          test ! -s conftest.err
23874        } && test -s conftest.$ac_objext; then
23875   ac_cv_type_long_long=yes
23876 else
23877   echo "$as_me: failed program was:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23879
23880         ac_cv_type_long_long=no
23881 fi
23882
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23884 fi
23885 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
23886 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
23887
23888 # The cast to long int works around a bug in the HP C Compiler
23889 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23890 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23891 # This bug is HP SR number 8606223364.
23892 { echo "$as_me:$LINENO: checking size of long long" >&5
23893 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
23894 if test "${ac_cv_sizeof_long_long+set}" = set; then
23895   echo $ECHO_N "(cached) $ECHO_C" >&6
23896 else
23897   if test "$cross_compiling" = yes; then
23898   # Depending upon the size, compute the lo and hi bounds.
23899 cat >conftest.$ac_ext <<_ACEOF
23900 /* confdefs.h.  */
23901 _ACEOF
23902 cat confdefs.h >>conftest.$ac_ext
23903 cat >>conftest.$ac_ext <<_ACEOF
23904 /* end confdefs.h.  */
23905 $ac_includes_default
23906    typedef long long ac__type_sizeof_;
23907 int
23908 main ()
23909 {
23910 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23911 test_array [0] = 0
23912
23913   ;
23914   return 0;
23915 }
23916 _ACEOF
23917 rm -f conftest.$ac_objext
23918 if { (ac_try="$ac_compile"
23919 case "(($ac_try" in
23920   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23921   *) ac_try_echo=$ac_try;;
23922 esac
23923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23924   (eval "$ac_compile") 2>conftest.er1
23925   ac_status=$?
23926   grep -v '^ *+' conftest.er1 >conftest.err
23927   rm -f conftest.er1
23928   cat conftest.err >&5
23929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23930   (exit $ac_status); } && {
23931          test -z "$ac_c_werror_flag" ||
23932          test ! -s conftest.err
23933        } && test -s conftest.$ac_objext; then
23934   ac_lo=0 ac_mid=0
23935   while :; do
23936     cat >conftest.$ac_ext <<_ACEOF
23937 /* confdefs.h.  */
23938 _ACEOF
23939 cat confdefs.h >>conftest.$ac_ext
23940 cat >>conftest.$ac_ext <<_ACEOF
23941 /* end confdefs.h.  */
23942 $ac_includes_default
23943    typedef long long ac__type_sizeof_;
23944 int
23945 main ()
23946 {
23947 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23948 test_array [0] = 0
23949
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext
23955 if { (ac_try="$ac_compile"
23956 case "(($ac_try" in
23957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958   *) ac_try_echo=$ac_try;;
23959 esac
23960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23961   (eval "$ac_compile") 2>conftest.er1
23962   ac_status=$?
23963   grep -v '^ *+' conftest.er1 >conftest.err
23964   rm -f conftest.er1
23965   cat conftest.err >&5
23966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23967   (exit $ac_status); } && {
23968          test -z "$ac_c_werror_flag" ||
23969          test ! -s conftest.err
23970        } && test -s conftest.$ac_objext; then
23971   ac_hi=$ac_mid; break
23972 else
23973   echo "$as_me: failed program was:" >&5
23974 sed 's/^/| /' conftest.$ac_ext >&5
23975
23976         ac_lo=`expr $ac_mid + 1`
23977                         if test $ac_lo -le $ac_mid; then
23978                           ac_lo= ac_hi=
23979                           break
23980                         fi
23981                         ac_mid=`expr 2 '*' $ac_mid + 1`
23982 fi
23983
23984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23985   done
23986 else
23987   echo "$as_me: failed program was:" >&5
23988 sed 's/^/| /' conftest.$ac_ext >&5
23989
23990         cat >conftest.$ac_ext <<_ACEOF
23991 /* confdefs.h.  */
23992 _ACEOF
23993 cat confdefs.h >>conftest.$ac_ext
23994 cat >>conftest.$ac_ext <<_ACEOF
23995 /* end confdefs.h.  */
23996 $ac_includes_default
23997    typedef long long ac__type_sizeof_;
23998 int
23999 main ()
24000 {
24001 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24002 test_array [0] = 0
24003
24004   ;
24005   return 0;
24006 }
24007 _ACEOF
24008 rm -f conftest.$ac_objext
24009 if { (ac_try="$ac_compile"
24010 case "(($ac_try" in
24011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24012   *) ac_try_echo=$ac_try;;
24013 esac
24014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24015   (eval "$ac_compile") 2>conftest.er1
24016   ac_status=$?
24017   grep -v '^ *+' conftest.er1 >conftest.err
24018   rm -f conftest.er1
24019   cat conftest.err >&5
24020   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24021   (exit $ac_status); } && {
24022          test -z "$ac_c_werror_flag" ||
24023          test ! -s conftest.err
24024        } && test -s conftest.$ac_objext; then
24025   ac_hi=-1 ac_mid=-1
24026   while :; do
24027     cat >conftest.$ac_ext <<_ACEOF
24028 /* confdefs.h.  */
24029 _ACEOF
24030 cat confdefs.h >>conftest.$ac_ext
24031 cat >>conftest.$ac_ext <<_ACEOF
24032 /* end confdefs.h.  */
24033 $ac_includes_default
24034    typedef long long ac__type_sizeof_;
24035 int
24036 main ()
24037 {
24038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24039 test_array [0] = 0
24040
24041   ;
24042   return 0;
24043 }
24044 _ACEOF
24045 rm -f conftest.$ac_objext
24046 if { (ac_try="$ac_compile"
24047 case "(($ac_try" in
24048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24049   *) ac_try_echo=$ac_try;;
24050 esac
24051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24052   (eval "$ac_compile") 2>conftest.er1
24053   ac_status=$?
24054   grep -v '^ *+' conftest.er1 >conftest.err
24055   rm -f conftest.er1
24056   cat conftest.err >&5
24057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24058   (exit $ac_status); } && {
24059          test -z "$ac_c_werror_flag" ||
24060          test ! -s conftest.err
24061        } && test -s conftest.$ac_objext; then
24062   ac_lo=$ac_mid; break
24063 else
24064   echo "$as_me: failed program was:" >&5
24065 sed 's/^/| /' conftest.$ac_ext >&5
24066
24067         ac_hi=`expr '(' $ac_mid ')' - 1`
24068                         if test $ac_mid -le $ac_hi; then
24069                           ac_lo= ac_hi=
24070                           break
24071                         fi
24072                         ac_mid=`expr 2 '*' $ac_mid`
24073 fi
24074
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24076   done
24077 else
24078   echo "$as_me: failed program was:" >&5
24079 sed 's/^/| /' conftest.$ac_ext >&5
24080
24081         ac_lo= ac_hi=
24082 fi
24083
24084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24085 fi
24086
24087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24088 # Binary search between lo and hi bounds.
24089 while test "x$ac_lo" != "x$ac_hi"; do
24090   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24091   cat >conftest.$ac_ext <<_ACEOF
24092 /* confdefs.h.  */
24093 _ACEOF
24094 cat confdefs.h >>conftest.$ac_ext
24095 cat >>conftest.$ac_ext <<_ACEOF
24096 /* end confdefs.h.  */
24097 $ac_includes_default
24098    typedef long long ac__type_sizeof_;
24099 int
24100 main ()
24101 {
24102 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24103 test_array [0] = 0
24104
24105   ;
24106   return 0;
24107 }
24108 _ACEOF
24109 rm -f conftest.$ac_objext
24110 if { (ac_try="$ac_compile"
24111 case "(($ac_try" in
24112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24113   *) ac_try_echo=$ac_try;;
24114 esac
24115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24116   (eval "$ac_compile") 2>conftest.er1
24117   ac_status=$?
24118   grep -v '^ *+' conftest.er1 >conftest.err
24119   rm -f conftest.er1
24120   cat conftest.err >&5
24121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24122   (exit $ac_status); } && {
24123          test -z "$ac_c_werror_flag" ||
24124          test ! -s conftest.err
24125        } && test -s conftest.$ac_objext; then
24126   ac_hi=$ac_mid
24127 else
24128   echo "$as_me: failed program was:" >&5
24129 sed 's/^/| /' conftest.$ac_ext >&5
24130
24131         ac_lo=`expr '(' $ac_mid ')' + 1`
24132 fi
24133
24134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24135 done
24136 case $ac_lo in
24137 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24138 '') if test "$ac_cv_type_long_long" = yes; then
24139      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24140 See \`config.log' for more details." >&5
24141 echo "$as_me: error: cannot compute sizeof (long long)
24142 See \`config.log' for more details." >&2;}
24143    { (exit 77); exit 77; }; }
24144    else
24145      ac_cv_sizeof_long_long=0
24146    fi ;;
24147 esac
24148 else
24149   cat >conftest.$ac_ext <<_ACEOF
24150 /* confdefs.h.  */
24151 _ACEOF
24152 cat confdefs.h >>conftest.$ac_ext
24153 cat >>conftest.$ac_ext <<_ACEOF
24154 /* end confdefs.h.  */
24155 $ac_includes_default
24156    typedef long long ac__type_sizeof_;
24157 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24158 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24159 #include <stdio.h>
24160 #include <stdlib.h>
24161 int
24162 main ()
24163 {
24164
24165   FILE *f = fopen ("conftest.val", "w");
24166   if (! f)
24167     return 1;
24168   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24169     {
24170       long int i = longval ();
24171       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24172         return 1;
24173       fprintf (f, "%ld\n", i);
24174     }
24175   else
24176     {
24177       unsigned long int i = ulongval ();
24178       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24179         return 1;
24180       fprintf (f, "%lu\n", i);
24181     }
24182   return ferror (f) || fclose (f) != 0;
24183
24184   ;
24185   return 0;
24186 }
24187 _ACEOF
24188 rm -f conftest$ac_exeext
24189 if { (ac_try="$ac_link"
24190 case "(($ac_try" in
24191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192   *) ac_try_echo=$ac_try;;
24193 esac
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195   (eval "$ac_link") 2>&5
24196   ac_status=$?
24197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24199   { (case "(($ac_try" in
24200   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24201   *) ac_try_echo=$ac_try;;
24202 esac
24203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24204   (eval "$ac_try") 2>&5
24205   ac_status=$?
24206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24207   (exit $ac_status); }; }; then
24208   ac_cv_sizeof_long_long=`cat conftest.val`
24209 else
24210   echo "$as_me: program exited with status $ac_status" >&5
24211 echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214 ( exit $ac_status )
24215 if test "$ac_cv_type_long_long" = yes; then
24216      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24217 See \`config.log' for more details." >&5
24218 echo "$as_me: error: cannot compute sizeof (long long)
24219 See \`config.log' for more details." >&2;}
24220    { (exit 77); exit 77; }; }
24221    else
24222      ac_cv_sizeof_long_long=0
24223    fi
24224 fi
24225 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24226 fi
24227 rm -f conftest.val
24228 fi
24229 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24230 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24231
24232
24233
24234 cat >>confdefs.h <<_ACEOF
24235 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24236 _ACEOF
24237
24238
24239     ;;
24240     *-hp-hpux* )
24241         { echo "$as_me:$LINENO: checking for long long" >&5
24242 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24243 if test "${ac_cv_type_long_long+set}" = set; then
24244   echo $ECHO_N "(cached) $ECHO_C" >&6
24245 else
24246   cat >conftest.$ac_ext <<_ACEOF
24247 /* confdefs.h.  */
24248 _ACEOF
24249 cat confdefs.h >>conftest.$ac_ext
24250 cat >>conftest.$ac_ext <<_ACEOF
24251 /* end confdefs.h.  */
24252 $ac_includes_default
24253 typedef long long ac__type_new_;
24254 int
24255 main ()
24256 {
24257 if ((ac__type_new_ *) 0)
24258   return 0;
24259 if (sizeof (ac__type_new_))
24260   return 0;
24261   ;
24262   return 0;
24263 }
24264 _ACEOF
24265 rm -f conftest.$ac_objext
24266 if { (ac_try="$ac_compile"
24267 case "(($ac_try" in
24268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24269   *) ac_try_echo=$ac_try;;
24270 esac
24271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24272   (eval "$ac_compile") 2>conftest.er1
24273   ac_status=$?
24274   grep -v '^ *+' conftest.er1 >conftest.err
24275   rm -f conftest.er1
24276   cat conftest.err >&5
24277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24278   (exit $ac_status); } && {
24279          test -z "$ac_c_werror_flag" ||
24280          test ! -s conftest.err
24281        } && test -s conftest.$ac_objext; then
24282   ac_cv_type_long_long=yes
24283 else
24284   echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287         ac_cv_type_long_long=no
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 fi
24292 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24293 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24294
24295 # The cast to long int works around a bug in the HP C Compiler
24296 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24297 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24298 # This bug is HP SR number 8606223364.
24299 { echo "$as_me:$LINENO: checking size of long long" >&5
24300 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24301 if test "${ac_cv_sizeof_long_long+set}" = set; then
24302   echo $ECHO_N "(cached) $ECHO_C" >&6
24303 else
24304   if test "$cross_compiling" = yes; then
24305   # Depending upon the size, compute the lo and hi bounds.
24306 cat >conftest.$ac_ext <<_ACEOF
24307 /* confdefs.h.  */
24308 _ACEOF
24309 cat confdefs.h >>conftest.$ac_ext
24310 cat >>conftest.$ac_ext <<_ACEOF
24311 /* end confdefs.h.  */
24312 $ac_includes_default
24313    typedef long long ac__type_sizeof_;
24314 int
24315 main ()
24316 {
24317 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24318 test_array [0] = 0
24319
24320   ;
24321   return 0;
24322 }
24323 _ACEOF
24324 rm -f conftest.$ac_objext
24325 if { (ac_try="$ac_compile"
24326 case "(($ac_try" in
24327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24328   *) ac_try_echo=$ac_try;;
24329 esac
24330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24331   (eval "$ac_compile") 2>conftest.er1
24332   ac_status=$?
24333   grep -v '^ *+' conftest.er1 >conftest.err
24334   rm -f conftest.er1
24335   cat conftest.err >&5
24336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337   (exit $ac_status); } && {
24338          test -z "$ac_c_werror_flag" ||
24339          test ! -s conftest.err
24340        } && test -s conftest.$ac_objext; then
24341   ac_lo=0 ac_mid=0
24342   while :; do
24343     cat >conftest.$ac_ext <<_ACEOF
24344 /* confdefs.h.  */
24345 _ACEOF
24346 cat confdefs.h >>conftest.$ac_ext
24347 cat >>conftest.$ac_ext <<_ACEOF
24348 /* end confdefs.h.  */
24349 $ac_includes_default
24350    typedef long long ac__type_sizeof_;
24351 int
24352 main ()
24353 {
24354 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24355 test_array [0] = 0
24356
24357   ;
24358   return 0;
24359 }
24360 _ACEOF
24361 rm -f conftest.$ac_objext
24362 if { (ac_try="$ac_compile"
24363 case "(($ac_try" in
24364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24365   *) ac_try_echo=$ac_try;;
24366 esac
24367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24368   (eval "$ac_compile") 2>conftest.er1
24369   ac_status=$?
24370   grep -v '^ *+' conftest.er1 >conftest.err
24371   rm -f conftest.er1
24372   cat conftest.err >&5
24373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24374   (exit $ac_status); } && {
24375          test -z "$ac_c_werror_flag" ||
24376          test ! -s conftest.err
24377        } && test -s conftest.$ac_objext; then
24378   ac_hi=$ac_mid; break
24379 else
24380   echo "$as_me: failed program was:" >&5
24381 sed 's/^/| /' conftest.$ac_ext >&5
24382
24383         ac_lo=`expr $ac_mid + 1`
24384                         if test $ac_lo -le $ac_mid; then
24385                           ac_lo= ac_hi=
24386                           break
24387                         fi
24388                         ac_mid=`expr 2 '*' $ac_mid + 1`
24389 fi
24390
24391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24392   done
24393 else
24394   echo "$as_me: failed program was:" >&5
24395 sed 's/^/| /' conftest.$ac_ext >&5
24396
24397         cat >conftest.$ac_ext <<_ACEOF
24398 /* confdefs.h.  */
24399 _ACEOF
24400 cat confdefs.h >>conftest.$ac_ext
24401 cat >>conftest.$ac_ext <<_ACEOF
24402 /* end confdefs.h.  */
24403 $ac_includes_default
24404    typedef long long ac__type_sizeof_;
24405 int
24406 main ()
24407 {
24408 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24409 test_array [0] = 0
24410
24411   ;
24412   return 0;
24413 }
24414 _ACEOF
24415 rm -f conftest.$ac_objext
24416 if { (ac_try="$ac_compile"
24417 case "(($ac_try" in
24418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419   *) ac_try_echo=$ac_try;;
24420 esac
24421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24422   (eval "$ac_compile") 2>conftest.er1
24423   ac_status=$?
24424   grep -v '^ *+' conftest.er1 >conftest.err
24425   rm -f conftest.er1
24426   cat conftest.err >&5
24427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24428   (exit $ac_status); } && {
24429          test -z "$ac_c_werror_flag" ||
24430          test ! -s conftest.err
24431        } && test -s conftest.$ac_objext; then
24432   ac_hi=-1 ac_mid=-1
24433   while :; do
24434     cat >conftest.$ac_ext <<_ACEOF
24435 /* confdefs.h.  */
24436 _ACEOF
24437 cat confdefs.h >>conftest.$ac_ext
24438 cat >>conftest.$ac_ext <<_ACEOF
24439 /* end confdefs.h.  */
24440 $ac_includes_default
24441    typedef long long ac__type_sizeof_;
24442 int
24443 main ()
24444 {
24445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24446 test_array [0] = 0
24447
24448   ;
24449   return 0;
24450 }
24451 _ACEOF
24452 rm -f conftest.$ac_objext
24453 if { (ac_try="$ac_compile"
24454 case "(($ac_try" in
24455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456   *) ac_try_echo=$ac_try;;
24457 esac
24458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24459   (eval "$ac_compile") 2>conftest.er1
24460   ac_status=$?
24461   grep -v '^ *+' conftest.er1 >conftest.err
24462   rm -f conftest.er1
24463   cat conftest.err >&5
24464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24465   (exit $ac_status); } && {
24466          test -z "$ac_c_werror_flag" ||
24467          test ! -s conftest.err
24468        } && test -s conftest.$ac_objext; then
24469   ac_lo=$ac_mid; break
24470 else
24471   echo "$as_me: failed program was:" >&5
24472 sed 's/^/| /' conftest.$ac_ext >&5
24473
24474         ac_hi=`expr '(' $ac_mid ')' - 1`
24475                         if test $ac_mid -le $ac_hi; then
24476                           ac_lo= ac_hi=
24477                           break
24478                         fi
24479                         ac_mid=`expr 2 '*' $ac_mid`
24480 fi
24481
24482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24483   done
24484 else
24485   echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24487
24488         ac_lo= ac_hi=
24489 fi
24490
24491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24492 fi
24493
24494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24495 # Binary search between lo and hi bounds.
24496 while test "x$ac_lo" != "x$ac_hi"; do
24497   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24498   cat >conftest.$ac_ext <<_ACEOF
24499 /* confdefs.h.  */
24500 _ACEOF
24501 cat confdefs.h >>conftest.$ac_ext
24502 cat >>conftest.$ac_ext <<_ACEOF
24503 /* end confdefs.h.  */
24504 $ac_includes_default
24505    typedef long long ac__type_sizeof_;
24506 int
24507 main ()
24508 {
24509 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24510 test_array [0] = 0
24511
24512   ;
24513   return 0;
24514 }
24515 _ACEOF
24516 rm -f conftest.$ac_objext
24517 if { (ac_try="$ac_compile"
24518 case "(($ac_try" in
24519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520   *) ac_try_echo=$ac_try;;
24521 esac
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523   (eval "$ac_compile") 2>conftest.er1
24524   ac_status=$?
24525   grep -v '^ *+' conftest.er1 >conftest.err
24526   rm -f conftest.er1
24527   cat conftest.err >&5
24528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24529   (exit $ac_status); } && {
24530          test -z "$ac_c_werror_flag" ||
24531          test ! -s conftest.err
24532        } && test -s conftest.$ac_objext; then
24533   ac_hi=$ac_mid
24534 else
24535   echo "$as_me: failed program was:" >&5
24536 sed 's/^/| /' conftest.$ac_ext >&5
24537
24538         ac_lo=`expr '(' $ac_mid ')' + 1`
24539 fi
24540
24541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24542 done
24543 case $ac_lo in
24544 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24545 '') if test "$ac_cv_type_long_long" = yes; then
24546      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24547 See \`config.log' for more details." >&5
24548 echo "$as_me: error: cannot compute sizeof (long long)
24549 See \`config.log' for more details." >&2;}
24550    { (exit 77); exit 77; }; }
24551    else
24552      ac_cv_sizeof_long_long=0
24553    fi ;;
24554 esac
24555 else
24556   cat >conftest.$ac_ext <<_ACEOF
24557 /* confdefs.h.  */
24558 _ACEOF
24559 cat confdefs.h >>conftest.$ac_ext
24560 cat >>conftest.$ac_ext <<_ACEOF
24561 /* end confdefs.h.  */
24562 $ac_includes_default
24563    typedef long long ac__type_sizeof_;
24564 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24565 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24566 #include <stdio.h>
24567 #include <stdlib.h>
24568 int
24569 main ()
24570 {
24571
24572   FILE *f = fopen ("conftest.val", "w");
24573   if (! f)
24574     return 1;
24575   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24576     {
24577       long int i = longval ();
24578       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24579         return 1;
24580       fprintf (f, "%ld\n", i);
24581     }
24582   else
24583     {
24584       unsigned long int i = ulongval ();
24585       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24586         return 1;
24587       fprintf (f, "%lu\n", i);
24588     }
24589   return ferror (f) || fclose (f) != 0;
24590
24591   ;
24592   return 0;
24593 }
24594 _ACEOF
24595 rm -f conftest$ac_exeext
24596 if { (ac_try="$ac_link"
24597 case "(($ac_try" in
24598   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24599   *) ac_try_echo=$ac_try;;
24600 esac
24601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24602   (eval "$ac_link") 2>&5
24603   ac_status=$?
24604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24605   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24606   { (case "(($ac_try" in
24607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24608   *) ac_try_echo=$ac_try;;
24609 esac
24610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24611   (eval "$ac_try") 2>&5
24612   ac_status=$?
24613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24614   (exit $ac_status); }; }; then
24615   ac_cv_sizeof_long_long=`cat conftest.val`
24616 else
24617   echo "$as_me: program exited with status $ac_status" >&5
24618 echo "$as_me: failed program was:" >&5
24619 sed 's/^/| /' conftest.$ac_ext >&5
24620
24621 ( exit $ac_status )
24622 if test "$ac_cv_type_long_long" = yes; then
24623      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24624 See \`config.log' for more details." >&5
24625 echo "$as_me: error: cannot compute sizeof (long long)
24626 See \`config.log' for more details." >&2;}
24627    { (exit 77); exit 77; }; }
24628    else
24629      ac_cv_sizeof_long_long=0
24630    fi
24631 fi
24632 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24633 fi
24634 rm -f conftest.val
24635 fi
24636 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24637 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24638
24639
24640
24641 cat >>confdefs.h <<_ACEOF
24642 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24643 _ACEOF
24644
24645
24646         if test "$ac_cv_sizeof_long_long" != "0"; then
24647                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24648         fi
24649     ;;
24650     * )
24651         { echo "$as_me:$LINENO: checking for long long" >&5
24652 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24653 if test "${ac_cv_type_long_long+set}" = set; then
24654   echo $ECHO_N "(cached) $ECHO_C" >&6
24655 else
24656   cat >conftest.$ac_ext <<_ACEOF
24657 /* confdefs.h.  */
24658 _ACEOF
24659 cat confdefs.h >>conftest.$ac_ext
24660 cat >>conftest.$ac_ext <<_ACEOF
24661 /* end confdefs.h.  */
24662 $ac_includes_default
24663 typedef long long ac__type_new_;
24664 int
24665 main ()
24666 {
24667 if ((ac__type_new_ *) 0)
24668   return 0;
24669 if (sizeof (ac__type_new_))
24670   return 0;
24671   ;
24672   return 0;
24673 }
24674 _ACEOF
24675 rm -f conftest.$ac_objext
24676 if { (ac_try="$ac_compile"
24677 case "(($ac_try" in
24678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24679   *) ac_try_echo=$ac_try;;
24680 esac
24681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24682   (eval "$ac_compile") 2>conftest.er1
24683   ac_status=$?
24684   grep -v '^ *+' conftest.er1 >conftest.err
24685   rm -f conftest.er1
24686   cat conftest.err >&5
24687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24688   (exit $ac_status); } && {
24689          test -z "$ac_c_werror_flag" ||
24690          test ! -s conftest.err
24691        } && test -s conftest.$ac_objext; then
24692   ac_cv_type_long_long=yes
24693 else
24694   echo "$as_me: failed program was:" >&5
24695 sed 's/^/| /' conftest.$ac_ext >&5
24696
24697         ac_cv_type_long_long=no
24698 fi
24699
24700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24701 fi
24702 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24703 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24704
24705 # The cast to long int works around a bug in the HP C Compiler
24706 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24707 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24708 # This bug is HP SR number 8606223364.
24709 { echo "$as_me:$LINENO: checking size of long long" >&5
24710 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24711 if test "${ac_cv_sizeof_long_long+set}" = set; then
24712   echo $ECHO_N "(cached) $ECHO_C" >&6
24713 else
24714   if test "$cross_compiling" = yes; then
24715   # Depending upon the size, compute the lo and hi bounds.
24716 cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722 $ac_includes_default
24723    typedef long long ac__type_sizeof_;
24724 int
24725 main ()
24726 {
24727 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24728 test_array [0] = 0
24729
24730   ;
24731   return 0;
24732 }
24733 _ACEOF
24734 rm -f conftest.$ac_objext
24735 if { (ac_try="$ac_compile"
24736 case "(($ac_try" in
24737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24738   *) ac_try_echo=$ac_try;;
24739 esac
24740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24741   (eval "$ac_compile") 2>conftest.er1
24742   ac_status=$?
24743   grep -v '^ *+' conftest.er1 >conftest.err
24744   rm -f conftest.er1
24745   cat conftest.err >&5
24746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24747   (exit $ac_status); } && {
24748          test -z "$ac_c_werror_flag" ||
24749          test ! -s conftest.err
24750        } && test -s conftest.$ac_objext; then
24751   ac_lo=0 ac_mid=0
24752   while :; do
24753     cat >conftest.$ac_ext <<_ACEOF
24754 /* confdefs.h.  */
24755 _ACEOF
24756 cat confdefs.h >>conftest.$ac_ext
24757 cat >>conftest.$ac_ext <<_ACEOF
24758 /* end confdefs.h.  */
24759 $ac_includes_default
24760    typedef long long ac__type_sizeof_;
24761 int
24762 main ()
24763 {
24764 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24765 test_array [0] = 0
24766
24767   ;
24768   return 0;
24769 }
24770 _ACEOF
24771 rm -f conftest.$ac_objext
24772 if { (ac_try="$ac_compile"
24773 case "(($ac_try" in
24774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775   *) ac_try_echo=$ac_try;;
24776 esac
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778   (eval "$ac_compile") 2>conftest.er1
24779   ac_status=$?
24780   grep -v '^ *+' conftest.er1 >conftest.err
24781   rm -f conftest.er1
24782   cat conftest.err >&5
24783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784   (exit $ac_status); } && {
24785          test -z "$ac_c_werror_flag" ||
24786          test ! -s conftest.err
24787        } && test -s conftest.$ac_objext; then
24788   ac_hi=$ac_mid; break
24789 else
24790   echo "$as_me: failed program was:" >&5
24791 sed 's/^/| /' conftest.$ac_ext >&5
24792
24793         ac_lo=`expr $ac_mid + 1`
24794                         if test $ac_lo -le $ac_mid; then
24795                           ac_lo= ac_hi=
24796                           break
24797                         fi
24798                         ac_mid=`expr 2 '*' $ac_mid + 1`
24799 fi
24800
24801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24802   done
24803 else
24804   echo "$as_me: failed program was:" >&5
24805 sed 's/^/| /' conftest.$ac_ext >&5
24806
24807         cat >conftest.$ac_ext <<_ACEOF
24808 /* confdefs.h.  */
24809 _ACEOF
24810 cat confdefs.h >>conftest.$ac_ext
24811 cat >>conftest.$ac_ext <<_ACEOF
24812 /* end confdefs.h.  */
24813 $ac_includes_default
24814    typedef long long ac__type_sizeof_;
24815 int
24816 main ()
24817 {
24818 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24819 test_array [0] = 0
24820
24821   ;
24822   return 0;
24823 }
24824 _ACEOF
24825 rm -f conftest.$ac_objext
24826 if { (ac_try="$ac_compile"
24827 case "(($ac_try" in
24828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24829   *) ac_try_echo=$ac_try;;
24830 esac
24831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24832   (eval "$ac_compile") 2>conftest.er1
24833   ac_status=$?
24834   grep -v '^ *+' conftest.er1 >conftest.err
24835   rm -f conftest.er1
24836   cat conftest.err >&5
24837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24838   (exit $ac_status); } && {
24839          test -z "$ac_c_werror_flag" ||
24840          test ! -s conftest.err
24841        } && test -s conftest.$ac_objext; then
24842   ac_hi=-1 ac_mid=-1
24843   while :; do
24844     cat >conftest.$ac_ext <<_ACEOF
24845 /* confdefs.h.  */
24846 _ACEOF
24847 cat confdefs.h >>conftest.$ac_ext
24848 cat >>conftest.$ac_ext <<_ACEOF
24849 /* end confdefs.h.  */
24850 $ac_includes_default
24851    typedef long long ac__type_sizeof_;
24852 int
24853 main ()
24854 {
24855 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24856 test_array [0] = 0
24857
24858   ;
24859   return 0;
24860 }
24861 _ACEOF
24862 rm -f conftest.$ac_objext
24863 if { (ac_try="$ac_compile"
24864 case "(($ac_try" in
24865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24866   *) ac_try_echo=$ac_try;;
24867 esac
24868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24869   (eval "$ac_compile") 2>conftest.er1
24870   ac_status=$?
24871   grep -v '^ *+' conftest.er1 >conftest.err
24872   rm -f conftest.er1
24873   cat conftest.err >&5
24874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875   (exit $ac_status); } && {
24876          test -z "$ac_c_werror_flag" ||
24877          test ! -s conftest.err
24878        } && test -s conftest.$ac_objext; then
24879   ac_lo=$ac_mid; break
24880 else
24881   echo "$as_me: failed program was:" >&5
24882 sed 's/^/| /' conftest.$ac_ext >&5
24883
24884         ac_hi=`expr '(' $ac_mid ')' - 1`
24885                         if test $ac_mid -le $ac_hi; then
24886                           ac_lo= ac_hi=
24887                           break
24888                         fi
24889                         ac_mid=`expr 2 '*' $ac_mid`
24890 fi
24891
24892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24893   done
24894 else
24895   echo "$as_me: failed program was:" >&5
24896 sed 's/^/| /' conftest.$ac_ext >&5
24897
24898         ac_lo= ac_hi=
24899 fi
24900
24901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24902 fi
24903
24904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24905 # Binary search between lo and hi bounds.
24906 while test "x$ac_lo" != "x$ac_hi"; do
24907   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24908   cat >conftest.$ac_ext <<_ACEOF
24909 /* confdefs.h.  */
24910 _ACEOF
24911 cat confdefs.h >>conftest.$ac_ext
24912 cat >>conftest.$ac_ext <<_ACEOF
24913 /* end confdefs.h.  */
24914 $ac_includes_default
24915    typedef long long ac__type_sizeof_;
24916 int
24917 main ()
24918 {
24919 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24920 test_array [0] = 0
24921
24922   ;
24923   return 0;
24924 }
24925 _ACEOF
24926 rm -f conftest.$ac_objext
24927 if { (ac_try="$ac_compile"
24928 case "(($ac_try" in
24929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24930   *) ac_try_echo=$ac_try;;
24931 esac
24932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24933   (eval "$ac_compile") 2>conftest.er1
24934   ac_status=$?
24935   grep -v '^ *+' conftest.er1 >conftest.err
24936   rm -f conftest.er1
24937   cat conftest.err >&5
24938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939   (exit $ac_status); } && {
24940          test -z "$ac_c_werror_flag" ||
24941          test ! -s conftest.err
24942        } && test -s conftest.$ac_objext; then
24943   ac_hi=$ac_mid
24944 else
24945   echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948         ac_lo=`expr '(' $ac_mid ')' + 1`
24949 fi
24950
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 done
24953 case $ac_lo in
24954 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24955 '') if test "$ac_cv_type_long_long" = yes; then
24956      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24957 See \`config.log' for more details." >&5
24958 echo "$as_me: error: cannot compute sizeof (long long)
24959 See \`config.log' for more details." >&2;}
24960    { (exit 77); exit 77; }; }
24961    else
24962      ac_cv_sizeof_long_long=0
24963    fi ;;
24964 esac
24965 else
24966   cat >conftest.$ac_ext <<_ACEOF
24967 /* confdefs.h.  */
24968 _ACEOF
24969 cat confdefs.h >>conftest.$ac_ext
24970 cat >>conftest.$ac_ext <<_ACEOF
24971 /* end confdefs.h.  */
24972 $ac_includes_default
24973    typedef long long ac__type_sizeof_;
24974 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24975 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24976 #include <stdio.h>
24977 #include <stdlib.h>
24978 int
24979 main ()
24980 {
24981
24982   FILE *f = fopen ("conftest.val", "w");
24983   if (! f)
24984     return 1;
24985   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24986     {
24987       long int i = longval ();
24988       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24989         return 1;
24990       fprintf (f, "%ld\n", i);
24991     }
24992   else
24993     {
24994       unsigned long int i = ulongval ();
24995       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24996         return 1;
24997       fprintf (f, "%lu\n", i);
24998     }
24999   return ferror (f) || fclose (f) != 0;
25000
25001   ;
25002   return 0;
25003 }
25004 _ACEOF
25005 rm -f conftest$ac_exeext
25006 if { (ac_try="$ac_link"
25007 case "(($ac_try" in
25008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009   *) ac_try_echo=$ac_try;;
25010 esac
25011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25012   (eval "$ac_link") 2>&5
25013   ac_status=$?
25014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25015   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25016   { (case "(($ac_try" in
25017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25018   *) ac_try_echo=$ac_try;;
25019 esac
25020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25021   (eval "$ac_try") 2>&5
25022   ac_status=$?
25023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024   (exit $ac_status); }; }; then
25025   ac_cv_sizeof_long_long=`cat conftest.val`
25026 else
25027   echo "$as_me: program exited with status $ac_status" >&5
25028 echo "$as_me: failed program was:" >&5
25029 sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 ( exit $ac_status )
25032 if test "$ac_cv_type_long_long" = yes; then
25033      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25034 See \`config.log' for more details." >&5
25035 echo "$as_me: error: cannot compute sizeof (long long)
25036 See \`config.log' for more details." >&2;}
25037    { (exit 77); exit 77; }; }
25038    else
25039      ac_cv_sizeof_long_long=0
25040    fi
25041 fi
25042 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25043 fi
25044 rm -f conftest.val
25045 fi
25046 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25047 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25048
25049
25050
25051 cat >>confdefs.h <<_ACEOF
25052 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25053 _ACEOF
25054
25055
25056 esac
25057
25058 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25059 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25060 if test "${ac_cv_type_wchar_t+set}" = set; then
25061   echo $ECHO_N "(cached) $ECHO_C" >&6
25062 else
25063   cat >conftest.$ac_ext <<_ACEOF
25064 /* confdefs.h.  */
25065 _ACEOF
25066 cat confdefs.h >>conftest.$ac_ext
25067 cat >>conftest.$ac_ext <<_ACEOF
25068 /* end confdefs.h.  */
25069
25070         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25071         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25072         #  error "fake wchar_t"
25073         #endif
25074         #ifdef HAVE_WCHAR_H
25075         #  ifdef __CYGWIN__
25076         #    include <stddef.h>
25077         #  endif
25078         #  include <wchar.h>
25079         #endif
25080         #ifdef HAVE_STDLIB_H
25081         #  include <stdlib.h>
25082         #endif
25083         #include <stdio.h>
25084
25085
25086
25087 typedef wchar_t ac__type_new_;
25088 int
25089 main ()
25090 {
25091 if ((ac__type_new_ *) 0)
25092   return 0;
25093 if (sizeof (ac__type_new_))
25094   return 0;
25095   ;
25096   return 0;
25097 }
25098 _ACEOF
25099 rm -f conftest.$ac_objext
25100 if { (ac_try="$ac_compile"
25101 case "(($ac_try" in
25102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25103   *) ac_try_echo=$ac_try;;
25104 esac
25105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25106   (eval "$ac_compile") 2>conftest.er1
25107   ac_status=$?
25108   grep -v '^ *+' conftest.er1 >conftest.err
25109   rm -f conftest.er1
25110   cat conftest.err >&5
25111   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112   (exit $ac_status); } && {
25113          test -z "$ac_c_werror_flag" ||
25114          test ! -s conftest.err
25115        } && test -s conftest.$ac_objext; then
25116   ac_cv_type_wchar_t=yes
25117 else
25118   echo "$as_me: failed program was:" >&5
25119 sed 's/^/| /' conftest.$ac_ext >&5
25120
25121         ac_cv_type_wchar_t=no
25122 fi
25123
25124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25125 fi
25126 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25127 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25128
25129 # The cast to long int works around a bug in the HP C Compiler
25130 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25131 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25132 # This bug is HP SR number 8606223364.
25133 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25134 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25135 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25136   echo $ECHO_N "(cached) $ECHO_C" >&6
25137 else
25138   if test "$cross_compiling" = yes; then
25139   # Depending upon the size, compute the lo and hi bounds.
25140 cat >conftest.$ac_ext <<_ACEOF
25141 /* confdefs.h.  */
25142 _ACEOF
25143 cat confdefs.h >>conftest.$ac_ext
25144 cat >>conftest.$ac_ext <<_ACEOF
25145 /* end confdefs.h.  */
25146
25147         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25148         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25149         #  error "fake wchar_t"
25150         #endif
25151         #ifdef HAVE_WCHAR_H
25152         #  ifdef __CYGWIN__
25153         #    include <stddef.h>
25154         #  endif
25155         #  include <wchar.h>
25156         #endif
25157         #ifdef HAVE_STDLIB_H
25158         #  include <stdlib.h>
25159         #endif
25160         #include <stdio.h>
25161
25162
25163
25164    typedef wchar_t ac__type_sizeof_;
25165 int
25166 main ()
25167 {
25168 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25169 test_array [0] = 0
25170
25171   ;
25172   return 0;
25173 }
25174 _ACEOF
25175 rm -f conftest.$ac_objext
25176 if { (ac_try="$ac_compile"
25177 case "(($ac_try" in
25178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25179   *) ac_try_echo=$ac_try;;
25180 esac
25181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25182   (eval "$ac_compile") 2>conftest.er1
25183   ac_status=$?
25184   grep -v '^ *+' conftest.er1 >conftest.err
25185   rm -f conftest.er1
25186   cat conftest.err >&5
25187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25188   (exit $ac_status); } && {
25189          test -z "$ac_c_werror_flag" ||
25190          test ! -s conftest.err
25191        } && test -s conftest.$ac_objext; then
25192   ac_lo=0 ac_mid=0
25193   while :; do
25194     cat >conftest.$ac_ext <<_ACEOF
25195 /* confdefs.h.  */
25196 _ACEOF
25197 cat confdefs.h >>conftest.$ac_ext
25198 cat >>conftest.$ac_ext <<_ACEOF
25199 /* end confdefs.h.  */
25200
25201         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25202         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25203         #  error "fake wchar_t"
25204         #endif
25205         #ifdef HAVE_WCHAR_H
25206         #  ifdef __CYGWIN__
25207         #    include <stddef.h>
25208         #  endif
25209         #  include <wchar.h>
25210         #endif
25211         #ifdef HAVE_STDLIB_H
25212         #  include <stdlib.h>
25213         #endif
25214         #include <stdio.h>
25215
25216
25217
25218    typedef wchar_t ac__type_sizeof_;
25219 int
25220 main ()
25221 {
25222 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25223 test_array [0] = 0
25224
25225   ;
25226   return 0;
25227 }
25228 _ACEOF
25229 rm -f conftest.$ac_objext
25230 if { (ac_try="$ac_compile"
25231 case "(($ac_try" in
25232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25233   *) ac_try_echo=$ac_try;;
25234 esac
25235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25236   (eval "$ac_compile") 2>conftest.er1
25237   ac_status=$?
25238   grep -v '^ *+' conftest.er1 >conftest.err
25239   rm -f conftest.er1
25240   cat conftest.err >&5
25241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25242   (exit $ac_status); } && {
25243          test -z "$ac_c_werror_flag" ||
25244          test ! -s conftest.err
25245        } && test -s conftest.$ac_objext; then
25246   ac_hi=$ac_mid; break
25247 else
25248   echo "$as_me: failed program was:" >&5
25249 sed 's/^/| /' conftest.$ac_ext >&5
25250
25251         ac_lo=`expr $ac_mid + 1`
25252                         if test $ac_lo -le $ac_mid; then
25253                           ac_lo= ac_hi=
25254                           break
25255                         fi
25256                         ac_mid=`expr 2 '*' $ac_mid + 1`
25257 fi
25258
25259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25260   done
25261 else
25262   echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265         cat >conftest.$ac_ext <<_ACEOF
25266 /* confdefs.h.  */
25267 _ACEOF
25268 cat confdefs.h >>conftest.$ac_ext
25269 cat >>conftest.$ac_ext <<_ACEOF
25270 /* end confdefs.h.  */
25271
25272         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25273         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25274         #  error "fake wchar_t"
25275         #endif
25276         #ifdef HAVE_WCHAR_H
25277         #  ifdef __CYGWIN__
25278         #    include <stddef.h>
25279         #  endif
25280         #  include <wchar.h>
25281         #endif
25282         #ifdef HAVE_STDLIB_H
25283         #  include <stdlib.h>
25284         #endif
25285         #include <stdio.h>
25286
25287
25288
25289    typedef wchar_t ac__type_sizeof_;
25290 int
25291 main ()
25292 {
25293 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25294 test_array [0] = 0
25295
25296   ;
25297   return 0;
25298 }
25299 _ACEOF
25300 rm -f conftest.$ac_objext
25301 if { (ac_try="$ac_compile"
25302 case "(($ac_try" in
25303   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25304   *) ac_try_echo=$ac_try;;
25305 esac
25306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25307   (eval "$ac_compile") 2>conftest.er1
25308   ac_status=$?
25309   grep -v '^ *+' conftest.er1 >conftest.err
25310   rm -f conftest.er1
25311   cat conftest.err >&5
25312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25313   (exit $ac_status); } && {
25314          test -z "$ac_c_werror_flag" ||
25315          test ! -s conftest.err
25316        } && test -s conftest.$ac_objext; then
25317   ac_hi=-1 ac_mid=-1
25318   while :; do
25319     cat >conftest.$ac_ext <<_ACEOF
25320 /* confdefs.h.  */
25321 _ACEOF
25322 cat confdefs.h >>conftest.$ac_ext
25323 cat >>conftest.$ac_ext <<_ACEOF
25324 /* end confdefs.h.  */
25325
25326         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25327         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25328         #  error "fake wchar_t"
25329         #endif
25330         #ifdef HAVE_WCHAR_H
25331         #  ifdef __CYGWIN__
25332         #    include <stddef.h>
25333         #  endif
25334         #  include <wchar.h>
25335         #endif
25336         #ifdef HAVE_STDLIB_H
25337         #  include <stdlib.h>
25338         #endif
25339         #include <stdio.h>
25340
25341
25342
25343    typedef wchar_t ac__type_sizeof_;
25344 int
25345 main ()
25346 {
25347 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25348 test_array [0] = 0
25349
25350   ;
25351   return 0;
25352 }
25353 _ACEOF
25354 rm -f conftest.$ac_objext
25355 if { (ac_try="$ac_compile"
25356 case "(($ac_try" in
25357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25358   *) ac_try_echo=$ac_try;;
25359 esac
25360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25361   (eval "$ac_compile") 2>conftest.er1
25362   ac_status=$?
25363   grep -v '^ *+' conftest.er1 >conftest.err
25364   rm -f conftest.er1
25365   cat conftest.err >&5
25366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25367   (exit $ac_status); } && {
25368          test -z "$ac_c_werror_flag" ||
25369          test ! -s conftest.err
25370        } && test -s conftest.$ac_objext; then
25371   ac_lo=$ac_mid; break
25372 else
25373   echo "$as_me: failed program was:" >&5
25374 sed 's/^/| /' conftest.$ac_ext >&5
25375
25376         ac_hi=`expr '(' $ac_mid ')' - 1`
25377                         if test $ac_mid -le $ac_hi; then
25378                           ac_lo= ac_hi=
25379                           break
25380                         fi
25381                         ac_mid=`expr 2 '*' $ac_mid`
25382 fi
25383
25384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25385   done
25386 else
25387   echo "$as_me: failed program was:" >&5
25388 sed 's/^/| /' conftest.$ac_ext >&5
25389
25390         ac_lo= ac_hi=
25391 fi
25392
25393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25394 fi
25395
25396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25397 # Binary search between lo and hi bounds.
25398 while test "x$ac_lo" != "x$ac_hi"; do
25399   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25400   cat >conftest.$ac_ext <<_ACEOF
25401 /* confdefs.h.  */
25402 _ACEOF
25403 cat confdefs.h >>conftest.$ac_ext
25404 cat >>conftest.$ac_ext <<_ACEOF
25405 /* end confdefs.h.  */
25406
25407         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25408         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25409         #  error "fake wchar_t"
25410         #endif
25411         #ifdef HAVE_WCHAR_H
25412         #  ifdef __CYGWIN__
25413         #    include <stddef.h>
25414         #  endif
25415         #  include <wchar.h>
25416         #endif
25417         #ifdef HAVE_STDLIB_H
25418         #  include <stdlib.h>
25419         #endif
25420         #include <stdio.h>
25421
25422
25423
25424    typedef wchar_t ac__type_sizeof_;
25425 int
25426 main ()
25427 {
25428 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25429 test_array [0] = 0
25430
25431   ;
25432   return 0;
25433 }
25434 _ACEOF
25435 rm -f conftest.$ac_objext
25436 if { (ac_try="$ac_compile"
25437 case "(($ac_try" in
25438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25439   *) ac_try_echo=$ac_try;;
25440 esac
25441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25442   (eval "$ac_compile") 2>conftest.er1
25443   ac_status=$?
25444   grep -v '^ *+' conftest.er1 >conftest.err
25445   rm -f conftest.er1
25446   cat conftest.err >&5
25447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); } && {
25449          test -z "$ac_c_werror_flag" ||
25450          test ! -s conftest.err
25451        } && test -s conftest.$ac_objext; then
25452   ac_hi=$ac_mid
25453 else
25454   echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457         ac_lo=`expr '(' $ac_mid ')' + 1`
25458 fi
25459
25460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25461 done
25462 case $ac_lo in
25463 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25464 '') if test "$ac_cv_type_wchar_t" = yes; then
25465      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25466 See \`config.log' for more details." >&5
25467 echo "$as_me: error: cannot compute sizeof (wchar_t)
25468 See \`config.log' for more details." >&2;}
25469    { (exit 77); exit 77; }; }
25470    else
25471      ac_cv_sizeof_wchar_t=0
25472    fi ;;
25473 esac
25474 else
25475   cat >conftest.$ac_ext <<_ACEOF
25476 /* confdefs.h.  */
25477 _ACEOF
25478 cat confdefs.h >>conftest.$ac_ext
25479 cat >>conftest.$ac_ext <<_ACEOF
25480 /* end confdefs.h.  */
25481
25482         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25483         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25484         #  error "fake wchar_t"
25485         #endif
25486         #ifdef HAVE_WCHAR_H
25487         #  ifdef __CYGWIN__
25488         #    include <stddef.h>
25489         #  endif
25490         #  include <wchar.h>
25491         #endif
25492         #ifdef HAVE_STDLIB_H
25493         #  include <stdlib.h>
25494         #endif
25495         #include <stdio.h>
25496
25497
25498
25499    typedef wchar_t ac__type_sizeof_;
25500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25502 #include <stdio.h>
25503 #include <stdlib.h>
25504 int
25505 main ()
25506 {
25507
25508   FILE *f = fopen ("conftest.val", "w");
25509   if (! f)
25510     return 1;
25511   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25512     {
25513       long int i = longval ();
25514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25515         return 1;
25516       fprintf (f, "%ld\n", i);
25517     }
25518   else
25519     {
25520       unsigned long int i = ulongval ();
25521       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25522         return 1;
25523       fprintf (f, "%lu\n", i);
25524     }
25525   return ferror (f) || fclose (f) != 0;
25526
25527   ;
25528   return 0;
25529 }
25530 _ACEOF
25531 rm -f conftest$ac_exeext
25532 if { (ac_try="$ac_link"
25533 case "(($ac_try" in
25534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25535   *) ac_try_echo=$ac_try;;
25536 esac
25537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25538   (eval "$ac_link") 2>&5
25539   ac_status=$?
25540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25542   { (case "(($ac_try" in
25543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25544   *) ac_try_echo=$ac_try;;
25545 esac
25546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25547   (eval "$ac_try") 2>&5
25548   ac_status=$?
25549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550   (exit $ac_status); }; }; then
25551   ac_cv_sizeof_wchar_t=`cat conftest.val`
25552 else
25553   echo "$as_me: program exited with status $ac_status" >&5
25554 echo "$as_me: failed program was:" >&5
25555 sed 's/^/| /' conftest.$ac_ext >&5
25556
25557 ( exit $ac_status )
25558 if test "$ac_cv_type_wchar_t" = yes; then
25559      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25560 See \`config.log' for more details." >&5
25561 echo "$as_me: error: cannot compute sizeof (wchar_t)
25562 See \`config.log' for more details." >&2;}
25563    { (exit 77); exit 77; }; }
25564    else
25565      ac_cv_sizeof_wchar_t=0
25566    fi
25567 fi
25568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25569 fi
25570 rm -f conftest.val
25571 fi
25572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25573 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25574
25575
25576
25577 cat >>confdefs.h <<_ACEOF
25578 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25579 _ACEOF
25580
25581
25582 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25583     wxUSE_WCHAR_T=yes
25584 else
25585     wxUSE_WCHAR_T=no
25586 fi
25587
25588 { echo "$as_me:$LINENO: checking for va_copy" >&5
25589 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25590 if test "${wx_cv_func_va_copy+set}" = set; then
25591   echo $ECHO_N "(cached) $ECHO_C" >&6
25592 else
25593
25594         ac_ext=cpp
25595 ac_cpp='$CXXCPP $CPPFLAGS'
25596 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25597 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25598 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25599
25600         cat >conftest.$ac_ext <<_ACEOF
25601
25602             #include <stdarg.h>
25603             void foo(char *f, ...)
25604             {
25605                 va_list ap1, ap2;
25606                 va_start(ap1, f);
25607                 va_copy(ap2, ap1);
25608                 va_end(ap2);
25609                 va_end(ap1);
25610             }
25611             int main()
25612             {
25613                 foo("hi", 17);
25614                 return 0;
25615             }
25616 _ACEOF
25617 rm -f conftest.$ac_objext conftest$ac_exeext
25618 if { (ac_try="$ac_link"
25619 case "(($ac_try" in
25620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25621   *) ac_try_echo=$ac_try;;
25622 esac
25623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25624   (eval "$ac_link") 2>conftest.er1
25625   ac_status=$?
25626   grep -v '^ *+' conftest.er1 >conftest.err
25627   rm -f conftest.er1
25628   cat conftest.err >&5
25629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25630   (exit $ac_status); } && {
25631          test -z "$ac_cxx_werror_flag" ||
25632          test ! -s conftest.err
25633        } && test -s conftest$ac_exeext &&
25634        $as_test_x conftest$ac_exeext; then
25635   wx_cv_func_va_copy=yes
25636 else
25637   echo "$as_me: failed program was:" >&5
25638 sed 's/^/| /' conftest.$ac_ext >&5
25639
25640         wx_cv_func_va_copy=no
25641
25642 fi
25643
25644 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25645       conftest$ac_exeext conftest.$ac_ext
25646         ac_ext=c
25647 ac_cpp='$CPP $CPPFLAGS'
25648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25651
25652
25653
25654 fi
25655 { echo "$as_me:$LINENO: result: $wx_cv_func_va_copy" >&5
25656 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25657
25658 if test $wx_cv_func_va_copy = "yes"; then
25659     cat >>confdefs.h <<\_ACEOF
25660 #define HAVE_VA_COPY 1
25661 _ACEOF
25662
25663 else
25664         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25665 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25666 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25667   echo $ECHO_N "(cached) $ECHO_C" >&6
25668 else
25669
25670             if test "$cross_compiling" = yes; then
25671                   wx_cv_type_va_list_lvalue=yes
25672
25673 else
25674   cat >conftest.$ac_ext <<_ACEOF
25675
25676                 #include <stdarg.h>
25677                 int foo(char *f, ...)
25678                 {
25679                     va_list ap1, ap2;
25680                     va_start(ap1, f);
25681                     ap2 = ap1;
25682                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25683                         return 1;
25684                     va_end(ap2);
25685                     va_end(ap1);
25686                     return 0;
25687                 }
25688                 int main()
25689                 {
25690                     return foo("hi", 17);
25691                 }
25692 _ACEOF
25693 rm -f conftest$ac_exeext
25694 if { (ac_try="$ac_link"
25695 case "(($ac_try" in
25696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697   *) ac_try_echo=$ac_try;;
25698 esac
25699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25700   (eval "$ac_link") 2>&5
25701   ac_status=$?
25702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25703   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25704   { (case "(($ac_try" in
25705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25706   *) ac_try_echo=$ac_try;;
25707 esac
25708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25709   (eval "$ac_try") 2>&5
25710   ac_status=$?
25711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25712   (exit $ac_status); }; }; then
25713   wx_cv_type_va_list_lvalue=yes
25714 else
25715   echo "$as_me: program exited with status $ac_status" >&5
25716 echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719 ( exit $ac_status )
25720 wx_cv_type_va_list_lvalue=no
25721 fi
25722 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25723 fi
25724
25725
25726
25727
25728 fi
25729 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25730 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25731
25732     if test $wx_cv_type_va_list_lvalue != "yes"; then
25733                         cat >>confdefs.h <<\_ACEOF
25734 #define VA_LIST_IS_ARRAY 1
25735 _ACEOF
25736
25737     fi
25738 fi
25739
25740 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25741
25742 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25743 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25744 if test "${wx_cv_have_variadic_macros+set}" = set; then
25745   echo $ECHO_N "(cached) $ECHO_C" >&6
25746 else
25747
25748                         ac_ext=cpp
25749 ac_cpp='$CXXCPP $CPPFLAGS'
25750 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25751 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25752 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25753
25754         cat >conftest.$ac_ext <<_ACEOF
25755 /* confdefs.h.  */
25756 _ACEOF
25757 cat confdefs.h >>conftest.$ac_ext
25758 cat >>conftest.$ac_ext <<_ACEOF
25759 /* end confdefs.h.  */
25760
25761                     #include <stdio.h>
25762                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25763
25764 int
25765 main ()
25766 {
25767
25768                     test("%s %d %p", "test", 1, 0);
25769
25770
25771   ;
25772   return 0;
25773 }
25774 _ACEOF
25775 rm -f conftest.$ac_objext
25776 if { (ac_try="$ac_compile"
25777 case "(($ac_try" in
25778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25779   *) ac_try_echo=$ac_try;;
25780 esac
25781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25782   (eval "$ac_compile") 2>conftest.er1
25783   ac_status=$?
25784   grep -v '^ *+' conftest.er1 >conftest.err
25785   rm -f conftest.er1
25786   cat conftest.err >&5
25787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788   (exit $ac_status); } && {
25789          test -z "$ac_cxx_werror_flag" ||
25790          test ! -s conftest.err
25791        } && test -s conftest.$ac_objext; then
25792   wx_cv_have_variadic_macros=yes
25793 else
25794   echo "$as_me: failed program was:" >&5
25795 sed 's/^/| /' conftest.$ac_ext >&5
25796
25797         wx_cv_have_variadic_macros=no
25798
25799 fi
25800
25801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25802         ac_ext=c
25803 ac_cpp='$CPP $CPPFLAGS'
25804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25807
25808
25809
25810 fi
25811 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25812 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25813
25814 if test $wx_cv_have_variadic_macros = "yes"; then
25815     cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_VARIADIC_MACROS 1
25817 _ACEOF
25818
25819 fi
25820
25821 fi
25822 # Check whether --enable-largefile was given.
25823 if test "${enable_largefile+set}" = set; then
25824   enableval=$enable_largefile;
25825 fi
25826
25827 if test "$enable_largefile" != no; then
25828             wx_largefile=no
25829
25830     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25831 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25832 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25833   echo $ECHO_N "(cached) $ECHO_C" >&6
25834 else
25835
25836           cat >conftest.$ac_ext <<_ACEOF
25837 /* confdefs.h.  */
25838 _ACEOF
25839 cat confdefs.h >>conftest.$ac_ext
25840 cat >>conftest.$ac_ext <<_ACEOF
25841 /* end confdefs.h.  */
25842 #define _FILE_OFFSET_BITS 64
25843                           #include <sys/types.h>
25844 int
25845 main ()
25846 {
25847 typedef struct {
25848     unsigned int field: sizeof(off_t) == 8;
25849 } wxlf;
25850
25851   ;
25852   return 0;
25853 }
25854 _ACEOF
25855 rm -f conftest.$ac_objext
25856 if { (ac_try="$ac_compile"
25857 case "(($ac_try" in
25858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25859   *) ac_try_echo=$ac_try;;
25860 esac
25861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25862   (eval "$ac_compile") 2>conftest.er1
25863   ac_status=$?
25864   grep -v '^ *+' conftest.er1 >conftest.err
25865   rm -f conftest.er1
25866   cat conftest.err >&5
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); } && {
25869          test -z "$ac_c_werror_flag" ||
25870          test ! -s conftest.err
25871        } && test -s conftest.$ac_objext; then
25872   ac_cv_sys_file_offset_bits=64
25873 else
25874   echo "$as_me: failed program was:" >&5
25875 sed 's/^/| /' conftest.$ac_ext >&5
25876
25877         ac_cv_sys_file_offset_bits=no
25878 fi
25879
25880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25881
25882
25883 fi
25884 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
25885 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
25886
25887     if test "$ac_cv_sys_file_offset_bits" != no; then
25888         wx_largefile=yes
25889         cat >>confdefs.h <<_ACEOF
25890 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
25891 _ACEOF
25892
25893     fi
25894
25895     if test "x$wx_largefile" != "xyes"; then
25896
25897     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
25898 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
25899 if test "${ac_cv_sys_large_files+set}" = set; then
25900   echo $ECHO_N "(cached) $ECHO_C" >&6
25901 else
25902
25903           cat >conftest.$ac_ext <<_ACEOF
25904 /* confdefs.h.  */
25905 _ACEOF
25906 cat confdefs.h >>conftest.$ac_ext
25907 cat >>conftest.$ac_ext <<_ACEOF
25908 /* end confdefs.h.  */
25909 #define _LARGE_FILES 1
25910                           #include <sys/types.h>
25911 int
25912 main ()
25913 {
25914 typedef struct {
25915     unsigned int field: sizeof(off_t) == 8;
25916 } wxlf;
25917
25918   ;
25919   return 0;
25920 }
25921 _ACEOF
25922 rm -f conftest.$ac_objext
25923 if { (ac_try="$ac_compile"
25924 case "(($ac_try" in
25925   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25926   *) ac_try_echo=$ac_try;;
25927 esac
25928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25929   (eval "$ac_compile") 2>conftest.er1
25930   ac_status=$?
25931   grep -v '^ *+' conftest.er1 >conftest.err
25932   rm -f conftest.er1
25933   cat conftest.err >&5
25934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25935   (exit $ac_status); } && {
25936          test -z "$ac_c_werror_flag" ||
25937          test ! -s conftest.err
25938        } && test -s conftest.$ac_objext; then
25939   ac_cv_sys_large_files=1
25940 else
25941   echo "$as_me: failed program was:" >&5
25942 sed 's/^/| /' conftest.$ac_ext >&5
25943
25944         ac_cv_sys_large_files=no
25945 fi
25946
25947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25948
25949
25950 fi
25951 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
25952 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
25953
25954     if test "$ac_cv_sys_large_files" != no; then
25955         wx_largefile=yes
25956         cat >>confdefs.h <<_ACEOF
25957 #define _LARGE_FILES $ac_cv_sys_large_files
25958 _ACEOF
25959
25960     fi
25961
25962     fi
25963
25964     { echo "$as_me:$LINENO: checking if large file support is available" >&5
25965 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
25966     if test "x$wx_largefile" = "xyes"; then
25967         cat >>confdefs.h <<\_ACEOF
25968 #define HAVE_LARGEFILE_SUPPORT 1
25969 _ACEOF
25970
25971     fi
25972     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
25973 echo "${ECHO_T}$wx_largefile" >&6; }
25974 fi
25975
25976
25977 if test "x$wx_largefile" = "xyes"; then
25978     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
25979         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
25980
25981                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
25982             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
25983 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
25984 if test "${wx_cv_STDC_EXT_required+set}" = set; then
25985   echo $ECHO_N "(cached) $ECHO_C" >&6
25986 else
25987
25988                     ac_ext=cpp
25989 ac_cpp='$CXXCPP $CPPFLAGS'
25990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25993
25994                     cat >conftest.$ac_ext <<_ACEOF
25995 /* confdefs.h.  */
25996 _ACEOF
25997 cat confdefs.h >>conftest.$ac_ext
25998 cat >>conftest.$ac_ext <<_ACEOF
25999 /* end confdefs.h.  */
26000
26001 int
26002 main ()
26003 {
26004
26005                             #ifndef __STDC_EXT__
26006                                 choke me
26007                             #endif
26008
26009   ;
26010   return 0;
26011 }
26012 _ACEOF
26013 rm -f conftest.$ac_objext
26014 if { (ac_try="$ac_compile"
26015 case "(($ac_try" in
26016   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26017   *) ac_try_echo=$ac_try;;
26018 esac
26019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26020   (eval "$ac_compile") 2>conftest.er1
26021   ac_status=$?
26022   grep -v '^ *+' conftest.er1 >conftest.err
26023   rm -f conftest.er1
26024   cat conftest.err >&5
26025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26026   (exit $ac_status); } && {
26027          test -z "$ac_cxx_werror_flag" ||
26028          test ! -s conftest.err
26029        } && test -s conftest.$ac_objext; then
26030   wx_cv_STDC_EXT_required=no
26031 else
26032   echo "$as_me: failed program was:" >&5
26033 sed 's/^/| /' conftest.$ac_ext >&5
26034
26035         wx_cv_STDC_EXT_required=yes
26036
26037 fi
26038
26039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26040                     ac_ext=c
26041 ac_cpp='$CPP $CPPFLAGS'
26042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26045
26046
26047
26048 fi
26049 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26050 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26051             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26052                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26053             fi
26054         fi
26055     else
26056         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26057     fi
26058         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26059 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26060 if test "${ac_cv_sys_largefile_source+set}" = set; then
26061   echo $ECHO_N "(cached) $ECHO_C" >&6
26062 else
26063   while :; do
26064   cat >conftest.$ac_ext <<_ACEOF
26065 /* confdefs.h.  */
26066 _ACEOF
26067 cat confdefs.h >>conftest.$ac_ext
26068 cat >>conftest.$ac_ext <<_ACEOF
26069 /* end confdefs.h.  */
26070 #include <sys/types.h> /* for off_t */
26071      #include <stdio.h>
26072 int
26073 main ()
26074 {
26075 int (*fp) (FILE *, off_t, int) = fseeko;
26076      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26077   ;
26078   return 0;
26079 }
26080 _ACEOF
26081 rm -f conftest.$ac_objext conftest$ac_exeext
26082 if { (ac_try="$ac_link"
26083 case "(($ac_try" in
26084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26085   *) ac_try_echo=$ac_try;;
26086 esac
26087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26088   (eval "$ac_link") 2>conftest.er1
26089   ac_status=$?
26090   grep -v '^ *+' conftest.er1 >conftest.err
26091   rm -f conftest.er1
26092   cat conftest.err >&5
26093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26094   (exit $ac_status); } && {
26095          test -z "$ac_c_werror_flag" ||
26096          test ! -s conftest.err
26097        } && test -s conftest$ac_exeext &&
26098        $as_test_x conftest$ac_exeext; then
26099   ac_cv_sys_largefile_source=no; break
26100 else
26101   echo "$as_me: failed program was:" >&5
26102 sed 's/^/| /' conftest.$ac_ext >&5
26103
26104
26105 fi
26106
26107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26108       conftest$ac_exeext conftest.$ac_ext
26109   cat >conftest.$ac_ext <<_ACEOF
26110 /* confdefs.h.  */
26111 _ACEOF
26112 cat confdefs.h >>conftest.$ac_ext
26113 cat >>conftest.$ac_ext <<_ACEOF
26114 /* end confdefs.h.  */
26115 #define _LARGEFILE_SOURCE 1
26116 #include <sys/types.h> /* for off_t */
26117      #include <stdio.h>
26118 int
26119 main ()
26120 {
26121 int (*fp) (FILE *, off_t, int) = fseeko;
26122      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26123   ;
26124   return 0;
26125 }
26126 _ACEOF
26127 rm -f conftest.$ac_objext conftest$ac_exeext
26128 if { (ac_try="$ac_link"
26129 case "(($ac_try" in
26130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26131   *) ac_try_echo=$ac_try;;
26132 esac
26133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26134   (eval "$ac_link") 2>conftest.er1
26135   ac_status=$?
26136   grep -v '^ *+' conftest.er1 >conftest.err
26137   rm -f conftest.er1
26138   cat conftest.err >&5
26139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26140   (exit $ac_status); } && {
26141          test -z "$ac_c_werror_flag" ||
26142          test ! -s conftest.err
26143        } && test -s conftest$ac_exeext &&
26144        $as_test_x conftest$ac_exeext; then
26145   ac_cv_sys_largefile_source=1; break
26146 else
26147   echo "$as_me: failed program was:" >&5
26148 sed 's/^/| /' conftest.$ac_ext >&5
26149
26150
26151 fi
26152
26153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26154       conftest$ac_exeext conftest.$ac_ext
26155   ac_cv_sys_largefile_source=unknown
26156   break
26157 done
26158 fi
26159 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26160 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26161 case $ac_cv_sys_largefile_source in #(
26162   no | unknown) ;;
26163   *)
26164 cat >>confdefs.h <<_ACEOF
26165 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26166 _ACEOF
26167 ;;
26168 esac
26169 rm -f conftest*
26170
26171 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26172 # in glibc 2.1.3, but that breaks too many other things.
26173 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26174 if test $ac_cv_sys_largefile_source != unknown; then
26175
26176 cat >>confdefs.h <<\_ACEOF
26177 #define HAVE_FSEEKO 1
26178 _ACEOF
26179
26180 fi
26181
26182     if test "$ac_cv_sys_largefile_source" != no; then
26183         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26184     fi
26185 fi
26186
26187 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26188 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26189 if test "${ac_cv_c_bigendian+set}" = set; then
26190   echo $ECHO_N "(cached) $ECHO_C" >&6
26191 else
26192   ac_cv_c_bigendian=unknown
26193 # See if sys/param.h defines the BYTE_ORDER macro.
26194 cat >conftest.$ac_ext <<_ACEOF
26195 /* confdefs.h.  */
26196 _ACEOF
26197 cat confdefs.h >>conftest.$ac_ext
26198 cat >>conftest.$ac_ext <<_ACEOF
26199 /* end confdefs.h.  */
26200 #include <sys/types.h>
26201 #include <sys/param.h>
26202 int
26203 main ()
26204 {
26205
26206 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26207  bogus endian macros
26208 #endif
26209   ;
26210   return 0;
26211 }
26212 _ACEOF
26213 rm -f conftest.$ac_objext
26214 if { (ac_try="$ac_compile"
26215 case "(($ac_try" in
26216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26217   *) ac_try_echo=$ac_try;;
26218 esac
26219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26220   (eval "$ac_compile") 2>conftest.er1
26221   ac_status=$?
26222   grep -v '^ *+' conftest.er1 >conftest.err
26223   rm -f conftest.er1
26224   cat conftest.err >&5
26225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26226   (exit $ac_status); } && {
26227          test -z "$ac_c_werror_flag" ||
26228          test ! -s conftest.err
26229        } && test -s conftest.$ac_objext; then
26230   # It does; now see whether it defined to BIG_ENDIAN or not.
26231 cat >conftest.$ac_ext <<_ACEOF
26232 /* confdefs.h.  */
26233 _ACEOF
26234 cat confdefs.h >>conftest.$ac_ext
26235 cat >>conftest.$ac_ext <<_ACEOF
26236 /* end confdefs.h.  */
26237 #include <sys/types.h>
26238 #include <sys/param.h>
26239 int
26240 main ()
26241 {
26242
26243 #if BYTE_ORDER != BIG_ENDIAN
26244  not big endian
26245 #endif
26246   ;
26247   return 0;
26248 }
26249 _ACEOF
26250 rm -f conftest.$ac_objext
26251 if { (ac_try="$ac_compile"
26252 case "(($ac_try" in
26253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26254   *) ac_try_echo=$ac_try;;
26255 esac
26256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26257   (eval "$ac_compile") 2>conftest.er1
26258   ac_status=$?
26259   grep -v '^ *+' conftest.er1 >conftest.err
26260   rm -f conftest.er1
26261   cat conftest.err >&5
26262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26263   (exit $ac_status); } && {
26264          test -z "$ac_c_werror_flag" ||
26265          test ! -s conftest.err
26266        } && test -s conftest.$ac_objext; then
26267   ac_cv_c_bigendian=yes
26268 else
26269   echo "$as_me: failed program was:" >&5
26270 sed 's/^/| /' conftest.$ac_ext >&5
26271
26272         ac_cv_c_bigendian=no
26273 fi
26274
26275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26276 else
26277   echo "$as_me: failed program was:" >&5
26278 sed 's/^/| /' conftest.$ac_ext >&5
26279
26280
26281 fi
26282
26283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26284 if test $ac_cv_c_bigendian = unknown; then
26285 if test "$cross_compiling" = yes; then
26286   ac_cv_c_bigendian=unknown
26287 else
26288   cat >conftest.$ac_ext <<_ACEOF
26289 /* confdefs.h.  */
26290 _ACEOF
26291 cat confdefs.h >>conftest.$ac_ext
26292 cat >>conftest.$ac_ext <<_ACEOF
26293 /* end confdefs.h.  */
26294 main () {
26295   /* Are we little or big endian?  From Harbison&Steele.  */
26296   union
26297   {
26298     long l;
26299     char c[sizeof (long)];
26300   } u;
26301   u.l = 1;
26302   exit (u.c[sizeof (long) - 1] == 1);
26303 }
26304 _ACEOF
26305 rm -f conftest$ac_exeext
26306 if { (ac_try="$ac_link"
26307 case "(($ac_try" in
26308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26309   *) ac_try_echo=$ac_try;;
26310 esac
26311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26312   (eval "$ac_link") 2>&5
26313   ac_status=$?
26314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26315   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26316   { (case "(($ac_try" in
26317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26318   *) ac_try_echo=$ac_try;;
26319 esac
26320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26321   (eval "$ac_try") 2>&5
26322   ac_status=$?
26323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26324   (exit $ac_status); }; }; then
26325   ac_cv_c_bigendian=no
26326 else
26327   echo "$as_me: program exited with status $ac_status" >&5
26328 echo "$as_me: failed program was:" >&5
26329 sed 's/^/| /' conftest.$ac_ext >&5
26330
26331 ( exit $ac_status )
26332 ac_cv_c_bigendian=yes
26333 fi
26334 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26335 fi
26336
26337
26338 fi
26339 fi
26340 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26341 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26342 if test $ac_cv_c_bigendian = unknown; then
26343   { 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
26344 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;}
26345 fi
26346 if test $ac_cv_c_bigendian = yes; then
26347   cat >>confdefs.h <<\_ACEOF
26348 #define WORDS_BIGENDIAN 1
26349 _ACEOF
26350
26351 fi
26352
26353
26354
26355
26356     ac_ext=cpp
26357 ac_cpp='$CXXCPP $CPPFLAGS'
26358 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26359 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26360 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26361
26362
26363
26364 for ac_header in iostream
26365 do
26366 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26370   echo $ECHO_N "(cached) $ECHO_C" >&6
26371 else
26372   cat >conftest.$ac_ext <<_ACEOF
26373 /* confdefs.h.  */
26374 _ACEOF
26375 cat confdefs.h >>conftest.$ac_ext
26376 cat >>conftest.$ac_ext <<_ACEOF
26377 /* end confdefs.h.  */
26378
26379
26380 #include <$ac_header>
26381 _ACEOF
26382 rm -f conftest.$ac_objext
26383 if { (ac_try="$ac_compile"
26384 case "(($ac_try" in
26385   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26386   *) ac_try_echo=$ac_try;;
26387 esac
26388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26389   (eval "$ac_compile") 2>conftest.er1
26390   ac_status=$?
26391   grep -v '^ *+' conftest.er1 >conftest.err
26392   rm -f conftest.er1
26393   cat conftest.err >&5
26394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26395   (exit $ac_status); } && {
26396          test -z "$ac_cxx_werror_flag" ||
26397          test ! -s conftest.err
26398        } && test -s conftest.$ac_objext; then
26399   eval "$as_ac_Header=yes"
26400 else
26401   echo "$as_me: failed program was:" >&5
26402 sed 's/^/| /' conftest.$ac_ext >&5
26403
26404         eval "$as_ac_Header=no"
26405 fi
26406
26407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 fi
26409 ac_res=`eval echo '${'$as_ac_Header'}'`
26410                { echo "$as_me:$LINENO: result: $ac_res" >&5
26411 echo "${ECHO_T}$ac_res" >&6; }
26412 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26413   cat >>confdefs.h <<_ACEOF
26414 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26415 _ACEOF
26416
26417 fi
26418
26419 done
26420
26421
26422     if test "$ac_cv_header_iostream" = "yes" ; then
26423       :
26424     else
26425       cat >>confdefs.h <<\_ACEOF
26426 #define wxUSE_IOSTREAMH 1
26427 _ACEOF
26428
26429     fi
26430
26431     ac_ext=c
26432 ac_cpp='$CPP $CPPFLAGS'
26433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26436
26437
26438
26439
26440   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26441 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26442 if test "${wx_cv_cpp_bool+set}" = set; then
26443   echo $ECHO_N "(cached) $ECHO_C" >&6
26444 else
26445
26446
26447     ac_ext=cpp
26448 ac_cpp='$CXXCPP $CPPFLAGS'
26449 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26450 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26451 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26452
26453
26454     cat >conftest.$ac_ext <<_ACEOF
26455 /* confdefs.h.  */
26456 _ACEOF
26457 cat confdefs.h >>conftest.$ac_ext
26458 cat >>conftest.$ac_ext <<_ACEOF
26459 /* end confdefs.h.  */
26460
26461
26462 int
26463 main ()
26464 {
26465
26466         bool b = true;
26467
26468         return 0;
26469
26470   ;
26471   return 0;
26472 }
26473 _ACEOF
26474 rm -f conftest.$ac_objext
26475 if { (ac_try="$ac_compile"
26476 case "(($ac_try" in
26477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26478   *) ac_try_echo=$ac_try;;
26479 esac
26480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26481   (eval "$ac_compile") 2>conftest.er1
26482   ac_status=$?
26483   grep -v '^ *+' conftest.er1 >conftest.err
26484   rm -f conftest.er1
26485   cat conftest.err >&5
26486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487   (exit $ac_status); } && {
26488          test -z "$ac_cxx_werror_flag" ||
26489          test ! -s conftest.err
26490        } && test -s conftest.$ac_objext; then
26491
26492         wx_cv_cpp_bool=yes
26493
26494 else
26495   echo "$as_me: failed program was:" >&5
26496 sed 's/^/| /' conftest.$ac_ext >&5
26497
26498
26499         wx_cv_cpp_bool=no
26500
26501
26502 fi
26503
26504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26505
26506     ac_ext=c
26507 ac_cpp='$CPP $CPPFLAGS'
26508 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26509 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26511
26512
26513 fi
26514 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26515 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26516
26517   if test "$wx_cv_cpp_bool" = "yes"; then
26518     cat >>confdefs.h <<\_ACEOF
26519 #define HAVE_BOOL 1
26520 _ACEOF
26521
26522   fi
26523
26524
26525
26526   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26527 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26528 if test "${wx_cv_explicit+set}" = set; then
26529   echo $ECHO_N "(cached) $ECHO_C" >&6
26530 else
26531
26532
26533     ac_ext=cpp
26534 ac_cpp='$CXXCPP $CPPFLAGS'
26535 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26536 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26537 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26538
26539
26540             cat >conftest.$ac_ext <<_ACEOF
26541 /* confdefs.h.  */
26542 _ACEOF
26543 cat confdefs.h >>conftest.$ac_ext
26544 cat >>conftest.$ac_ext <<_ACEOF
26545 /* end confdefs.h.  */
26546
26547         class Foo { public: explicit Foo(int) {} };
26548
26549 int
26550 main ()
26551 {
26552
26553         return 0;
26554
26555   ;
26556   return 0;
26557 }
26558 _ACEOF
26559 rm -f conftest.$ac_objext
26560 if { (ac_try="$ac_compile"
26561 case "(($ac_try" in
26562   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26563   *) ac_try_echo=$ac_try;;
26564 esac
26565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26566   (eval "$ac_compile") 2>conftest.er1
26567   ac_status=$?
26568   grep -v '^ *+' conftest.er1 >conftest.err
26569   rm -f conftest.er1
26570   cat conftest.err >&5
26571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26572   (exit $ac_status); } && {
26573          test -z "$ac_cxx_werror_flag" ||
26574          test ! -s conftest.err
26575        } && test -s conftest.$ac_objext; then
26576
26577         cat >conftest.$ac_ext <<_ACEOF
26578 /* confdefs.h.  */
26579 _ACEOF
26580 cat confdefs.h >>conftest.$ac_ext
26581 cat >>conftest.$ac_ext <<_ACEOF
26582 /* end confdefs.h.  */
26583
26584                 class Foo { public: explicit Foo(int) {} };
26585                 static void TakeFoo(const Foo& foo) { }
26586
26587 int
26588 main ()
26589 {
26590
26591                 TakeFoo(17);
26592                 return 0;
26593
26594   ;
26595   return 0;
26596 }
26597 _ACEOF
26598 rm -f conftest.$ac_objext
26599 if { (ac_try="$ac_compile"
26600 case "(($ac_try" in
26601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26602   *) ac_try_echo=$ac_try;;
26603 esac
26604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26605   (eval "$ac_compile") 2>conftest.er1
26606   ac_status=$?
26607   grep -v '^ *+' conftest.er1 >conftest.err
26608   rm -f conftest.er1
26609   cat conftest.err >&5
26610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26611   (exit $ac_status); } && {
26612          test -z "$ac_cxx_werror_flag" ||
26613          test ! -s conftest.err
26614        } && test -s conftest.$ac_objext; then
26615   wx_cv_explicit=no
26616 else
26617   echo "$as_me: failed program was:" >&5
26618 sed 's/^/| /' conftest.$ac_ext >&5
26619
26620         wx_cv_explicit=yes
26621
26622 fi
26623
26624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26625
26626 else
26627   echo "$as_me: failed program was:" >&5
26628 sed 's/^/| /' conftest.$ac_ext >&5
26629
26630         wx_cv_explicit=no
26631
26632 fi
26633
26634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26635
26636     ac_ext=c
26637 ac_cpp='$CPP $CPPFLAGS'
26638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26641
26642
26643 fi
26644 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26645 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26646
26647   if test "$wx_cv_explicit" = "yes"; then
26648     cat >>confdefs.h <<\_ACEOF
26649 #define HAVE_EXPLICIT 1
26650 _ACEOF
26651
26652   fi
26653
26654
26655 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26656 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26657 if test "${ac_cv_cxx_const_cast+set}" = set; then
26658   echo $ECHO_N "(cached) $ECHO_C" >&6
26659 else
26660
26661  ac_ext=cpp
26662 ac_cpp='$CXXCPP $CPPFLAGS'
26663 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26664 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26665 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26666
26667  cat >conftest.$ac_ext <<_ACEOF
26668 /* confdefs.h.  */
26669 _ACEOF
26670 cat confdefs.h >>conftest.$ac_ext
26671 cat >>conftest.$ac_ext <<_ACEOF
26672 /* end confdefs.h.  */
26673
26674 int
26675 main ()
26676 {
26677 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26678   ;
26679   return 0;
26680 }
26681 _ACEOF
26682 rm -f conftest.$ac_objext
26683 if { (ac_try="$ac_compile"
26684 case "(($ac_try" in
26685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26686   *) ac_try_echo=$ac_try;;
26687 esac
26688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26689   (eval "$ac_compile") 2>conftest.er1
26690   ac_status=$?
26691   grep -v '^ *+' conftest.er1 >conftest.err
26692   rm -f conftest.er1
26693   cat conftest.err >&5
26694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695   (exit $ac_status); } && {
26696          test -z "$ac_cxx_werror_flag" ||
26697          test ! -s conftest.err
26698        } && test -s conftest.$ac_objext; then
26699   ac_cv_cxx_const_cast=yes
26700 else
26701   echo "$as_me: failed program was:" >&5
26702 sed 's/^/| /' conftest.$ac_ext >&5
26703
26704         ac_cv_cxx_const_cast=no
26705 fi
26706
26707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26708  ac_ext=c
26709 ac_cpp='$CPP $CPPFLAGS'
26710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26713
26714
26715 fi
26716 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26717 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26718 if test "$ac_cv_cxx_const_cast" = yes; then
26719
26720 cat >>confdefs.h <<\_ACEOF
26721 #define HAVE_CONST_CAST
26722 _ACEOF
26723
26724 fi
26725
26726 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26727 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26728 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26729   echo $ECHO_N "(cached) $ECHO_C" >&6
26730 else
26731
26732  ac_ext=cpp
26733 ac_cpp='$CXXCPP $CPPFLAGS'
26734 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26735 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26736 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26737
26738  cat >conftest.$ac_ext <<_ACEOF
26739 /* confdefs.h.  */
26740 _ACEOF
26741 cat confdefs.h >>conftest.$ac_ext
26742 cat >>conftest.$ac_ext <<_ACEOF
26743 /* end confdefs.h.  */
26744 #include <typeinfo>
26745 class Base { public : Base () {} virtual void f () = 0;};
26746 class Derived : public Base { public : Derived () {} virtual void f () {} };
26747 class Unrelated { public : Unrelated () {} };
26748 int g (Unrelated&) { return 0; }
26749 int
26750 main ()
26751 {
26752
26753 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26754   ;
26755   return 0;
26756 }
26757 _ACEOF
26758 rm -f conftest.$ac_objext
26759 if { (ac_try="$ac_compile"
26760 case "(($ac_try" in
26761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26762   *) ac_try_echo=$ac_try;;
26763 esac
26764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26765   (eval "$ac_compile") 2>conftest.er1
26766   ac_status=$?
26767   grep -v '^ *+' conftest.er1 >conftest.err
26768   rm -f conftest.er1
26769   cat conftest.err >&5
26770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26771   (exit $ac_status); } && {
26772          test -z "$ac_cxx_werror_flag" ||
26773          test ! -s conftest.err
26774        } && test -s conftest.$ac_objext; then
26775   ac_cv_cxx_reinterpret_cast=yes
26776 else
26777   echo "$as_me: failed program was:" >&5
26778 sed 's/^/| /' conftest.$ac_ext >&5
26779
26780         ac_cv_cxx_reinterpret_cast=no
26781 fi
26782
26783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26784  ac_ext=c
26785 ac_cpp='$CPP $CPPFLAGS'
26786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26789
26790
26791 fi
26792 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26793 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26794 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26795
26796 cat >>confdefs.h <<\_ACEOF
26797 #define HAVE_REINTERPRET_CAST
26798 _ACEOF
26799
26800 fi
26801
26802 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26803 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26804 if test "${ac_cv_cxx_static_cast+set}" = set; then
26805   echo $ECHO_N "(cached) $ECHO_C" >&6
26806 else
26807
26808  ac_ext=cpp
26809 ac_cpp='$CXXCPP $CPPFLAGS'
26810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26813
26814  cat >conftest.$ac_ext <<_ACEOF
26815 /* confdefs.h.  */
26816 _ACEOF
26817 cat confdefs.h >>conftest.$ac_ext
26818 cat >>conftest.$ac_ext <<_ACEOF
26819 /* end confdefs.h.  */
26820 #include <typeinfo>
26821 class Base { public : Base () {} virtual void f () = 0; };
26822 class Derived : public Base { public : Derived () {} virtual void f () {} };
26823 int g (Derived&) { return 0; }
26824 int
26825 main ()
26826 {
26827
26828 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26829   ;
26830   return 0;
26831 }
26832 _ACEOF
26833 rm -f conftest.$ac_objext
26834 if { (ac_try="$ac_compile"
26835 case "(($ac_try" in
26836   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26837   *) ac_try_echo=$ac_try;;
26838 esac
26839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26840   (eval "$ac_compile") 2>conftest.er1
26841   ac_status=$?
26842   grep -v '^ *+' conftest.er1 >conftest.err
26843   rm -f conftest.er1
26844   cat conftest.err >&5
26845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26846   (exit $ac_status); } && {
26847          test -z "$ac_cxx_werror_flag" ||
26848          test ! -s conftest.err
26849        } && test -s conftest.$ac_objext; then
26850   ac_cv_cxx_static_cast=yes
26851 else
26852   echo "$as_me: failed program was:" >&5
26853 sed 's/^/| /' conftest.$ac_ext >&5
26854
26855         ac_cv_cxx_static_cast=no
26856 fi
26857
26858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26859  ac_ext=c
26860 ac_cpp='$CPP $CPPFLAGS'
26861 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26862 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26863 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26864
26865
26866 fi
26867 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
26868 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
26869 if test "$ac_cv_cxx_static_cast" = yes; then
26870
26871 cat >>confdefs.h <<\_ACEOF
26872 #define HAVE_STATIC_CAST
26873 _ACEOF
26874
26875 fi
26876
26877
26878 if test "x$SUNCXX" = xyes; then
26879     CXXFLAGS="-features=tmplife $CXXFLAGS"
26880 fi
26881
26882 if test "x$SUNCC" = xyes; then
26883     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
26884 fi
26885
26886 if test "x$SGICC" = "xyes"; then
26887     CFLAGS="-woff 3970 $CFLAGS"
26888 fi
26889 if test "x$SGICXX" = "xyes"; then
26890     CXXFLAGS="-woff 3970 $CXXFLAGS"
26891 fi
26892
26893 if test "x$HPCC" = "xyes"; then
26894                     CFLAGS="+W 2011,2450 $CFLAGS"
26895 fi
26896 if test "x$HPCXX" = "xyes"; then
26897             CXXFLAGS="+W 2340 $CXXFLAGS"
26898 fi
26899
26900 if test "x$COMPAQCXX" = "xyes"; then
26901                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
26902 fi
26903
26904 ac_ext=cpp
26905 ac_cpp='$CXXCPP $CPPFLAGS'
26906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26909
26910
26911 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
26912     if test "$wxUSE_UNICODE" = "yes"; then
26913         std_string="std::wstring"
26914         char_type="wchar_t"
26915     else
26916         std_string="std::string"
26917         char_type="char"
26918     fi
26919
26920         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
26921 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
26922 if test "${wx_cv_class_stdstring+set}" = set; then
26923   echo $ECHO_N "(cached) $ECHO_C" >&6
26924 else
26925
26926             cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932 #include <string>
26933 int
26934 main ()
26935 {
26936 $std_string foo;
26937   ;
26938   return 0;
26939 }
26940 _ACEOF
26941 rm -f conftest.$ac_objext
26942 if { (ac_try="$ac_compile"
26943 case "(($ac_try" in
26944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26945   *) ac_try_echo=$ac_try;;
26946 esac
26947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26948   (eval "$ac_compile") 2>conftest.er1
26949   ac_status=$?
26950   grep -v '^ *+' conftest.er1 >conftest.err
26951   rm -f conftest.er1
26952   cat conftest.err >&5
26953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26954   (exit $ac_status); } && {
26955          test -z "$ac_cxx_werror_flag" ||
26956          test ! -s conftest.err
26957        } && test -s conftest.$ac_objext; then
26958   wx_cv_class_stdstring=yes
26959 else
26960   echo "$as_me: failed program was:" >&5
26961 sed 's/^/| /' conftest.$ac_ext >&5
26962
26963         wx_cv_class_stdstring=no
26964
26965 fi
26966
26967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26968
26969
26970 fi
26971 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
26972 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
26973
26974     if test "$wx_cv_class_stdstring" = yes; then
26975         if test "$wxUSE_UNICODE" = "yes"; then
26976             cat >>confdefs.h <<\_ACEOF
26977 #define HAVE_STD_WSTRING 1
26978 _ACEOF
26979
26980         fi
26981                     else
26982         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
26983 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
26984 if test "${wx_cv_class_stdbasicstring+set}" = set; then
26985   echo $ECHO_N "(cached) $ECHO_C" >&6
26986 else
26987
26988                 cat >conftest.$ac_ext <<_ACEOF
26989 /* confdefs.h.  */
26990 _ACEOF
26991 cat confdefs.h >>conftest.$ac_ext
26992 cat >>conftest.$ac_ext <<_ACEOF
26993 /* end confdefs.h.  */
26994
26995                     #ifdef HAVE_WCHAR_H
26996                     #  ifdef __CYGWIN__
26997                     #    include <stddef.h>
26998                     #  endif
26999                     #  include <wchar.h>
27000                     #endif
27001                     #ifdef HAVE_STDLIB_H
27002                     #  include <stdlib.h>
27003                     #endif
27004                     #include <stdio.h>
27005                     #include <string>
27006
27007 int
27008 main ()
27009 {
27010 std::basic_string<$char_type> foo;
27011                      const $char_type* dummy = foo.c_str();
27012   ;
27013   return 0;
27014 }
27015 _ACEOF
27016 rm -f conftest.$ac_objext
27017 if { (ac_try="$ac_compile"
27018 case "(($ac_try" in
27019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27020   *) ac_try_echo=$ac_try;;
27021 esac
27022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27023   (eval "$ac_compile") 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } && {
27030          test -z "$ac_cxx_werror_flag" ||
27031          test ! -s conftest.err
27032        } && test -s conftest.$ac_objext; then
27033   wx_cv_class_stdbasicstring=yes
27034 else
27035   echo "$as_me: failed program was:" >&5
27036 sed 's/^/| /' conftest.$ac_ext >&5
27037
27038         wx_cv_class_stdbasicstring=no
27039
27040 fi
27041
27042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27043
27044
27045 fi
27046 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27047 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27048
27049         if test "$wx_cv_class_stdbasicstring" != yes; then
27050             if test "$wxUSE_STL" = "yes"; then
27051                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27052 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27053    { (exit 1); exit 1; }; }
27054             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27055                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27056 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27057    { (exit 1); exit 1; }; }
27058             else
27059                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27060 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27061                 wxUSE_STD_STRING=no
27062             fi
27063         fi
27064     fi
27065 fi
27066
27067 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27068     { echo "$as_me:$LINENO: checking for std::istream" >&5
27069 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27070 if test "${ac_cv_type_std__istream+set}" = set; then
27071   echo $ECHO_N "(cached) $ECHO_C" >&6
27072 else
27073   cat >conftest.$ac_ext <<_ACEOF
27074 /* confdefs.h.  */
27075 _ACEOF
27076 cat confdefs.h >>conftest.$ac_ext
27077 cat >>conftest.$ac_ext <<_ACEOF
27078 /* end confdefs.h.  */
27079 #include <iostream>
27080
27081 typedef std::istream ac__type_new_;
27082 int
27083 main ()
27084 {
27085 if ((ac__type_new_ *) 0)
27086   return 0;
27087 if (sizeof (ac__type_new_))
27088   return 0;
27089   ;
27090   return 0;
27091 }
27092 _ACEOF
27093 rm -f conftest.$ac_objext
27094 if { (ac_try="$ac_compile"
27095 case "(($ac_try" in
27096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27097   *) ac_try_echo=$ac_try;;
27098 esac
27099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27100   (eval "$ac_compile") 2>conftest.er1
27101   ac_status=$?
27102   grep -v '^ *+' conftest.er1 >conftest.err
27103   rm -f conftest.er1
27104   cat conftest.err >&5
27105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27106   (exit $ac_status); } && {
27107          test -z "$ac_cxx_werror_flag" ||
27108          test ! -s conftest.err
27109        } && test -s conftest.$ac_objext; then
27110   ac_cv_type_std__istream=yes
27111 else
27112   echo "$as_me: failed program was:" >&5
27113 sed 's/^/| /' conftest.$ac_ext >&5
27114
27115         ac_cv_type_std__istream=no
27116 fi
27117
27118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27119 fi
27120 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27121 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27122 if test $ac_cv_type_std__istream = yes; then
27123
27124 cat >>confdefs.h <<_ACEOF
27125 #define HAVE_STD__ISTREAM 1
27126 _ACEOF
27127
27128
27129 else
27130   wxUSE_STD_IOSTREAM=no
27131 fi
27132 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27133 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27134 if test "${ac_cv_type_std__ostream+set}" = set; then
27135   echo $ECHO_N "(cached) $ECHO_C" >&6
27136 else
27137   cat >conftest.$ac_ext <<_ACEOF
27138 /* confdefs.h.  */
27139 _ACEOF
27140 cat confdefs.h >>conftest.$ac_ext
27141 cat >>conftest.$ac_ext <<_ACEOF
27142 /* end confdefs.h.  */
27143 #include <iostream>
27144
27145 typedef std::ostream ac__type_new_;
27146 int
27147 main ()
27148 {
27149 if ((ac__type_new_ *) 0)
27150   return 0;
27151 if (sizeof (ac__type_new_))
27152   return 0;
27153   ;
27154   return 0;
27155 }
27156 _ACEOF
27157 rm -f conftest.$ac_objext
27158 if { (ac_try="$ac_compile"
27159 case "(($ac_try" in
27160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27161   *) ac_try_echo=$ac_try;;
27162 esac
27163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27164   (eval "$ac_compile") 2>conftest.er1
27165   ac_status=$?
27166   grep -v '^ *+' conftest.er1 >conftest.err
27167   rm -f conftest.er1
27168   cat conftest.err >&5
27169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27170   (exit $ac_status); } && {
27171          test -z "$ac_cxx_werror_flag" ||
27172          test ! -s conftest.err
27173        } && test -s conftest.$ac_objext; then
27174   ac_cv_type_std__ostream=yes
27175 else
27176   echo "$as_me: failed program was:" >&5
27177 sed 's/^/| /' conftest.$ac_ext >&5
27178
27179         ac_cv_type_std__ostream=no
27180 fi
27181
27182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27183 fi
27184 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27185 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27186 if test $ac_cv_type_std__ostream = yes; then
27187
27188 cat >>confdefs.h <<_ACEOF
27189 #define HAVE_STD__OSTREAM 1
27190 _ACEOF
27191
27192
27193 else
27194   wxUSE_STD_IOSTREAM=no
27195 fi
27196
27197
27198     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27199         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27200             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27201 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27202    { (exit 1); exit 1; }; }
27203         else
27204             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27205 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27206         fi
27207     fi
27208 fi
27209
27210 if test "$wxUSE_STL" = "yes"; then
27211         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27212 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27213 if test "${wx_cv_lib_stl+set}" = set; then
27214   echo $ECHO_N "(cached) $ECHO_C" >&6
27215 else
27216   cat >conftest.$ac_ext <<_ACEOF
27217 /* confdefs.h.  */
27218 _ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h.  */
27222 #include <string>
27223             #include <functional>
27224             #include <algorithm>
27225             #include <vector>
27226             #include <list>
27227 int
27228 main ()
27229 {
27230 std::vector<int> moo;
27231              std::list<int> foo;
27232              std::vector<int>::iterator it =
27233                  std::find_if(moo.begin(), moo.end(),
27234                               std::bind2nd(std::less<int>(), 3));
27235   ;
27236   return 0;
27237 }
27238 _ACEOF
27239 rm -f conftest.$ac_objext
27240 if { (ac_try="$ac_compile"
27241 case "(($ac_try" in
27242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27243   *) ac_try_echo=$ac_try;;
27244 esac
27245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27246   (eval "$ac_compile") 2>conftest.er1
27247   ac_status=$?
27248   grep -v '^ *+' conftest.er1 >conftest.err
27249   rm -f conftest.er1
27250   cat conftest.err >&5
27251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252   (exit $ac_status); } && {
27253          test -z "$ac_cxx_werror_flag" ||
27254          test ! -s conftest.err
27255        } && test -s conftest.$ac_objext; then
27256   wx_cv_lib_stl=yes
27257 else
27258   echo "$as_me: failed program was:" >&5
27259 sed 's/^/| /' conftest.$ac_ext >&5
27260
27261         wx_cv_lib_stl=no
27262
27263 fi
27264
27265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27266
27267 fi
27268 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27269 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27270
27271     if test "$wx_cv_lib_stl" != yes; then
27272          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27273 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27274    { (exit 1); exit 1; }; }
27275     fi
27276
27277         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27278 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27279 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27280   echo $ECHO_N "(cached) $ECHO_C" >&6
27281 else
27282   cat >conftest.$ac_ext <<_ACEOF
27283 /* confdefs.h.  */
27284 _ACEOF
27285 cat confdefs.h >>conftest.$ac_ext
27286 cat >>conftest.$ac_ext <<_ACEOF
27287 /* end confdefs.h.  */
27288 #include <string>
27289 int
27290 main ()
27291 {
27292 std::string foo, bar;
27293             foo.compare(bar);
27294             foo.compare(1, 1, bar);
27295             foo.compare(1, 1, bar, 1, 1);
27296             foo.compare("");
27297             foo.compare(1, 1, "");
27298             foo.compare(1, 1, "", 2);
27299   ;
27300   return 0;
27301 }
27302 _ACEOF
27303 rm -f conftest.$ac_objext
27304 if { (ac_try="$ac_compile"
27305 case "(($ac_try" in
27306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27307   *) ac_try_echo=$ac_try;;
27308 esac
27309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27310   (eval "$ac_compile") 2>conftest.er1
27311   ac_status=$?
27312   grep -v '^ *+' conftest.er1 >conftest.err
27313   rm -f conftest.er1
27314   cat conftest.err >&5
27315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27316   (exit $ac_status); } && {
27317          test -z "$ac_cxx_werror_flag" ||
27318          test ! -s conftest.err
27319        } && test -s conftest.$ac_objext; then
27320   wx_cv_func_stdstring_compare=yes
27321 else
27322   echo "$as_me: failed program was:" >&5
27323 sed 's/^/| /' conftest.$ac_ext >&5
27324
27325         wx_cv_func_stdstring_compare=no
27326
27327 fi
27328
27329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27330
27331 fi
27332 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27333 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27334
27335     if test "$wx_cv_func_stdstring_compare" = yes; then
27336         cat >>confdefs.h <<\_ACEOF
27337 #define HAVE_STD_STRING_COMPARE 1
27338 _ACEOF
27339
27340     fi
27341
27342         { echo "$as_me:$LINENO: checking for hash_map" >&5
27343 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27344 if test "${ac_cv_header_hash_map+set}" = set; then
27345   echo $ECHO_N "(cached) $ECHO_C" >&6
27346 else
27347   cat >conftest.$ac_ext <<_ACEOF
27348 /* confdefs.h.  */
27349 _ACEOF
27350 cat confdefs.h >>conftest.$ac_ext
27351 cat >>conftest.$ac_ext <<_ACEOF
27352 /* end confdefs.h.  */
27353
27354
27355
27356 #include <hash_map>
27357 _ACEOF
27358 rm -f conftest.$ac_objext
27359 if { (ac_try="$ac_compile"
27360 case "(($ac_try" in
27361   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27362   *) ac_try_echo=$ac_try;;
27363 esac
27364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27365   (eval "$ac_compile") 2>conftest.er1
27366   ac_status=$?
27367   grep -v '^ *+' conftest.er1 >conftest.err
27368   rm -f conftest.er1
27369   cat conftest.err >&5
27370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27371   (exit $ac_status); } && {
27372          test -z "$ac_cxx_werror_flag" ||
27373          test ! -s conftest.err
27374        } && test -s conftest.$ac_objext; then
27375   ac_cv_header_hash_map=yes
27376 else
27377   echo "$as_me: failed program was:" >&5
27378 sed 's/^/| /' conftest.$ac_ext >&5
27379
27380         ac_cv_header_hash_map=no
27381 fi
27382
27383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27384 fi
27385 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27386 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27387 if test $ac_cv_header_hash_map = yes; then
27388   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27389 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27390 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27391   echo $ECHO_N "(cached) $ECHO_C" >&6
27392 else
27393   cat >conftest.$ac_ext <<_ACEOF
27394 /* confdefs.h.  */
27395 _ACEOF
27396 cat confdefs.h >>conftest.$ac_ext
27397 cat >>conftest.$ac_ext <<_ACEOF
27398 /* end confdefs.h.  */
27399 #include <hash_map>
27400                 #include <hash_set>
27401 int
27402 main ()
27403 {
27404 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27405                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27406   ;
27407   return 0;
27408 }
27409 _ACEOF
27410 rm -f conftest.$ac_objext
27411 if { (ac_try="$ac_compile"
27412 case "(($ac_try" in
27413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27414   *) ac_try_echo=$ac_try;;
27415 esac
27416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27417   (eval "$ac_compile") 2>conftest.er1
27418   ac_status=$?
27419   grep -v '^ *+' conftest.er1 >conftest.err
27420   rm -f conftest.er1
27421   cat conftest.err >&5
27422   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27423   (exit $ac_status); } && {
27424          test -z "$ac_cxx_werror_flag" ||
27425          test ! -s conftest.err
27426        } && test -s conftest.$ac_objext; then
27427   wx_cv_class_stdhashmapset=yes
27428 else
27429   echo "$as_me: failed program was:" >&5
27430 sed 's/^/| /' conftest.$ac_ext >&5
27431
27432         wx_cv_class_stdhashmapset=no
27433 fi
27434
27435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27436
27437
27438 fi
27439 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27440 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27441 fi
27442
27443
27444
27445     if test "$wx_cv_class_stdhashmapset" = yes; then
27446         cat >>confdefs.h <<\_ACEOF
27447 #define HAVE_HASH_MAP 1
27448 _ACEOF
27449
27450         cat >>confdefs.h <<\_ACEOF
27451 #define HAVE_STD_HASH_MAP 1
27452 _ACEOF
27453
27454     fi
27455
27456     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27457 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27458 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27459   echo $ECHO_N "(cached) $ECHO_C" >&6
27460 else
27461   cat >conftest.$ac_ext <<_ACEOF
27462 /* confdefs.h.  */
27463 _ACEOF
27464 cat confdefs.h >>conftest.$ac_ext
27465 cat >>conftest.$ac_ext <<_ACEOF
27466 /* end confdefs.h.  */
27467
27468
27469
27470 #include <ext/hash_map>
27471 _ACEOF
27472 rm -f conftest.$ac_objext
27473 if { (ac_try="$ac_compile"
27474 case "(($ac_try" in
27475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27476   *) ac_try_echo=$ac_try;;
27477 esac
27478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27479   (eval "$ac_compile") 2>conftest.er1
27480   ac_status=$?
27481   grep -v '^ *+' conftest.er1 >conftest.err
27482   rm -f conftest.er1
27483   cat conftest.err >&5
27484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27485   (exit $ac_status); } && {
27486          test -z "$ac_cxx_werror_flag" ||
27487          test ! -s conftest.err
27488        } && test -s conftest.$ac_objext; then
27489   ac_cv_header_ext_hash_map=yes
27490 else
27491   echo "$as_me: failed program was:" >&5
27492 sed 's/^/| /' conftest.$ac_ext >&5
27493
27494         ac_cv_header_ext_hash_map=no
27495 fi
27496
27497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27498 fi
27499 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27500 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27501 if test $ac_cv_header_ext_hash_map = yes; then
27502   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27503 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27504 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27505   echo $ECHO_N "(cached) $ECHO_C" >&6
27506 else
27507   cat >conftest.$ac_ext <<_ACEOF
27508 /* confdefs.h.  */
27509 _ACEOF
27510 cat confdefs.h >>conftest.$ac_ext
27511 cat >>conftest.$ac_ext <<_ACEOF
27512 /* end confdefs.h.  */
27513 #include <ext/hash_map>
27514                 #include <ext/hash_set>
27515 int
27516 main ()
27517 {
27518 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27519                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27520   ;
27521   return 0;
27522 }
27523 _ACEOF
27524 rm -f conftest.$ac_objext
27525 if { (ac_try="$ac_compile"
27526 case "(($ac_try" in
27527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27528   *) ac_try_echo=$ac_try;;
27529 esac
27530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27531   (eval "$ac_compile") 2>conftest.er1
27532   ac_status=$?
27533   grep -v '^ *+' conftest.er1 >conftest.err
27534   rm -f conftest.er1
27535   cat conftest.err >&5
27536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27537   (exit $ac_status); } && {
27538          test -z "$ac_cxx_werror_flag" ||
27539          test ! -s conftest.err
27540        } && test -s conftest.$ac_objext; then
27541   wx_cv_class_gnuhashmapset=yes
27542 else
27543   echo "$as_me: failed program was:" >&5
27544 sed 's/^/| /' conftest.$ac_ext >&5
27545
27546         wx_cv_class_gnuhashmapset=no
27547 fi
27548
27549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27550
27551
27552 fi
27553 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27554 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27555 fi
27556
27557
27558
27559     if test "$wx_cv_class_gnuhashmapset" = yes; then
27560          cat >>confdefs.h <<\_ACEOF
27561 #define HAVE_EXT_HASH_MAP 1
27562 _ACEOF
27563
27564          cat >>confdefs.h <<\_ACEOF
27565 #define HAVE_GNU_CXX_HASH_MAP 1
27566 _ACEOF
27567
27568     fi
27569 fi
27570
27571
27572
27573   if test -n "$GCC"; then
27574     { echo "$as_me:$LINENO: checking for __sync_fetch_* builtins" >&5
27575 echo $ECHO_N "checking for __sync_fetch_* builtins... $ECHO_C" >&6; }
27576     if test "${wx_cv_cc_gcc_atomic_builtins+set}" = set; then
27577   echo $ECHO_N "(cached) $ECHO_C" >&6
27578 else
27579
27580       cat >conftest.$ac_ext <<_ACEOF
27581 /* confdefs.h.  */
27582 _ACEOF
27583 cat confdefs.h >>conftest.$ac_ext
27584 cat >>conftest.$ac_ext <<_ACEOF
27585 /* end confdefs.h.  */
27586
27587 int
27588 main ()
27589 {
27590
27591           int value=0;
27592           __sync_fetch_and_add(&value, 1);
27593           __sync_sub_and_fetch(&value, 1);
27594
27595   ;
27596   return 0;
27597 }
27598 _ACEOF
27599 rm -f conftest.$ac_objext
27600 if { (ac_try="$ac_compile"
27601 case "(($ac_try" in
27602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27603   *) ac_try_echo=$ac_try;;
27604 esac
27605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27606   (eval "$ac_compile") 2>conftest.er1
27607   ac_status=$?
27608   grep -v '^ *+' conftest.er1 >conftest.err
27609   rm -f conftest.er1
27610   cat conftest.err >&5
27611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27612   (exit $ac_status); } && {
27613          test -z "$ac_cxx_werror_flag" ||
27614          test ! -s conftest.err
27615        } && test -s conftest.$ac_objext; then
27616   wx_cv_cc_gcc_atomic_builtins=yes
27617 else
27618   echo "$as_me: failed program was:" >&5
27619 sed 's/^/| /' conftest.$ac_ext >&5
27620
27621         wx_cv_cc_gcc_atomic_builtins=no
27622 fi
27623
27624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27625
27626 fi
27627
27628     { echo "$as_me:$LINENO: result: $wx_cv_cc_gcc_atomic_builtins" >&5
27629 echo "${ECHO_T}$wx_cv_cc_gcc_atomic_builtins" >&6; }
27630     if test $wx_cv_cc_gcc_atomic_builtins = yes; then
27631       cat >>confdefs.h <<\_ACEOF
27632 #define HAVE_GCC_ATOMIC_BUILTINS 1
27633 _ACEOF
27634
27635     fi
27636   fi
27637
27638
27639 ac_ext=c
27640 ac_cpp='$CPP $CPPFLAGS'
27641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27644
27645
27646
27647 SEARCH_INCLUDE="\
27648     /usr/local/include        \
27649                               \
27650     /usr/Motif-2.1/include    \
27651     /usr/Motif-1.2/include    \
27652     /usr/include/Motif1.2     \
27653                               \
27654     /usr/dt/include           \
27655     /usr/openwin/include      \
27656                               \
27657     /usr/include/Xm           \
27658                               \
27659     /usr/X11R6/include        \
27660     /usr/X11R6.4/include      \
27661     /usr/X11R5/include        \
27662     /usr/X11R4/include        \
27663                               \
27664     /usr/include/X11R6        \
27665     /usr/include/X11R5        \
27666     /usr/include/X11R4        \
27667                               \
27668     /usr/local/X11R6/include  \
27669     /usr/local/X11R5/include  \
27670     /usr/local/X11R4/include  \
27671                               \
27672     /usr/local/include/X11R6  \
27673     /usr/local/include/X11R5  \
27674     /usr/local/include/X11R4  \
27675                               \
27676     /usr/X11/include          \
27677     /usr/include/X11          \
27678     /usr/local/X11/include    \
27679     /usr/local/include/X11    \
27680                               \
27681     /usr/XFree86/include/X11  \
27682     /usr/pkg/include          \
27683                               \
27684     /usr/openwin/share/include"
27685
27686 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27687 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27688
27689 case "${host}" in
27690     *-*-irix6* )
27691         if test "${wx_cv_std_libpath+set}" = set; then
27692   echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694
27695                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27696                     for e in a so sl dylib dll.a; do
27697                         libc="$d/libc.$e"
27698                         if test -f $libc; then
27699                             save_LIBS="$LIBS"
27700                             LIBS="$libc"
27701                             cat >conftest.$ac_ext <<_ACEOF
27702 int main() { return 0; }
27703 _ACEOF
27704 rm -f conftest.$ac_objext conftest$ac_exeext
27705 if { (ac_try="$ac_link"
27706 case "(($ac_try" in
27707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27708   *) ac_try_echo=$ac_try;;
27709 esac
27710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27711   (eval "$ac_link") 2>conftest.er1
27712   ac_status=$?
27713   grep -v '^ *+' conftest.er1 >conftest.err
27714   rm -f conftest.er1
27715   cat conftest.err >&5
27716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27717   (exit $ac_status); } && {
27718          test -z "$ac_c_werror_flag" ||
27719          test ! -s conftest.err
27720        } && test -s conftest$ac_exeext &&
27721        $as_test_x conftest$ac_exeext; then
27722   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27723 else
27724   echo "$as_me: failed program was:" >&5
27725 sed 's/^/| /' conftest.$ac_ext >&5
27726
27727
27728 fi
27729
27730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27731       conftest$ac_exeext conftest.$ac_ext
27732                             LIBS="$save_LIBS"
27733                             if test "x$wx_cv_std_libpath" != "x"; then
27734                                 break 2
27735                             fi
27736                         fi
27737                     done
27738                 done
27739                 if test "x$wx_cv_std_libpath" = "x"; then
27740                     wx_cv_std_libpath="lib"
27741                 fi
27742
27743
27744 fi
27745
27746         ;;
27747
27748     *-*-solaris2* )
27749                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27750             wx_cv_std_libpath="lib/64"
27751         else
27752             wx_cv_std_libpath="lib"
27753         fi
27754         ;;
27755
27756     *-*-linux* )
27757                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27758                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27759             wx_cv_std_libpath="lib64"
27760         else
27761             wx_cv_std_libpath="lib"
27762         fi
27763         ;;
27764
27765     *)
27766         wx_cv_std_libpath="lib";
27767         ;;
27768 esac
27769
27770 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27771 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27772
27773 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27774
27775 if test "$build" != "$host" -a "$GCC" = yes; then
27776                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27777         cross_root=`dirname $cross_root`
27778         cross_root=`dirname $cross_root`
27779
27780                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27781         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27782         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27783
27784                 if test -z "$PKG_CONFIG_PATH"; then
27785             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27786             export PKG_CONFIG_PATH
27787         fi
27788
27789                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27790
27791 ac_find_includes=
27792 for ac_dir in $SEARCH_INCLUDE /usr/include;
27793   do
27794     if test -f "$ac_dir/X11/Intrinsic.h"; then
27795       ac_find_includes=$ac_dir
27796       break
27797     fi
27798   done
27799
27800             x_includes=$ac_find_includes
27801         fi
27802         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27803
27804   ac_find_libraries=
27805   for ac_dir in $SEARCH_LIB;
27806   do
27807     for ac_extension in a so sl dylib dll.a; do
27808       if test -f "$ac_dir/libXt.$ac_extension"; then
27809         ac_find_libraries=$ac_dir
27810         break 2
27811       fi
27812     done
27813   done
27814
27815             x_libraries=$ac_find_libraries
27816         fi
27817     fi
27818 fi
27819
27820
27821 cat >confcache <<\_ACEOF
27822 # This file is a shell script that caches the results of configure
27823 # tests run on this system so they can be shared between configure
27824 # scripts and configure runs, see configure's option --config-cache.
27825 # It is not useful on other systems.  If it contains results you don't
27826 # want to keep, you may remove or edit it.
27827 #
27828 # config.status only pays attention to the cache file if you give it
27829 # the --recheck option to rerun configure.
27830 #
27831 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27832 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27833 # following values.
27834
27835 _ACEOF
27836
27837 # The following way of writing the cache mishandles newlines in values,
27838 # but we know of no workaround that is simple, portable, and efficient.
27839 # So, we kill variables containing newlines.
27840 # Ultrix sh set writes to stderr and can't be redirected directly,
27841 # and sets the high bit in the cache file unless we assign to the vars.
27842 (
27843   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27844     eval ac_val=\$$ac_var
27845     case $ac_val in #(
27846     *${as_nl}*)
27847       case $ac_var in #(
27848       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27849 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27850       esac
27851       case $ac_var in #(
27852       _ | IFS | as_nl) ;; #(
27853       *) $as_unset $ac_var ;;
27854       esac ;;
27855     esac
27856   done
27857
27858   (set) 2>&1 |
27859     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27860     *${as_nl}ac_space=\ *)
27861       # `set' does not quote correctly, so add quotes (double-quote
27862       # substitution turns \\\\ into \\, and sed turns \\ into \).
27863       sed -n \
27864         "s/'/'\\\\''/g;
27865           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27866       ;; #(
27867     *)
27868       # `set' quotes correctly as required by POSIX, so do not add quotes.
27869       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27870       ;;
27871     esac |
27872     sort
27873 ) |
27874   sed '
27875      /^ac_cv_env_/b end
27876      t clear
27877      :clear
27878      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27879      t end
27880      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27881      :end' >>confcache
27882 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27883   if test -w "$cache_file"; then
27884     test "x$cache_file" != "x/dev/null" &&
27885       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27886 echo "$as_me: updating cache $cache_file" >&6;}
27887     cat confcache >$cache_file
27888   else
27889     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27890 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27891   fi
27892 fi
27893 rm -f confcache
27894
27895 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27896     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27897 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27898 if test "${wx_cv_lib_glibc21+set}" = set; then
27899   echo $ECHO_N "(cached) $ECHO_C" >&6
27900 else
27901
27902         cat >conftest.$ac_ext <<_ACEOF
27903 /* confdefs.h.  */
27904 _ACEOF
27905 cat confdefs.h >>conftest.$ac_ext
27906 cat >>conftest.$ac_ext <<_ACEOF
27907 /* end confdefs.h.  */
27908 #include <features.h>
27909 int
27910 main ()
27911 {
27912
27913                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
27914                 not glibc 2.1
27915                 #endif
27916
27917   ;
27918   return 0;
27919 }
27920 _ACEOF
27921 rm -f conftest.$ac_objext
27922 if { (ac_try="$ac_compile"
27923 case "(($ac_try" in
27924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27925   *) ac_try_echo=$ac_try;;
27926 esac
27927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27928   (eval "$ac_compile") 2>conftest.er1
27929   ac_status=$?
27930   grep -v '^ *+' conftest.er1 >conftest.err
27931   rm -f conftest.er1
27932   cat conftest.err >&5
27933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27934   (exit $ac_status); } && {
27935          test -z "$ac_c_werror_flag" ||
27936          test ! -s conftest.err
27937        } && test -s conftest.$ac_objext; then
27938
27939                 wx_cv_lib_glibc21=yes
27940
27941 else
27942   echo "$as_me: failed program was:" >&5
27943 sed 's/^/| /' conftest.$ac_ext >&5
27944
27945
27946                 wx_cv_lib_glibc21=no
27947
27948
27949 fi
27950
27951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27952
27953 fi
27954 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
27955 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
27956     if test "$wx_cv_lib_glibc21" = "yes"; then
27957         cat >>confdefs.h <<\_ACEOF
27958 #define wxHAVE_GLIBC2 1
27959 _ACEOF
27960
27961     fi
27962 fi
27963
27964 if test "x$wx_cv_lib_glibc21" = "xyes"; then
27965     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
27966         cat >>confdefs.h <<\_ACEOF
27967 #define _GNU_SOURCE 1
27968 _ACEOF
27969
27970     fi
27971 fi
27972
27973 have_cos=0
27974 have_floor=0
27975
27976 for ac_func in cos
27977 do
27978 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
27980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
27981 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27982   echo $ECHO_N "(cached) $ECHO_C" >&6
27983 else
27984   cat >conftest.$ac_ext <<_ACEOF
27985 /* confdefs.h.  */
27986 _ACEOF
27987 cat confdefs.h >>conftest.$ac_ext
27988 cat >>conftest.$ac_ext <<_ACEOF
27989 /* end confdefs.h.  */
27990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27991    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27992 #define $ac_func innocuous_$ac_func
27993
27994 /* System header to define __stub macros and hopefully few prototypes,
27995     which can conflict with char $ac_func (); below.
27996     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27997     <limits.h> exists even on freestanding compilers.  */
27998
27999 #ifdef __STDC__
28000 # include <limits.h>
28001 #else
28002 # include <assert.h>
28003 #endif
28004
28005 #undef $ac_func
28006
28007 /* Override any GCC internal prototype to avoid an error.
28008    Use char because int might match the return type of a GCC
28009    builtin and then its argument prototype would still apply.  */
28010 #ifdef __cplusplus
28011 extern "C"
28012 #endif
28013 char $ac_func ();
28014 /* The GNU C library defines this for functions which it implements
28015     to always fail with ENOSYS.  Some functions are actually named
28016     something starting with __ and the normal name is an alias.  */
28017 #if defined __stub_$ac_func || defined __stub___$ac_func
28018 choke me
28019 #endif
28020
28021 int
28022 main ()
28023 {
28024 return $ac_func ();
28025   ;
28026   return 0;
28027 }
28028 _ACEOF
28029 rm -f conftest.$ac_objext conftest$ac_exeext
28030 if { (ac_try="$ac_link"
28031 case "(($ac_try" in
28032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28033   *) ac_try_echo=$ac_try;;
28034 esac
28035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28036   (eval "$ac_link") 2>conftest.er1
28037   ac_status=$?
28038   grep -v '^ *+' conftest.er1 >conftest.err
28039   rm -f conftest.er1
28040   cat conftest.err >&5
28041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28042   (exit $ac_status); } && {
28043          test -z "$ac_c_werror_flag" ||
28044          test ! -s conftest.err
28045        } && test -s conftest$ac_exeext &&
28046        $as_test_x conftest$ac_exeext; then
28047   eval "$as_ac_var=yes"
28048 else
28049   echo "$as_me: failed program was:" >&5
28050 sed 's/^/| /' conftest.$ac_ext >&5
28051
28052         eval "$as_ac_var=no"
28053 fi
28054
28055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28056       conftest$ac_exeext conftest.$ac_ext
28057 fi
28058 ac_res=`eval echo '${'$as_ac_var'}'`
28059                { echo "$as_me:$LINENO: result: $ac_res" >&5
28060 echo "${ECHO_T}$ac_res" >&6; }
28061 if test `eval echo '${'$as_ac_var'}'` = yes; then
28062   cat >>confdefs.h <<_ACEOF
28063 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28064 _ACEOF
28065  have_cos=1
28066 fi
28067 done
28068
28069
28070 for ac_func in floor
28071 do
28072 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28073 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28074 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28075 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28076   echo $ECHO_N "(cached) $ECHO_C" >&6
28077 else
28078   cat >conftest.$ac_ext <<_ACEOF
28079 /* confdefs.h.  */
28080 _ACEOF
28081 cat confdefs.h >>conftest.$ac_ext
28082 cat >>conftest.$ac_ext <<_ACEOF
28083 /* end confdefs.h.  */
28084 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28085    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28086 #define $ac_func innocuous_$ac_func
28087
28088 /* System header to define __stub macros and hopefully few prototypes,
28089     which can conflict with char $ac_func (); below.
28090     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28091     <limits.h> exists even on freestanding compilers.  */
28092
28093 #ifdef __STDC__
28094 # include <limits.h>
28095 #else
28096 # include <assert.h>
28097 #endif
28098
28099 #undef $ac_func
28100
28101 /* Override any GCC internal prototype to avoid an error.
28102    Use char because int might match the return type of a GCC
28103    builtin and then its argument prototype would still apply.  */
28104 #ifdef __cplusplus
28105 extern "C"
28106 #endif
28107 char $ac_func ();
28108 /* The GNU C library defines this for functions which it implements
28109     to always fail with ENOSYS.  Some functions are actually named
28110     something starting with __ and the normal name is an alias.  */
28111 #if defined __stub_$ac_func || defined __stub___$ac_func
28112 choke me
28113 #endif
28114
28115 int
28116 main ()
28117 {
28118 return $ac_func ();
28119   ;
28120   return 0;
28121 }
28122 _ACEOF
28123 rm -f conftest.$ac_objext conftest$ac_exeext
28124 if { (ac_try="$ac_link"
28125 case "(($ac_try" in
28126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28127   *) ac_try_echo=$ac_try;;
28128 esac
28129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28130   (eval "$ac_link") 2>conftest.er1
28131   ac_status=$?
28132   grep -v '^ *+' conftest.er1 >conftest.err
28133   rm -f conftest.er1
28134   cat conftest.err >&5
28135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136   (exit $ac_status); } && {
28137          test -z "$ac_c_werror_flag" ||
28138          test ! -s conftest.err
28139        } && test -s conftest$ac_exeext &&
28140        $as_test_x conftest$ac_exeext; then
28141   eval "$as_ac_var=yes"
28142 else
28143   echo "$as_me: failed program was:" >&5
28144 sed 's/^/| /' conftest.$ac_ext >&5
28145
28146         eval "$as_ac_var=no"
28147 fi
28148
28149 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28150       conftest$ac_exeext conftest.$ac_ext
28151 fi
28152 ac_res=`eval echo '${'$as_ac_var'}'`
28153                { echo "$as_me:$LINENO: result: $ac_res" >&5
28154 echo "${ECHO_T}$ac_res" >&6; }
28155 if test `eval echo '${'$as_ac_var'}'` = yes; then
28156   cat >>confdefs.h <<_ACEOF
28157 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28158 _ACEOF
28159  have_floor=1
28160 fi
28161 done
28162
28163 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28164 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28165 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28166     { echo "$as_me:$LINENO: result: yes" >&5
28167 echo "${ECHO_T}yes" >&6; }
28168 else
28169     { echo "$as_me:$LINENO: result: no" >&5
28170 echo "${ECHO_T}no" >&6; }
28171     LIBS="$LIBS -lm"
28172     # use different functions to avoid configure caching
28173     have_sin=0
28174     have_ceil=0
28175
28176 for ac_func in sin
28177 do
28178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28182   echo $ECHO_N "(cached) $ECHO_C" >&6
28183 else
28184   cat >conftest.$ac_ext <<_ACEOF
28185 /* confdefs.h.  */
28186 _ACEOF
28187 cat confdefs.h >>conftest.$ac_ext
28188 cat >>conftest.$ac_ext <<_ACEOF
28189 /* end confdefs.h.  */
28190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28192 #define $ac_func innocuous_$ac_func
28193
28194 /* System header to define __stub macros and hopefully few prototypes,
28195     which can conflict with char $ac_func (); below.
28196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28197     <limits.h> exists even on freestanding compilers.  */
28198
28199 #ifdef __STDC__
28200 # include <limits.h>
28201 #else
28202 # include <assert.h>
28203 #endif
28204
28205 #undef $ac_func
28206
28207 /* Override any GCC internal prototype to avoid an error.
28208    Use char because int might match the return type of a GCC
28209    builtin and then its argument prototype would still apply.  */
28210 #ifdef __cplusplus
28211 extern "C"
28212 #endif
28213 char $ac_func ();
28214 /* The GNU C library defines this for functions which it implements
28215     to always fail with ENOSYS.  Some functions are actually named
28216     something starting with __ and the normal name is an alias.  */
28217 #if defined __stub_$ac_func || defined __stub___$ac_func
28218 choke me
28219 #endif
28220
28221 int
28222 main ()
28223 {
28224 return $ac_func ();
28225   ;
28226   return 0;
28227 }
28228 _ACEOF
28229 rm -f conftest.$ac_objext conftest$ac_exeext
28230 if { (ac_try="$ac_link"
28231 case "(($ac_try" in
28232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28233   *) ac_try_echo=$ac_try;;
28234 esac
28235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28236   (eval "$ac_link") 2>conftest.er1
28237   ac_status=$?
28238   grep -v '^ *+' conftest.er1 >conftest.err
28239   rm -f conftest.er1
28240   cat conftest.err >&5
28241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28242   (exit $ac_status); } && {
28243          test -z "$ac_c_werror_flag" ||
28244          test ! -s conftest.err
28245        } && test -s conftest$ac_exeext &&
28246        $as_test_x conftest$ac_exeext; then
28247   eval "$as_ac_var=yes"
28248 else
28249   echo "$as_me: failed program was:" >&5
28250 sed 's/^/| /' conftest.$ac_ext >&5
28251
28252         eval "$as_ac_var=no"
28253 fi
28254
28255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28256       conftest$ac_exeext conftest.$ac_ext
28257 fi
28258 ac_res=`eval echo '${'$as_ac_var'}'`
28259                { echo "$as_me:$LINENO: result: $ac_res" >&5
28260 echo "${ECHO_T}$ac_res" >&6; }
28261 if test `eval echo '${'$as_ac_var'}'` = yes; then
28262   cat >>confdefs.h <<_ACEOF
28263 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28264 _ACEOF
28265  have_sin=1
28266 fi
28267 done
28268
28269
28270 for ac_func in ceil
28271 do
28272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28276   echo $ECHO_N "(cached) $ECHO_C" >&6
28277 else
28278   cat >conftest.$ac_ext <<_ACEOF
28279 /* confdefs.h.  */
28280 _ACEOF
28281 cat confdefs.h >>conftest.$ac_ext
28282 cat >>conftest.$ac_ext <<_ACEOF
28283 /* end confdefs.h.  */
28284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28286 #define $ac_func innocuous_$ac_func
28287
28288 /* System header to define __stub macros and hopefully few prototypes,
28289     which can conflict with char $ac_func (); below.
28290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28291     <limits.h> exists even on freestanding compilers.  */
28292
28293 #ifdef __STDC__
28294 # include <limits.h>
28295 #else
28296 # include <assert.h>
28297 #endif
28298
28299 #undef $ac_func
28300
28301 /* Override any GCC internal prototype to avoid an error.
28302    Use char because int might match the return type of a GCC
28303    builtin and then its argument prototype would still apply.  */
28304 #ifdef __cplusplus
28305 extern "C"
28306 #endif
28307 char $ac_func ();
28308 /* The GNU C library defines this for functions which it implements
28309     to always fail with ENOSYS.  Some functions are actually named
28310     something starting with __ and the normal name is an alias.  */
28311 #if defined __stub_$ac_func || defined __stub___$ac_func
28312 choke me
28313 #endif
28314
28315 int
28316 main ()
28317 {
28318 return $ac_func ();
28319   ;
28320   return 0;
28321 }
28322 _ACEOF
28323 rm -f conftest.$ac_objext conftest$ac_exeext
28324 if { (ac_try="$ac_link"
28325 case "(($ac_try" in
28326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28327   *) ac_try_echo=$ac_try;;
28328 esac
28329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28330   (eval "$ac_link") 2>conftest.er1
28331   ac_status=$?
28332   grep -v '^ *+' conftest.er1 >conftest.err
28333   rm -f conftest.er1
28334   cat conftest.err >&5
28335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28336   (exit $ac_status); } && {
28337          test -z "$ac_c_werror_flag" ||
28338          test ! -s conftest.err
28339        } && test -s conftest$ac_exeext &&
28340        $as_test_x conftest$ac_exeext; then
28341   eval "$as_ac_var=yes"
28342 else
28343   echo "$as_me: failed program was:" >&5
28344 sed 's/^/| /' conftest.$ac_ext >&5
28345
28346         eval "$as_ac_var=no"
28347 fi
28348
28349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28350       conftest$ac_exeext conftest.$ac_ext
28351 fi
28352 ac_res=`eval echo '${'$as_ac_var'}'`
28353                { echo "$as_me:$LINENO: result: $ac_res" >&5
28354 echo "${ECHO_T}$ac_res" >&6; }
28355 if test `eval echo '${'$as_ac_var'}'` = yes; then
28356   cat >>confdefs.h <<_ACEOF
28357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28358 _ACEOF
28359  have_ceil=1
28360 fi
28361 done
28362
28363     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28364 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28365     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28366         { echo "$as_me:$LINENO: result: yes" >&5
28367 echo "${ECHO_T}yes" >&6; }
28368     else
28369         { echo "$as_me:$LINENO: result: no" >&5
28370 echo "${ECHO_T}no" >&6; }
28371         # not sure we should warn the user, crash, etc.
28372     fi
28373 fi
28374
28375 ac_ext=cpp
28376 ac_cpp='$CXXCPP $CPPFLAGS'
28377 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28378 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28379 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28380
28381 if test "wxUSE_UNICODE" = "yes"; then
28382
28383   for wx_func in wcstoull
28384   do
28385     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28386 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28387 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28388   echo $ECHO_N "(cached) $ECHO_C" >&6
28389 else
28390
28391         cat >conftest.$ac_ext <<_ACEOF
28392
28393             /* confdefs.h.  */
28394 _ACEOF
28395 cat confdefs.h >>conftest.$ac_ext
28396 cat >>conftest.$ac_ext <<_ACEOF
28397 /* end confdefs.h.  */
28398
28399
28400                 $ac_includes_default
28401
28402 int
28403 main ()
28404 {
28405
28406                 #ifndef $wx_func
28407                   &$wx_func;
28408                 #endif
28409
28410
28411   ;
28412   return 0;
28413 }
28414
28415 _ACEOF
28416 rm -f conftest.$ac_objext conftest$ac_exeext
28417 if { (ac_try="$ac_link"
28418 case "(($ac_try" in
28419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28420   *) ac_try_echo=$ac_try;;
28421 esac
28422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28423   (eval "$ac_link") 2>conftest.er1
28424   ac_status=$?
28425   grep -v '^ *+' conftest.er1 >conftest.err
28426   rm -f conftest.er1
28427   cat conftest.err >&5
28428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28429   (exit $ac_status); } && {
28430          test -z "$ac_cxx_werror_flag" ||
28431          test ! -s conftest.err
28432        } && test -s conftest$ac_exeext &&
28433        $as_test_x conftest$ac_exeext; then
28434   eval wx_cv_func_$wx_func=yes
28435 else
28436   echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.$ac_ext >&5
28438
28439         eval wx_cv_func_$wx_func=no
28440 fi
28441
28442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28443       conftest$ac_exeext conftest.$ac_ext
28444
28445 fi
28446 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28447                { echo "$as_me:$LINENO: result: $ac_res" >&5
28448 echo "${ECHO_T}$ac_res" >&6; }
28449
28450     if eval test \$wx_cv_func_$wx_func = yes
28451     then
28452       cat >>confdefs.h <<_ACEOF
28453 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28454 _ACEOF
28455
28456
28457     else
28458       :
28459
28460     fi
28461   done
28462
28463 else
28464
28465   for wx_func in strtoull
28466   do
28467     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28468 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28469 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28470   echo $ECHO_N "(cached) $ECHO_C" >&6
28471 else
28472
28473         cat >conftest.$ac_ext <<_ACEOF
28474
28475             /* confdefs.h.  */
28476 _ACEOF
28477 cat confdefs.h >>conftest.$ac_ext
28478 cat >>conftest.$ac_ext <<_ACEOF
28479 /* end confdefs.h.  */
28480
28481
28482                 $ac_includes_default
28483
28484 int
28485 main ()
28486 {
28487
28488                 #ifndef $wx_func
28489                   &$wx_func;
28490                 #endif
28491
28492
28493   ;
28494   return 0;
28495 }
28496
28497 _ACEOF
28498 rm -f conftest.$ac_objext conftest$ac_exeext
28499 if { (ac_try="$ac_link"
28500 case "(($ac_try" in
28501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28502   *) ac_try_echo=$ac_try;;
28503 esac
28504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28505   (eval "$ac_link") 2>conftest.er1
28506   ac_status=$?
28507   grep -v '^ *+' conftest.er1 >conftest.err
28508   rm -f conftest.er1
28509   cat conftest.err >&5
28510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28511   (exit $ac_status); } && {
28512          test -z "$ac_cxx_werror_flag" ||
28513          test ! -s conftest.err
28514        } && test -s conftest$ac_exeext &&
28515        $as_test_x conftest$ac_exeext; then
28516   eval wx_cv_func_$wx_func=yes
28517 else
28518   echo "$as_me: failed program was:" >&5
28519 sed 's/^/| /' conftest.$ac_ext >&5
28520
28521         eval wx_cv_func_$wx_func=no
28522 fi
28523
28524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28525       conftest$ac_exeext conftest.$ac_ext
28526
28527 fi
28528 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28529                { echo "$as_me:$LINENO: result: $ac_res" >&5
28530 echo "${ECHO_T}$ac_res" >&6; }
28531
28532     if eval test \$wx_cv_func_$wx_func = yes
28533     then
28534       cat >>confdefs.h <<_ACEOF
28535 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
28536 _ACEOF
28537
28538
28539     else
28540       :
28541
28542     fi
28543   done
28544
28545 fi
28546 ac_ext=c
28547 ac_cpp='$CPP $CPPFLAGS'
28548 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28549 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28550 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28551
28552
28553
28554
28555 if test "$wxUSE_REGEX" != "no"; then
28556     cat >>confdefs.h <<\_ACEOF
28557 #define wxUSE_REGEX 1
28558 _ACEOF
28559
28560
28561     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28562         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28563 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28564         wxUSE_REGEX=builtin
28565     fi
28566
28567     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28568                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28569 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28570 if test "${ac_cv_header_regex_h+set}" = set; then
28571   echo $ECHO_N "(cached) $ECHO_C" >&6
28572 else
28573   cat >conftest.$ac_ext <<_ACEOF
28574 /* confdefs.h.  */
28575 _ACEOF
28576 cat confdefs.h >>conftest.$ac_ext
28577 cat >>conftest.$ac_ext <<_ACEOF
28578 /* end confdefs.h.  */
28579
28580
28581 #include <regex.h>
28582 _ACEOF
28583 rm -f conftest.$ac_objext
28584 if { (ac_try="$ac_compile"
28585 case "(($ac_try" in
28586   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28587   *) ac_try_echo=$ac_try;;
28588 esac
28589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28590   (eval "$ac_compile") 2>conftest.er1
28591   ac_status=$?
28592   grep -v '^ *+' conftest.er1 >conftest.err
28593   rm -f conftest.er1
28594   cat conftest.err >&5
28595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28596   (exit $ac_status); } && {
28597          test -z "$ac_c_werror_flag" ||
28598          test ! -s conftest.err
28599        } && test -s conftest.$ac_objext; then
28600   ac_cv_header_regex_h=yes
28601 else
28602   echo "$as_me: failed program was:" >&5
28603 sed 's/^/| /' conftest.$ac_ext >&5
28604
28605         ac_cv_header_regex_h=no
28606 fi
28607
28608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28609 fi
28610 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28611 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28612 if test $ac_cv_header_regex_h = yes; then
28613
28614
28615 for ac_func in regcomp re_search
28616 do
28617 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28618 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28619 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28620 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28621   echo $ECHO_N "(cached) $ECHO_C" >&6
28622 else
28623   cat >conftest.$ac_ext <<_ACEOF
28624 /* confdefs.h.  */
28625 _ACEOF
28626 cat confdefs.h >>conftest.$ac_ext
28627 cat >>conftest.$ac_ext <<_ACEOF
28628 /* end confdefs.h.  */
28629 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28630    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28631 #define $ac_func innocuous_$ac_func
28632
28633 /* System header to define __stub macros and hopefully few prototypes,
28634     which can conflict with char $ac_func (); below.
28635     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28636     <limits.h> exists even on freestanding compilers.  */
28637
28638 #ifdef __STDC__
28639 # include <limits.h>
28640 #else
28641 # include <assert.h>
28642 #endif
28643
28644 #undef $ac_func
28645
28646 /* Override any GCC internal prototype to avoid an error.
28647    Use char because int might match the return type of a GCC
28648    builtin and then its argument prototype would still apply.  */
28649 #ifdef __cplusplus
28650 extern "C"
28651 #endif
28652 char $ac_func ();
28653 /* The GNU C library defines this for functions which it implements
28654     to always fail with ENOSYS.  Some functions are actually named
28655     something starting with __ and the normal name is an alias.  */
28656 #if defined __stub_$ac_func || defined __stub___$ac_func
28657 choke me
28658 #endif
28659
28660 int
28661 main ()
28662 {
28663 return $ac_func ();
28664   ;
28665   return 0;
28666 }
28667 _ACEOF
28668 rm -f conftest.$ac_objext conftest$ac_exeext
28669 if { (ac_try="$ac_link"
28670 case "(($ac_try" in
28671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28672   *) ac_try_echo=$ac_try;;
28673 esac
28674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28675   (eval "$ac_link") 2>conftest.er1
28676   ac_status=$?
28677   grep -v '^ *+' conftest.er1 >conftest.err
28678   rm -f conftest.er1
28679   cat conftest.err >&5
28680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28681   (exit $ac_status); } && {
28682          test -z "$ac_c_werror_flag" ||
28683          test ! -s conftest.err
28684        } && test -s conftest$ac_exeext &&
28685        $as_test_x conftest$ac_exeext; then
28686   eval "$as_ac_var=yes"
28687 else
28688   echo "$as_me: failed program was:" >&5
28689 sed 's/^/| /' conftest.$ac_ext >&5
28690
28691         eval "$as_ac_var=no"
28692 fi
28693
28694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28695       conftest$ac_exeext conftest.$ac_ext
28696 fi
28697 ac_res=`eval echo '${'$as_ac_var'}'`
28698                { echo "$as_me:$LINENO: result: $ac_res" >&5
28699 echo "${ECHO_T}$ac_res" >&6; }
28700 if test `eval echo '${'$as_ac_var'}'` = yes; then
28701   cat >>confdefs.h <<_ACEOF
28702 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28703 _ACEOF
28704
28705 fi
28706 done
28707
28708 fi
28709
28710
28711
28712         if test "x$ac_cv_func_regcomp" != "xyes"; then
28713             if test "$wxUSE_REGEX" = "sys" ; then
28714                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28715 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28716    { (exit 1); exit 1; }; }
28717             else
28718                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28719 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28720                 wxUSE_REGEX=builtin
28721             fi
28722         else
28723                         wxUSE_REGEX=sys
28724                         cat >>confdefs.h <<\_ACEOF
28725 #define WX_NO_REGEX_ADVANCED 1
28726 _ACEOF
28727
28728         fi
28729     fi
28730 fi
28731
28732
28733 ZLIB_LINK=
28734 if test "$wxUSE_ZLIB" != "no" ; then
28735     cat >>confdefs.h <<\_ACEOF
28736 #define wxUSE_ZLIB 1
28737 _ACEOF
28738
28739
28740     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28741                                                 if test "$USE_DARWIN" = 1; then
28742             system_zlib_h_ok="yes"
28743         else
28744                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28745 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28746 if test "${ac_cv_header_zlib_h+set}" = set; then
28747   echo $ECHO_N "(cached) $ECHO_C" >&6
28748 else
28749   if test "$cross_compiling" = yes; then
28750                       unset ac_cv_header_zlib_h
28751
28752 else
28753   cat >conftest.$ac_ext <<_ACEOF
28754 /* confdefs.h.  */
28755 _ACEOF
28756 cat confdefs.h >>conftest.$ac_ext
28757 cat >>conftest.$ac_ext <<_ACEOF
28758 /* end confdefs.h.  */
28759
28760                         #include <zlib.h>
28761                         #include <stdio.h>
28762
28763                         int main()
28764                         {
28765                             FILE *f=fopen("conftestval", "w");
28766                             if (!f) exit(1);
28767                             fprintf(f, "%s",
28768                                     ZLIB_VERSION[0] == '1' &&
28769                                     (ZLIB_VERSION[2] > '1' ||
28770                                     (ZLIB_VERSION[2] == '1' &&
28771                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28772                             exit(0);
28773                         }
28774
28775 _ACEOF
28776 rm -f conftest$ac_exeext
28777 if { (ac_try="$ac_link"
28778 case "(($ac_try" in
28779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28780   *) ac_try_echo=$ac_try;;
28781 esac
28782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28783   (eval "$ac_link") 2>&5
28784   ac_status=$?
28785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28786   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28787   { (case "(($ac_try" in
28788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28789   *) ac_try_echo=$ac_try;;
28790 esac
28791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28792   (eval "$ac_try") 2>&5
28793   ac_status=$?
28794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28795   (exit $ac_status); }; }; then
28796   ac_cv_header_zlib_h=`cat conftestval`
28797 else
28798   echo "$as_me: program exited with status $ac_status" >&5
28799 echo "$as_me: failed program was:" >&5
28800 sed 's/^/| /' conftest.$ac_ext >&5
28801
28802 ( exit $ac_status )
28803 ac_cv_header_zlib_h=no
28804 fi
28805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28806 fi
28807
28808
28809
28810 fi
28811 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28812 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28813                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28814 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28815 if test "${ac_cv_header_zlib_h+set}" = set; then
28816   echo $ECHO_N "(cached) $ECHO_C" >&6
28817 else
28818   cat >conftest.$ac_ext <<_ACEOF
28819 /* confdefs.h.  */
28820 _ACEOF
28821 cat confdefs.h >>conftest.$ac_ext
28822 cat >>conftest.$ac_ext <<_ACEOF
28823 /* end confdefs.h.  */
28824
28825
28826 #include <zlib.h>
28827 _ACEOF
28828 rm -f conftest.$ac_objext
28829 if { (ac_try="$ac_compile"
28830 case "(($ac_try" in
28831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28832   *) ac_try_echo=$ac_try;;
28833 esac
28834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28835   (eval "$ac_compile") 2>conftest.er1
28836   ac_status=$?
28837   grep -v '^ *+' conftest.er1 >conftest.err
28838   rm -f conftest.er1
28839   cat conftest.err >&5
28840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28841   (exit $ac_status); } && {
28842          test -z "$ac_c_werror_flag" ||
28843          test ! -s conftest.err
28844        } && test -s conftest.$ac_objext; then
28845   ac_cv_header_zlib_h=yes
28846 else
28847   echo "$as_me: failed program was:" >&5
28848 sed 's/^/| /' conftest.$ac_ext >&5
28849
28850         ac_cv_header_zlib_h=no
28851 fi
28852
28853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28854 fi
28855 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28856 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28857
28858
28859
28860             system_zlib_h_ok=$ac_cv_header_zlib_h
28861         fi
28862
28863         if test "$system_zlib_h_ok" = "yes"; then
28864             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28865 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28866 if test "${ac_cv_lib_z_deflate+set}" = set; then
28867   echo $ECHO_N "(cached) $ECHO_C" >&6
28868 else
28869   ac_check_lib_save_LIBS=$LIBS
28870 LIBS="-lz  $LIBS"
28871 cat >conftest.$ac_ext <<_ACEOF
28872 /* confdefs.h.  */
28873 _ACEOF
28874 cat confdefs.h >>conftest.$ac_ext
28875 cat >>conftest.$ac_ext <<_ACEOF
28876 /* end confdefs.h.  */
28877
28878 /* Override any GCC internal prototype to avoid an error.
28879    Use char because int might match the return type of a GCC
28880    builtin and then its argument prototype would still apply.  */
28881 #ifdef __cplusplus
28882 extern "C"
28883 #endif
28884 char deflate ();
28885 int
28886 main ()
28887 {
28888 return deflate ();
28889   ;
28890   return 0;
28891 }
28892 _ACEOF
28893 rm -f conftest.$ac_objext conftest$ac_exeext
28894 if { (ac_try="$ac_link"
28895 case "(($ac_try" in
28896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28897   *) ac_try_echo=$ac_try;;
28898 esac
28899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28900   (eval "$ac_link") 2>conftest.er1
28901   ac_status=$?
28902   grep -v '^ *+' conftest.er1 >conftest.err
28903   rm -f conftest.er1
28904   cat conftest.err >&5
28905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28906   (exit $ac_status); } && {
28907          test -z "$ac_c_werror_flag" ||
28908          test ! -s conftest.err
28909        } && test -s conftest$ac_exeext &&
28910        $as_test_x conftest$ac_exeext; then
28911   ac_cv_lib_z_deflate=yes
28912 else
28913   echo "$as_me: failed program was:" >&5
28914 sed 's/^/| /' conftest.$ac_ext >&5
28915
28916         ac_cv_lib_z_deflate=no
28917 fi
28918
28919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28920       conftest$ac_exeext conftest.$ac_ext
28921 LIBS=$ac_check_lib_save_LIBS
28922 fi
28923 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
28924 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
28925 if test $ac_cv_lib_z_deflate = yes; then
28926   ZLIB_LINK=" -lz"
28927 fi
28928
28929         fi
28930
28931         if test "x$ZLIB_LINK" = "x" ; then
28932             if test "$wxUSE_ZLIB" = "sys" ; then
28933                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
28934 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
28935    { (exit 1); exit 1; }; }
28936             else
28937                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
28938 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
28939                 wxUSE_ZLIB=builtin
28940             fi
28941         else
28942                         wxUSE_ZLIB=sys
28943         fi
28944     fi
28945 fi
28946
28947
28948 PNG_LINK=
28949 if test "$wxUSE_LIBPNG" != "no" ; then
28950     cat >>confdefs.h <<\_ACEOF
28951 #define wxUSE_LIBPNG 1
28952 _ACEOF
28953
28954
28955     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
28956         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
28957 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
28958         wxUSE_LIBPNG=sys
28959     fi
28960
28961                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
28962         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
28963 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
28964         wxUSE_LIBPNG=builtin
28965     fi
28966
28967     if test "$wxUSE_MGL" != 1 ; then
28968                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
28969                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
28970 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
28971 if test "${ac_cv_header_png_h+set}" = set; then
28972   echo $ECHO_N "(cached) $ECHO_C" >&6
28973 else
28974   if test "$cross_compiling" = yes; then
28975                       unset ac_cv_header_png_h
28976
28977 else
28978   cat >conftest.$ac_ext <<_ACEOF
28979 /* confdefs.h.  */
28980 _ACEOF
28981 cat confdefs.h >>conftest.$ac_ext
28982 cat >>conftest.$ac_ext <<_ACEOF
28983 /* end confdefs.h.  */
28984
28985                         #include <png.h>
28986                         #include <stdio.h>
28987
28988                         int main()
28989                         {
28990                             FILE *f=fopen("conftestval", "w");
28991                             if (!f) exit(1);
28992                             fprintf(f, "%s",
28993                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
28994                             exit(0);
28995                         }
28996
28997 _ACEOF
28998 rm -f conftest$ac_exeext
28999 if { (ac_try="$ac_link"
29000 case "(($ac_try" in
29001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29002   *) ac_try_echo=$ac_try;;
29003 esac
29004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29005   (eval "$ac_link") 2>&5
29006   ac_status=$?
29007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29008   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29009   { (case "(($ac_try" in
29010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29011   *) ac_try_echo=$ac_try;;
29012 esac
29013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29014   (eval "$ac_try") 2>&5
29015   ac_status=$?
29016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29017   (exit $ac_status); }; }; then
29018   ac_cv_header_png_h=`cat conftestval`
29019 else
29020   echo "$as_me: program exited with status $ac_status" >&5
29021 echo "$as_me: failed program was:" >&5
29022 sed 's/^/| /' conftest.$ac_ext >&5
29023
29024 ( exit $ac_status )
29025 ac_cv_header_png_h=no
29026 fi
29027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29028 fi
29029
29030
29031
29032 fi
29033 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29034 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29035             { echo "$as_me:$LINENO: checking for png.h" >&5
29036 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29037 if test "${ac_cv_header_png_h+set}" = set; then
29038   echo $ECHO_N "(cached) $ECHO_C" >&6
29039 else
29040   cat >conftest.$ac_ext <<_ACEOF
29041 /* confdefs.h.  */
29042 _ACEOF
29043 cat confdefs.h >>conftest.$ac_ext
29044 cat >>conftest.$ac_ext <<_ACEOF
29045 /* end confdefs.h.  */
29046
29047
29048 #include <png.h>
29049 _ACEOF
29050 rm -f conftest.$ac_objext
29051 if { (ac_try="$ac_compile"
29052 case "(($ac_try" in
29053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29054   *) ac_try_echo=$ac_try;;
29055 esac
29056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29057   (eval "$ac_compile") 2>conftest.er1
29058   ac_status=$?
29059   grep -v '^ *+' conftest.er1 >conftest.err
29060   rm -f conftest.er1
29061   cat conftest.err >&5
29062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29063   (exit $ac_status); } && {
29064          test -z "$ac_c_werror_flag" ||
29065          test ! -s conftest.err
29066        } && test -s conftest.$ac_objext; then
29067   ac_cv_header_png_h=yes
29068 else
29069   echo "$as_me: failed program was:" >&5
29070 sed 's/^/| /' conftest.$ac_ext >&5
29071
29072         ac_cv_header_png_h=no
29073 fi
29074
29075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29076 fi
29077 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29078 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29079
29080
29081
29082             if test "$ac_cv_header_png_h" = "yes"; then
29083                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29084 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29085 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29086   echo $ECHO_N "(cached) $ECHO_C" >&6
29087 else
29088   ac_check_lib_save_LIBS=$LIBS
29089 LIBS="-lpng -lz -lm $LIBS"
29090 cat >conftest.$ac_ext <<_ACEOF
29091 /* confdefs.h.  */
29092 _ACEOF
29093 cat confdefs.h >>conftest.$ac_ext
29094 cat >>conftest.$ac_ext <<_ACEOF
29095 /* end confdefs.h.  */
29096
29097 /* Override any GCC internal prototype to avoid an error.
29098    Use char because int might match the return type of a GCC
29099    builtin and then its argument prototype would still apply.  */
29100 #ifdef __cplusplus
29101 extern "C"
29102 #endif
29103 char png_check_sig ();
29104 int
29105 main ()
29106 {
29107 return png_check_sig ();
29108   ;
29109   return 0;
29110 }
29111 _ACEOF
29112 rm -f conftest.$ac_objext conftest$ac_exeext
29113 if { (ac_try="$ac_link"
29114 case "(($ac_try" in
29115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29116   *) ac_try_echo=$ac_try;;
29117 esac
29118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29119   (eval "$ac_link") 2>conftest.er1
29120   ac_status=$?
29121   grep -v '^ *+' conftest.er1 >conftest.err
29122   rm -f conftest.er1
29123   cat conftest.err >&5
29124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29125   (exit $ac_status); } && {
29126          test -z "$ac_c_werror_flag" ||
29127          test ! -s conftest.err
29128        } && test -s conftest$ac_exeext &&
29129        $as_test_x conftest$ac_exeext; then
29130   ac_cv_lib_png_png_check_sig=yes
29131 else
29132   echo "$as_me: failed program was:" >&5
29133 sed 's/^/| /' conftest.$ac_ext >&5
29134
29135         ac_cv_lib_png_png_check_sig=no
29136 fi
29137
29138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29139       conftest$ac_exeext conftest.$ac_ext
29140 LIBS=$ac_check_lib_save_LIBS
29141 fi
29142 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29143 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29144 if test $ac_cv_lib_png_png_check_sig = yes; then
29145   PNG_LINK=" -lpng -lz"
29146 fi
29147
29148             fi
29149
29150             if test "x$PNG_LINK" = "x" ; then
29151                 if test "$wxUSE_LIBPNG" = "sys" ; then
29152                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29153 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29154    { (exit 1); exit 1; }; }
29155                 else
29156                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29157 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29158                     wxUSE_LIBPNG=builtin
29159                 fi
29160             else
29161                                 wxUSE_LIBPNG=sys
29162             fi
29163         fi
29164     fi
29165 fi
29166
29167
29168 TIFF_LINK=
29169 TIFF_PREREQ_LINKS=-lm
29170 if test "$wxUSE_LIBTIFF" != "no" ; then
29171     cat >>confdefs.h <<\_ACEOF
29172 #define wxUSE_LIBTIFF 1
29173 _ACEOF
29174
29175
29176     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29177                         if test "$wxUSE_LIBJPEG" = "sys"; then
29178             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29179         fi
29180         if test "$wxUSE_ZLIB" = "sys"; then
29181             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29182         fi
29183         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29184 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29185 if test "${ac_cv_header_tiffio_h+set}" = set; then
29186   echo $ECHO_N "(cached) $ECHO_C" >&6
29187 else
29188   cat >conftest.$ac_ext <<_ACEOF
29189 /* confdefs.h.  */
29190 _ACEOF
29191 cat confdefs.h >>conftest.$ac_ext
29192 cat >>conftest.$ac_ext <<_ACEOF
29193 /* end confdefs.h.  */
29194
29195
29196
29197 #include <tiffio.h>
29198 _ACEOF
29199 rm -f conftest.$ac_objext
29200 if { (ac_try="$ac_compile"
29201 case "(($ac_try" in
29202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29203   *) ac_try_echo=$ac_try;;
29204 esac
29205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29206   (eval "$ac_compile") 2>conftest.er1
29207   ac_status=$?
29208   grep -v '^ *+' conftest.er1 >conftest.err
29209   rm -f conftest.er1
29210   cat conftest.err >&5
29211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29212   (exit $ac_status); } && {
29213          test -z "$ac_c_werror_flag" ||
29214          test ! -s conftest.err
29215        } && test -s conftest.$ac_objext; then
29216   ac_cv_header_tiffio_h=yes
29217 else
29218   echo "$as_me: failed program was:" >&5
29219 sed 's/^/| /' conftest.$ac_ext >&5
29220
29221         ac_cv_header_tiffio_h=no
29222 fi
29223
29224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29225 fi
29226 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29227 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29228 if test $ac_cv_header_tiffio_h = yes; then
29229
29230                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29231 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29232 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29233   echo $ECHO_N "(cached) $ECHO_C" >&6
29234 else
29235   ac_check_lib_save_LIBS=$LIBS
29236 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29237 cat >conftest.$ac_ext <<_ACEOF
29238 /* confdefs.h.  */
29239 _ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h.  */
29243
29244 /* Override any GCC internal prototype to avoid an error.
29245    Use char because int might match the return type of a GCC
29246    builtin and then its argument prototype would still apply.  */
29247 #ifdef __cplusplus
29248 extern "C"
29249 #endif
29250 char TIFFError ();
29251 int
29252 main ()
29253 {
29254 return TIFFError ();
29255   ;
29256   return 0;
29257 }
29258 _ACEOF
29259 rm -f conftest.$ac_objext conftest$ac_exeext
29260 if { (ac_try="$ac_link"
29261 case "(($ac_try" in
29262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29263   *) ac_try_echo=$ac_try;;
29264 esac
29265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29266   (eval "$ac_link") 2>conftest.er1
29267   ac_status=$?
29268   grep -v '^ *+' conftest.er1 >conftest.err
29269   rm -f conftest.er1
29270   cat conftest.err >&5
29271   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29272   (exit $ac_status); } && {
29273          test -z "$ac_c_werror_flag" ||
29274          test ! -s conftest.err
29275        } && test -s conftest$ac_exeext &&
29276        $as_test_x conftest$ac_exeext; then
29277   ac_cv_lib_tiff_TIFFError=yes
29278 else
29279   echo "$as_me: failed program was:" >&5
29280 sed 's/^/| /' conftest.$ac_ext >&5
29281
29282         ac_cv_lib_tiff_TIFFError=no
29283 fi
29284
29285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29286       conftest$ac_exeext conftest.$ac_ext
29287 LIBS=$ac_check_lib_save_LIBS
29288 fi
29289 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
29290 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
29291 if test $ac_cv_lib_tiff_TIFFError = yes; then
29292   TIFF_LINK=" -ltiff"
29293 fi
29294
29295
29296 fi
29297
29298
29299
29300         if test "x$TIFF_LINK" = "x" ; then
29301             if test "$wxUSE_LIBTIFF" = "sys" ; then
29302                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
29303 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
29304    { (exit 1); exit 1; }; }
29305             else
29306                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
29307 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
29308                 wxUSE_LIBTIFF=builtin
29309             fi
29310         else
29311                         wxUSE_LIBTIFF=sys
29312         fi
29313     fi
29314     if test "$wxUSE_LIBTIFF" = "builtin" ; then
29315         subdirs="$subdirs src/tiff"
29316
29317     fi
29318 fi
29319
29320
29321 JPEG_LINK=
29322 if test "$wxUSE_LIBJPEG" != "no" ; then
29323     cat >>confdefs.h <<\_ACEOF
29324 #define wxUSE_LIBJPEG 1
29325 _ACEOF
29326
29327
29328     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29329         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29330 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29331         wxUSE_LIBJPEG=sys
29332     fi
29333
29334     if test "$wxUSE_MGL" != 1 ; then
29335                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29336                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29337 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29338             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29339   echo $ECHO_N "(cached) $ECHO_C" >&6
29340 else
29341   cat >conftest.$ac_ext <<_ACEOF
29342 /* confdefs.h.  */
29343 _ACEOF
29344 cat confdefs.h >>conftest.$ac_ext
29345 cat >>conftest.$ac_ext <<_ACEOF
29346 /* end confdefs.h.  */
29347
29348                         #undef HAVE_STDLIB_H
29349                         #include <stdio.h>
29350                         #include <jpeglib.h>
29351
29352 int
29353 main ()
29354 {
29355
29356
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 rm -f conftest.$ac_objext
29362 if { (ac_try="$ac_compile"
29363 case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29368   (eval "$ac_compile") 2>conftest.er1
29369   ac_status=$?
29370   grep -v '^ *+' conftest.er1 >conftest.err
29371   rm -f conftest.er1
29372   cat conftest.err >&5
29373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29374   (exit $ac_status); } && {
29375          test -z "$ac_c_werror_flag" ||
29376          test ! -s conftest.err
29377        } && test -s conftest.$ac_objext; then
29378   ac_cv_header_jpeglib_h=yes
29379 else
29380   echo "$as_me: failed program was:" >&5
29381 sed 's/^/| /' conftest.$ac_ext >&5
29382
29383         ac_cv_header_jpeglib_h=no
29384
29385 fi
29386
29387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388
29389 fi
29390
29391             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29392 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29393
29394             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29395                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29396 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29397 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29398   echo $ECHO_N "(cached) $ECHO_C" >&6
29399 else
29400   ac_check_lib_save_LIBS=$LIBS
29401 LIBS="-ljpeg  $LIBS"
29402 cat >conftest.$ac_ext <<_ACEOF
29403 /* confdefs.h.  */
29404 _ACEOF
29405 cat confdefs.h >>conftest.$ac_ext
29406 cat >>conftest.$ac_ext <<_ACEOF
29407 /* end confdefs.h.  */
29408
29409 /* Override any GCC internal prototype to avoid an error.
29410    Use char because int might match the return type of a GCC
29411    builtin and then its argument prototype would still apply.  */
29412 #ifdef __cplusplus
29413 extern "C"
29414 #endif
29415 char jpeg_read_header ();
29416 int
29417 main ()
29418 {
29419 return jpeg_read_header ();
29420   ;
29421   return 0;
29422 }
29423 _ACEOF
29424 rm -f conftest.$ac_objext conftest$ac_exeext
29425 if { (ac_try="$ac_link"
29426 case "(($ac_try" in
29427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29428   *) ac_try_echo=$ac_try;;
29429 esac
29430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29431   (eval "$ac_link") 2>conftest.er1
29432   ac_status=$?
29433   grep -v '^ *+' conftest.er1 >conftest.err
29434   rm -f conftest.er1
29435   cat conftest.err >&5
29436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29437   (exit $ac_status); } && {
29438          test -z "$ac_c_werror_flag" ||
29439          test ! -s conftest.err
29440        } && test -s conftest$ac_exeext &&
29441        $as_test_x conftest$ac_exeext; then
29442   ac_cv_lib_jpeg_jpeg_read_header=yes
29443 else
29444   echo "$as_me: failed program was:" >&5
29445 sed 's/^/| /' conftest.$ac_ext >&5
29446
29447         ac_cv_lib_jpeg_jpeg_read_header=no
29448 fi
29449
29450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29451       conftest$ac_exeext conftest.$ac_ext
29452 LIBS=$ac_check_lib_save_LIBS
29453 fi
29454 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29455 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29456 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29457   JPEG_LINK=" -ljpeg"
29458 fi
29459
29460             fi
29461
29462             if test "x$JPEG_LINK" = "x" ; then
29463                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29464                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29465 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29466    { (exit 1); exit 1; }; }
29467                 else
29468                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29469 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29470                     wxUSE_LIBJPEG=builtin
29471                 fi
29472             else
29473                                 wxUSE_LIBJPEG=sys
29474
29475                 if test "$wxUSE_MSW" = 1; then
29476                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29477 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29478 if test "${ac_cv_type_boolean+set}" = set; then
29479   echo $ECHO_N "(cached) $ECHO_C" >&6
29480 else
29481   cat >conftest.$ac_ext <<_ACEOF
29482 /* confdefs.h.  */
29483 _ACEOF
29484 cat confdefs.h >>conftest.$ac_ext
29485 cat >>conftest.$ac_ext <<_ACEOF
29486 /* end confdefs.h.  */
29487 #include <windows.h>
29488
29489 typedef boolean ac__type_new_;
29490 int
29491 main ()
29492 {
29493 if ((ac__type_new_ *) 0)
29494   return 0;
29495 if (sizeof (ac__type_new_))
29496   return 0;
29497   ;
29498   return 0;
29499 }
29500 _ACEOF
29501 rm -f conftest.$ac_objext
29502 if { (ac_try="$ac_compile"
29503 case "(($ac_try" in
29504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29505   *) ac_try_echo=$ac_try;;
29506 esac
29507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29508   (eval "$ac_compile") 2>conftest.er1
29509   ac_status=$?
29510   grep -v '^ *+' conftest.er1 >conftest.err
29511   rm -f conftest.er1
29512   cat conftest.err >&5
29513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29514   (exit $ac_status); } && {
29515          test -z "$ac_c_werror_flag" ||
29516          test ! -s conftest.err
29517        } && test -s conftest.$ac_objext; then
29518   ac_cv_type_boolean=yes
29519 else
29520   echo "$as_me: failed program was:" >&5
29521 sed 's/^/| /' conftest.$ac_ext >&5
29522
29523         ac_cv_type_boolean=no
29524 fi
29525
29526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29527 fi
29528 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29529 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29530 if test $ac_cv_type_boolean = yes; then
29531
29532 cat >>confdefs.h <<_ACEOF
29533 #define HAVE_BOOLEAN 1
29534 _ACEOF
29535
29536
29537                             { echo "$as_me:$LINENO: checking for boolean" >&5
29538 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29539 if test "${ac_cv_type_boolean+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542   cat >conftest.$ac_ext <<_ACEOF
29543 /* confdefs.h.  */
29544 _ACEOF
29545 cat confdefs.h >>conftest.$ac_ext
29546 cat >>conftest.$ac_ext <<_ACEOF
29547 /* end confdefs.h.  */
29548
29549                                     #undef HAVE_BOOLEAN
29550                                     #include <stdio.h>
29551                                     #include <jpeglib.h>
29552
29553
29554 typedef boolean ac__type_new_;
29555 int
29556 main ()
29557 {
29558 if ((ac__type_new_ *) 0)
29559   return 0;
29560 if (sizeof (ac__type_new_))
29561   return 0;
29562   ;
29563   return 0;
29564 }
29565 _ACEOF
29566 rm -f conftest.$ac_objext
29567 if { (ac_try="$ac_compile"
29568 case "(($ac_try" in
29569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29570   *) ac_try_echo=$ac_try;;
29571 esac
29572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29573   (eval "$ac_compile") 2>conftest.er1
29574   ac_status=$?
29575   grep -v '^ *+' conftest.er1 >conftest.err
29576   rm -f conftest.er1
29577   cat conftest.err >&5
29578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579   (exit $ac_status); } && {
29580          test -z "$ac_c_werror_flag" ||
29581          test ! -s conftest.err
29582        } && test -s conftest.$ac_objext; then
29583   ac_cv_type_boolean=yes
29584 else
29585   echo "$as_me: failed program was:" >&5
29586 sed 's/^/| /' conftest.$ac_ext >&5
29587
29588         ac_cv_type_boolean=no
29589 fi
29590
29591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29592 fi
29593 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29594 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29595
29596 # The cast to long int works around a bug in the HP C Compiler
29597 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29598 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29599 # This bug is HP SR number 8606223364.
29600 { echo "$as_me:$LINENO: checking size of boolean" >&5
29601 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29602 if test "${ac_cv_sizeof_boolean+set}" = set; then
29603   echo $ECHO_N "(cached) $ECHO_C" >&6
29604 else
29605   if test "$cross_compiling" = yes; then
29606   # Depending upon the size, compute the lo and hi bounds.
29607 cat >conftest.$ac_ext <<_ACEOF
29608 /* confdefs.h.  */
29609 _ACEOF
29610 cat confdefs.h >>conftest.$ac_ext
29611 cat >>conftest.$ac_ext <<_ACEOF
29612 /* end confdefs.h.  */
29613
29614                                     #undef HAVE_BOOLEAN
29615                                     #include <stdio.h>
29616                                     #include <jpeglib.h>
29617
29618
29619    typedef boolean ac__type_sizeof_;
29620 int
29621 main ()
29622 {
29623 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29624 test_array [0] = 0
29625
29626   ;
29627   return 0;
29628 }
29629 _ACEOF
29630 rm -f conftest.$ac_objext
29631 if { (ac_try="$ac_compile"
29632 case "(($ac_try" in
29633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29634   *) ac_try_echo=$ac_try;;
29635 esac
29636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29637   (eval "$ac_compile") 2>conftest.er1
29638   ac_status=$?
29639   grep -v '^ *+' conftest.er1 >conftest.err
29640   rm -f conftest.er1
29641   cat conftest.err >&5
29642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29643   (exit $ac_status); } && {
29644          test -z "$ac_c_werror_flag" ||
29645          test ! -s conftest.err
29646        } && test -s conftest.$ac_objext; then
29647   ac_lo=0 ac_mid=0
29648   while :; do
29649     cat >conftest.$ac_ext <<_ACEOF
29650 /* confdefs.h.  */
29651 _ACEOF
29652 cat confdefs.h >>conftest.$ac_ext
29653 cat >>conftest.$ac_ext <<_ACEOF
29654 /* end confdefs.h.  */
29655
29656                                     #undef HAVE_BOOLEAN
29657                                     #include <stdio.h>
29658                                     #include <jpeglib.h>
29659
29660
29661    typedef boolean ac__type_sizeof_;
29662 int
29663 main ()
29664 {
29665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29666 test_array [0] = 0
29667
29668   ;
29669   return 0;
29670 }
29671 _ACEOF
29672 rm -f conftest.$ac_objext
29673 if { (ac_try="$ac_compile"
29674 case "(($ac_try" in
29675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29676   *) ac_try_echo=$ac_try;;
29677 esac
29678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29679   (eval "$ac_compile") 2>conftest.er1
29680   ac_status=$?
29681   grep -v '^ *+' conftest.er1 >conftest.err
29682   rm -f conftest.er1
29683   cat conftest.err >&5
29684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685   (exit $ac_status); } && {
29686          test -z "$ac_c_werror_flag" ||
29687          test ! -s conftest.err
29688        } && test -s conftest.$ac_objext; then
29689   ac_hi=$ac_mid; break
29690 else
29691   echo "$as_me: failed program was:" >&5
29692 sed 's/^/| /' conftest.$ac_ext >&5
29693
29694         ac_lo=`expr $ac_mid + 1`
29695                         if test $ac_lo -le $ac_mid; then
29696                           ac_lo= ac_hi=
29697                           break
29698                         fi
29699                         ac_mid=`expr 2 '*' $ac_mid + 1`
29700 fi
29701
29702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29703   done
29704 else
29705   echo "$as_me: failed program was:" >&5
29706 sed 's/^/| /' conftest.$ac_ext >&5
29707
29708         cat >conftest.$ac_ext <<_ACEOF
29709 /* confdefs.h.  */
29710 _ACEOF
29711 cat confdefs.h >>conftest.$ac_ext
29712 cat >>conftest.$ac_ext <<_ACEOF
29713 /* end confdefs.h.  */
29714
29715                                     #undef HAVE_BOOLEAN
29716                                     #include <stdio.h>
29717                                     #include <jpeglib.h>
29718
29719
29720    typedef boolean ac__type_sizeof_;
29721 int
29722 main ()
29723 {
29724 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29725 test_array [0] = 0
29726
29727   ;
29728   return 0;
29729 }
29730 _ACEOF
29731 rm -f conftest.$ac_objext
29732 if { (ac_try="$ac_compile"
29733 case "(($ac_try" in
29734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29735   *) ac_try_echo=$ac_try;;
29736 esac
29737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29738   (eval "$ac_compile") 2>conftest.er1
29739   ac_status=$?
29740   grep -v '^ *+' conftest.er1 >conftest.err
29741   rm -f conftest.er1
29742   cat conftest.err >&5
29743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29744   (exit $ac_status); } && {
29745          test -z "$ac_c_werror_flag" ||
29746          test ! -s conftest.err
29747        } && test -s conftest.$ac_objext; then
29748   ac_hi=-1 ac_mid=-1
29749   while :; do
29750     cat >conftest.$ac_ext <<_ACEOF
29751 /* confdefs.h.  */
29752 _ACEOF
29753 cat confdefs.h >>conftest.$ac_ext
29754 cat >>conftest.$ac_ext <<_ACEOF
29755 /* end confdefs.h.  */
29756
29757                                     #undef HAVE_BOOLEAN
29758                                     #include <stdio.h>
29759                                     #include <jpeglib.h>
29760
29761
29762    typedef boolean ac__type_sizeof_;
29763 int
29764 main ()
29765 {
29766 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29767 test_array [0] = 0
29768
29769   ;
29770   return 0;
29771 }
29772 _ACEOF
29773 rm -f conftest.$ac_objext
29774 if { (ac_try="$ac_compile"
29775 case "(($ac_try" in
29776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29777   *) ac_try_echo=$ac_try;;
29778 esac
29779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29780   (eval "$ac_compile") 2>conftest.er1
29781   ac_status=$?
29782   grep -v '^ *+' conftest.er1 >conftest.err
29783   rm -f conftest.er1
29784   cat conftest.err >&5
29785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29786   (exit $ac_status); } && {
29787          test -z "$ac_c_werror_flag" ||
29788          test ! -s conftest.err
29789        } && test -s conftest.$ac_objext; then
29790   ac_lo=$ac_mid; break
29791 else
29792   echo "$as_me: failed program was:" >&5
29793 sed 's/^/| /' conftest.$ac_ext >&5
29794
29795         ac_hi=`expr '(' $ac_mid ')' - 1`
29796                         if test $ac_mid -le $ac_hi; then
29797                           ac_lo= ac_hi=
29798                           break
29799                         fi
29800                         ac_mid=`expr 2 '*' $ac_mid`
29801 fi
29802
29803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29804   done
29805 else
29806   echo "$as_me: failed program was:" >&5
29807 sed 's/^/| /' conftest.$ac_ext >&5
29808
29809         ac_lo= ac_hi=
29810 fi
29811
29812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29813 fi
29814
29815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29816 # Binary search between lo and hi bounds.
29817 while test "x$ac_lo" != "x$ac_hi"; do
29818   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29819   cat >conftest.$ac_ext <<_ACEOF
29820 /* confdefs.h.  */
29821 _ACEOF
29822 cat confdefs.h >>conftest.$ac_ext
29823 cat >>conftest.$ac_ext <<_ACEOF
29824 /* end confdefs.h.  */
29825
29826                                     #undef HAVE_BOOLEAN
29827                                     #include <stdio.h>
29828                                     #include <jpeglib.h>
29829
29830
29831    typedef boolean ac__type_sizeof_;
29832 int
29833 main ()
29834 {
29835 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29836 test_array [0] = 0
29837
29838   ;
29839   return 0;
29840 }
29841 _ACEOF
29842 rm -f conftest.$ac_objext
29843 if { (ac_try="$ac_compile"
29844 case "(($ac_try" in
29845   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29846   *) ac_try_echo=$ac_try;;
29847 esac
29848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29849   (eval "$ac_compile") 2>conftest.er1
29850   ac_status=$?
29851   grep -v '^ *+' conftest.er1 >conftest.err
29852   rm -f conftest.er1
29853   cat conftest.err >&5
29854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29855   (exit $ac_status); } && {
29856          test -z "$ac_c_werror_flag" ||
29857          test ! -s conftest.err
29858        } && test -s conftest.$ac_objext; then
29859   ac_hi=$ac_mid
29860 else
29861   echo "$as_me: failed program was:" >&5
29862 sed 's/^/| /' conftest.$ac_ext >&5
29863
29864         ac_lo=`expr '(' $ac_mid ')' + 1`
29865 fi
29866
29867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29868 done
29869 case $ac_lo in
29870 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29871 '') if test "$ac_cv_type_boolean" = yes; then
29872      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29873 See \`config.log' for more details." >&5
29874 echo "$as_me: error: cannot compute sizeof (boolean)
29875 See \`config.log' for more details." >&2;}
29876    { (exit 77); exit 77; }; }
29877    else
29878      ac_cv_sizeof_boolean=0
29879    fi ;;
29880 esac
29881 else
29882   cat >conftest.$ac_ext <<_ACEOF
29883 /* confdefs.h.  */
29884 _ACEOF
29885 cat confdefs.h >>conftest.$ac_ext
29886 cat >>conftest.$ac_ext <<_ACEOF
29887 /* end confdefs.h.  */
29888
29889                                     #undef HAVE_BOOLEAN
29890                                     #include <stdio.h>
29891                                     #include <jpeglib.h>
29892
29893
29894    typedef boolean ac__type_sizeof_;
29895 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29896 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29897 #include <stdio.h>
29898 #include <stdlib.h>
29899 int
29900 main ()
29901 {
29902
29903   FILE *f = fopen ("conftest.val", "w");
29904   if (! f)
29905     return 1;
29906   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29907     {
29908       long int i = longval ();
29909       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29910         return 1;
29911       fprintf (f, "%ld\n", i);
29912     }
29913   else
29914     {
29915       unsigned long int i = ulongval ();
29916       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29917         return 1;
29918       fprintf (f, "%lu\n", i);
29919     }
29920   return ferror (f) || fclose (f) != 0;
29921
29922   ;
29923   return 0;
29924 }
29925 _ACEOF
29926 rm -f conftest$ac_exeext
29927 if { (ac_try="$ac_link"
29928 case "(($ac_try" in
29929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29930   *) ac_try_echo=$ac_try;;
29931 esac
29932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29933   (eval "$ac_link") 2>&5
29934   ac_status=$?
29935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29937   { (case "(($ac_try" in
29938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29939   *) ac_try_echo=$ac_try;;
29940 esac
29941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29942   (eval "$ac_try") 2>&5
29943   ac_status=$?
29944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945   (exit $ac_status); }; }; then
29946   ac_cv_sizeof_boolean=`cat conftest.val`
29947 else
29948   echo "$as_me: program exited with status $ac_status" >&5
29949 echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29951
29952 ( exit $ac_status )
29953 if test "$ac_cv_type_boolean" = yes; then
29954      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29955 See \`config.log' for more details." >&5
29956 echo "$as_me: error: cannot compute sizeof (boolean)
29957 See \`config.log' for more details." >&2;}
29958    { (exit 77); exit 77; }; }
29959    else
29960      ac_cv_sizeof_boolean=0
29961    fi
29962 fi
29963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29964 fi
29965 rm -f conftest.val
29966 fi
29967 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29968 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29969
29970
29971
29972 cat >>confdefs.h <<_ACEOF
29973 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29974 _ACEOF
29975
29976
29977                             cat >>confdefs.h <<_ACEOF
29978 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29979 _ACEOF
29980
29981
29982 fi
29983
29984                 fi
29985             fi
29986         fi
29987     fi
29988 else
29989         if test "$wxUSE_LIBTIFF" = "builtin"; then
29990                                                         ac_configure_args="$ac_configure_args --disable-jpeg"
29991     fi
29992 fi
29993
29994
29995 if test "$wxUSE_WCHAR_T" != "yes"; then
29996     if test "$wxUSE_EXPAT" != "no"; then
29997         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
29998 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
29999         wxUSE_EXPAT=no
30000     fi
30001     if test "$wxUSE_XML" != "no"; then
30002         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30003 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30004         wxUSE_XML=no
30005     fi
30006 fi
30007
30008 if test "$wxUSE_EXPAT" != "no"; then
30009     wxUSE_XML=yes
30010     cat >>confdefs.h <<\_ACEOF
30011 #define wxUSE_EXPAT 1
30012 _ACEOF
30013
30014     cat >>confdefs.h <<\_ACEOF
30015 #define wxUSE_XML 1
30016 _ACEOF
30017
30018
30019     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30020         { echo "$as_me:$LINENO: checking for expat.h" >&5
30021 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30022 if test "${ac_cv_header_expat_h+set}" = set; then
30023   echo $ECHO_N "(cached) $ECHO_C" >&6
30024 else
30025   cat >conftest.$ac_ext <<_ACEOF
30026 /* confdefs.h.  */
30027 _ACEOF
30028 cat confdefs.h >>conftest.$ac_ext
30029 cat >>conftest.$ac_ext <<_ACEOF
30030 /* end confdefs.h.  */
30031
30032
30033 #include <expat.h>
30034 _ACEOF
30035 rm -f conftest.$ac_objext
30036 if { (ac_try="$ac_compile"
30037 case "(($ac_try" in
30038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30039   *) ac_try_echo=$ac_try;;
30040 esac
30041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30042   (eval "$ac_compile") 2>conftest.er1
30043   ac_status=$?
30044   grep -v '^ *+' conftest.er1 >conftest.err
30045   rm -f conftest.er1
30046   cat conftest.err >&5
30047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30048   (exit $ac_status); } && {
30049          test -z "$ac_c_werror_flag" ||
30050          test ! -s conftest.err
30051        } && test -s conftest.$ac_objext; then
30052   ac_cv_header_expat_h=yes
30053 else
30054   echo "$as_me: failed program was:" >&5
30055 sed 's/^/| /' conftest.$ac_ext >&5
30056
30057         ac_cv_header_expat_h=no
30058 fi
30059
30060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30061 fi
30062 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30063 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30064 if test $ac_cv_header_expat_h = yes; then
30065   found_expat_h=1
30066 fi
30067
30068
30069         if test "x$found_expat_h" = "x1"; then
30070                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30071 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30072 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30073   echo $ECHO_N "(cached) $ECHO_C" >&6
30074 else
30075
30076                 ac_ext=cpp
30077 ac_cpp='$CXXCPP $CPPFLAGS'
30078 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30079 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30080 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30081
30082                 cat >conftest.$ac_ext <<_ACEOF
30083 /* confdefs.h.  */
30084 _ACEOF
30085 cat confdefs.h >>conftest.$ac_ext
30086 cat >>conftest.$ac_ext <<_ACEOF
30087 /* end confdefs.h.  */
30088 #include <expat.h>
30089 int
30090 main ()
30091 {
30092
30093   ;
30094   return 0;
30095 }
30096 _ACEOF
30097 rm -f conftest.$ac_objext
30098 if { (ac_try="$ac_compile"
30099 case "(($ac_try" in
30100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30101   *) ac_try_echo=$ac_try;;
30102 esac
30103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30104   (eval "$ac_compile") 2>conftest.er1
30105   ac_status=$?
30106   grep -v '^ *+' conftest.er1 >conftest.err
30107   rm -f conftest.er1
30108   cat conftest.err >&5
30109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30110   (exit $ac_status); } && {
30111          test -z "$ac_cxx_werror_flag" ||
30112          test ! -s conftest.err
30113        } && test -s conftest.$ac_objext; then
30114   wx_cv_expat_is_not_broken=yes
30115 else
30116   echo "$as_me: failed program was:" >&5
30117 sed 's/^/| /' conftest.$ac_ext >&5
30118
30119         wx_cv_expat_is_not_broken=no
30120
30121 fi
30122
30123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30124                 ac_ext=c
30125 ac_cpp='$CPP $CPPFLAGS'
30126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30129
30130
30131
30132 fi
30133 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30134 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30135             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30136                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30137 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30138 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30139   echo $ECHO_N "(cached) $ECHO_C" >&6
30140 else
30141   ac_check_lib_save_LIBS=$LIBS
30142 LIBS="-lexpat  $LIBS"
30143 cat >conftest.$ac_ext <<_ACEOF
30144 /* confdefs.h.  */
30145 _ACEOF
30146 cat confdefs.h >>conftest.$ac_ext
30147 cat >>conftest.$ac_ext <<_ACEOF
30148 /* end confdefs.h.  */
30149
30150 /* Override any GCC internal prototype to avoid an error.
30151    Use char because int might match the return type of a GCC
30152    builtin and then its argument prototype would still apply.  */
30153 #ifdef __cplusplus
30154 extern "C"
30155 #endif
30156 char XML_ParserCreate ();
30157 int
30158 main ()
30159 {
30160 return XML_ParserCreate ();
30161   ;
30162   return 0;
30163 }
30164 _ACEOF
30165 rm -f conftest.$ac_objext conftest$ac_exeext
30166 if { (ac_try="$ac_link"
30167 case "(($ac_try" in
30168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30169   *) ac_try_echo=$ac_try;;
30170 esac
30171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30172   (eval "$ac_link") 2>conftest.er1
30173   ac_status=$?
30174   grep -v '^ *+' conftest.er1 >conftest.err
30175   rm -f conftest.er1
30176   cat conftest.err >&5
30177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30178   (exit $ac_status); } && {
30179          test -z "$ac_c_werror_flag" ||
30180          test ! -s conftest.err
30181        } && test -s conftest$ac_exeext &&
30182        $as_test_x conftest$ac_exeext; then
30183   ac_cv_lib_expat_XML_ParserCreate=yes
30184 else
30185   echo "$as_me: failed program was:" >&5
30186 sed 's/^/| /' conftest.$ac_ext >&5
30187
30188         ac_cv_lib_expat_XML_ParserCreate=no
30189 fi
30190
30191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30192       conftest$ac_exeext conftest.$ac_ext
30193 LIBS=$ac_check_lib_save_LIBS
30194 fi
30195 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30196 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30197 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30198   EXPAT_LINK=" -lexpat"
30199 fi
30200
30201             fi
30202         fi
30203         if test "x$EXPAT_LINK" = "x" ; then
30204             if test "$wxUSE_EXPAT" = "sys" ; then
30205                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30206 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30207    { (exit 1); exit 1; }; }
30208             else
30209                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30210 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30211                 wxUSE_EXPAT=builtin
30212             fi
30213         else
30214                         wxUSE_EXPAT=sys
30215         fi
30216     fi
30217     if test "$wxUSE_EXPAT" = "builtin" ; then
30218                 subdirs="$subdirs src/expat"
30219
30220     fi
30221 fi
30222
30223
30224
30225 if test "$wxUSE_LIBMSPACK" != "no"; then
30226     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30227 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30228 if test "${ac_cv_header_mspack_h+set}" = set; then
30229   echo $ECHO_N "(cached) $ECHO_C" >&6
30230 else
30231   cat >conftest.$ac_ext <<_ACEOF
30232 /* confdefs.h.  */
30233 _ACEOF
30234 cat confdefs.h >>conftest.$ac_ext
30235 cat >>conftest.$ac_ext <<_ACEOF
30236 /* end confdefs.h.  */
30237
30238
30239 #include <mspack.h>
30240 _ACEOF
30241 rm -f conftest.$ac_objext
30242 if { (ac_try="$ac_compile"
30243 case "(($ac_try" in
30244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30245   *) ac_try_echo=$ac_try;;
30246 esac
30247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30248   (eval "$ac_compile") 2>conftest.er1
30249   ac_status=$?
30250   grep -v '^ *+' conftest.er1 >conftest.err
30251   rm -f conftest.er1
30252   cat conftest.err >&5
30253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30254   (exit $ac_status); } && {
30255          test -z "$ac_c_werror_flag" ||
30256          test ! -s conftest.err
30257        } && test -s conftest.$ac_objext; then
30258   ac_cv_header_mspack_h=yes
30259 else
30260   echo "$as_me: failed program was:" >&5
30261 sed 's/^/| /' conftest.$ac_ext >&5
30262
30263         ac_cv_header_mspack_h=no
30264 fi
30265
30266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30267 fi
30268 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30269 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30270 if test $ac_cv_header_mspack_h = yes; then
30271   found_mspack_h=1
30272 fi
30273
30274
30275     if test "x$found_mspack_h" = "x1"; then
30276         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30277 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30278 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30279   echo $ECHO_N "(cached) $ECHO_C" >&6
30280 else
30281   ac_check_lib_save_LIBS=$LIBS
30282 LIBS="-lmspack  $LIBS"
30283 cat >conftest.$ac_ext <<_ACEOF
30284 /* confdefs.h.  */
30285 _ACEOF
30286 cat confdefs.h >>conftest.$ac_ext
30287 cat >>conftest.$ac_ext <<_ACEOF
30288 /* end confdefs.h.  */
30289
30290 /* Override any GCC internal prototype to avoid an error.
30291    Use char because int might match the return type of a GCC
30292    builtin and then its argument prototype would still apply.  */
30293 #ifdef __cplusplus
30294 extern "C"
30295 #endif
30296 char mspack_create_chm_decompressor ();
30297 int
30298 main ()
30299 {
30300 return mspack_create_chm_decompressor ();
30301   ;
30302   return 0;
30303 }
30304 _ACEOF
30305 rm -f conftest.$ac_objext conftest$ac_exeext
30306 if { (ac_try="$ac_link"
30307 case "(($ac_try" in
30308   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30309   *) ac_try_echo=$ac_try;;
30310 esac
30311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30312   (eval "$ac_link") 2>conftest.er1
30313   ac_status=$?
30314   grep -v '^ *+' conftest.er1 >conftest.err
30315   rm -f conftest.er1
30316   cat conftest.err >&5
30317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30318   (exit $ac_status); } && {
30319          test -z "$ac_c_werror_flag" ||
30320          test ! -s conftest.err
30321        } && test -s conftest$ac_exeext &&
30322        $as_test_x conftest$ac_exeext; then
30323   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30324 else
30325   echo "$as_me: failed program was:" >&5
30326 sed 's/^/| /' conftest.$ac_ext >&5
30327
30328         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30329 fi
30330
30331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30332       conftest$ac_exeext conftest.$ac_ext
30333 LIBS=$ac_check_lib_save_LIBS
30334 fi
30335 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30336 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30337 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30338   MSPACK_LINK=" -lmspack"
30339 fi
30340
30341     fi
30342     if test "x$MSPACK_LINK" = "x" ; then
30343         wxUSE_LIBMSPACK=no
30344     fi
30345 fi
30346
30347 if test "$wxUSE_LIBMSPACK" != "no"; then
30348     cat >>confdefs.h <<\_ACEOF
30349 #define wxUSE_LIBMSPACK 1
30350 _ACEOF
30351
30352 fi
30353
30354
30355
30356 AFMINSTALL=
30357 WIN32INSTALL=
30358
30359 TOOLKIT=
30360 TOOLKIT_INCLUDE=
30361 WIDGET_SET=
30362
30363 if test "$USE_WIN32" = 1 ; then
30364
30365 for ac_header in w32api.h
30366 do
30367 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30368 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30371   echo $ECHO_N "(cached) $ECHO_C" >&6
30372 else
30373   cat >conftest.$ac_ext <<_ACEOF
30374 /* confdefs.h.  */
30375 _ACEOF
30376 cat confdefs.h >>conftest.$ac_ext
30377 cat >>conftest.$ac_ext <<_ACEOF
30378 /* end confdefs.h.  */
30379
30380
30381 #include <$ac_header>
30382 _ACEOF
30383 rm -f conftest.$ac_objext
30384 if { (ac_try="$ac_compile"
30385 case "(($ac_try" in
30386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30387   *) ac_try_echo=$ac_try;;
30388 esac
30389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30390   (eval "$ac_compile") 2>conftest.er1
30391   ac_status=$?
30392   grep -v '^ *+' conftest.er1 >conftest.err
30393   rm -f conftest.er1
30394   cat conftest.err >&5
30395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30396   (exit $ac_status); } && {
30397          test -z "$ac_c_werror_flag" ||
30398          test ! -s conftest.err
30399        } && test -s conftest.$ac_objext; then
30400   eval "$as_ac_Header=yes"
30401 else
30402   echo "$as_me: failed program was:" >&5
30403 sed 's/^/| /' conftest.$ac_ext >&5
30404
30405         eval "$as_ac_Header=no"
30406 fi
30407
30408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30409 fi
30410 ac_res=`eval echo '${'$as_ac_Header'}'`
30411                { echo "$as_me:$LINENO: result: $ac_res" >&5
30412 echo "${ECHO_T}$ac_res" >&6; }
30413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30414   cat >>confdefs.h <<_ACEOF
30415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30416 _ACEOF
30417
30418 fi
30419
30420 done
30421
30422     { echo "$as_me:$LINENO: checking for windows.h" >&5
30423 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30424 if test "${ac_cv_header_windows_h+set}" = set; then
30425   echo $ECHO_N "(cached) $ECHO_C" >&6
30426 else
30427   cat >conftest.$ac_ext <<_ACEOF
30428 /* confdefs.h.  */
30429 _ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h.  */
30433
30434
30435 #include <windows.h>
30436 _ACEOF
30437 rm -f conftest.$ac_objext
30438 if { (ac_try="$ac_compile"
30439 case "(($ac_try" in
30440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441   *) ac_try_echo=$ac_try;;
30442 esac
30443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30444   (eval "$ac_compile") 2>conftest.er1
30445   ac_status=$?
30446   grep -v '^ *+' conftest.er1 >conftest.err
30447   rm -f conftest.er1
30448   cat conftest.err >&5
30449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30450   (exit $ac_status); } && {
30451          test -z "$ac_c_werror_flag" ||
30452          test ! -s conftest.err
30453        } && test -s conftest.$ac_objext; then
30454   ac_cv_header_windows_h=yes
30455 else
30456   echo "$as_me: failed program was:" >&5
30457 sed 's/^/| /' conftest.$ac_ext >&5
30458
30459         ac_cv_header_windows_h=no
30460 fi
30461
30462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30463 fi
30464 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30465 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30466 if test $ac_cv_header_windows_h = yes; then
30467   :
30468 else
30469
30470         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30471 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30472    { (exit 1); exit 1; }; }
30473
30474 fi
30475
30476
30477
30478             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30479
30480     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30481         LIBS="$LIBS -loleacc"
30482     fi
30483
30484     case "${host}" in
30485         *-*-cygwin* )
30486                         LIBS="$LIBS -lkernel32 -luser32"
30487     esac
30488
30489         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30490     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30491
30492                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30493
30494         WIN32INSTALL=win32install
30495
30496         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30497 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30498 if test "${ac_cv_header_pbt_h+set}" = set; then
30499   echo $ECHO_N "(cached) $ECHO_C" >&6
30500 else
30501   cat >conftest.$ac_ext <<_ACEOF
30502 /* confdefs.h.  */
30503 _ACEOF
30504 cat confdefs.h >>conftest.$ac_ext
30505 cat >>conftest.$ac_ext <<_ACEOF
30506 /* end confdefs.h.  */
30507
30508
30509 #include <pbt.h>
30510 _ACEOF
30511 rm -f conftest.$ac_objext
30512 if { (ac_try="$ac_compile"
30513 case "(($ac_try" in
30514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30515   *) ac_try_echo=$ac_try;;
30516 esac
30517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30518   (eval "$ac_compile") 2>conftest.er1
30519   ac_status=$?
30520   grep -v '^ *+' conftest.er1 >conftest.err
30521   rm -f conftest.er1
30522   cat conftest.err >&5
30523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30524   (exit $ac_status); } && {
30525          test -z "$ac_c_werror_flag" ||
30526          test ! -s conftest.err
30527        } && test -s conftest.$ac_objext; then
30528   ac_cv_header_pbt_h=yes
30529 else
30530   echo "$as_me: failed program was:" >&5
30531 sed 's/^/| /' conftest.$ac_ext >&5
30532
30533         ac_cv_header_pbt_h=no
30534 fi
30535
30536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30537 fi
30538 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30539 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30540 if test $ac_cv_header_pbt_h = yes; then
30541   :
30542 else
30543   cat >>confdefs.h <<\_ACEOF
30544 #define NEED_PBT_H 1
30545 _ACEOF
30546
30547 fi
30548
30549
30550 fi
30551
30552 if test "$wxUSE_GUI" = "yes"; then
30553     USE_GUI=1
30554
30555     GUI_TK_LIBRARY=
30556
30557     WXGTK12=
30558     WXGTK127=
30559     WXGTK2=
30560     WXGPE=
30561
30562     if test "$wxUSE_COCOA" = 1 ; then
30563         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30564             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30565 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30566             wxUSE_PRINTING_ARCHITECTURE=no
30567         fi
30568         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30569             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30570 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30571             wxUSE_DRAG_AND_DROP=no
30572         fi
30573         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30574             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30575 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30576             wxUSE_DRAGIMAGE=no
30577         fi
30578     fi
30579
30580     if test "$wxUSE_MSW" = 1 ; then
30581         TOOLKIT=MSW
30582         GUIDIST=MSW_DIST
30583
30584                 case "${host}" in
30585             *-*-mingw32* )
30586                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30587         esac
30588     fi
30589
30590     if test "$wxUSE_GTK" = 1; then
30591                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30592 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30593
30594         gtk_version_cached=1
30595         if test "${wx_cv_lib_gtk+set}" = set; then
30596   echo $ECHO_N "(cached) $ECHO_C" >&6
30597 else
30598
30599                                                 gtk_version_cached=0
30600                 { echo "$as_me:$LINENO: result: " >&5
30601 echo "${ECHO_T}" >&6; }
30602
30603                                                 GTK_MODULES=
30604                 if test "$wxUSE_THREADS" = "yes"; then
30605                     GTK_MODULES=gthread
30606                 fi
30607
30608                                 wx_cv_lib_gtk=
30609                 if test "x$wxGTK_VERSION" != "x1"
30610                 then
30611                                                                                 case "${host}" in
30612                         *-*-solaris2* )
30613                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30614                                 enable_gtktest=no
30615                             fi
30616                     esac
30617
30618                     # Check whether --enable-gtktest was given.
30619 if test "${enable_gtktest+set}" = set; then
30620   enableval=$enable_gtktest;
30621 else
30622   enable_gtktest=yes
30623 fi
30624
30625
30626   pkg_config_args=gtk+-2.0
30627   for module in . $GTK_MODULES
30628   do
30629       case "$module" in
30630          gthread)
30631              pkg_config_args="$pkg_config_args gthread-2.0"
30632          ;;
30633       esac
30634   done
30635
30636   no_gtk=""
30637
30638   # Extract the first word of "pkg-config", so it can be a program name with args.
30639 set dummy pkg-config; ac_word=$2
30640 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30642 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30643   echo $ECHO_N "(cached) $ECHO_C" >&6
30644 else
30645   case $PKG_CONFIG in
30646   [\\/]* | ?:[\\/]*)
30647   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30648   ;;
30649   *)
30650   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30651 for as_dir in $PATH
30652 do
30653   IFS=$as_save_IFS
30654   test -z "$as_dir" && as_dir=.
30655   for ac_exec_ext in '' $ac_executable_extensions; do
30656   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30657     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30658     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30659     break 2
30660   fi
30661 done
30662 done
30663 IFS=$as_save_IFS
30664
30665   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30666   ;;
30667 esac
30668 fi
30669 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30670 if test -n "$PKG_CONFIG"; then
30671   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30672 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30673 else
30674   { echo "$as_me:$LINENO: result: no" >&5
30675 echo "${ECHO_T}no" >&6; }
30676 fi
30677
30678
30679
30680   if test x$PKG_CONFIG != xno ; then
30681     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30682       :
30683     else
30684       echo "*** pkg-config too old; version 0.7 or better required."
30685       no_gtk=yes
30686       PKG_CONFIG=no
30687     fi
30688   else
30689     no_gtk=yes
30690   fi
30691
30692   min_gtk_version=2.4.0
30693   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30694 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30695
30696   if test x$PKG_CONFIG != xno ; then
30697     ## don't try to run the test against uninstalled libtool libs
30698     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30699           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30700           enable_gtktest=no
30701     fi
30702
30703     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30704           :
30705     else
30706           no_gtk=yes
30707     fi
30708   fi
30709
30710   if test x"$no_gtk" = x ; then
30711     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30712     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30713     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30714            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30715     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30716            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30717     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30718            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30719     if test "x$enable_gtktest" = "xyes" ; then
30720       ac_save_CFLAGS="$CFLAGS"
30721       ac_save_LIBS="$LIBS"
30722       CFLAGS="$CFLAGS $GTK_CFLAGS"
30723       LIBS="$GTK_LIBS $LIBS"
30724       rm -f conf.gtktest
30725       if test "$cross_compiling" = yes; then
30726   echo $ac_n "cross compiling; assumed OK... $ac_c"
30727 else
30728   cat >conftest.$ac_ext <<_ACEOF
30729 /* confdefs.h.  */
30730 _ACEOF
30731 cat confdefs.h >>conftest.$ac_ext
30732 cat >>conftest.$ac_ext <<_ACEOF
30733 /* end confdefs.h.  */
30734
30735 #include <gtk/gtk.h>
30736 #include <stdio.h>
30737 #include <stdlib.h>
30738
30739 int
30740 main ()
30741 {
30742   int major, minor, micro;
30743   char *tmp_version;
30744
30745   system ("touch conf.gtktest");
30746
30747   /* HP/UX 9 (%@#!) writes to sscanf strings */
30748   tmp_version = g_strdup("$min_gtk_version");
30749   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30750      printf("%s, bad version string\n", "$min_gtk_version");
30751      exit(1);
30752    }
30753
30754   if ((gtk_major_version != $gtk_config_major_version) ||
30755       (gtk_minor_version != $gtk_config_minor_version) ||
30756       (gtk_micro_version != $gtk_config_micro_version))
30757     {
30758       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30759              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30760              gtk_major_version, gtk_minor_version, gtk_micro_version);
30761       printf ("*** was found! If pkg-config was correct, then it is best\n");
30762       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30763       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30764       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30765       printf("*** required on your system.\n");
30766       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30767       printf("*** to point to the correct configuration files\n");
30768     }
30769   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30770            (gtk_minor_version != GTK_MINOR_VERSION) ||
30771            (gtk_micro_version != GTK_MICRO_VERSION))
30772     {
30773       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30774              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30775       printf("*** library (version %d.%d.%d)\n",
30776              gtk_major_version, gtk_minor_version, gtk_micro_version);
30777     }
30778   else
30779     {
30780       if ((gtk_major_version > major) ||
30781         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30782         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30783       {
30784         return 0;
30785        }
30786      else
30787       {
30788         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30789                gtk_major_version, gtk_minor_version, gtk_micro_version);
30790         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30791                major, minor, micro);
30792         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30793         printf("***\n");
30794         printf("*** If you have already installed a sufficiently new version, this error\n");
30795         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30796         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30797         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30798         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30799         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30800         printf("*** so that the correct libraries are found at run-time))\n");
30801       }
30802     }
30803   return 1;
30804 }
30805
30806 _ACEOF
30807 rm -f conftest$ac_exeext
30808 if { (ac_try="$ac_link"
30809 case "(($ac_try" in
30810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30811   *) ac_try_echo=$ac_try;;
30812 esac
30813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30814   (eval "$ac_link") 2>&5
30815   ac_status=$?
30816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30817   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30818   { (case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30823   (eval "$ac_try") 2>&5
30824   ac_status=$?
30825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30826   (exit $ac_status); }; }; then
30827   :
30828 else
30829   echo "$as_me: program exited with status $ac_status" >&5
30830 echo "$as_me: failed program was:" >&5
30831 sed 's/^/| /' conftest.$ac_ext >&5
30832
30833 ( exit $ac_status )
30834 no_gtk=yes
30835 fi
30836 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30837 fi
30838
30839
30840        CFLAGS="$ac_save_CFLAGS"
30841        LIBS="$ac_save_LIBS"
30842      fi
30843   fi
30844   if test "x$no_gtk" = x ; then
30845      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30846 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30847      wx_cv_lib_gtk=2.0
30848   else
30849      { echo "$as_me:$LINENO: result: no" >&5
30850 echo "${ECHO_T}no" >&6; }
30851      if test "$PKG_CONFIG" = "no" ; then
30852        echo "*** A new enough version of pkg-config was not found."
30853        echo "*** See http://pkgconfig.sourceforge.net"
30854      else
30855        if test -f conf.gtktest ; then
30856         :
30857        else
30858           echo "*** Could not run GTK+ test program, checking why..."
30859           ac_save_CFLAGS="$CFLAGS"
30860           ac_save_LIBS="$LIBS"
30861           CFLAGS="$CFLAGS $GTK_CFLAGS"
30862           LIBS="$LIBS $GTK_LIBS"
30863           cat >conftest.$ac_ext <<_ACEOF
30864 /* confdefs.h.  */
30865 _ACEOF
30866 cat confdefs.h >>conftest.$ac_ext
30867 cat >>conftest.$ac_ext <<_ACEOF
30868 /* end confdefs.h.  */
30869
30870 #include <gtk/gtk.h>
30871 #include <stdio.h>
30872
30873 int
30874 main ()
30875 {
30876  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30877   ;
30878   return 0;
30879 }
30880 _ACEOF
30881 rm -f conftest.$ac_objext conftest$ac_exeext
30882 if { (ac_try="$ac_link"
30883 case "(($ac_try" in
30884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30885   *) ac_try_echo=$ac_try;;
30886 esac
30887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30888   (eval "$ac_link") 2>conftest.er1
30889   ac_status=$?
30890   grep -v '^ *+' conftest.er1 >conftest.err
30891   rm -f conftest.er1
30892   cat conftest.err >&5
30893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30894   (exit $ac_status); } && {
30895          test -z "$ac_c_werror_flag" ||
30896          test ! -s conftest.err
30897        } && test -s conftest$ac_exeext &&
30898        $as_test_x conftest$ac_exeext; then
30899    echo "*** The test program compiled, but did not run. This usually means"
30900           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30901           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30902           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30903           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30904           echo "*** is required on your system"
30905           echo "***"
30906           echo "*** If you have an old version installed, it is best to remove it, although"
30907           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
30908 else
30909   echo "$as_me: failed program was:" >&5
30910 sed 's/^/| /' conftest.$ac_ext >&5
30911
30912          echo "*** The test program failed to compile or link. See the file config.log for the"
30913           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
30914 fi
30915
30916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30917       conftest$ac_exeext conftest.$ac_ext
30918           CFLAGS="$ac_save_CFLAGS"
30919           LIBS="$ac_save_LIBS"
30920        fi
30921      fi
30922      GTK_CFLAGS=""
30923      GTK_LIBS=""
30924      :
30925   fi
30926
30927
30928   rm -f conf.gtktest
30929
30930
30931                                         case "${host}" in
30932                         *-*-solaris2* )
30933                             if test "$wxUSE_SHARED" != "yes"; then
30934                                 GTK_LIBS="$GTK_LIBS -lX11"
30935                             fi
30936                     esac
30937                 fi
30938
30939                                 if test -z "$wx_cv_lib_gtk"; then
30940                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
30941
30942 # Check whether --with-gtk-prefix was given.
30943 if test "${with_gtk_prefix+set}" = set; then
30944   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
30945 else
30946   gtk_config_prefix=""
30947 fi
30948
30949
30950 # Check whether --with-gtk-exec-prefix was given.
30951 if test "${with_gtk_exec_prefix+set}" = set; then
30952   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
30953 else
30954   gtk_config_exec_prefix=""
30955 fi
30956
30957 # Check whether --enable-gtktest was given.
30958 if test "${enable_gtktest+set}" = set; then
30959   enableval=$enable_gtktest;
30960 else
30961   enable_gtktest=yes
30962 fi
30963
30964
30965   for module in . $GTK_MODULES
30966   do
30967       case "$module" in
30968          gthread)
30969              gtk_config_args="$gtk_config_args gthread"
30970          ;;
30971       esac
30972   done
30973
30974   if test x$gtk_config_exec_prefix != x ; then
30975      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
30976      if test x${GTK_CONFIG+set} != xset ; then
30977         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
30978      fi
30979   fi
30980   if test x$gtk_config_prefix != x ; then
30981      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
30982      if test x${GTK_CONFIG+set} != xset ; then
30983         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
30984      fi
30985   fi
30986
30987   # Extract the first word of "gtk-config", so it can be a program name with args.
30988 set dummy gtk-config; ac_word=$2
30989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30991 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
30992   echo $ECHO_N "(cached) $ECHO_C" >&6
30993 else
30994   case $GTK_CONFIG in
30995   [\\/]* | ?:[\\/]*)
30996   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
30997   ;;
30998   *)
30999   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31000 for as_dir in $PATH
31001 do
31002   IFS=$as_save_IFS
31003   test -z "$as_dir" && as_dir=.
31004   for ac_exec_ext in '' $ac_executable_extensions; do
31005   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31006     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31007     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31008     break 2
31009   fi
31010 done
31011 done
31012 IFS=$as_save_IFS
31013
31014   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31015   ;;
31016 esac
31017 fi
31018 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31019 if test -n "$GTK_CONFIG"; then
31020   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31021 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31022 else
31023   { echo "$as_me:$LINENO: result: no" >&5
31024 echo "${ECHO_T}no" >&6; }
31025 fi
31026
31027
31028   min_gtk_version=1.2.7
31029   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31030 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31031   no_gtk=""
31032   if test "$GTK_CONFIG" = "no" ; then
31033     no_gtk=yes
31034   else
31035     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31036     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31037     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31038            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31039     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31040            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31041     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31042            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31043     if test "x$enable_gtktest" = "xyes" ; then
31044       ac_save_CFLAGS="$CFLAGS"
31045       ac_save_LIBS="$LIBS"
31046       CFLAGS="$CFLAGS $GTK_CFLAGS"
31047       LIBS="$GTK_LIBS $LIBS"
31048       rm -f conf.gtktest
31049       if test "$cross_compiling" = yes; then
31050   echo $ac_n "cross compiling; assumed OK... $ac_c"
31051 else
31052   cat >conftest.$ac_ext <<_ACEOF
31053 /* confdefs.h.  */
31054 _ACEOF
31055 cat confdefs.h >>conftest.$ac_ext
31056 cat >>conftest.$ac_ext <<_ACEOF
31057 /* end confdefs.h.  */
31058
31059 #include <gtk/gtk.h>
31060 #include <stdio.h>
31061 #include <stdlib.h>
31062
31063 int
31064 main ()
31065 {
31066   int major, minor, micro;
31067   char *tmp_version;
31068
31069   system ("touch conf.gtktest");
31070
31071   /* HP/UX 9 (%@#!) writes to sscanf strings */
31072   tmp_version = g_strdup("$min_gtk_version");
31073   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31074      printf("%s, bad version string\n", "$min_gtk_version");
31075      exit(1);
31076    }
31077
31078   if ((gtk_major_version != $gtk_config_major_version) ||
31079       (gtk_minor_version != $gtk_config_minor_version) ||
31080       (gtk_micro_version != $gtk_config_micro_version))
31081     {
31082       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31083              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31084              gtk_major_version, gtk_minor_version, gtk_micro_version);
31085       printf ("*** was found! If gtk-config was correct, then it is best\n");
31086       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31087       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31088       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31089       printf("*** required on your system.\n");
31090       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31091       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31092       printf("*** before re-running configure\n");
31093     }
31094 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31095   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31096            (gtk_minor_version != GTK_MINOR_VERSION) ||
31097            (gtk_micro_version != GTK_MICRO_VERSION))
31098     {
31099       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31100              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31101       printf("*** library (version %d.%d.%d)\n",
31102              gtk_major_version, gtk_minor_version, gtk_micro_version);
31103     }
31104 #endif /* defined (GTK_MAJOR_VERSION) ... */
31105   else
31106     {
31107       if ((gtk_major_version > major) ||
31108         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31109         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31110       {
31111         return 0;
31112        }
31113      else
31114       {
31115         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31116                gtk_major_version, gtk_minor_version, gtk_micro_version);
31117         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31118                major, minor, micro);
31119         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31120         printf("***\n");
31121         printf("*** If you have already installed a sufficiently new version, this error\n");
31122         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31123         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31124         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31125         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31126         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31127         printf("*** so that the correct libraries are found at run-time))\n");
31128       }
31129     }
31130   return 1;
31131 }
31132
31133 _ACEOF
31134 rm -f conftest$ac_exeext
31135 if { (ac_try="$ac_link"
31136 case "(($ac_try" in
31137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31138   *) ac_try_echo=$ac_try;;
31139 esac
31140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31141   (eval "$ac_link") 2>&5
31142   ac_status=$?
31143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31144   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31145   { (case "(($ac_try" in
31146   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31147   *) ac_try_echo=$ac_try;;
31148 esac
31149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31150   (eval "$ac_try") 2>&5
31151   ac_status=$?
31152   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31153   (exit $ac_status); }; }; then
31154   :
31155 else
31156   echo "$as_me: program exited with status $ac_status" >&5
31157 echo "$as_me: failed program was:" >&5
31158 sed 's/^/| /' conftest.$ac_ext >&5
31159
31160 ( exit $ac_status )
31161 no_gtk=yes
31162 fi
31163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31164 fi
31165
31166
31167        CFLAGS="$ac_save_CFLAGS"
31168        LIBS="$ac_save_LIBS"
31169      fi
31170   fi
31171   if test "x$no_gtk" = x ; then
31172      { echo "$as_me:$LINENO: result: yes" >&5
31173 echo "${ECHO_T}yes" >&6; }
31174      wx_cv_lib_gtk=1.2.7
31175   else
31176      { echo "$as_me:$LINENO: result: no" >&5
31177 echo "${ECHO_T}no" >&6; }
31178      if test "$GTK_CONFIG" = "no" ; then
31179        echo "*** The gtk-config script installed by GTK could not be found"
31180        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31181        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31182        echo "*** full path to gtk-config."
31183      else
31184        if test -f conf.gtktest ; then
31185         :
31186        else
31187           echo "*** Could not run GTK test program, checking why..."
31188           CFLAGS="$CFLAGS $GTK_CFLAGS"
31189           LIBS="$LIBS $GTK_LIBS"
31190           cat >conftest.$ac_ext <<_ACEOF
31191 /* confdefs.h.  */
31192 _ACEOF
31193 cat confdefs.h >>conftest.$ac_ext
31194 cat >>conftest.$ac_ext <<_ACEOF
31195 /* end confdefs.h.  */
31196
31197 #include <gtk/gtk.h>
31198 #include <stdio.h>
31199
31200 int
31201 main ()
31202 {
31203  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31204   ;
31205   return 0;
31206 }
31207 _ACEOF
31208 rm -f conftest.$ac_objext conftest$ac_exeext
31209 if { (ac_try="$ac_link"
31210 case "(($ac_try" in
31211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31212   *) ac_try_echo=$ac_try;;
31213 esac
31214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31215   (eval "$ac_link") 2>conftest.er1
31216   ac_status=$?
31217   grep -v '^ *+' conftest.er1 >conftest.err
31218   rm -f conftest.er1
31219   cat conftest.err >&5
31220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221   (exit $ac_status); } && {
31222          test -z "$ac_c_werror_flag" ||
31223          test ! -s conftest.err
31224        } && test -s conftest$ac_exeext &&
31225        $as_test_x conftest$ac_exeext; then
31226    echo "*** The test program compiled, but did not run. This usually means"
31227           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31228           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31229           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31230           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31231           echo "*** is required on your system"
31232           echo "***"
31233           echo "*** If you have an old version installed, it is best to remove it, although"
31234           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31235           echo "***"
31236           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31237           echo "*** came with the system with the command"
31238           echo "***"
31239           echo "***    rpm --erase --nodeps gtk gtk-devel"
31240 else
31241   echo "$as_me: failed program was:" >&5
31242 sed 's/^/| /' conftest.$ac_ext >&5
31243
31244          echo "*** The test program failed to compile or link. See the file config.log for the"
31245           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31246           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31247           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31248 fi
31249
31250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31251       conftest$ac_exeext conftest.$ac_ext
31252           CFLAGS="$ac_save_CFLAGS"
31253           LIBS="$ac_save_LIBS"
31254        fi
31255      fi
31256      GTK_CFLAGS=""
31257      GTK_LIBS=""
31258      :
31259   fi
31260
31261
31262   rm -f conf.gtktest
31263
31264
31265                         if test -z "$wx_cv_lib_gtk"; then
31266
31267 # Check whether --with-gtk-prefix was given.
31268 if test "${with_gtk_prefix+set}" = set; then
31269   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31270 else
31271   gtk_config_prefix=""
31272 fi
31273
31274
31275 # Check whether --with-gtk-exec-prefix was given.
31276 if test "${with_gtk_exec_prefix+set}" = set; then
31277   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31278 else
31279   gtk_config_exec_prefix=""
31280 fi
31281
31282 # Check whether --enable-gtktest was given.
31283 if test "${enable_gtktest+set}" = set; then
31284   enableval=$enable_gtktest;
31285 else
31286   enable_gtktest=yes
31287 fi
31288
31289
31290   for module in . $GTK_MODULES
31291   do
31292       case "$module" in
31293          gthread)
31294              gtk_config_args="$gtk_config_args gthread"
31295          ;;
31296       esac
31297   done
31298
31299   if test x$gtk_config_exec_prefix != x ; then
31300      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31301      if test x${GTK_CONFIG+set} != xset ; then
31302         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31303      fi
31304   fi
31305   if test x$gtk_config_prefix != x ; then
31306      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31307      if test x${GTK_CONFIG+set} != xset ; then
31308         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31309      fi
31310   fi
31311
31312   # Extract the first word of "gtk-config", so it can be a program name with args.
31313 set dummy gtk-config; ac_word=$2
31314 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31315 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31316 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31317   echo $ECHO_N "(cached) $ECHO_C" >&6
31318 else
31319   case $GTK_CONFIG in
31320   [\\/]* | ?:[\\/]*)
31321   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31322   ;;
31323   *)
31324   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31325 for as_dir in $PATH
31326 do
31327   IFS=$as_save_IFS
31328   test -z "$as_dir" && as_dir=.
31329   for ac_exec_ext in '' $ac_executable_extensions; do
31330   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31331     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31332     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31333     break 2
31334   fi
31335 done
31336 done
31337 IFS=$as_save_IFS
31338
31339   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31340   ;;
31341 esac
31342 fi
31343 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31344 if test -n "$GTK_CONFIG"; then
31345   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31346 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31347 else
31348   { echo "$as_me:$LINENO: result: no" >&5
31349 echo "${ECHO_T}no" >&6; }
31350 fi
31351
31352
31353   min_gtk_version=1.2.3
31354   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31355 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31356   no_gtk=""
31357   if test "$GTK_CONFIG" = "no" ; then
31358     no_gtk=yes
31359   else
31360     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31361     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31362     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31363            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31364     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31365            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31366     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31367            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31368     if test "x$enable_gtktest" = "xyes" ; then
31369       ac_save_CFLAGS="$CFLAGS"
31370       ac_save_LIBS="$LIBS"
31371       CFLAGS="$CFLAGS $GTK_CFLAGS"
31372       LIBS="$GTK_LIBS $LIBS"
31373       rm -f conf.gtktest
31374       if test "$cross_compiling" = yes; then
31375   echo $ac_n "cross compiling; assumed OK... $ac_c"
31376 else
31377   cat >conftest.$ac_ext <<_ACEOF
31378 /* confdefs.h.  */
31379 _ACEOF
31380 cat confdefs.h >>conftest.$ac_ext
31381 cat >>conftest.$ac_ext <<_ACEOF
31382 /* end confdefs.h.  */
31383
31384 #include <gtk/gtk.h>
31385 #include <stdio.h>
31386 #include <stdlib.h>
31387
31388 int
31389 main ()
31390 {
31391   int major, minor, micro;
31392   char *tmp_version;
31393
31394   system ("touch conf.gtktest");
31395
31396   /* HP/UX 9 (%@#!) writes to sscanf strings */
31397   tmp_version = g_strdup("$min_gtk_version");
31398   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31399      printf("%s, bad version string\n", "$min_gtk_version");
31400      exit(1);
31401    }
31402
31403   if ((gtk_major_version != $gtk_config_major_version) ||
31404       (gtk_minor_version != $gtk_config_minor_version) ||
31405       (gtk_micro_version != $gtk_config_micro_version))
31406     {
31407       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31408              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31409              gtk_major_version, gtk_minor_version, gtk_micro_version);
31410       printf ("*** was found! If gtk-config was correct, then it is best\n");
31411       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31412       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31413       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31414       printf("*** required on your system.\n");
31415       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31416       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31417       printf("*** before re-running configure\n");
31418     }
31419 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31420   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31421            (gtk_minor_version != GTK_MINOR_VERSION) ||
31422            (gtk_micro_version != GTK_MICRO_VERSION))
31423     {
31424       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31425              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31426       printf("*** library (version %d.%d.%d)\n",
31427              gtk_major_version, gtk_minor_version, gtk_micro_version);
31428     }
31429 #endif /* defined (GTK_MAJOR_VERSION) ... */
31430   else
31431     {
31432       if ((gtk_major_version > major) ||
31433         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31434         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31435       {
31436         return 0;
31437        }
31438      else
31439       {
31440         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31441                gtk_major_version, gtk_minor_version, gtk_micro_version);
31442         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31443                major, minor, micro);
31444         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31445         printf("***\n");
31446         printf("*** If you have already installed a sufficiently new version, this error\n");
31447         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31448         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31449         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31450         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31451         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31452         printf("*** so that the correct libraries are found at run-time))\n");
31453       }
31454     }
31455   return 1;
31456 }
31457
31458 _ACEOF
31459 rm -f conftest$ac_exeext
31460 if { (ac_try="$ac_link"
31461 case "(($ac_try" in
31462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31463   *) ac_try_echo=$ac_try;;
31464 esac
31465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31466   (eval "$ac_link") 2>&5
31467   ac_status=$?
31468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31469   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31470   { (case "(($ac_try" in
31471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31472   *) ac_try_echo=$ac_try;;
31473 esac
31474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31475   (eval "$ac_try") 2>&5
31476   ac_status=$?
31477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478   (exit $ac_status); }; }; then
31479   :
31480 else
31481   echo "$as_me: program exited with status $ac_status" >&5
31482 echo "$as_me: failed program was:" >&5
31483 sed 's/^/| /' conftest.$ac_ext >&5
31484
31485 ( exit $ac_status )
31486 no_gtk=yes
31487 fi
31488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31489 fi
31490
31491
31492        CFLAGS="$ac_save_CFLAGS"
31493        LIBS="$ac_save_LIBS"
31494      fi
31495   fi
31496   if test "x$no_gtk" = x ; then
31497      { echo "$as_me:$LINENO: result: yes" >&5
31498 echo "${ECHO_T}yes" >&6; }
31499      wx_cv_lib_gtk=1.2.3
31500   else
31501      { echo "$as_me:$LINENO: result: no" >&5
31502 echo "${ECHO_T}no" >&6; }
31503      if test "$GTK_CONFIG" = "no" ; then
31504        echo "*** The gtk-config script installed by GTK could not be found"
31505        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31506        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31507        echo "*** full path to gtk-config."
31508      else
31509        if test -f conf.gtktest ; then
31510         :
31511        else
31512           echo "*** Could not run GTK test program, checking why..."
31513           CFLAGS="$CFLAGS $GTK_CFLAGS"
31514           LIBS="$LIBS $GTK_LIBS"
31515           cat >conftest.$ac_ext <<_ACEOF
31516 /* confdefs.h.  */
31517 _ACEOF
31518 cat confdefs.h >>conftest.$ac_ext
31519 cat >>conftest.$ac_ext <<_ACEOF
31520 /* end confdefs.h.  */
31521
31522 #include <gtk/gtk.h>
31523 #include <stdio.h>
31524
31525 int
31526 main ()
31527 {
31528  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31529   ;
31530   return 0;
31531 }
31532 _ACEOF
31533 rm -f conftest.$ac_objext conftest$ac_exeext
31534 if { (ac_try="$ac_link"
31535 case "(($ac_try" in
31536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31537   *) ac_try_echo=$ac_try;;
31538 esac
31539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31540   (eval "$ac_link") 2>conftest.er1
31541   ac_status=$?
31542   grep -v '^ *+' conftest.er1 >conftest.err
31543   rm -f conftest.er1
31544   cat conftest.err >&5
31545   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31546   (exit $ac_status); } && {
31547          test -z "$ac_c_werror_flag" ||
31548          test ! -s conftest.err
31549        } && test -s conftest$ac_exeext &&
31550        $as_test_x conftest$ac_exeext; then
31551    echo "*** The test program compiled, but did not run. This usually means"
31552           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31553           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31554           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31555           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31556           echo "*** is required on your system"
31557           echo "***"
31558           echo "*** If you have an old version installed, it is best to remove it, although"
31559           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31560           echo "***"
31561           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31562           echo "*** came with the system with the command"
31563           echo "***"
31564           echo "***    rpm --erase --nodeps gtk gtk-devel"
31565 else
31566   echo "$as_me: failed program was:" >&5
31567 sed 's/^/| /' conftest.$ac_ext >&5
31568
31569          echo "*** The test program failed to compile or link. See the file config.log for the"
31570           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31571           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31572           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31573 fi
31574
31575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31576       conftest$ac_exeext conftest.$ac_ext
31577           CFLAGS="$ac_save_CFLAGS"
31578           LIBS="$ac_save_LIBS"
31579        fi
31580      fi
31581      GTK_CFLAGS=""
31582      GTK_LIBS=""
31583      :
31584   fi
31585
31586
31587   rm -f conf.gtktest
31588
31589                         fi
31590                     fi
31591                 fi
31592
31593                 if test -z "$wx_cv_lib_gtk"; then
31594                                         wx_cv_lib_gtk=none
31595                 else
31596                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31597                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31598                 fi
31599
31600
31601 fi
31602
31603
31604                         if test "$gtk_version_cached" = 1; then
31605             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31606 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31607         fi
31608
31609         case "$wx_cv_lib_gtk" in
31610             2.0)    WXGTK2=1
31611                     TOOLKIT_VERSION=2
31612                     ;;
31613             1.2.7)  WXGTK127=1
31614                     WXGTK12=1
31615                     ;;
31616             1.2.3)  WXGTK12=1
31617                     ;;
31618             *)      { { echo "$as_me:$LINENO: error:
31619 The development files for GTK+ were not found. For GTK+ 2, please
31620 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31621 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31622 and that the version is 1.2.3 or above. Also check that the
31623 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31624 --libs' are in the LD_LIBRARY_PATH or equivalent.
31625                             " >&5
31626 echo "$as_me: error:
31627 The development files for GTK+ were not found. For GTK+ 2, please
31628 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31629 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31630 and that the version is 1.2.3 or above. Also check that the
31631 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31632 --libs' are in the LD_LIBRARY_PATH or equivalent.
31633                             " >&2;}
31634    { (exit 1); exit 1; }; }
31635                     ;;
31636         esac
31637
31638         if test "$WXGTK2" = 1; then
31639             save_CFLAGS="$CFLAGS"
31640             save_LIBS="$LIBS"
31641             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31642             LIBS="$LIBS $wx_cv_libs_gtk"
31643
31644                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31645 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31646 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31647   echo $ECHO_N "(cached) $ECHO_C" >&6
31648 else
31649   cat >conftest.$ac_ext <<_ACEOF
31650 /* confdefs.h.  */
31651 _ACEOF
31652 cat confdefs.h >>conftest.$ac_ext
31653 cat >>conftest.$ac_ext <<_ACEOF
31654 /* end confdefs.h.  */
31655 #include <gtk/gtk.h>
31656
31657 int
31658 main ()
31659 {
31660 #ifndef gtk_icon_size_lookup
31661   (void) gtk_icon_size_lookup;
31662 #endif
31663
31664   ;
31665   return 0;
31666 }
31667 _ACEOF
31668 rm -f conftest.$ac_objext
31669 if { (ac_try="$ac_compile"
31670 case "(($ac_try" in
31671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31672   *) ac_try_echo=$ac_try;;
31673 esac
31674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31675   (eval "$ac_compile") 2>conftest.er1
31676   ac_status=$?
31677   grep -v '^ *+' conftest.er1 >conftest.err
31678   rm -f conftest.er1
31679   cat conftest.err >&5
31680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31681   (exit $ac_status); } && {
31682          test -z "$ac_c_werror_flag" ||
31683          test ! -s conftest.err
31684        } && test -s conftest.$ac_objext; then
31685   ac_cv_have_decl_gtk_icon_size_lookup=yes
31686 else
31687   echo "$as_me: failed program was:" >&5
31688 sed 's/^/| /' conftest.$ac_ext >&5
31689
31690         ac_cv_have_decl_gtk_icon_size_lookup=no
31691 fi
31692
31693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31694 fi
31695 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31696 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31697 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31698
31699 cat >>confdefs.h <<_ACEOF
31700 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31701 _ACEOF
31702
31703
31704 else
31705   cat >>confdefs.h <<_ACEOF
31706 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31707 _ACEOF
31708
31709 cat >>confdefs.h <<\_ACEOF
31710 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31711 _ACEOF
31712
31713 fi
31714
31715
31716
31717
31718                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31719 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31720             cat >conftest.$ac_ext <<_ACEOF
31721 /* confdefs.h.  */
31722 _ACEOF
31723 cat confdefs.h >>conftest.$ac_ext
31724 cat >>conftest.$ac_ext <<_ACEOF
31725 /* end confdefs.h.  */
31726
31727                             #include <gtk/gtk.h>
31728
31729 int
31730 main ()
31731 {
31732
31733                             #if !GTK_CHECK_VERSION(2,10,0)
31734                             Not GTK+ 2.10
31735                             #endif
31736
31737   ;
31738   return 0;
31739 }
31740 _ACEOF
31741 rm -f conftest.$ac_objext
31742 if { (ac_try="$ac_compile"
31743 case "(($ac_try" in
31744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31745   *) ac_try_echo=$ac_try;;
31746 esac
31747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31748   (eval "$ac_compile") 2>conftest.er1
31749   ac_status=$?
31750   grep -v '^ *+' conftest.er1 >conftest.err
31751   rm -f conftest.er1
31752   cat conftest.err >&5
31753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31754   (exit $ac_status); } && {
31755          test -z "$ac_c_werror_flag" ||
31756          test ! -s conftest.err
31757        } && test -s conftest.$ac_objext; then
31758
31759                             cat >>confdefs.h <<\_ACEOF
31760 #define __WXGTK210__ 1
31761 _ACEOF
31762
31763                             cat >>confdefs.h <<\_ACEOF
31764 #define __WXGTK26__ 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                                 { echo "$as_me:$LINENO: result: yes" >&5
31831 echo "${ECHO_T}yes" >&6; }
31832                                 ac_wxgtk26=1
31833
31834 else
31835   echo "$as_me: failed program was:" >&5
31836 sed 's/^/| /' conftest.$ac_ext >&5
31837
31838
31839                                 { echo "$as_me:$LINENO: result: no" >&5
31840 echo "${ECHO_T}no" >&6; }
31841                                 ac_wxgtk26=0
31842
31843 fi
31844
31845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31846             fi
31847
31848             CFLAGS="$save_CFLAGS"
31849             LIBS="$save_LIBS"
31850         else
31851             if test "$wxUSE_UNICODE" = "yes"; then
31852                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
31853 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
31854                 wxUSE_UNICODE=no
31855             fi
31856
31857                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
31858 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
31859 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
31860   echo $ECHO_N "(cached) $ECHO_C" >&6
31861 else
31862   ac_check_lib_save_LIBS=$LIBS
31863 LIBS="-lgdk  $LIBS"
31864 cat >conftest.$ac_ext <<_ACEOF
31865 /* confdefs.h.  */
31866 _ACEOF
31867 cat confdefs.h >>conftest.$ac_ext
31868 cat >>conftest.$ac_ext <<_ACEOF
31869 /* end confdefs.h.  */
31870
31871 /* Override any GCC internal prototype to avoid an error.
31872    Use char because int might match the return type of a GCC
31873    builtin and then its argument prototype would still apply.  */
31874 #ifdef __cplusplus
31875 extern "C"
31876 #endif
31877 char gdk_im_open ();
31878 int
31879 main ()
31880 {
31881 return gdk_im_open ();
31882   ;
31883   return 0;
31884 }
31885 _ACEOF
31886 rm -f conftest.$ac_objext conftest$ac_exeext
31887 if { (ac_try="$ac_link"
31888 case "(($ac_try" in
31889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31890   *) ac_try_echo=$ac_try;;
31891 esac
31892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31893   (eval "$ac_link") 2>conftest.er1
31894   ac_status=$?
31895   grep -v '^ *+' conftest.er1 >conftest.err
31896   rm -f conftest.er1
31897   cat conftest.err >&5
31898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899   (exit $ac_status); } && {
31900          test -z "$ac_c_werror_flag" ||
31901          test ! -s conftest.err
31902        } && test -s conftest$ac_exeext &&
31903        $as_test_x conftest$ac_exeext; then
31904   ac_cv_lib_gdk_gdk_im_open=yes
31905 else
31906   echo "$as_me: failed program was:" >&5
31907 sed 's/^/| /' conftest.$ac_ext >&5
31908
31909         ac_cv_lib_gdk_gdk_im_open=no
31910 fi
31911
31912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31913       conftest$ac_exeext conftest.$ac_ext
31914 LIBS=$ac_check_lib_save_LIBS
31915 fi
31916 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
31917 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
31918 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
31919   cat >>confdefs.h <<\_ACEOF
31920 #define HAVE_XIM 1
31921 _ACEOF
31922
31923 fi
31924
31925
31926                                     if test "$USE_DARWIN" != 1; then
31927
31928 for ac_func in poll
31929 do
31930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
31931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
31932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
31933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31934   echo $ECHO_N "(cached) $ECHO_C" >&6
31935 else
31936   cat >conftest.$ac_ext <<_ACEOF
31937 /* confdefs.h.  */
31938 _ACEOF
31939 cat confdefs.h >>conftest.$ac_ext
31940 cat >>conftest.$ac_ext <<_ACEOF
31941 /* end confdefs.h.  */
31942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31943    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31944 #define $ac_func innocuous_$ac_func
31945
31946 /* System header to define __stub macros and hopefully few prototypes,
31947     which can conflict with char $ac_func (); below.
31948     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31949     <limits.h> exists even on freestanding compilers.  */
31950
31951 #ifdef __STDC__
31952 # include <limits.h>
31953 #else
31954 # include <assert.h>
31955 #endif
31956
31957 #undef $ac_func
31958
31959 /* Override any GCC internal prototype to avoid an error.
31960    Use char because int might match the return type of a GCC
31961    builtin and then its argument prototype would still apply.  */
31962 #ifdef __cplusplus
31963 extern "C"
31964 #endif
31965 char $ac_func ();
31966 /* The GNU C library defines this for functions which it implements
31967     to always fail with ENOSYS.  Some functions are actually named
31968     something starting with __ and the normal name is an alias.  */
31969 #if defined __stub_$ac_func || defined __stub___$ac_func
31970 choke me
31971 #endif
31972
31973 int
31974 main ()
31975 {
31976 return $ac_func ();
31977   ;
31978   return 0;
31979 }
31980 _ACEOF
31981 rm -f conftest.$ac_objext conftest$ac_exeext
31982 if { (ac_try="$ac_link"
31983 case "(($ac_try" in
31984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31985   *) ac_try_echo=$ac_try;;
31986 esac
31987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31988   (eval "$ac_link") 2>conftest.er1
31989   ac_status=$?
31990   grep -v '^ *+' conftest.er1 >conftest.err
31991   rm -f conftest.er1
31992   cat conftest.err >&5
31993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31994   (exit $ac_status); } && {
31995          test -z "$ac_c_werror_flag" ||
31996          test ! -s conftest.err
31997        } && test -s conftest$ac_exeext &&
31998        $as_test_x conftest$ac_exeext; then
31999   eval "$as_ac_var=yes"
32000 else
32001   echo "$as_me: failed program was:" >&5
32002 sed 's/^/| /' conftest.$ac_ext >&5
32003
32004         eval "$as_ac_var=no"
32005 fi
32006
32007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32008       conftest$ac_exeext conftest.$ac_ext
32009 fi
32010 ac_res=`eval echo '${'$as_ac_var'}'`
32011                { echo "$as_me:$LINENO: result: $ac_res" >&5
32012 echo "${ECHO_T}$ac_res" >&6; }
32013 if test `eval echo '${'$as_ac_var'}'` = yes; then
32014   cat >>confdefs.h <<_ACEOF
32015 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32016 _ACEOF
32017
32018 fi
32019 done
32020
32021             fi
32022         fi
32023
32024         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32025         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32026
32027         AFMINSTALL=afminstall
32028         TOOLKIT=GTK
32029         GUIDIST=GTK_DIST
32030
32031                 if test "$wxUSE_GPE" = "yes"; then
32032             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32033 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32034
32035   ac_find_libraries=
32036   for ac_dir in $SEARCH_LIB;
32037   do
32038     for ac_extension in a so sl dylib dll.a; do
32039       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32040         ac_find_libraries=$ac_dir
32041         break 2
32042       fi
32043     done
32044   done
32045
32046             if test "$ac_find_libraries" != "" ; then
32047
32048     if test "$ac_find_libraries" = "default location"; then
32049     ac_path_to_link=""
32050   else
32051     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32052     result=$?
32053     if test $result = 0; then
32054       ac_path_to_link=""
32055     else
32056       ac_path_to_link=" -L$ac_find_libraries"
32057     fi
32058   fi
32059
32060                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32061                 WXGPE=1
32062                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32063 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32064             else
32065                 { echo "$as_me:$LINENO: result: not found" >&5
32066 echo "${ECHO_T}not found" >&6; }
32067             fi
32068
32069                                                                                                                     fi
32070     fi
32071
32072     if test "$wxUSE_MGL" = 1; then
32073        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32074 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32075         if test "x$MGL_ROOT" = x ; then
32076             { echo "$as_me:$LINENO: result: not found" >&5
32077 echo "${ECHO_T}not found" >&6; }
32078             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32079 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32080    { (exit 1); exit 1; }; }
32081         else
32082             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32083 echo "${ECHO_T}$MGL_ROOT" >&6; }
32084         fi
32085
32086         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32087 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32088                                 case "${host}" in
32089             *-*-linux* )
32090                                           if test "x$wxUSE_SHARED" = xyes ; then
32091                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32092               else
32093                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32094               fi
32095               ;;
32096             *-pc-msdosdjgpp )
32097               mgl_os_candidates="dos32/dj2"
32098               ;;
32099             *)
32100               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32101 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32102    { (exit 1); exit 1; }; }
32103         esac
32104
32105         mgl_lib_type=""
32106         mgl_os=""
32107
32108         for mgl_os_i in $mgl_os_candidates ; do
32109             if test "x$mgl_os" = x ; then
32110                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32111                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32112                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32113                         mgl_lib_type=debug
32114                         mgl_os=$mgl_os_i
32115                     fi
32116                 fi
32117                 if test "x$mgl_lib_type" = x ; then
32118                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32119                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32120                         mgl_lib_type=release
32121                         mgl_os=$mgl_os_i
32122                     fi
32123                 fi
32124             fi
32125         done
32126
32127         if test "x$mgl_os" = x ; then
32128             { echo "$as_me:$LINENO: result: not found" >&5
32129 echo "${ECHO_T}not found" >&6; }
32130             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32131 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32132    { (exit 1); exit 1; }; }
32133         fi
32134         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32135 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32136
32137         wxUSE_UNIVERSAL="yes"
32138
32139         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32140         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32141
32142         AFMINSTALL=afminstall
32143         TOOLKIT=MGL
32144         GUIDIST=MGL_DIST
32145     fi
32146
32147     if test "$wxUSE_DFB" = 1; then
32148
32149
32150 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32151         if test -n "$ac_tool_prefix"; then
32152   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32153 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32156 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32157   echo $ECHO_N "(cached) $ECHO_C" >&6
32158 else
32159   case $PKG_CONFIG in
32160   [\\/]* | ?:[\\/]*)
32161   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32162   ;;
32163   *)
32164   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32165 for as_dir in $PATH
32166 do
32167   IFS=$as_save_IFS
32168   test -z "$as_dir" && as_dir=.
32169   for ac_exec_ext in '' $ac_executable_extensions; do
32170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32171     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32173     break 2
32174   fi
32175 done
32176 done
32177 IFS=$as_save_IFS
32178
32179   ;;
32180 esac
32181 fi
32182 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32183 if test -n "$PKG_CONFIG"; then
32184   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32185 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32186 else
32187   { echo "$as_me:$LINENO: result: no" >&5
32188 echo "${ECHO_T}no" >&6; }
32189 fi
32190
32191
32192 fi
32193 if test -z "$ac_cv_path_PKG_CONFIG"; then
32194   ac_pt_PKG_CONFIG=$PKG_CONFIG
32195   # Extract the first word of "pkg-config", so it can be a program name with args.
32196 set dummy pkg-config; ac_word=$2
32197 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32198 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32199 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32200   echo $ECHO_N "(cached) $ECHO_C" >&6
32201 else
32202   case $ac_pt_PKG_CONFIG in
32203   [\\/]* | ?:[\\/]*)
32204   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32205   ;;
32206   *)
32207   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32208 for as_dir in $PATH
32209 do
32210   IFS=$as_save_IFS
32211   test -z "$as_dir" && as_dir=.
32212   for ac_exec_ext in '' $ac_executable_extensions; do
32213   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32214     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32215     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32216     break 2
32217   fi
32218 done
32219 done
32220 IFS=$as_save_IFS
32221
32222   ;;
32223 esac
32224 fi
32225 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32226 if test -n "$ac_pt_PKG_CONFIG"; then
32227   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32228 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32229 else
32230   { echo "$as_me:$LINENO: result: no" >&5
32231 echo "${ECHO_T}no" >&6; }
32232 fi
32233
32234   if test "x$ac_pt_PKG_CONFIG" = x; then
32235     PKG_CONFIG=""
32236   else
32237     case $cross_compiling:$ac_tool_warned in
32238 yes:)
32239 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32240 whose name does not start with the host triplet.  If you think this
32241 configuration is useful to you, please write to autoconf@gnu.org." >&5
32242 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32243 whose name does not start with the host triplet.  If you think this
32244 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32245 ac_tool_warned=yes ;;
32246 esac
32247     PKG_CONFIG=$ac_pt_PKG_CONFIG
32248   fi
32249 else
32250   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32251 fi
32252
32253 fi
32254 if test -n "$PKG_CONFIG"; then
32255         _pkg_min_version=0.9.0
32256         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32257 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32258         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32259                 { echo "$as_me:$LINENO: result: yes" >&5
32260 echo "${ECHO_T}yes" >&6; }
32261         else
32262                 { echo "$as_me:$LINENO: result: no" >&5
32263 echo "${ECHO_T}no" >&6; }
32264                 PKG_CONFIG=""
32265         fi
32266
32267 fi
32268
32269
32270 pkg_failed=no
32271 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32272 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32273
32274 if test -n "$PKG_CONFIG"; then
32275     if test -n "$DIRECTFB_CFLAGS"; then
32276         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32277     else
32278         if test -n "$PKG_CONFIG" && \
32279     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32280   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32281   ac_status=$?
32282   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32283   (exit $ac_status); }; then
32284   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32285 else
32286   pkg_failed=yes
32287 fi
32288     fi
32289 else
32290         pkg_failed=untried
32291 fi
32292 if test -n "$PKG_CONFIG"; then
32293     if test -n "$DIRECTFB_LIBS"; then
32294         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32295     else
32296         if test -n "$PKG_CONFIG" && \
32297     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32298   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32299   ac_status=$?
32300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); }; then
32302   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32303 else
32304   pkg_failed=yes
32305 fi
32306     fi
32307 else
32308         pkg_failed=untried
32309 fi
32310
32311
32312
32313 if test $pkg_failed = yes; then
32314
32315 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32316         _pkg_short_errors_supported=yes
32317 else
32318         _pkg_short_errors_supported=no
32319 fi
32320         if test $_pkg_short_errors_supported = yes; then
32321                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32322         else
32323                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32324         fi
32325         # Put the nasty error message in config.log where it belongs
32326         echo "$DIRECTFB_PKG_ERRORS" >&5
32327
32328
32329                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32330 echo "$as_me: error: DirectFB not found." >&2;}
32331    { (exit 1); exit 1; }; }
32332
32333
32334 elif test $pkg_failed = untried; then
32335
32336                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32337 echo "$as_me: error: DirectFB not found." >&2;}
32338    { (exit 1); exit 1; }; }
32339
32340
32341 else
32342         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32343         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32344         { echo "$as_me:$LINENO: result: yes" >&5
32345 echo "${ECHO_T}yes" >&6; }
32346
32347                            wxUSE_UNIVERSAL="yes"
32348                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32349                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32350                            TOOLKIT=DFB
32351                            GUIDIST=DFB_DIST
32352
32353 fi
32354     fi
32355
32356     if test "$wxUSE_MICROWIN" = 1; then
32357         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32358 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32359         if test "x$MICROWINDOWS" = x ; then
32360             { echo "$as_me:$LINENO: result: not found" >&5
32361 echo "${ECHO_T}not found" >&6; }
32362             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32363 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32364    { (exit 1); exit 1; }; }
32365         else
32366             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32367 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32368         fi
32369
32370         if test -f $MICROWINDOWS/lib/libmwin.a; then
32371             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32372 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32373         else
32374             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32375 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32376    { (exit 1); exit 1; }; }
32377         fi
32378
32379         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32380         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32381
32382         wxUSE_UNIVERSAL="yes"
32383
32384         AFMINSTALL=afminstall
32385         TOOLKIT=MICROWIN
32386         GUIDIST=MICROWIN_DIST
32387
32388         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32389     fi
32390
32391         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32392                                 { echo "$as_me:$LINENO: checking for X" >&5
32393 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32394
32395
32396 # Check whether --with-x was given.
32397 if test "${with_x+set}" = set; then
32398   withval=$with_x;
32399 fi
32400
32401 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32402 if test "x$with_x" = xno; then
32403   # The user explicitly disabled X.
32404   have_x=disabled
32405 else
32406   case $x_includes,$x_libraries in #(
32407     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32408 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32409    { (exit 1); exit 1; }; };; #(
32410     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32411   echo $ECHO_N "(cached) $ECHO_C" >&6
32412 else
32413   # One or both of the vars are not set, and there is no cached value.
32414 ac_x_includes=no ac_x_libraries=no
32415 rm -f -r conftest.dir
32416 if mkdir conftest.dir; then
32417   cd conftest.dir
32418   cat >Imakefile <<'_ACEOF'
32419 incroot:
32420         @echo incroot='${INCROOT}'
32421 usrlibdir:
32422         @echo usrlibdir='${USRLIBDIR}'
32423 libdir:
32424         @echo libdir='${LIBDIR}'
32425 _ACEOF
32426   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32427     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32428     for ac_var in incroot usrlibdir libdir; do
32429       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32430     done
32431     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32432     for ac_extension in a so sl; do
32433       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32434          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32435         ac_im_usrlibdir=$ac_im_libdir; break
32436       fi
32437     done
32438     # Screen out bogus values from the imake configuration.  They are
32439     # bogus both because they are the default anyway, and because
32440     # using them would break gcc on systems where it needs fixed includes.
32441     case $ac_im_incroot in
32442         /usr/include) ac_x_includes= ;;
32443         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32444     esac
32445     case $ac_im_usrlibdir in
32446         /usr/lib | /lib) ;;
32447         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32448     esac
32449   fi
32450   cd ..
32451   rm -f -r conftest.dir
32452 fi
32453
32454 # Standard set of common directories for X headers.
32455 # Check X11 before X11Rn because it is often a symlink to the current release.
32456 ac_x_header_dirs='
32457 /usr/X11/include
32458 /usr/X11R6/include
32459 /usr/X11R5/include
32460 /usr/X11R4/include
32461
32462 /usr/include/X11
32463 /usr/include/X11R6
32464 /usr/include/X11R5
32465 /usr/include/X11R4
32466
32467 /usr/local/X11/include
32468 /usr/local/X11R6/include
32469 /usr/local/X11R5/include
32470 /usr/local/X11R4/include
32471
32472 /usr/local/include/X11
32473 /usr/local/include/X11R6
32474 /usr/local/include/X11R5
32475 /usr/local/include/X11R4
32476
32477 /usr/X386/include
32478 /usr/x386/include
32479 /usr/XFree86/include/X11
32480
32481 /usr/include
32482 /usr/local/include
32483 /usr/unsupported/include
32484 /usr/athena/include
32485 /usr/local/x11r5/include
32486 /usr/lpp/Xamples/include
32487
32488 /usr/openwin/include
32489 /usr/openwin/share/include'
32490
32491 if test "$ac_x_includes" = no; then
32492   # Guess where to find include files, by looking for Xlib.h.
32493   # First, try using that file with no special directory specified.
32494   cat >conftest.$ac_ext <<_ACEOF
32495 /* confdefs.h.  */
32496 _ACEOF
32497 cat confdefs.h >>conftest.$ac_ext
32498 cat >>conftest.$ac_ext <<_ACEOF
32499 /* end confdefs.h.  */
32500 #include <X11/Xlib.h>
32501 _ACEOF
32502 if { (ac_try="$ac_cpp conftest.$ac_ext"
32503 case "(($ac_try" in
32504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32505   *) ac_try_echo=$ac_try;;
32506 esac
32507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32508   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32509   ac_status=$?
32510   grep -v '^ *+' conftest.er1 >conftest.err
32511   rm -f conftest.er1
32512   cat conftest.err >&5
32513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32514   (exit $ac_status); } >/dev/null && {
32515          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32516          test ! -s conftest.err
32517        }; then
32518   # We can compile using X headers with no special include directory.
32519 ac_x_includes=
32520 else
32521   echo "$as_me: failed program was:" >&5
32522 sed 's/^/| /' conftest.$ac_ext >&5
32523
32524   for ac_dir in $ac_x_header_dirs; do
32525   if test -r "$ac_dir/X11/Xlib.h"; then
32526     ac_x_includes=$ac_dir
32527     break
32528   fi
32529 done
32530 fi
32531
32532 rm -f conftest.err conftest.$ac_ext
32533 fi # $ac_x_includes = no
32534
32535 if test "$ac_x_libraries" = no; then
32536   # Check for the libraries.
32537   # See if we find them without any special options.
32538   # Don't add to $LIBS permanently.
32539   ac_save_LIBS=$LIBS
32540   LIBS="-lX11 $LIBS"
32541   cat >conftest.$ac_ext <<_ACEOF
32542 /* confdefs.h.  */
32543 _ACEOF
32544 cat confdefs.h >>conftest.$ac_ext
32545 cat >>conftest.$ac_ext <<_ACEOF
32546 /* end confdefs.h.  */
32547 #include <X11/Xlib.h>
32548 int
32549 main ()
32550 {
32551 XrmInitialize ()
32552   ;
32553   return 0;
32554 }
32555 _ACEOF
32556 rm -f conftest.$ac_objext conftest$ac_exeext
32557 if { (ac_try="$ac_link"
32558 case "(($ac_try" in
32559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32560   *) ac_try_echo=$ac_try;;
32561 esac
32562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32563   (eval "$ac_link") 2>conftest.er1
32564   ac_status=$?
32565   grep -v '^ *+' conftest.er1 >conftest.err
32566   rm -f conftest.er1
32567   cat conftest.err >&5
32568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32569   (exit $ac_status); } && {
32570          test -z "$ac_c_werror_flag" ||
32571          test ! -s conftest.err
32572        } && test -s conftest$ac_exeext &&
32573        $as_test_x conftest$ac_exeext; then
32574   LIBS=$ac_save_LIBS
32575 # We can link X programs with no special library path.
32576 ac_x_libraries=
32577 else
32578   echo "$as_me: failed program was:" >&5
32579 sed 's/^/| /' conftest.$ac_ext >&5
32580
32581         LIBS=$ac_save_LIBS
32582 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32583 do
32584   # Don't even attempt the hair of trying to link an X program!
32585   for ac_extension in a so sl; do
32586     if test -r "$ac_dir/libX11.$ac_extension"; then
32587       ac_x_libraries=$ac_dir
32588       break 2
32589     fi
32590   done
32591 done
32592 fi
32593
32594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32595       conftest$ac_exeext conftest.$ac_ext
32596 fi # $ac_x_libraries = no
32597
32598 case $ac_x_includes,$ac_x_libraries in #(
32599   no,* | *,no | *\'*)
32600     # Didn't find X, or a directory has "'" in its name.
32601     ac_cv_have_x="have_x=no";; #(
32602   *)
32603     # Record where we found X for the cache.
32604     ac_cv_have_x="have_x=yes\
32605         ac_x_includes='$ac_x_includes'\
32606         ac_x_libraries='$ac_x_libraries'"
32607 esac
32608 fi
32609 ;; #(
32610     *) have_x=yes;;
32611   esac
32612   eval "$ac_cv_have_x"
32613 fi # $with_x != no
32614
32615 if test "$have_x" != yes; then
32616   { echo "$as_me:$LINENO: result: $have_x" >&5
32617 echo "${ECHO_T}$have_x" >&6; }
32618   no_x=yes
32619 else
32620   # If each of the values was on the command line, it overrides each guess.
32621   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32622   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32623   # Update the cache value to reflect the command line values.
32624   ac_cv_have_x="have_x=yes\
32625         ac_x_includes='$x_includes'\
32626         ac_x_libraries='$x_libraries'"
32627   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32628 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32629 fi
32630
32631 if test "$no_x" = yes; then
32632   # Not all programs may use this symbol, but it does not hurt to define it.
32633
32634 cat >>confdefs.h <<\_ACEOF
32635 #define X_DISPLAY_MISSING 1
32636 _ACEOF
32637
32638   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32639 else
32640   if test -n "$x_includes"; then
32641     X_CFLAGS="$X_CFLAGS -I$x_includes"
32642   fi
32643
32644   # It would also be nice to do this for all -L options, not just this one.
32645   if test -n "$x_libraries"; then
32646     X_LIBS="$X_LIBS -L$x_libraries"
32647     # For Solaris; some versions of Sun CC require a space after -R and
32648     # others require no space.  Words are not sufficient . . . .
32649     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32650 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32651     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32652     ac_xsave_c_werror_flag=$ac_c_werror_flag
32653     ac_c_werror_flag=yes
32654     cat >conftest.$ac_ext <<_ACEOF
32655 /* confdefs.h.  */
32656 _ACEOF
32657 cat confdefs.h >>conftest.$ac_ext
32658 cat >>conftest.$ac_ext <<_ACEOF
32659 /* end confdefs.h.  */
32660
32661 int
32662 main ()
32663 {
32664
32665   ;
32666   return 0;
32667 }
32668 _ACEOF
32669 rm -f conftest.$ac_objext conftest$ac_exeext
32670 if { (ac_try="$ac_link"
32671 case "(($ac_try" in
32672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32673   *) ac_try_echo=$ac_try;;
32674 esac
32675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32676   (eval "$ac_link") 2>conftest.er1
32677   ac_status=$?
32678   grep -v '^ *+' conftest.er1 >conftest.err
32679   rm -f conftest.er1
32680   cat conftest.err >&5
32681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32682   (exit $ac_status); } && {
32683          test -z "$ac_c_werror_flag" ||
32684          test ! -s conftest.err
32685        } && test -s conftest$ac_exeext &&
32686        $as_test_x conftest$ac_exeext; then
32687   { echo "$as_me:$LINENO: result: no" >&5
32688 echo "${ECHO_T}no" >&6; }
32689        X_LIBS="$X_LIBS -R$x_libraries"
32690 else
32691   echo "$as_me: failed program was:" >&5
32692 sed 's/^/| /' conftest.$ac_ext >&5
32693
32694         LIBS="$ac_xsave_LIBS -R $x_libraries"
32695        cat >conftest.$ac_ext <<_ACEOF
32696 /* confdefs.h.  */
32697 _ACEOF
32698 cat confdefs.h >>conftest.$ac_ext
32699 cat >>conftest.$ac_ext <<_ACEOF
32700 /* end confdefs.h.  */
32701
32702 int
32703 main ()
32704 {
32705
32706   ;
32707   return 0;
32708 }
32709 _ACEOF
32710 rm -f conftest.$ac_objext conftest$ac_exeext
32711 if { (ac_try="$ac_link"
32712 case "(($ac_try" in
32713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32714   *) ac_try_echo=$ac_try;;
32715 esac
32716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32717   (eval "$ac_link") 2>conftest.er1
32718   ac_status=$?
32719   grep -v '^ *+' conftest.er1 >conftest.err
32720   rm -f conftest.er1
32721   cat conftest.err >&5
32722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32723   (exit $ac_status); } && {
32724          test -z "$ac_c_werror_flag" ||
32725          test ! -s conftest.err
32726        } && test -s conftest$ac_exeext &&
32727        $as_test_x conftest$ac_exeext; then
32728   { echo "$as_me:$LINENO: result: yes" >&5
32729 echo "${ECHO_T}yes" >&6; }
32730           X_LIBS="$X_LIBS -R $x_libraries"
32731 else
32732   echo "$as_me: failed program was:" >&5
32733 sed 's/^/| /' conftest.$ac_ext >&5
32734
32735         { echo "$as_me:$LINENO: result: neither works" >&5
32736 echo "${ECHO_T}neither works" >&6; }
32737 fi
32738
32739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32740       conftest$ac_exeext conftest.$ac_ext
32741 fi
32742
32743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32744       conftest$ac_exeext conftest.$ac_ext
32745     ac_c_werror_flag=$ac_xsave_c_werror_flag
32746     LIBS=$ac_xsave_LIBS
32747   fi
32748
32749   # Check for system-dependent libraries X programs must link with.
32750   # Do this before checking for the system-independent R6 libraries
32751   # (-lICE), since we may need -lsocket or whatever for X linking.
32752
32753   if test "$ISC" = yes; then
32754     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32755   else
32756     # Martyn Johnson says this is needed for Ultrix, if the X
32757     # libraries were built with DECnet support.  And Karl Berry says
32758     # the Alpha needs dnet_stub (dnet does not exist).
32759     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32760     cat >conftest.$ac_ext <<_ACEOF
32761 /* confdefs.h.  */
32762 _ACEOF
32763 cat confdefs.h >>conftest.$ac_ext
32764 cat >>conftest.$ac_ext <<_ACEOF
32765 /* end confdefs.h.  */
32766
32767 /* Override any GCC internal prototype to avoid an error.
32768    Use char because int might match the return type of a GCC
32769    builtin and then its argument prototype would still apply.  */
32770 #ifdef __cplusplus
32771 extern "C"
32772 #endif
32773 char XOpenDisplay ();
32774 int
32775 main ()
32776 {
32777 return XOpenDisplay ();
32778   ;
32779   return 0;
32780 }
32781 _ACEOF
32782 rm -f conftest.$ac_objext conftest$ac_exeext
32783 if { (ac_try="$ac_link"
32784 case "(($ac_try" in
32785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32786   *) ac_try_echo=$ac_try;;
32787 esac
32788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32789   (eval "$ac_link") 2>conftest.er1
32790   ac_status=$?
32791   grep -v '^ *+' conftest.er1 >conftest.err
32792   rm -f conftest.er1
32793   cat conftest.err >&5
32794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795   (exit $ac_status); } && {
32796          test -z "$ac_c_werror_flag" ||
32797          test ! -s conftest.err
32798        } && test -s conftest$ac_exeext &&
32799        $as_test_x conftest$ac_exeext; then
32800   :
32801 else
32802   echo "$as_me: failed program was:" >&5
32803 sed 's/^/| /' conftest.$ac_ext >&5
32804
32805         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32806 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32807 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32808   echo $ECHO_N "(cached) $ECHO_C" >&6
32809 else
32810   ac_check_lib_save_LIBS=$LIBS
32811 LIBS="-ldnet  $LIBS"
32812 cat >conftest.$ac_ext <<_ACEOF
32813 /* confdefs.h.  */
32814 _ACEOF
32815 cat confdefs.h >>conftest.$ac_ext
32816 cat >>conftest.$ac_ext <<_ACEOF
32817 /* end confdefs.h.  */
32818
32819 /* Override any GCC internal prototype to avoid an error.
32820    Use char because int might match the return type of a GCC
32821    builtin and then its argument prototype would still apply.  */
32822 #ifdef __cplusplus
32823 extern "C"
32824 #endif
32825 char dnet_ntoa ();
32826 int
32827 main ()
32828 {
32829 return dnet_ntoa ();
32830   ;
32831   return 0;
32832 }
32833 _ACEOF
32834 rm -f conftest.$ac_objext conftest$ac_exeext
32835 if { (ac_try="$ac_link"
32836 case "(($ac_try" in
32837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32838   *) ac_try_echo=$ac_try;;
32839 esac
32840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32841   (eval "$ac_link") 2>conftest.er1
32842   ac_status=$?
32843   grep -v '^ *+' conftest.er1 >conftest.err
32844   rm -f conftest.er1
32845   cat conftest.err >&5
32846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32847   (exit $ac_status); } && {
32848          test -z "$ac_c_werror_flag" ||
32849          test ! -s conftest.err
32850        } && test -s conftest$ac_exeext &&
32851        $as_test_x conftest$ac_exeext; then
32852   ac_cv_lib_dnet_dnet_ntoa=yes
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857         ac_cv_lib_dnet_dnet_ntoa=no
32858 fi
32859
32860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32861       conftest$ac_exeext conftest.$ac_ext
32862 LIBS=$ac_check_lib_save_LIBS
32863 fi
32864 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
32865 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
32866 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
32867   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
32868 fi
32869
32870     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
32871       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
32872 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
32873 if test "${ac_cv_lib_dnet_stub_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_stub  $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_stub_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_stub_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_stub_dnet_ntoa" >&5
32931 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
32932 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
32933   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
32934 fi
32935
32936     fi
32937 fi
32938
32939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32940       conftest$ac_exeext conftest.$ac_ext
32941     LIBS="$ac_xsave_LIBS"
32942
32943     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
32944     # to get the SysV transport functions.
32945     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
32946     # needs -lnsl.
32947     # The nsl library prevents programs from opening the X display
32948     # on Irix 5.2, according to T.E. Dickey.
32949     # The functions gethostbyname, getservbyname, and inet_addr are
32950     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
32951     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
32952 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
32953 if test "${ac_cv_func_gethostbyname+set}" = set; then
32954   echo $ECHO_N "(cached) $ECHO_C" >&6
32955 else
32956   cat >conftest.$ac_ext <<_ACEOF
32957 /* confdefs.h.  */
32958 _ACEOF
32959 cat confdefs.h >>conftest.$ac_ext
32960 cat >>conftest.$ac_ext <<_ACEOF
32961 /* end confdefs.h.  */
32962 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
32963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32964 #define gethostbyname innocuous_gethostbyname
32965
32966 /* System header to define __stub macros and hopefully few prototypes,
32967     which can conflict with char gethostbyname (); below.
32968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32969     <limits.h> exists even on freestanding compilers.  */
32970
32971 #ifdef __STDC__
32972 # include <limits.h>
32973 #else
32974 # include <assert.h>
32975 #endif
32976
32977 #undef gethostbyname
32978
32979 /* Override any GCC internal prototype to avoid an error.
32980    Use char because int might match the return type of a GCC
32981    builtin and then its argument prototype would still apply.  */
32982 #ifdef __cplusplus
32983 extern "C"
32984 #endif
32985 char gethostbyname ();
32986 /* The GNU C library defines this for functions which it implements
32987     to always fail with ENOSYS.  Some functions are actually named
32988     something starting with __ and the normal name is an alias.  */
32989 #if defined __stub_gethostbyname || defined __stub___gethostbyname
32990 choke me
32991 #endif
32992
32993 int
32994 main ()
32995 {
32996 return gethostbyname ();
32997   ;
32998   return 0;
32999 }
33000 _ACEOF
33001 rm -f conftest.$ac_objext conftest$ac_exeext
33002 if { (ac_try="$ac_link"
33003 case "(($ac_try" in
33004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33005   *) ac_try_echo=$ac_try;;
33006 esac
33007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33008   (eval "$ac_link") 2>conftest.er1
33009   ac_status=$?
33010   grep -v '^ *+' conftest.er1 >conftest.err
33011   rm -f conftest.er1
33012   cat conftest.err >&5
33013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33014   (exit $ac_status); } && {
33015          test -z "$ac_c_werror_flag" ||
33016          test ! -s conftest.err
33017        } && test -s conftest$ac_exeext &&
33018        $as_test_x conftest$ac_exeext; then
33019   ac_cv_func_gethostbyname=yes
33020 else
33021   echo "$as_me: failed program was:" >&5
33022 sed 's/^/| /' conftest.$ac_ext >&5
33023
33024         ac_cv_func_gethostbyname=no
33025 fi
33026
33027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33028       conftest$ac_exeext conftest.$ac_ext
33029 fi
33030 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33031 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33032
33033     if test $ac_cv_func_gethostbyname = no; then
33034       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33035 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33036 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33037   echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039   ac_check_lib_save_LIBS=$LIBS
33040 LIBS="-lnsl  $LIBS"
33041 cat >conftest.$ac_ext <<_ACEOF
33042 /* confdefs.h.  */
33043 _ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h.  */
33047
33048 /* Override any GCC internal prototype to avoid an error.
33049    Use char because int might match the return type of a GCC
33050    builtin and then its argument prototype would still apply.  */
33051 #ifdef __cplusplus
33052 extern "C"
33053 #endif
33054 char gethostbyname ();
33055 int
33056 main ()
33057 {
33058 return gethostbyname ();
33059   ;
33060   return 0;
33061 }
33062 _ACEOF
33063 rm -f conftest.$ac_objext conftest$ac_exeext
33064 if { (ac_try="$ac_link"
33065 case "(($ac_try" in
33066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33067   *) ac_try_echo=$ac_try;;
33068 esac
33069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33070   (eval "$ac_link") 2>conftest.er1
33071   ac_status=$?
33072   grep -v '^ *+' conftest.er1 >conftest.err
33073   rm -f conftest.er1
33074   cat conftest.err >&5
33075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33076   (exit $ac_status); } && {
33077          test -z "$ac_c_werror_flag" ||
33078          test ! -s conftest.err
33079        } && test -s conftest$ac_exeext &&
33080        $as_test_x conftest$ac_exeext; then
33081   ac_cv_lib_nsl_gethostbyname=yes
33082 else
33083   echo "$as_me: failed program was:" >&5
33084 sed 's/^/| /' conftest.$ac_ext >&5
33085
33086         ac_cv_lib_nsl_gethostbyname=no
33087 fi
33088
33089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33090       conftest$ac_exeext conftest.$ac_ext
33091 LIBS=$ac_check_lib_save_LIBS
33092 fi
33093 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33094 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33095 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33096   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33097 fi
33098
33099       if test $ac_cv_lib_nsl_gethostbyname = no; then
33100         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33101 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33102 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33103   echo $ECHO_N "(cached) $ECHO_C" >&6
33104 else
33105   ac_check_lib_save_LIBS=$LIBS
33106 LIBS="-lbsd  $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_bsd_gethostbyname=yes
33148 else
33149   echo "$as_me: failed program was:" >&5
33150 sed 's/^/| /' conftest.$ac_ext >&5
33151
33152         ac_cv_lib_bsd_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_bsd_gethostbyname" >&5
33160 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33161 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33162   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33163 fi
33164
33165       fi
33166     fi
33167
33168     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33169     # socket/setsockopt and other routines are undefined under SCO ODT
33170     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33171     # on later versions), says Simon Leinen: it contains gethostby*
33172     # variants that don't use the name server (or something).  -lsocket
33173     # must be given before -lnsl if both are needed.  We assume that
33174     # if connect needs -lnsl, so does gethostbyname.
33175     { echo "$as_me:$LINENO: checking for connect" >&5
33176 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33177 if test "${ac_cv_func_connect+set}" = set; then
33178   echo $ECHO_N "(cached) $ECHO_C" >&6
33179 else
33180   cat >conftest.$ac_ext <<_ACEOF
33181 /* confdefs.h.  */
33182 _ACEOF
33183 cat confdefs.h >>conftest.$ac_ext
33184 cat >>conftest.$ac_ext <<_ACEOF
33185 /* end confdefs.h.  */
33186 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33187    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33188 #define connect innocuous_connect
33189
33190 /* System header to define __stub macros and hopefully few prototypes,
33191     which can conflict with char connect (); below.
33192     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33193     <limits.h> exists even on freestanding compilers.  */
33194
33195 #ifdef __STDC__
33196 # include <limits.h>
33197 #else
33198 # include <assert.h>
33199 #endif
33200
33201 #undef connect
33202
33203 /* Override any GCC internal prototype to avoid an error.
33204    Use char because int might match the return type of a GCC
33205    builtin and then its argument prototype would still apply.  */
33206 #ifdef __cplusplus
33207 extern "C"
33208 #endif
33209 char connect ();
33210 /* The GNU C library defines this for functions which it implements
33211     to always fail with ENOSYS.  Some functions are actually named
33212     something starting with __ and the normal name is an alias.  */
33213 #if defined __stub_connect || defined __stub___connect
33214 choke me
33215 #endif
33216
33217 int
33218 main ()
33219 {
33220 return connect ();
33221   ;
33222   return 0;
33223 }
33224 _ACEOF
33225 rm -f conftest.$ac_objext conftest$ac_exeext
33226 if { (ac_try="$ac_link"
33227 case "(($ac_try" in
33228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33229   *) ac_try_echo=$ac_try;;
33230 esac
33231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33232   (eval "$ac_link") 2>conftest.er1
33233   ac_status=$?
33234   grep -v '^ *+' conftest.er1 >conftest.err
33235   rm -f conftest.er1
33236   cat conftest.err >&5
33237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33238   (exit $ac_status); } && {
33239          test -z "$ac_c_werror_flag" ||
33240          test ! -s conftest.err
33241        } && test -s conftest$ac_exeext &&
33242        $as_test_x conftest$ac_exeext; then
33243   ac_cv_func_connect=yes
33244 else
33245   echo "$as_me: failed program was:" >&5
33246 sed 's/^/| /' conftest.$ac_ext >&5
33247
33248         ac_cv_func_connect=no
33249 fi
33250
33251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33252       conftest$ac_exeext conftest.$ac_ext
33253 fi
33254 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33255 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33256
33257     if test $ac_cv_func_connect = no; then
33258       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33259 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33260 if test "${ac_cv_lib_socket_connect+set}" = set; then
33261   echo $ECHO_N "(cached) $ECHO_C" >&6
33262 else
33263   ac_check_lib_save_LIBS=$LIBS
33264 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33265 cat >conftest.$ac_ext <<_ACEOF
33266 /* confdefs.h.  */
33267 _ACEOF
33268 cat confdefs.h >>conftest.$ac_ext
33269 cat >>conftest.$ac_ext <<_ACEOF
33270 /* end confdefs.h.  */
33271
33272 /* Override any GCC internal prototype to avoid an error.
33273    Use char because int might match the return type of a GCC
33274    builtin and then its argument prototype would still apply.  */
33275 #ifdef __cplusplus
33276 extern "C"
33277 #endif
33278 char connect ();
33279 int
33280 main ()
33281 {
33282 return connect ();
33283   ;
33284   return 0;
33285 }
33286 _ACEOF
33287 rm -f conftest.$ac_objext conftest$ac_exeext
33288 if { (ac_try="$ac_link"
33289 case "(($ac_try" in
33290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33291   *) ac_try_echo=$ac_try;;
33292 esac
33293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33294   (eval "$ac_link") 2>conftest.er1
33295   ac_status=$?
33296   grep -v '^ *+' conftest.er1 >conftest.err
33297   rm -f conftest.er1
33298   cat conftest.err >&5
33299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33300   (exit $ac_status); } && {
33301          test -z "$ac_c_werror_flag" ||
33302          test ! -s conftest.err
33303        } && test -s conftest$ac_exeext &&
33304        $as_test_x conftest$ac_exeext; then
33305   ac_cv_lib_socket_connect=yes
33306 else
33307   echo "$as_me: failed program was:" >&5
33308 sed 's/^/| /' conftest.$ac_ext >&5
33309
33310         ac_cv_lib_socket_connect=no
33311 fi
33312
33313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33314       conftest$ac_exeext conftest.$ac_ext
33315 LIBS=$ac_check_lib_save_LIBS
33316 fi
33317 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33318 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33319 if test $ac_cv_lib_socket_connect = yes; then
33320   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33321 fi
33322
33323     fi
33324
33325     # Guillermo Gomez says -lposix is necessary on A/UX.
33326     { echo "$as_me:$LINENO: checking for remove" >&5
33327 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33328 if test "${ac_cv_func_remove+set}" = set; then
33329   echo $ECHO_N "(cached) $ECHO_C" >&6
33330 else
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 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33338    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33339 #define remove innocuous_remove
33340
33341 /* System header to define __stub macros and hopefully few prototypes,
33342     which can conflict with char remove (); below.
33343     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33344     <limits.h> exists even on freestanding compilers.  */
33345
33346 #ifdef __STDC__
33347 # include <limits.h>
33348 #else
33349 # include <assert.h>
33350 #endif
33351
33352 #undef remove
33353
33354 /* Override any GCC internal prototype to avoid an error.
33355    Use char because int might match the return type of a GCC
33356    builtin and then its argument prototype would still apply.  */
33357 #ifdef __cplusplus
33358 extern "C"
33359 #endif
33360 char remove ();
33361 /* The GNU C library defines this for functions which it implements
33362     to always fail with ENOSYS.  Some functions are actually named
33363     something starting with __ and the normal name is an alias.  */
33364 #if defined __stub_remove || defined __stub___remove
33365 choke me
33366 #endif
33367
33368 int
33369 main ()
33370 {
33371 return remove ();
33372   ;
33373   return 0;
33374 }
33375 _ACEOF
33376 rm -f conftest.$ac_objext conftest$ac_exeext
33377 if { (ac_try="$ac_link"
33378 case "(($ac_try" in
33379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33380   *) ac_try_echo=$ac_try;;
33381 esac
33382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33383   (eval "$ac_link") 2>conftest.er1
33384   ac_status=$?
33385   grep -v '^ *+' conftest.er1 >conftest.err
33386   rm -f conftest.er1
33387   cat conftest.err >&5
33388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33389   (exit $ac_status); } && {
33390          test -z "$ac_c_werror_flag" ||
33391          test ! -s conftest.err
33392        } && test -s conftest$ac_exeext &&
33393        $as_test_x conftest$ac_exeext; then
33394   ac_cv_func_remove=yes
33395 else
33396   echo "$as_me: failed program was:" >&5
33397 sed 's/^/| /' conftest.$ac_ext >&5
33398
33399         ac_cv_func_remove=no
33400 fi
33401
33402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33403       conftest$ac_exeext conftest.$ac_ext
33404 fi
33405 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33406 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33407
33408     if test $ac_cv_func_remove = no; then
33409       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33410 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33411 if test "${ac_cv_lib_posix_remove+set}" = set; then
33412   echo $ECHO_N "(cached) $ECHO_C" >&6
33413 else
33414   ac_check_lib_save_LIBS=$LIBS
33415 LIBS="-lposix  $LIBS"
33416 cat >conftest.$ac_ext <<_ACEOF
33417 /* confdefs.h.  */
33418 _ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h.  */
33422
33423 /* Override any GCC internal prototype to avoid an error.
33424    Use char because int might match the return type of a GCC
33425    builtin and then its argument prototype would still apply.  */
33426 #ifdef __cplusplus
33427 extern "C"
33428 #endif
33429 char remove ();
33430 int
33431 main ()
33432 {
33433 return remove ();
33434   ;
33435   return 0;
33436 }
33437 _ACEOF
33438 rm -f conftest.$ac_objext conftest$ac_exeext
33439 if { (ac_try="$ac_link"
33440 case "(($ac_try" in
33441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33442   *) ac_try_echo=$ac_try;;
33443 esac
33444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33445   (eval "$ac_link") 2>conftest.er1
33446   ac_status=$?
33447   grep -v '^ *+' conftest.er1 >conftest.err
33448   rm -f conftest.er1
33449   cat conftest.err >&5
33450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33451   (exit $ac_status); } && {
33452          test -z "$ac_c_werror_flag" ||
33453          test ! -s conftest.err
33454        } && test -s conftest$ac_exeext &&
33455        $as_test_x conftest$ac_exeext; then
33456   ac_cv_lib_posix_remove=yes
33457 else
33458   echo "$as_me: failed program was:" >&5
33459 sed 's/^/| /' conftest.$ac_ext >&5
33460
33461         ac_cv_lib_posix_remove=no
33462 fi
33463
33464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33465       conftest$ac_exeext conftest.$ac_ext
33466 LIBS=$ac_check_lib_save_LIBS
33467 fi
33468 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33469 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33470 if test $ac_cv_lib_posix_remove = yes; then
33471   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33472 fi
33473
33474     fi
33475
33476     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33477     { echo "$as_me:$LINENO: checking for shmat" >&5
33478 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33479 if test "${ac_cv_func_shmat+set}" = set; then
33480   echo $ECHO_N "(cached) $ECHO_C" >&6
33481 else
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 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33489    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33490 #define shmat innocuous_shmat
33491
33492 /* System header to define __stub macros and hopefully few prototypes,
33493     which can conflict with char shmat (); below.
33494     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33495     <limits.h> exists even on freestanding compilers.  */
33496
33497 #ifdef __STDC__
33498 # include <limits.h>
33499 #else
33500 # include <assert.h>
33501 #endif
33502
33503 #undef shmat
33504
33505 /* Override any GCC internal prototype to avoid an error.
33506    Use char because int might match the return type of a GCC
33507    builtin and then its argument prototype would still apply.  */
33508 #ifdef __cplusplus
33509 extern "C"
33510 #endif
33511 char shmat ();
33512 /* The GNU C library defines this for functions which it implements
33513     to always fail with ENOSYS.  Some functions are actually named
33514     something starting with __ and the normal name is an alias.  */
33515 #if defined __stub_shmat || defined __stub___shmat
33516 choke me
33517 #endif
33518
33519 int
33520 main ()
33521 {
33522 return shmat ();
33523   ;
33524   return 0;
33525 }
33526 _ACEOF
33527 rm -f conftest.$ac_objext conftest$ac_exeext
33528 if { (ac_try="$ac_link"
33529 case "(($ac_try" in
33530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33531   *) ac_try_echo=$ac_try;;
33532 esac
33533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33534   (eval "$ac_link") 2>conftest.er1
33535   ac_status=$?
33536   grep -v '^ *+' conftest.er1 >conftest.err
33537   rm -f conftest.er1
33538   cat conftest.err >&5
33539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33540   (exit $ac_status); } && {
33541          test -z "$ac_c_werror_flag" ||
33542          test ! -s conftest.err
33543        } && test -s conftest$ac_exeext &&
33544        $as_test_x conftest$ac_exeext; then
33545   ac_cv_func_shmat=yes
33546 else
33547   echo "$as_me: failed program was:" >&5
33548 sed 's/^/| /' conftest.$ac_ext >&5
33549
33550         ac_cv_func_shmat=no
33551 fi
33552
33553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33554       conftest$ac_exeext conftest.$ac_ext
33555 fi
33556 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33557 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33558
33559     if test $ac_cv_func_shmat = no; then
33560       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33561 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33562 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33563   echo $ECHO_N "(cached) $ECHO_C" >&6
33564 else
33565   ac_check_lib_save_LIBS=$LIBS
33566 LIBS="-lipc  $LIBS"
33567 cat >conftest.$ac_ext <<_ACEOF
33568 /* confdefs.h.  */
33569 _ACEOF
33570 cat confdefs.h >>conftest.$ac_ext
33571 cat >>conftest.$ac_ext <<_ACEOF
33572 /* end confdefs.h.  */
33573
33574 /* Override any GCC internal prototype to avoid an error.
33575    Use char because int might match the return type of a GCC
33576    builtin and then its argument prototype would still apply.  */
33577 #ifdef __cplusplus
33578 extern "C"
33579 #endif
33580 char shmat ();
33581 int
33582 main ()
33583 {
33584 return shmat ();
33585   ;
33586   return 0;
33587 }
33588 _ACEOF
33589 rm -f conftest.$ac_objext conftest$ac_exeext
33590 if { (ac_try="$ac_link"
33591 case "(($ac_try" in
33592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33593   *) ac_try_echo=$ac_try;;
33594 esac
33595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33596   (eval "$ac_link") 2>conftest.er1
33597   ac_status=$?
33598   grep -v '^ *+' conftest.er1 >conftest.err
33599   rm -f conftest.er1
33600   cat conftest.err >&5
33601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); } && {
33603          test -z "$ac_c_werror_flag" ||
33604          test ! -s conftest.err
33605        } && test -s conftest$ac_exeext &&
33606        $as_test_x conftest$ac_exeext; then
33607   ac_cv_lib_ipc_shmat=yes
33608 else
33609   echo "$as_me: failed program was:" >&5
33610 sed 's/^/| /' conftest.$ac_ext >&5
33611
33612         ac_cv_lib_ipc_shmat=no
33613 fi
33614
33615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33616       conftest$ac_exeext conftest.$ac_ext
33617 LIBS=$ac_check_lib_save_LIBS
33618 fi
33619 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33620 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33621 if test $ac_cv_lib_ipc_shmat = yes; then
33622   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33623 fi
33624
33625     fi
33626   fi
33627
33628   # Check for libraries that X11R6 Xt/Xaw programs need.
33629   ac_save_LDFLAGS=$LDFLAGS
33630   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33631   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33632   # check for ICE first), but we must link in the order -lSM -lICE or
33633   # we get undefined symbols.  So assume we have SM if we have ICE.
33634   # These have to be linked with before -lX11, unlike the other
33635   # libraries we check for below, so use a different variable.
33636   # John Interrante, Karl Berry
33637   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33638 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33639 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33640   echo $ECHO_N "(cached) $ECHO_C" >&6
33641 else
33642   ac_check_lib_save_LIBS=$LIBS
33643 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33644 cat >conftest.$ac_ext <<_ACEOF
33645 /* confdefs.h.  */
33646 _ACEOF
33647 cat confdefs.h >>conftest.$ac_ext
33648 cat >>conftest.$ac_ext <<_ACEOF
33649 /* end confdefs.h.  */
33650
33651 /* Override any GCC internal prototype to avoid an error.
33652    Use char because int might match the return type of a GCC
33653    builtin and then its argument prototype would still apply.  */
33654 #ifdef __cplusplus
33655 extern "C"
33656 #endif
33657 char IceConnectionNumber ();
33658 int
33659 main ()
33660 {
33661 return IceConnectionNumber ();
33662   ;
33663   return 0;
33664 }
33665 _ACEOF
33666 rm -f conftest.$ac_objext conftest$ac_exeext
33667 if { (ac_try="$ac_link"
33668 case "(($ac_try" in
33669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33670   *) ac_try_echo=$ac_try;;
33671 esac
33672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33673   (eval "$ac_link") 2>conftest.er1
33674   ac_status=$?
33675   grep -v '^ *+' conftest.er1 >conftest.err
33676   rm -f conftest.er1
33677   cat conftest.err >&5
33678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33679   (exit $ac_status); } && {
33680          test -z "$ac_c_werror_flag" ||
33681          test ! -s conftest.err
33682        } && test -s conftest$ac_exeext &&
33683        $as_test_x conftest$ac_exeext; then
33684   ac_cv_lib_ICE_IceConnectionNumber=yes
33685 else
33686   echo "$as_me: failed program was:" >&5
33687 sed 's/^/| /' conftest.$ac_ext >&5
33688
33689         ac_cv_lib_ICE_IceConnectionNumber=no
33690 fi
33691
33692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33693       conftest$ac_exeext conftest.$ac_ext
33694 LIBS=$ac_check_lib_save_LIBS
33695 fi
33696 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33697 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33698 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33699   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33700 fi
33701
33702   LDFLAGS=$ac_save_LDFLAGS
33703
33704 fi
33705
33706
33707         if test "$no_x" = "yes"; then
33708           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33709 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33710    { (exit 1); exit 1; }; }
33711         fi
33712
33713                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33714         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33715         AFMINSTALL=afminstall
33716         COMPILED_X_PROGRAM=0
33717
33718     fi
33719
33720     if test "$wxUSE_X11" = 1; then
33721         if test "$wxUSE_NANOX" = "yes"; then
33722             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33723 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33724             if test "x$MICROWIN" = x ; then
33725                 { echo "$as_me:$LINENO: result: not found" >&5
33726 echo "${ECHO_T}not found" >&6; }
33727                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33728 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33729    { (exit 1); exit 1; }; }
33730             else
33731                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33732 echo "${ECHO_T}$MICROWIN" >&6; }
33733                 cat >>confdefs.h <<\_ACEOF
33734 #define wxUSE_NANOX 1
33735 _ACEOF
33736
33737             fi
33738         fi
33739
33740         if test "$wxUSE_UNICODE" = "yes"; then
33741
33742
33743 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33744         if test -n "$ac_tool_prefix"; then
33745   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33746 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33747 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33748 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33749 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33750   echo $ECHO_N "(cached) $ECHO_C" >&6
33751 else
33752   case $PKG_CONFIG in
33753   [\\/]* | ?:[\\/]*)
33754   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33755   ;;
33756   *)
33757   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33758 for as_dir in $PATH
33759 do
33760   IFS=$as_save_IFS
33761   test -z "$as_dir" && as_dir=.
33762   for ac_exec_ext in '' $ac_executable_extensions; do
33763   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33764     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33765     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33766     break 2
33767   fi
33768 done
33769 done
33770 IFS=$as_save_IFS
33771
33772   ;;
33773 esac
33774 fi
33775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33776 if test -n "$PKG_CONFIG"; then
33777   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33778 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33779 else
33780   { echo "$as_me:$LINENO: result: no" >&5
33781 echo "${ECHO_T}no" >&6; }
33782 fi
33783
33784
33785 fi
33786 if test -z "$ac_cv_path_PKG_CONFIG"; then
33787   ac_pt_PKG_CONFIG=$PKG_CONFIG
33788   # Extract the first word of "pkg-config", so it can be a program name with args.
33789 set dummy pkg-config; ac_word=$2
33790 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33791 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33792 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33793   echo $ECHO_N "(cached) $ECHO_C" >&6
33794 else
33795   case $ac_pt_PKG_CONFIG in
33796   [\\/]* | ?:[\\/]*)
33797   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33798   ;;
33799   *)
33800   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33801 for as_dir in $PATH
33802 do
33803   IFS=$as_save_IFS
33804   test -z "$as_dir" && as_dir=.
33805   for ac_exec_ext in '' $ac_executable_extensions; do
33806   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33807     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33808     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33809     break 2
33810   fi
33811 done
33812 done
33813 IFS=$as_save_IFS
33814
33815   ;;
33816 esac
33817 fi
33818 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33819 if test -n "$ac_pt_PKG_CONFIG"; then
33820   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33821 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33822 else
33823   { echo "$as_me:$LINENO: result: no" >&5
33824 echo "${ECHO_T}no" >&6; }
33825 fi
33826
33827   if test "x$ac_pt_PKG_CONFIG" = x; then
33828     PKG_CONFIG=""
33829   else
33830     case $cross_compiling:$ac_tool_warned in
33831 yes:)
33832 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33833 whose name does not start with the host triplet.  If you think this
33834 configuration is useful to you, please write to autoconf@gnu.org." >&5
33835 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33836 whose name does not start with the host triplet.  If you think this
33837 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
33838 ac_tool_warned=yes ;;
33839 esac
33840     PKG_CONFIG=$ac_pt_PKG_CONFIG
33841   fi
33842 else
33843   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
33844 fi
33845
33846 fi
33847 if test -n "$PKG_CONFIG"; then
33848         _pkg_min_version=0.9.0
33849         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
33850 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
33851         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
33852                 { echo "$as_me:$LINENO: result: yes" >&5
33853 echo "${ECHO_T}yes" >&6; }
33854         else
33855                 { echo "$as_me:$LINENO: result: no" >&5
33856 echo "${ECHO_T}no" >&6; }
33857                 PKG_CONFIG=""
33858         fi
33859
33860 fi
33861
33862
33863 pkg_failed=no
33864 { echo "$as_me:$LINENO: checking for PANGOX" >&5
33865 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
33866
33867 if test -n "$PKG_CONFIG"; then
33868     if test -n "$PANGOX_CFLAGS"; then
33869         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
33870     else
33871         if test -n "$PKG_CONFIG" && \
33872     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33873   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33874   ac_status=$?
33875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33876   (exit $ac_status); }; then
33877   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
33878 else
33879   pkg_failed=yes
33880 fi
33881     fi
33882 else
33883         pkg_failed=untried
33884 fi
33885 if test -n "$PKG_CONFIG"; then
33886     if test -n "$PANGOX_LIBS"; then
33887         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
33888     else
33889         if test -n "$PKG_CONFIG" && \
33890     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
33891   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
33892   ac_status=$?
33893   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33894   (exit $ac_status); }; then
33895   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
33896 else
33897   pkg_failed=yes
33898 fi
33899     fi
33900 else
33901         pkg_failed=untried
33902 fi
33903
33904
33905
33906 if test $pkg_failed = yes; then
33907
33908 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33909         _pkg_short_errors_supported=yes
33910 else
33911         _pkg_short_errors_supported=no
33912 fi
33913         if test $_pkg_short_errors_supported = yes; then
33914                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
33915         else
33916                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
33917         fi
33918         # Put the nasty error message in config.log where it belongs
33919         echo "$PANGOX_PKG_ERRORS" >&5
33920
33921
33922                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33923 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33924    { (exit 1); exit 1; }; }
33925
33926
33927 elif test $pkg_failed = untried; then
33928
33929                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
33930 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
33931    { (exit 1); exit 1; }; }
33932
33933
33934 else
33935         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
33936         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
33937         { echo "$as_me:$LINENO: result: yes" >&5
33938 echo "${ECHO_T}yes" >&6; }
33939
33940                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
33941                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
33942                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
33943
33944 fi
33945
33946 pkg_failed=no
33947 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
33948 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
33949
33950 if test -n "$PKG_CONFIG"; then
33951     if test -n "$PANGOFT2_CFLAGS"; then
33952         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
33953     else
33954         if test -n "$PKG_CONFIG" && \
33955     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33956   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33957   ac_status=$?
33958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33959   (exit $ac_status); }; then
33960   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
33961 else
33962   pkg_failed=yes
33963 fi
33964     fi
33965 else
33966         pkg_failed=untried
33967 fi
33968 if test -n "$PKG_CONFIG"; then
33969     if test -n "$PANGOFT2_LIBS"; then
33970         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
33971     else
33972         if test -n "$PKG_CONFIG" && \
33973     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
33974   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
33975   ac_status=$?
33976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33977   (exit $ac_status); }; then
33978   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
33979 else
33980   pkg_failed=yes
33981 fi
33982     fi
33983 else
33984         pkg_failed=untried
33985 fi
33986
33987
33988
33989 if test $pkg_failed = yes; then
33990
33991 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
33992         _pkg_short_errors_supported=yes
33993 else
33994         _pkg_short_errors_supported=no
33995 fi
33996         if test $_pkg_short_errors_supported = yes; then
33997                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
33998         else
33999                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34000         fi
34001         # Put the nasty error message in config.log where it belongs
34002         echo "$PANGOFT2_PKG_ERRORS" >&5
34003
34004
34005                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34006 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34007                     wxUSE_PRINTING_ARCHITECTURE="no"
34008
34009
34010 elif test $pkg_failed = untried; then
34011
34012                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34013 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34014                     wxUSE_PRINTING_ARCHITECTURE="no"
34015
34016
34017 else
34018         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34019         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34020         { echo "$as_me:$LINENO: result: yes" >&5
34021 echo "${ECHO_T}yes" >&6; }
34022
34023                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34024                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34025                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34026
34027 fi
34028
34029 pkg_failed=no
34030 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34031 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34032
34033 if test -n "$PKG_CONFIG"; then
34034     if test -n "$PANGOXFT_CFLAGS"; then
34035         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34036     else
34037         if test -n "$PKG_CONFIG" && \
34038     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34039   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34040   ac_status=$?
34041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34042   (exit $ac_status); }; then
34043   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34044 else
34045   pkg_failed=yes
34046 fi
34047     fi
34048 else
34049         pkg_failed=untried
34050 fi
34051 if test -n "$PKG_CONFIG"; then
34052     if test -n "$PANGOXFT_LIBS"; then
34053         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34054     else
34055         if test -n "$PKG_CONFIG" && \
34056     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34057   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34058   ac_status=$?
34059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34060   (exit $ac_status); }; then
34061   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34062 else
34063   pkg_failed=yes
34064 fi
34065     fi
34066 else
34067         pkg_failed=untried
34068 fi
34069
34070
34071
34072 if test $pkg_failed = yes; then
34073
34074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34075         _pkg_short_errors_supported=yes
34076 else
34077         _pkg_short_errors_supported=no
34078 fi
34079         if test $_pkg_short_errors_supported = yes; then
34080                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34081         else
34082                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34083         fi
34084         # Put the nasty error message in config.log where it belongs
34085         echo "$PANGOXFT_PKG_ERRORS" >&5
34086
34087
34088                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34089 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34090
34091
34092 elif test $pkg_failed = untried; then
34093
34094                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34095 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34096
34097
34098 else
34099         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34100         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34101         { echo "$as_me:$LINENO: result: yes" >&5
34102 echo "${ECHO_T}yes" >&6; }
34103
34104                     cat >>confdefs.h <<\_ACEOF
34105 #define HAVE_PANGO_XFT 1
34106 _ACEOF
34107
34108                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34109                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34110                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34111
34112 fi
34113             save_LIBS="$LIBS"
34114             LIBS="$LIBS $PANGOX_LIBS"
34115
34116 for ac_func in pango_font_family_is_monospace
34117 do
34118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34122   echo $ECHO_N "(cached) $ECHO_C" >&6
34123 else
34124   cat >conftest.$ac_ext <<_ACEOF
34125 /* confdefs.h.  */
34126 _ACEOF
34127 cat confdefs.h >>conftest.$ac_ext
34128 cat >>conftest.$ac_ext <<_ACEOF
34129 /* end confdefs.h.  */
34130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34131    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34132 #define $ac_func innocuous_$ac_func
34133
34134 /* System header to define __stub macros and hopefully few prototypes,
34135     which can conflict with char $ac_func (); below.
34136     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34137     <limits.h> exists even on freestanding compilers.  */
34138
34139 #ifdef __STDC__
34140 # include <limits.h>
34141 #else
34142 # include <assert.h>
34143 #endif
34144
34145 #undef $ac_func
34146
34147 /* Override any GCC internal prototype to avoid an error.
34148    Use char because int might match the return type of a GCC
34149    builtin and then its argument prototype would still apply.  */
34150 #ifdef __cplusplus
34151 extern "C"
34152 #endif
34153 char $ac_func ();
34154 /* The GNU C library defines this for functions which it implements
34155     to always fail with ENOSYS.  Some functions are actually named
34156     something starting with __ and the normal name is an alias.  */
34157 #if defined __stub_$ac_func || defined __stub___$ac_func
34158 choke me
34159 #endif
34160
34161 int
34162 main ()
34163 {
34164 return $ac_func ();
34165   ;
34166   return 0;
34167 }
34168 _ACEOF
34169 rm -f conftest.$ac_objext conftest$ac_exeext
34170 if { (ac_try="$ac_link"
34171 case "(($ac_try" in
34172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34173   *) ac_try_echo=$ac_try;;
34174 esac
34175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34176   (eval "$ac_link") 2>conftest.er1
34177   ac_status=$?
34178   grep -v '^ *+' conftest.er1 >conftest.err
34179   rm -f conftest.er1
34180   cat conftest.err >&5
34181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34182   (exit $ac_status); } && {
34183          test -z "$ac_c_werror_flag" ||
34184          test ! -s conftest.err
34185        } && test -s conftest$ac_exeext &&
34186        $as_test_x conftest$ac_exeext; then
34187   eval "$as_ac_var=yes"
34188 else
34189   echo "$as_me: failed program was:" >&5
34190 sed 's/^/| /' conftest.$ac_ext >&5
34191
34192         eval "$as_ac_var=no"
34193 fi
34194
34195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34196       conftest$ac_exeext conftest.$ac_ext
34197 fi
34198 ac_res=`eval echo '${'$as_ac_var'}'`
34199                { echo "$as_me:$LINENO: result: $ac_res" >&5
34200 echo "${ECHO_T}$ac_res" >&6; }
34201 if test `eval echo '${'$as_ac_var'}'` = yes; then
34202   cat >>confdefs.h <<_ACEOF
34203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34204 _ACEOF
34205
34206 fi
34207 done
34208
34209             LIBS="$save_LIBS"
34210         fi
34211
34212         wxUSE_UNIVERSAL="yes"
34213
34214         if test "$wxUSE_NANOX" = "yes"; then
34215             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34216             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"
34217             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34218         else
34219             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34220         fi
34221
34222         TOOLKIT=X11
34223         GUIDIST=X11_DIST
34224     fi
34225
34226     if test "$wxUSE_MOTIF" = 1; then
34227         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34228 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34229
34230 ac_find_includes=
34231 for ac_dir in $SEARCH_INCLUDE /usr/include;
34232   do
34233     if test -f "$ac_dir/Xm/Xm.h"; then
34234       ac_find_includes=$ac_dir
34235       break
34236     fi
34237   done
34238
34239         if test "$ac_find_includes" != "" ; then
34240             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34241 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34242
34243     if test "x$ac_find_includes" = "x/usr/include"; then
34244     ac_path_to_include=""
34245   else
34246     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34247     result=$?
34248     if test $result = 0; then
34249       ac_path_to_include=""
34250     else
34251       ac_path_to_include=" -I$ac_find_includes"
34252     fi
34253   fi
34254
34255             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34256         else
34257             save_CFLAGS=$CFLAGS
34258             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34259
34260             cat >conftest.$ac_ext <<_ACEOF
34261 /* confdefs.h.  */
34262 _ACEOF
34263 cat confdefs.h >>conftest.$ac_ext
34264 cat >>conftest.$ac_ext <<_ACEOF
34265 /* end confdefs.h.  */
34266
34267                     #include <Xm/Xm.h>
34268
34269 int
34270 main ()
34271 {
34272
34273                     int version;
34274                     version = xmUseVersion;
34275
34276   ;
34277   return 0;
34278 }
34279 _ACEOF
34280 rm -f conftest.$ac_objext
34281 if { (ac_try="$ac_compile"
34282 case "(($ac_try" in
34283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34284   *) ac_try_echo=$ac_try;;
34285 esac
34286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34287   (eval "$ac_compile") 2>conftest.er1
34288   ac_status=$?
34289   grep -v '^ *+' conftest.er1 >conftest.err
34290   rm -f conftest.er1
34291   cat conftest.err >&5
34292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34293   (exit $ac_status); } && {
34294          test -z "$ac_c_werror_flag" ||
34295          test ! -s conftest.err
34296        } && test -s conftest.$ac_objext; then
34297
34298                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34299 echo "${ECHO_T}found in default search path" >&6; }
34300                     COMPILED_X_PROGRAM=1
34301
34302 else
34303   echo "$as_me: failed program was:" >&5
34304 sed 's/^/| /' conftest.$ac_ext >&5
34305
34306
34307                     { echo "$as_me:$LINENO: result: no" >&5
34308 echo "${ECHO_T}no" >&6; }
34309                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34310 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34311    { (exit 1); exit 1; }; }
34312
34313
34314 fi
34315
34316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34317
34318             CFLAGS=$save_CFLAGS
34319         fi
34320
34321
34322         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34323 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34324
34325   ac_find_libraries=
34326   for ac_dir in $SEARCH_LIB;
34327   do
34328     for ac_extension in a so sl dylib dll.a; do
34329       if test -f "$ac_dir/libXm.$ac_extension"; then
34330         ac_find_libraries=$ac_dir
34331         break 2
34332       fi
34333     done
34334   done
34335
34336
34337         if test "x$ac_find_libraries" != "x" ; then
34338             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34339 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34340
34341
34342     if test "$ac_find_libraries" = "default location"; then
34343     ac_path_to_link=""
34344   else
34345     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34346     result=$?
34347     if test $result = 0; then
34348       ac_path_to_link=""
34349     else
34350       ac_path_to_link=" -L$ac_find_libraries"
34351     fi
34352   fi
34353
34354             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34355         else
34356                                                 save_CFLAGS=$CFLAGS
34357             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34358             save_LIBS="$LIBS"
34359             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34360
34361             cat >conftest.$ac_ext <<_ACEOF
34362 /* confdefs.h.  */
34363 _ACEOF
34364 cat confdefs.h >>conftest.$ac_ext
34365 cat >>conftest.$ac_ext <<_ACEOF
34366 /* end confdefs.h.  */
34367
34368                     #include <Xm/Xm.h>
34369
34370 int
34371 main ()
34372 {
34373
34374                     int version;
34375                     version = xmUseVersion;
34376
34377   ;
34378   return 0;
34379 }
34380 _ACEOF
34381 rm -f conftest.$ac_objext conftest$ac_exeext
34382 if { (ac_try="$ac_link"
34383 case "(($ac_try" in
34384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34385   *) ac_try_echo=$ac_try;;
34386 esac
34387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34388   (eval "$ac_link") 2>conftest.er1
34389   ac_status=$?
34390   grep -v '^ *+' conftest.er1 >conftest.err
34391   rm -f conftest.er1
34392   cat conftest.err >&5
34393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34394   (exit $ac_status); } && {
34395          test -z "$ac_c_werror_flag" ||
34396          test ! -s conftest.err
34397        } && test -s conftest$ac_exeext &&
34398        $as_test_x conftest$ac_exeext; then
34399
34400                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34401 echo "${ECHO_T}found in default search path" >&6; }
34402                     COMPILED_X_PROGRAM=1
34403
34404 else
34405   echo "$as_me: failed program was:" >&5
34406 sed 's/^/| /' conftest.$ac_ext >&5
34407
34408
34409                     { echo "$as_me:$LINENO: result: no" >&5
34410 echo "${ECHO_T}no" >&6; }
34411                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34412 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34413    { (exit 1); exit 1; }; }
34414
34415
34416 fi
34417
34418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34419       conftest$ac_exeext conftest.$ac_ext
34420
34421             CFLAGS=$save_CFLAGS
34422             LIBS="$save_LIBS"
34423         fi
34424
34425         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34426 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34427         libp_link=""
34428         libsm_ice_link=""
34429         libs_found=0
34430         for libp in "" " -lXp"; do
34431             if test "$libs_found" = "0"; then
34432                 for libsm_ice in "" " -lSM -lICE"; do
34433                     if test "$libs_found" = "0"; then
34434                         save_LIBS="$LIBS"
34435                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34436                         save_CFLAGS=$CFLAGS
34437                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34438
34439                         cat >conftest.$ac_ext <<_ACEOF
34440 /* confdefs.h.  */
34441 _ACEOF
34442 cat confdefs.h >>conftest.$ac_ext
34443 cat >>conftest.$ac_ext <<_ACEOF
34444 /* end confdefs.h.  */
34445
34446                                 #include <Xm/Xm.h>
34447                                 #include <Xm/List.h>
34448
34449 int
34450 main ()
34451 {
34452
34453                                 XmString string = NULL;
34454                                 Widget w = NULL;
34455                                 int position = 0;
34456                                 XmListAddItem(w, string, position);
34457
34458   ;
34459   return 0;
34460 }
34461 _ACEOF
34462 rm -f conftest.$ac_objext conftest$ac_exeext
34463 if { (ac_try="$ac_link"
34464 case "(($ac_try" in
34465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34466   *) ac_try_echo=$ac_try;;
34467 esac
34468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34469   (eval "$ac_link") 2>conftest.er1
34470   ac_status=$?
34471   grep -v '^ *+' conftest.er1 >conftest.err
34472   rm -f conftest.er1
34473   cat conftest.err >&5
34474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34475   (exit $ac_status); } && {
34476          test -z "$ac_c_werror_flag" ||
34477          test ! -s conftest.err
34478        } && test -s conftest$ac_exeext &&
34479        $as_test_x conftest$ac_exeext; then
34480
34481                                 libp_link="$libp"
34482                                 libsm_ice_link="$libsm_ice"
34483                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34484 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34485                                 libs_found=1
34486
34487 else
34488   echo "$as_me: failed program was:" >&5
34489 sed 's/^/| /' conftest.$ac_ext >&5
34490
34491
34492
34493 fi
34494
34495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34496       conftest$ac_exeext conftest.$ac_ext
34497
34498                         LIBS="$save_LIBS"
34499                         CFLAGS=$save_CFLAGS
34500                     fi
34501                 done
34502             fi
34503         done
34504
34505         if test "$libs_found" = "0"; then
34506             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34507 echo "${ECHO_T}can't find the right libraries" >&6; }
34508             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34509 echo "$as_me: error: can't link a simple motif program" >&2;}
34510    { (exit 1); exit 1; }; }
34511         fi
34512
34513                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34514 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34515 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34516   echo $ECHO_N "(cached) $ECHO_C" >&6
34517 else
34518   ac_check_lib_save_LIBS=$LIBS
34519 LIBS="-lSgm  $LIBS"
34520 cat >conftest.$ac_ext <<_ACEOF
34521 /* confdefs.h.  */
34522 _ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h.  */
34526
34527 /* Override any GCC internal prototype to avoid an error.
34528    Use char because int might match the return type of a GCC
34529    builtin and then its argument prototype would still apply.  */
34530 #ifdef __cplusplus
34531 extern "C"
34532 #endif
34533 char SgCreateList ();
34534 int
34535 main ()
34536 {
34537 return SgCreateList ();
34538   ;
34539   return 0;
34540 }
34541 _ACEOF
34542 rm -f conftest.$ac_objext conftest$ac_exeext
34543 if { (ac_try="$ac_link"
34544 case "(($ac_try" in
34545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34546   *) ac_try_echo=$ac_try;;
34547 esac
34548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34549   (eval "$ac_link") 2>conftest.er1
34550   ac_status=$?
34551   grep -v '^ *+' conftest.er1 >conftest.err
34552   rm -f conftest.er1
34553   cat conftest.err >&5
34554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34555   (exit $ac_status); } && {
34556          test -z "$ac_c_werror_flag" ||
34557          test ! -s conftest.err
34558        } && test -s conftest$ac_exeext &&
34559        $as_test_x conftest$ac_exeext; then
34560   ac_cv_lib_Sgm_SgCreateList=yes
34561 else
34562   echo "$as_me: failed program was:" >&5
34563 sed 's/^/| /' conftest.$ac_ext >&5
34564
34565         ac_cv_lib_Sgm_SgCreateList=no
34566 fi
34567
34568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34569       conftest$ac_exeext conftest.$ac_ext
34570 LIBS=$ac_check_lib_save_LIBS
34571 fi
34572 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34573 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34574 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34575   libsgm_link=" -lSgm"
34576 fi
34577
34578
34579         save_CFLAGS=$CFLAGS
34580         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34581
34582         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34583 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34584 if test "${wx_cv_lib_motif2+set}" = set; then
34585   echo $ECHO_N "(cached) $ECHO_C" >&6
34586 else
34587   cat >conftest.$ac_ext <<_ACEOF
34588 /* confdefs.h.  */
34589 _ACEOF
34590 cat confdefs.h >>conftest.$ac_ext
34591 cat >>conftest.$ac_ext <<_ACEOF
34592 /* end confdefs.h.  */
34593
34594                             #include <Xm/Xm.h>
34595
34596 int
34597 main ()
34598 {
34599
34600                             #if XmVersion < 2000
34601                             Not Motif 2
34602                             #endif
34603
34604   ;
34605   return 0;
34606 }
34607 _ACEOF
34608 rm -f conftest.$ac_objext
34609 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
34625   wx_cv_lib_motif2="yes"
34626 else
34627   echo "$as_me: failed program was:" >&5
34628 sed 's/^/| /' conftest.$ac_ext >&5
34629
34630         wx_cv_lib_motif2="no"
34631 fi
34632
34633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34634 fi
34635 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34636 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34637         if test "$wx_cv_lib_motif2" = "yes"; then
34638             cat >>confdefs.h <<\_ACEOF
34639 #define __WXMOTIF20__ 1
34640 _ACEOF
34641
34642         else
34643             cat >>confdefs.h <<\_ACEOF
34644 #define __WXMOTIF20__ 0
34645 _ACEOF
34646
34647         fi
34648
34649         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34650 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34651 if test "${wx_cv_lib_lesstif+set}" = set; then
34652   echo $ECHO_N "(cached) $ECHO_C" >&6
34653 else
34654   cat >conftest.$ac_ext <<_ACEOF
34655 /* confdefs.h.  */
34656 _ACEOF
34657 cat confdefs.h >>conftest.$ac_ext
34658 cat >>conftest.$ac_ext <<_ACEOF
34659 /* end confdefs.h.  */
34660
34661                             #include <Xm/Xm.h>
34662
34663 int
34664 main ()
34665 {
34666
34667                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34668                             Not Lesstif
34669                             #endif
34670
34671   ;
34672   return 0;
34673 }
34674 _ACEOF
34675 rm -f conftest.$ac_objext
34676 if { (ac_try="$ac_compile"
34677 case "(($ac_try" in
34678   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34679   *) ac_try_echo=$ac_try;;
34680 esac
34681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34682   (eval "$ac_compile") 2>conftest.er1
34683   ac_status=$?
34684   grep -v '^ *+' conftest.er1 >conftest.err
34685   rm -f conftest.er1
34686   cat conftest.err >&5
34687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34688   (exit $ac_status); } && {
34689          test -z "$ac_c_werror_flag" ||
34690          test ! -s conftest.err
34691        } && test -s conftest.$ac_objext; then
34692   wx_cv_lib_lesstif="yes"
34693 else
34694   echo "$as_me: failed program was:" >&5
34695 sed 's/^/| /' conftest.$ac_ext >&5
34696
34697         wx_cv_lib_lesstif="no"
34698 fi
34699
34700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34701
34702 fi
34703 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34704 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34705         if test "$wx_cv_lib_lesstif" = "yes"; then
34706             cat >>confdefs.h <<\_ACEOF
34707 #define __WXLESSTIF__ 1
34708 _ACEOF
34709
34710         else
34711             cat >>confdefs.h <<\_ACEOF
34712 #define __WXLESSTIF__ 0
34713 _ACEOF
34714
34715         fi
34716
34717         CFLAGS=$save_CFLAGS
34718
34719         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34720         TOOLKIT=MOTIF
34721         GUIDIST=MOTIF_DIST
34722     fi
34723
34724         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34725                 if test "$wxUSE_LIBXPM" = "sys"; then
34726             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34727 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34728
34729   ac_find_libraries=
34730   for ac_dir in $SEARCH_LIB;
34731   do
34732     for ac_extension in a so sl dylib dll.a; do
34733       if test -f "$ac_dir/libXpm.$ac_extension"; then
34734         ac_find_libraries=$ac_dir
34735         break 2
34736       fi
34737     done
34738   done
34739
34740             if test "$ac_find_libraries" != "" ; then
34741
34742     if test "$ac_find_libraries" = "default location"; then
34743     ac_path_to_link=""
34744   else
34745     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34746     result=$?
34747     if test $result = 0; then
34748       ac_path_to_link=""
34749     else
34750       ac_path_to_link=" -L$ac_find_libraries"
34751     fi
34752   fi
34753
34754                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34755                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34756 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34757
34758                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34759 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34760 if test "${wx_cv_x11_xpm_h+set}" = set; then
34761   echo $ECHO_N "(cached) $ECHO_C" >&6
34762 else
34763
34764                         save_CFLAGS=$CFLAGS
34765                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34766
34767                         cat >conftest.$ac_ext <<_ACEOF
34768 /* confdefs.h.  */
34769 _ACEOF
34770 cat confdefs.h >>conftest.$ac_ext
34771 cat >>conftest.$ac_ext <<_ACEOF
34772 /* end confdefs.h.  */
34773
34774                                 #include <X11/xpm.h>
34775
34776 int
34777 main ()
34778 {
34779
34780                                 int version;
34781                                 version = XpmLibraryVersion();
34782
34783   ;
34784   return 0;
34785 }
34786 _ACEOF
34787 rm -f conftest.$ac_objext
34788 if { (ac_try="$ac_compile"
34789 case "(($ac_try" in
34790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34791   *) ac_try_echo=$ac_try;;
34792 esac
34793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34794   (eval "$ac_compile") 2>conftest.er1
34795   ac_status=$?
34796   grep -v '^ *+' conftest.er1 >conftest.err
34797   rm -f conftest.er1
34798   cat conftest.err >&5
34799   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34800   (exit $ac_status); } && {
34801          test -z "$ac_c_werror_flag" ||
34802          test ! -s conftest.err
34803        } && test -s conftest.$ac_objext; then
34804   wx_cv_x11_xpm_h=yes
34805 else
34806   echo "$as_me: failed program was:" >&5
34807 sed 's/^/| /' conftest.$ac_ext >&5
34808
34809         wx_cv_x11_xpm_h=no
34810
34811 fi
34812
34813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34814
34815                         CFLAGS=$save_CFLAGS
34816
34817
34818 fi
34819 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34820 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34821
34822                 if test $wx_cv_x11_xpm_h = "yes"; then
34823                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34824                     cat >>confdefs.h <<\_ACEOF
34825 #define wxHAVE_LIB_XPM 1
34826 _ACEOF
34827
34828                 else
34829                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34830 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34831                 fi
34832             fi
34833
34834         fi
34835
34836                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
34837 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
34838 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
34839   echo $ECHO_N "(cached) $ECHO_C" >&6
34840 else
34841   ac_check_lib_save_LIBS=$LIBS
34842 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
34843 cat >conftest.$ac_ext <<_ACEOF
34844 /* confdefs.h.  */
34845 _ACEOF
34846 cat confdefs.h >>conftest.$ac_ext
34847 cat >>conftest.$ac_ext <<_ACEOF
34848 /* end confdefs.h.  */
34849
34850 /* Override any GCC internal prototype to avoid an error.
34851    Use char because int might match the return type of a GCC
34852    builtin and then its argument prototype would still apply.  */
34853 #ifdef __cplusplus
34854 extern "C"
34855 #endif
34856 char XShapeQueryExtension ();
34857 int
34858 main ()
34859 {
34860 return XShapeQueryExtension ();
34861   ;
34862   return 0;
34863 }
34864 _ACEOF
34865 rm -f conftest.$ac_objext conftest$ac_exeext
34866 if { (ac_try="$ac_link"
34867 case "(($ac_try" in
34868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34869   *) ac_try_echo=$ac_try;;
34870 esac
34871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34872   (eval "$ac_link") 2>conftest.er1
34873   ac_status=$?
34874   grep -v '^ *+' conftest.er1 >conftest.err
34875   rm -f conftest.er1
34876   cat conftest.err >&5
34877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34878   (exit $ac_status); } && {
34879          test -z "$ac_c_werror_flag" ||
34880          test ! -s conftest.err
34881        } && test -s conftest$ac_exeext &&
34882        $as_test_x conftest$ac_exeext; then
34883   ac_cv_lib_Xext_XShapeQueryExtension=yes
34884 else
34885   echo "$as_me: failed program was:" >&5
34886 sed 's/^/| /' conftest.$ac_ext >&5
34887
34888         ac_cv_lib_Xext_XShapeQueryExtension=no
34889 fi
34890
34891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34892       conftest$ac_exeext conftest.$ac_ext
34893 LIBS=$ac_check_lib_save_LIBS
34894 fi
34895 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
34896 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
34897 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
34898
34899                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
34900                       wxHAVE_XEXT_LIB=1
34901
34902 fi
34903
34904
34905         if test "$wxHAVE_XEXT_LIB" = 1; then
34906             save_CFLAGS="$CFLAGS"
34907             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34908
34909             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
34910 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
34911             cat >conftest.$ac_ext <<_ACEOF
34912 /* confdefs.h.  */
34913 _ACEOF
34914 cat confdefs.h >>conftest.$ac_ext
34915 cat >>conftest.$ac_ext <<_ACEOF
34916 /* end confdefs.h.  */
34917
34918                             #include <X11/Xlib.h>
34919                             #include <X11/extensions/shape.h>
34920
34921 int
34922 main ()
34923 {
34924
34925                             int dummy1, dummy2;
34926                             XShapeQueryExtension((Display*)NULL,
34927                                                  (int*)NULL, (int*)NULL);
34928
34929   ;
34930   return 0;
34931 }
34932 _ACEOF
34933 rm -f conftest.$ac_objext
34934 if { (ac_try="$ac_compile"
34935 case "(($ac_try" in
34936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34937   *) ac_try_echo=$ac_try;;
34938 esac
34939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34940   (eval "$ac_compile") 2>conftest.er1
34941   ac_status=$?
34942   grep -v '^ *+' conftest.er1 >conftest.err
34943   rm -f conftest.er1
34944   cat conftest.err >&5
34945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); } && {
34947          test -z "$ac_c_werror_flag" ||
34948          test ! -s conftest.err
34949        } && test -s conftest.$ac_objext; then
34950
34951                             cat >>confdefs.h <<\_ACEOF
34952 #define HAVE_XSHAPE 1
34953 _ACEOF
34954
34955                             { echo "$as_me:$LINENO: result: found" >&5
34956 echo "${ECHO_T}found" >&6; }
34957
34958 else
34959   echo "$as_me: failed program was:" >&5
34960 sed 's/^/| /' conftest.$ac_ext >&5
34961
34962
34963                             { echo "$as_me:$LINENO: result: not found" >&5
34964 echo "${ECHO_T}not found" >&6; }
34965
34966 fi
34967
34968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34969             CFLAGS="$save_CFLAGS"
34970
34971         fi
34972     fi
34973
34974     if test "$wxUSE_MAC" = 1; then
34975         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
34976 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
34977         if test "$GCC" = yes; then
34978             { echo "$as_me:$LINENO: result: gcc" >&5
34979 echo "${ECHO_T}gcc" >&6; }
34980             CPPFLAGS_PASCAL="-fpascal-strings"
34981         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
34982             { echo "$as_me:$LINENO: result: xlc" >&5
34983 echo "${ECHO_T}xlc" >&6; }
34984             CPPFLAGS_PASCAL="-qmacpstr"
34985         else
34986             { echo "$as_me:$LINENO: result: none" >&5
34987 echo "${ECHO_T}none" >&6; }
34988         fi
34989
34990         if test "x$wxUSE_UNIX" = "xyes"; then
34991             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
34992         else
34993                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
34994         fi
34995
34996         TOOLKIT=MAC
34997                 GUIDIST=MACX_DIST
34998                         WXBASEPORT="_carbon"
34999     fi
35000
35001     if test "$wxUSE_COCOA" = 1; then
35002         TOOLKIT=COCOA
35003         GUIDIST=COCOA_DIST
35004     fi
35005
35006     if test "$wxUSE_PM" = 1; then
35007         TOOLKIT=PM
35008         GUIDIST=PM_DIST
35009         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35010 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35011 if test "${wx_cv_spbcdata+set}" = set; then
35012   echo $ECHO_N "(cached) $ECHO_C" >&6
35013 else
35014
35015                 cat >conftest.$ac_ext <<_ACEOF
35016 /* confdefs.h.  */
35017 _ACEOF
35018 cat confdefs.h >>conftest.$ac_ext
35019 cat >>conftest.$ac_ext <<_ACEOF
35020 /* end confdefs.h.  */
35021
35022                         #define INCL_PM
35023                         #include <os2.h>
35024
35025 int
35026 main ()
35027 {
35028
35029                         SPBCDATA test;
35030
35031   ;
35032   return 0;
35033 }
35034 _ACEOF
35035 rm -f conftest.$ac_objext
35036 if { (ac_try="$ac_compile"
35037 case "(($ac_try" in
35038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35039   *) ac_try_echo=$ac_try;;
35040 esac
35041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35042   (eval "$ac_compile") 2>conftest.er1
35043   ac_status=$?
35044   grep -v '^ *+' conftest.er1 >conftest.err
35045   rm -f conftest.er1
35046   cat conftest.err >&5
35047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35048   (exit $ac_status); } && {
35049          test -z "$ac_c_werror_flag" ||
35050          test ! -s conftest.err
35051        } && test -s conftest.$ac_objext; then
35052   wx_cv_spbcdata=yes
35053 else
35054   echo "$as_me: failed program was:" >&5
35055 sed 's/^/| /' conftest.$ac_ext >&5
35056
35057         wx_cv_spbcdata=no
35058
35059 fi
35060
35061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35062
35063
35064 fi
35065 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35066 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35067
35068         if test $wx_cv_spbcdata = "yes"; then
35069             cat >>confdefs.h <<\_ACEOF
35070 #define HAVE_SPBCDATA 1
35071 _ACEOF
35072
35073         fi
35074     fi
35075
35076         if test "$TOOLKIT" = "PM" ; then
35077         TOOLKIT_DIR="os2"
35078     else
35079         TOOLKIT_DIR=`echo ${TOOLKIT} | tr A-Z a-z`
35080     fi
35081
35082     if test "$wxUSE_UNIVERSAL" = "yes"; then
35083         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35084         WIDGET_SET=univ
35085     fi
35086
35087         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35088     DISTDIR="wx\$(TOOLKIT)"
35089 else
35090     USE_GUI=0
35091
35092             TOOLKIT_DIR="base"
35093
35094         if test "$USE_WIN32" = 1 ; then
35095                         TOOLKIT="MSW"
35096     fi
35097
35098         GUIDIST="BASE_DIST"
35099     DISTDIR="wxBase"
35100 fi
35101
35102
35103
35104 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35105     if test "$USE_UNIX" = "1" -a "$wxUSE_DARWIN" != "1" ; then
35106         wxUSE_UNICODE_UTF8=yes
35107     elif test "$USE_OS2" = "1" ; then
35108                                 wxUSE_UNICODE_UTF8=yes
35109     else
35110         wxUSE_UNICODE_UTF8=no
35111     fi
35112 fi
35113
35114
35115 if test "$wxUSE_GUI" = "yes"; then
35116     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35117
35118 for ac_header in X11/Xlib.h
35119 do
35120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35124   echo $ECHO_N "(cached) $ECHO_C" >&6
35125 else
35126   cat >conftest.$ac_ext <<_ACEOF
35127 /* confdefs.h.  */
35128 _ACEOF
35129 cat confdefs.h >>conftest.$ac_ext
35130 cat >>conftest.$ac_ext <<_ACEOF
35131 /* end confdefs.h.  */
35132
35133
35134 #include <$ac_header>
35135 _ACEOF
35136 rm -f conftest.$ac_objext
35137 if { (ac_try="$ac_compile"
35138 case "(($ac_try" in
35139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35140   *) ac_try_echo=$ac_try;;
35141 esac
35142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35143   (eval "$ac_compile") 2>conftest.er1
35144   ac_status=$?
35145   grep -v '^ *+' conftest.er1 >conftest.err
35146   rm -f conftest.er1
35147   cat conftest.err >&5
35148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35149   (exit $ac_status); } && {
35150          test -z "$ac_c_werror_flag" ||
35151          test ! -s conftest.err
35152        } && test -s conftest.$ac_objext; then
35153   eval "$as_ac_Header=yes"
35154 else
35155   echo "$as_me: failed program was:" >&5
35156 sed 's/^/| /' conftest.$ac_ext >&5
35157
35158         eval "$as_ac_Header=no"
35159 fi
35160
35161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35162 fi
35163 ac_res=`eval echo '${'$as_ac_Header'}'`
35164                { echo "$as_me:$LINENO: result: $ac_res" >&5
35165 echo "${ECHO_T}$ac_res" >&6; }
35166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35167   cat >>confdefs.h <<_ACEOF
35168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35169 _ACEOF
35170
35171 fi
35172
35173 done
35174
35175
35176 for ac_header in X11/XKBlib.h
35177 do
35178 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35179 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35180 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35181 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35182   echo $ECHO_N "(cached) $ECHO_C" >&6
35183 else
35184   cat >conftest.$ac_ext <<_ACEOF
35185 /* confdefs.h.  */
35186 _ACEOF
35187 cat confdefs.h >>conftest.$ac_ext
35188 cat >>conftest.$ac_ext <<_ACEOF
35189 /* end confdefs.h.  */
35190
35191                           #if HAVE_X11_XLIB_H
35192                             #include <X11/Xlib.h>
35193                           #endif
35194
35195
35196 #include <$ac_header>
35197 _ACEOF
35198 rm -f conftest.$ac_objext
35199 if { (ac_try="$ac_compile"
35200 case "(($ac_try" in
35201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35202   *) ac_try_echo=$ac_try;;
35203 esac
35204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35205   (eval "$ac_compile") 2>conftest.er1
35206   ac_status=$?
35207   grep -v '^ *+' conftest.er1 >conftest.err
35208   rm -f conftest.er1
35209   cat conftest.err >&5
35210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35211   (exit $ac_status); } && {
35212          test -z "$ac_c_werror_flag" ||
35213          test ! -s conftest.err
35214        } && test -s conftest.$ac_objext; then
35215   eval "$as_ac_Header=yes"
35216 else
35217   echo "$as_me: failed program was:" >&5
35218 sed 's/^/| /' conftest.$ac_ext >&5
35219
35220         eval "$as_ac_Header=no"
35221 fi
35222
35223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35224 fi
35225 ac_res=`eval echo '${'$as_ac_Header'}'`
35226                { echo "$as_me:$LINENO: result: $ac_res" >&5
35227 echo "${ECHO_T}$ac_res" >&6; }
35228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35229   cat >>confdefs.h <<_ACEOF
35230 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35231 _ACEOF
35232
35233 fi
35234
35235 done
35236
35237     fi
35238 fi
35239
35240
35241
35242 if test "$wxUSE_DISPLAY" = "yes"; then
35243     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35244         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35245 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35246
35247   ac_find_libraries=
35248   for ac_dir in $SEARCH_LIB;
35249   do
35250     for ac_extension in a so sl dylib dll.a; do
35251       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35252         ac_find_libraries=$ac_dir
35253         break 2
35254       fi
35255     done
35256   done
35257
35258         if test "$ac_find_libraries" != "" ; then
35259
35260     if test "$ac_find_libraries" = "default location"; then
35261     ac_path_to_link=""
35262   else
35263     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35264     result=$?
35265     if test $result = 0; then
35266       ac_path_to_link=""
35267     else
35268       ac_path_to_link=" -L$ac_find_libraries"
35269     fi
35270   fi
35271
35272             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35273                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35274             fi
35275             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35276             { echo "$as_me:$LINENO: result: yes" >&5
35277 echo "${ECHO_T}yes" >&6; }
35278
35279             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35280 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35281
35282   ac_find_libraries=
35283   for ac_dir in $SEARCH_LIB;
35284   do
35285     for ac_extension in a so sl dylib dll.a; do
35286       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35287         ac_find_libraries=$ac_dir
35288         break 2
35289       fi
35290     done
35291   done
35292
35293             if test "$ac_find_libraries" != "" ; then
35294                 { echo "$as_me:$LINENO: result: yes" >&5
35295 echo "${ECHO_T}yes" >&6; }
35296
35297 for ac_header in X11/extensions/xf86vmode.h
35298 do
35299 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35303   echo $ECHO_N "(cached) $ECHO_C" >&6
35304 else
35305   cat >conftest.$ac_ext <<_ACEOF
35306 /* confdefs.h.  */
35307 _ACEOF
35308 cat confdefs.h >>conftest.$ac_ext
35309 cat >>conftest.$ac_ext <<_ACEOF
35310 /* end confdefs.h.  */
35311
35312                                       #if HAVE_X11_XLIB_H
35313                                         #include <X11/Xlib.h>
35314                                       #endif
35315
35316
35317 #include <$ac_header>
35318 _ACEOF
35319 rm -f conftest.$ac_objext
35320 if { (ac_try="$ac_compile"
35321 case "(($ac_try" in
35322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35323   *) ac_try_echo=$ac_try;;
35324 esac
35325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35326   (eval "$ac_compile") 2>conftest.er1
35327   ac_status=$?
35328   grep -v '^ *+' conftest.er1 >conftest.err
35329   rm -f conftest.er1
35330   cat conftest.err >&5
35331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35332   (exit $ac_status); } && {
35333          test -z "$ac_c_werror_flag" ||
35334          test ! -s conftest.err
35335        } && test -s conftest.$ac_objext; then
35336   eval "$as_ac_Header=yes"
35337 else
35338   echo "$as_me: failed program was:" >&5
35339 sed 's/^/| /' conftest.$ac_ext >&5
35340
35341         eval "$as_ac_Header=no"
35342 fi
35343
35344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35345 fi
35346 ac_res=`eval echo '${'$as_ac_Header'}'`
35347                { echo "$as_me:$LINENO: result: $ac_res" >&5
35348 echo "${ECHO_T}$ac_res" >&6; }
35349 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35350   cat >>confdefs.h <<_ACEOF
35351 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35352 _ACEOF
35353
35354                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35355
35356 fi
35357
35358 done
35359
35360             else
35361                 { echo "$as_me:$LINENO: result: no" >&5
35362 echo "${ECHO_T}no" >&6; }
35363             fi
35364
35365         else
35366             { echo "$as_me:$LINENO: result: no" >&5
35367 echo "${ECHO_T}no" >&6; }
35368             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35369 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35370             wxUSE_DISPLAY="no"
35371         fi
35372     elif test "$wxUSE_MSW" = 1; then
35373         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35374 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35375 if test "${ac_cv_header_ddraw_h+set}" = set; then
35376   echo $ECHO_N "(cached) $ECHO_C" >&6
35377 else
35378   cat >conftest.$ac_ext <<_ACEOF
35379 /* confdefs.h.  */
35380 _ACEOF
35381 cat confdefs.h >>conftest.$ac_ext
35382 cat >>conftest.$ac_ext <<_ACEOF
35383 /* end confdefs.h.  */
35384 #include <windows.h>
35385
35386 #include <ddraw.h>
35387 _ACEOF
35388 rm -f conftest.$ac_objext
35389 if { (ac_try="$ac_compile"
35390 case "(($ac_try" in
35391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35392   *) ac_try_echo=$ac_try;;
35393 esac
35394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35395   (eval "$ac_compile") 2>conftest.er1
35396   ac_status=$?
35397   grep -v '^ *+' conftest.er1 >conftest.err
35398   rm -f conftest.er1
35399   cat conftest.err >&5
35400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35401   (exit $ac_status); } && {
35402          test -z "$ac_c_werror_flag" ||
35403          test ! -s conftest.err
35404        } && test -s conftest.$ac_objext; then
35405   ac_cv_header_ddraw_h=yes
35406 else
35407   echo "$as_me: failed program was:" >&5
35408 sed 's/^/| /' conftest.$ac_ext >&5
35409
35410         ac_cv_header_ddraw_h=no
35411 fi
35412
35413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35414 fi
35415 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35416 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35417
35418
35419     fi
35420 fi
35421
35422 if test "$wxUSE_DETECT_SM" = "yes"; then
35423     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35424         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35425 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35426
35427   ac_find_libraries=
35428   for ac_dir in $SEARCH_LIB;
35429   do
35430     for ac_extension in a so sl dylib dll.a; do
35431       if test -f "$ac_dir/libSM.$ac_extension"; then
35432         ac_find_libraries=$ac_dir
35433         break 2
35434       fi
35435     done
35436   done
35437
35438         if test "$ac_find_libraries" != "" ; then
35439
35440     if test "$ac_find_libraries" = "default location"; then
35441     ac_path_to_link=""
35442   else
35443     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35444     result=$?
35445     if test $result = 0; then
35446       ac_path_to_link=""
35447     else
35448       ac_path_to_link=" -L$ac_find_libraries"
35449     fi
35450   fi
35451
35452             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35453                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35454             fi
35455             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35456             { echo "$as_me:$LINENO: result: yes" >&5
35457 echo "${ECHO_T}yes" >&6; }
35458         else
35459             { echo "$as_me:$LINENO: result: no" >&5
35460 echo "${ECHO_T}no" >&6; }
35461             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35462 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35463             wxUSE_DETECT_SM="no"
35464         fi
35465     else
35466         wxUSE_DETECT_SM="no"
35467     fi
35468 fi
35469
35470
35471
35472 USE_OPENGL=0
35473 if test "$wxUSE_OPENGL" = "yes"; then
35474     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35475         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35476 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35477         wxUSE_OPENGL="no"
35478     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35479         OPENGL_LIBS="-framework OpenGL -framework AGL"
35480     elif test "$wxUSE_MSW" = 1; then
35481         OPENGL_LIBS="-lopengl32 -lglu32"
35482     else
35483                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35484 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35485
35486 ac_find_includes=
35487 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35488   do
35489     if test -f "$ac_dir/GL/gl.h"; then
35490       ac_find_includes=$ac_dir
35491       break
35492     fi
35493   done
35494
35495         if test "$ac_find_includes" != "" ; then
35496             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35497 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35498
35499     if test "x$ac_find_includes" = "x/usr/include"; then
35500     ac_path_to_include=""
35501   else
35502     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35503     result=$?
35504     if test $result = 0; then
35505       ac_path_to_include=""
35506     else
35507       ac_path_to_include=" -I$ac_find_includes"
35508     fi
35509   fi
35510
35511             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35512         else
35513             { echo "$as_me:$LINENO: result: not found" >&5
35514 echo "${ECHO_T}not found" >&6; }
35515         fi
35516
35517         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35518 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35519 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35520   echo $ECHO_N "(cached) $ECHO_C" >&6
35521 else
35522   cat >conftest.$ac_ext <<_ACEOF
35523 /* confdefs.h.  */
35524 _ACEOF
35525 cat confdefs.h >>conftest.$ac_ext
35526 cat >>conftest.$ac_ext <<_ACEOF
35527 /* end confdefs.h.  */
35528
35529
35530 #include <GL/gl.h>
35531 _ACEOF
35532 rm -f conftest.$ac_objext
35533 if { (ac_try="$ac_compile"
35534 case "(($ac_try" in
35535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35536   *) ac_try_echo=$ac_try;;
35537 esac
35538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35539   (eval "$ac_compile") 2>conftest.er1
35540   ac_status=$?
35541   grep -v '^ *+' conftest.er1 >conftest.err
35542   rm -f conftest.er1
35543   cat conftest.err >&5
35544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35545   (exit $ac_status); } && {
35546          test -z "$ac_c_werror_flag" ||
35547          test ! -s conftest.err
35548        } && test -s conftest.$ac_objext; then
35549   ac_cv_header_GL_gl_h=yes
35550 else
35551   echo "$as_me: failed program was:" >&5
35552 sed 's/^/| /' conftest.$ac_ext >&5
35553
35554         ac_cv_header_GL_gl_h=no
35555 fi
35556
35557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35558 fi
35559 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
35560 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
35561 if test $ac_cv_header_GL_gl_h = yes; then
35562
35563             { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
35564 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
35565 if test "${ac_cv_header_GL_glu_h+set}" = set; then
35566   echo $ECHO_N "(cached) $ECHO_C" >&6
35567 else
35568   cat >conftest.$ac_ext <<_ACEOF
35569 /* confdefs.h.  */
35570 _ACEOF
35571 cat confdefs.h >>conftest.$ac_ext
35572 cat >>conftest.$ac_ext <<_ACEOF
35573 /* end confdefs.h.  */
35574
35575
35576 #include <GL/glu.h>
35577 _ACEOF
35578 rm -f conftest.$ac_objext
35579 if { (ac_try="$ac_compile"
35580 case "(($ac_try" in
35581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35582   *) ac_try_echo=$ac_try;;
35583 esac
35584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35585   (eval "$ac_compile") 2>conftest.er1
35586   ac_status=$?
35587   grep -v '^ *+' conftest.er1 >conftest.err
35588   rm -f conftest.er1
35589   cat conftest.err >&5
35590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35591   (exit $ac_status); } && {
35592          test -z "$ac_c_werror_flag" ||
35593          test ! -s conftest.err
35594        } && test -s conftest.$ac_objext; then
35595   ac_cv_header_GL_glu_h=yes
35596 else
35597   echo "$as_me: failed program was:" >&5
35598 sed 's/^/| /' conftest.$ac_ext >&5
35599
35600         ac_cv_header_GL_glu_h=no
35601 fi
35602
35603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35604 fi
35605 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
35606 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
35607 if test $ac_cv_header_GL_glu_h = yes; then
35608
35609                 found_gl=0
35610
35611                 { echo "$as_me:$LINENO: checking for -lGL" >&5
35612 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
35613
35614   ac_find_libraries=
35615   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
35616   do
35617     for ac_extension in a so sl dylib dll.a; do
35618       if test -f "$ac_dir/libGL.$ac_extension"; then
35619         ac_find_libraries=$ac_dir
35620         break 2
35621       fi
35622     done
35623   done
35624
35625                 if test "$ac_find_libraries" != "" ; then
35626                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
35627 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
35628
35629
35630     if test "$ac_find_libraries" = "default location"; then
35631     ac_path_to_link=""
35632   else
35633     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35634     result=$?
35635     if test $result = 0; then
35636       ac_path_to_link=""
35637     else
35638       ac_path_to_link=" -L$ac_find_libraries"
35639     fi
35640   fi
35641
35642                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
35643                         LDFLAGS_GL="$ac_path_to_link"
35644                     fi
35645
35646                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
35647 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
35648
35649   ac_find_libraries=
35650   for ac_dir in $SEARCH_LIB;
35651   do
35652     for ac_extension in a so sl dylib dll.a; do
35653       if test -f "$ac_dir/libGLU.$ac_extension"; then
35654         ac_find_libraries=$ac_dir
35655         break 2
35656       fi
35657     done
35658   done
35659
35660                     if test "$ac_find_libraries" != "" ; then
35661
35662     if test "$ac_find_libraries" = "default location"; then
35663     ac_path_to_link=""
35664   else
35665     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35666     result=$?
35667     if test $result = 0; then
35668       ac_path_to_link=""
35669     else
35670       ac_path_to_link=" -L$ac_find_libraries"
35671     fi
35672   fi
35673
35674                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
35675                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
35676                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
35677                         fi
35678
35679                         found_gl=1
35680                         OPENGL_LIBS="-lGL -lGLU"
35681                         { echo "$as_me:$LINENO: result: yes" >&5
35682 echo "${ECHO_T}yes" >&6; }
35683                     else
35684                         { echo "$as_me:$LINENO: result: no" >&5
35685 echo "${ECHO_T}no" >&6; }
35686                     fi
35687                 else
35688                     { echo "$as_me:$LINENO: result: no" >&5
35689 echo "${ECHO_T}no" >&6; }
35690                 fi
35691
35692                 if test "$found_gl" != 1; then
35693                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
35694 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
35695
35696   ac_find_libraries=
35697   for ac_dir in $SEARCH_LIB;
35698   do
35699     for ac_extension in a so sl dylib dll.a; do
35700       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
35701         ac_find_libraries=$ac_dir
35702         break 2
35703       fi
35704     done
35705   done
35706
35707                     if test "$ac_find_libraries" != "" ; then
35708
35709     if test "$ac_find_libraries" = "default location"; then
35710     ac_path_to_link=""
35711   else
35712     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35713     result=$?
35714     if test $result = 0; then
35715       ac_path_to_link=""
35716     else
35717       ac_path_to_link=" -L$ac_find_libraries"
35718     fi
35719   fi
35720
35721                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
35722                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
35723                         { echo "$as_me:$LINENO: result: yes" >&5
35724 echo "${ECHO_T}yes" >&6; }
35725                     else
35726                         { echo "$as_me:$LINENO: result: no" >&5
35727 echo "${ECHO_T}no" >&6; }
35728                     fi
35729                 fi
35730
35731 fi
35732
35733
35734
35735 fi
35736
35737
35738
35739         if test "x$OPENGL_LIBS" = "x"; then
35740                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
35741 echo "$as_me: error: OpenGL libraries not available" >&2;}
35742    { (exit 1); exit 1; }; }
35743         fi
35744     fi
35745
35746     if test "$wxUSE_OPENGL" = "yes"; then
35747         USE_OPENGL=1
35748         cat >>confdefs.h <<\_ACEOF
35749 #define wxUSE_OPENGL 1
35750 _ACEOF
35751
35752         cat >>confdefs.h <<\_ACEOF
35753 #define wxUSE_GLCANVAS 1
35754 _ACEOF
35755
35756         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
35757     fi
35758 fi
35759
35760
35761 if test -n "$TOOLKIT" ; then
35762     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
35763 fi
35764
35765
35766
35767 if test "$wxUSE_SHARED" = "yes"; then
35768     case "${host}" in
35769       *-pc-msdosdjgpp )
35770                 wxUSE_SHARED=no
35771         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
35772 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
35773       ;;
35774     esac
35775 fi
35776
35777 if test "$wxUSE_SHARED" = "yes"; then
35778
35779
35780     case "${host}" in
35781         *-*-cygwin* | *-*-mingw* )
35782                                                                                                 wx_cv_version_script=no
35783             ;;
35784
35785         *)
35786             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
35787 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
35788 if test "${wx_cv_version_script+set}" = set; then
35789   echo $ECHO_N "(cached) $ECHO_C" >&6
35790 else
35791
35792                 echo "VER_1 { *; };" >conftest.sym
35793                 echo "int main() { return 0; }" >conftest.cpp
35794
35795                 if { ac_try='
35796                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35797                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
35798   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35799   (eval $ac_try) 2>&5
35800   ac_status=$?
35801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35802   (exit $ac_status); }; } ; then
35803                   if test -s conftest.stderr ; then
35804                       wx_cv_version_script=no
35805                   else
35806                       wx_cv_version_script=yes
35807                   fi
35808                 else
35809                   wx_cv_version_script=no
35810                 fi
35811
35812                                                                                                                                                                                                 if test $wx_cv_version_script = yes
35813                 then
35814                   echo "struct B { virtual ~B() { } }; \
35815                         struct D : public B { }; \
35816                         void F() { D d; }" > conftest.cpp
35817
35818                   if { ac_try='
35819                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35820                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
35821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35822   (eval $ac_try) 2>&5
35823   ac_status=$?
35824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35825   (exit $ac_status); }; } &&
35826                      { ac_try='
35827                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35828                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
35829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35830   (eval $ac_try) 2>&5
35831   ac_status=$?
35832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35833   (exit $ac_status); }; }
35834                   then
35835                     if { ac_try='
35836                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
35837                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
35838   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
35839   (eval $ac_try) 2>&5
35840   ac_status=$?
35841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35842   (exit $ac_status); }; }
35843                     then
35844                       wx_cv_version_script=yes
35845                     else
35846                       wx_cv_version_script=no
35847                     fi
35848                   fi
35849                 fi
35850
35851                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
35852                 rm -f conftest1.output conftest2.output conftest3.output
35853
35854 fi
35855 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
35856 echo "${ECHO_T}$wx_cv_version_script" >&6; }
35857
35858             if test $wx_cv_version_script = yes ; then
35859                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
35860             fi
35861             ;;
35862     esac
35863
35864
35865             if test "$wxUSE_VISIBILITY" != "no"; then
35866
35867
35868   if test -n "$GCC"; then
35869     CFLAGS_VISIBILITY="-fvisibility=hidden"
35870     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
35871     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
35872 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
35873     if test "${wx_cv_cc_visibility+set}" = set; then
35874   echo $ECHO_N "(cached) $ECHO_C" >&6
35875 else
35876
35877       wx_save_CXXFLAGS="$CXXFLAGS"
35878       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35879       ac_ext=cpp
35880 ac_cpp='$CXXCPP $CPPFLAGS'
35881 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35882 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35883 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35884
35885       cat >conftest.$ac_ext <<_ACEOF
35886 /* confdefs.h.  */
35887 _ACEOF
35888 cat confdefs.h >>conftest.$ac_ext
35889 cat >>conftest.$ac_ext <<_ACEOF
35890 /* end confdefs.h.  */
35891
35892          /* we need gcc >= 4.0, older versions with visibility support
35893             didn't have class visibility: */
35894          #if defined(__GNUC__) && __GNUC__ < 4
35895          error this gcc is too old;
35896          #endif
35897
35898          /* visibility only makes sense for ELF shared libs: */
35899          #if !defined(__ELF__) && !defined(__APPLE__)
35900          error this platform has no visibility;
35901          #endif
35902
35903          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
35904          extern __attribute__((__visibility__("default"))) int exportedvar;
35905          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
35906          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
35907          class __attribute__((__visibility__("default"))) Foo {
35908            Foo() {}
35909          };
35910
35911 int
35912 main ()
35913 {
35914
35915   ;
35916   return 0;
35917 }
35918 _ACEOF
35919 rm -f conftest.$ac_objext
35920 if { (ac_try="$ac_compile"
35921 case "(($ac_try" in
35922   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35923   *) ac_try_echo=$ac_try;;
35924 esac
35925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35926   (eval "$ac_compile") 2>conftest.er1
35927   ac_status=$?
35928   grep -v '^ *+' conftest.er1 >conftest.err
35929   rm -f conftest.er1
35930   cat conftest.err >&5
35931   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35932   (exit $ac_status); } && {
35933          test -z "$ac_cxx_werror_flag" ||
35934          test ! -s conftest.err
35935        } && test -s conftest.$ac_objext; then
35936   wx_cv_cc_visibility=yes
35937 else
35938   echo "$as_me: failed program was:" >&5
35939 sed 's/^/| /' conftest.$ac_ext >&5
35940
35941         wx_cv_cc_visibility=no
35942 fi
35943
35944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35945       ac_ext=c
35946 ac_cpp='$CPP $CPPFLAGS'
35947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
35950
35951       CXXFLAGS="$wx_save_CXXFLAGS"
35952 fi
35953
35954     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
35955 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
35956     if test $wx_cv_cc_visibility = yes; then
35957                               { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
35958 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
35959       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
35960   echo $ECHO_N "(cached) $ECHO_C" >&6
35961 else
35962
35963         wx_save_CXXFLAGS="$CXXFLAGS"
35964         wx_save_LDFLAGS="$LDFLAGS"
35965         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
35966         LDFLAGS="$LDFLAGS -shared -fPIC"
35967         ac_ext=cpp
35968 ac_cpp='$CXXCPP $CPPFLAGS'
35969 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
35970 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
35971 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
35972
35973         cat >conftest.$ac_ext <<_ACEOF
35974 /* confdefs.h.  */
35975 _ACEOF
35976 cat confdefs.h >>conftest.$ac_ext
35977 cat >>conftest.$ac_ext <<_ACEOF
35978 /* end confdefs.h.  */
35979
35980             #include <string>
35981
35982 int
35983 main ()
35984 {
35985
35986             std::string s("hello");
35987             return s.length();
35988
35989   ;
35990   return 0;
35991 }
35992 _ACEOF
35993 rm -f conftest.$ac_objext conftest$ac_exeext
35994 if { (ac_try="$ac_link"
35995 case "(($ac_try" in
35996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35997   *) ac_try_echo=$ac_try;;
35998 esac
35999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36000   (eval "$ac_link") 2>conftest.er1
36001   ac_status=$?
36002   grep -v '^ *+' conftest.er1 >conftest.err
36003   rm -f conftest.er1
36004   cat conftest.err >&5
36005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36006   (exit $ac_status); } && {
36007          test -z "$ac_cxx_werror_flag" ||
36008          test ! -s conftest.err
36009        } && test -s conftest$ac_exeext &&
36010        $as_test_x conftest$ac_exeext; then
36011   wx_cv_cc_broken_libstdcxx_visibility=no
36012 else
36013   echo "$as_me: failed program was:" >&5
36014 sed 's/^/| /' conftest.$ac_ext >&5
36015
36016         wx_cv_cc_broken_libstdcxx_visibility=yes
36017 fi
36018
36019 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36020       conftest$ac_exeext conftest.$ac_ext
36021         ac_ext=c
36022 ac_cpp='$CPP $CPPFLAGS'
36023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36026
36027         CXXFLAGS="$wx_save_CXXFLAGS"
36028         LDFLAGS="$wx_save_LDFLAGS"
36029 fi
36030
36031       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36032 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36033
36034       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36035         { echo "$as_me:$LINENO: checking whether we can work around it" >&5
36036 echo $ECHO_N "checking whether we can work around it... $ECHO_C" >&6; }
36037         if test "${wx_cv_cc_visibility_workaround+set}" = set; then
36038   echo $ECHO_N "(cached) $ECHO_C" >&6
36039 else
36040
36041           ac_ext=cpp
36042 ac_cpp='$CXXCPP $CPPFLAGS'
36043 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36044 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36045 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36046
36047           cat >conftest.$ac_ext <<_ACEOF
36048 /* confdefs.h.  */
36049 _ACEOF
36050 cat confdefs.h >>conftest.$ac_ext
36051 cat >>conftest.$ac_ext <<_ACEOF
36052 /* end confdefs.h.  */
36053
36054               #pragma GCC visibility push(default)
36055               #include <string>
36056               #pragma GCC visibility pop
36057
36058 int
36059 main ()
36060 {
36061
36062               std::string s("hello");
36063               return s.length();
36064
36065   ;
36066   return 0;
36067 }
36068 _ACEOF
36069 rm -f conftest.$ac_objext conftest$ac_exeext
36070 if { (ac_try="$ac_link"
36071 case "(($ac_try" in
36072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36073   *) ac_try_echo=$ac_try;;
36074 esac
36075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36076   (eval "$ac_link") 2>conftest.er1
36077   ac_status=$?
36078   grep -v '^ *+' conftest.er1 >conftest.err
36079   rm -f conftest.er1
36080   cat conftest.err >&5
36081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36082   (exit $ac_status); } && {
36083          test -z "$ac_cxx_werror_flag" ||
36084          test ! -s conftest.err
36085        } && test -s conftest$ac_exeext &&
36086        $as_test_x conftest$ac_exeext; then
36087   wx_cv_cc_visibility_workaround=no
36088 else
36089   echo "$as_me: failed program was:" >&5
36090 sed 's/^/| /' conftest.$ac_ext >&5
36091
36092         wx_cv_cc_visibility_workaround=yes
36093 fi
36094
36095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36096       conftest$ac_exeext conftest.$ac_ext
36097           ac_ext=c
36098 ac_cpp='$CPP $CPPFLAGS'
36099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36102
36103
36104 fi
36105
36106         { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility_workaround" >&5
36107 echo "${ECHO_T}$wx_cv_cc_visibility_workaround" >&6; }
36108
36109         if test $wx_cv_cc_visibility_workaround = no; then
36110                     wx_cv_cc_visibility=no
36111         fi
36112       fi
36113     fi
36114
36115     if test $wx_cv_cc_visibility = yes; then
36116       cat >>confdefs.h <<\_ACEOF
36117 #define HAVE_VISIBILITY 1
36118 _ACEOF
36119
36120       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36121         cat >>confdefs.h <<\_ACEOF
36122 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36123 _ACEOF
36124
36125       fi
36126     else
36127       CFLAGS_VISIBILITY=""
36128       CXXFLAGS_VISIBILITY=""
36129     fi
36130
36131
36132   fi
36133
36134     fi
36135
36136         if test "x$SUNCXX" = xyes; then
36137         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36138         WXCONFIG_RPATH="-R\$libdir"
36139     else
36140     case "${host}" in
36141       *-*-linux* | *-*-gnu* )
36142         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36143         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36144         ;;
36145
36146       *-*-solaris2* )
36147
36148                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36149
36150                         saveLdflags="$LDFLAGS"
36151         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36152         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36153 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36154         cat >conftest.$ac_ext <<_ACEOF
36155 /* confdefs.h.  */
36156 _ACEOF
36157 cat confdefs.h >>conftest.$ac_ext
36158 cat >>conftest.$ac_ext <<_ACEOF
36159 /* end confdefs.h.  */
36160
36161 int
36162 main ()
36163 {
36164
36165   ;
36166   return 0;
36167 }
36168 _ACEOF
36169 rm -f conftest.$ac_objext conftest$ac_exeext
36170 if { (ac_try="$ac_link"
36171 case "(($ac_try" in
36172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36173   *) ac_try_echo=$ac_try;;
36174 esac
36175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36176   (eval "$ac_link") 2>conftest.er1
36177   ac_status=$?
36178   grep -v '^ *+' conftest.er1 >conftest.err
36179   rm -f conftest.er1
36180   cat conftest.err >&5
36181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36182   (exit $ac_status); } && {
36183          test -z "$ac_c_werror_flag" ||
36184          test ! -s conftest.err
36185        } && test -s conftest$ac_exeext &&
36186        $as_test_x conftest$ac_exeext; then
36187
36188                 { echo "$as_me:$LINENO: result: yes" >&5
36189 echo "${ECHO_T}yes" >&6; }
36190                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36191                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36192
36193 else
36194   echo "$as_me: failed program was:" >&5
36195 sed 's/^/| /' conftest.$ac_ext >&5
36196
36197
36198                 { echo "$as_me:$LINENO: result: no" >&5
36199 echo "${ECHO_T}no" >&6; }
36200                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36201 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36202                 LDFLAGS="$saveLdflags -Wl,-R,/"
36203                 cat >conftest.$ac_ext <<_ACEOF
36204 /* confdefs.h.  */
36205 _ACEOF
36206 cat confdefs.h >>conftest.$ac_ext
36207 cat >>conftest.$ac_ext <<_ACEOF
36208 /* end confdefs.h.  */
36209
36210 int
36211 main ()
36212 {
36213
36214   ;
36215   return 0;
36216 }
36217 _ACEOF
36218 rm -f conftest.$ac_objext conftest$ac_exeext
36219 if { (ac_try="$ac_link"
36220 case "(($ac_try" in
36221   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36222   *) ac_try_echo=$ac_try;;
36223 esac
36224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36225   (eval "$ac_link") 2>conftest.er1
36226   ac_status=$?
36227   grep -v '^ *+' conftest.er1 >conftest.err
36228   rm -f conftest.er1
36229   cat conftest.err >&5
36230   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36231   (exit $ac_status); } && {
36232          test -z "$ac_c_werror_flag" ||
36233          test ! -s conftest.err
36234        } && test -s conftest$ac_exeext &&
36235        $as_test_x conftest$ac_exeext; then
36236
36237                         { echo "$as_me:$LINENO: result: yes" >&5
36238 echo "${ECHO_T}yes" >&6; }
36239                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36240                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36241
36242 else
36243   echo "$as_me: failed program was:" >&5
36244 sed 's/^/| /' conftest.$ac_ext >&5
36245
36246
36247                         { echo "$as_me:$LINENO: result: no" >&5
36248 echo "${ECHO_T}no" >&6; }
36249
36250 fi
36251
36252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36253       conftest$ac_exeext conftest.$ac_ext
36254
36255 fi
36256
36257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36258       conftest$ac_exeext conftest.$ac_ext
36259         LDFLAGS="$saveLdflags"
36260       ;;
36261
36262       *-*-darwin* )
36263         install_name_tool=`which install_name_tool`
36264         if test "$install_name_tool" -a -x "$install_name_tool"; then
36265             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36266             cat <<EOF >change-install-names
36267 #!/bin/sh
36268 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36269 inst_cmd="install_name_tool "
36270 for i in \${libnames} ; do
36271     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36272 done
36273 \${inst_cmd} \${3}
36274 EOF
36275             chmod +x change-install-names
36276         fi
36277       ;;
36278
36279       *-*-cygwin* | *-*-mingw32* )
36280         ;;
36281
36282       *-*-hpux* )
36283         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36284         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36285         ;;
36286
36287     esac
36288     fi
36289
36290             WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36291
36292     if test $wxUSE_RPATH = "no"; then
36293         SAMPLES_RPATH_FLAG=''
36294         SAMPLES_RPATH_POSTLINK=''
36295         WXCONFIG_RPATH=''
36296     fi
36297
36298     SHARED=1
36299
36300 else
36301
36302     config_linkage_component="-static"
36303     SHARED=0
36304
36305 fi
36306
36307
36308 UNICODE=0
36309 lib_unicode_suffix=
36310 WX_CHARTYPE="ansi"
36311 if test "$wxUSE_UNICODE" = "yes"; then
36312     lib_unicode_suffix=u
36313     WX_CHARTYPE="unicode"
36314     UNICODE=1
36315 fi
36316
36317 lib_debug_suffix=
36318 WX_DEBUGTYPE="release"
36319 DEBUG_FLAG=0
36320 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36321     lib_debug_suffix=d
36322     WX_DEBUGTYPE="debug"
36323     DEBUG_FLAG=1
36324 fi
36325
36326 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36327 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36328
36329 DEBUG_INFO=0
36330 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36331     DEBUG_INFO=1
36332 fi
36333
36334 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr a-z A-Z`
36335
36336 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36337
36338 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36339
36340 if test "$cross_compiling" = "yes"; then
36341     HOST_SUFFIX="-$host_alias"
36342     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36343     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36344 fi
36345
36346 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36347 if test "${TOOLKIT_DIR}" = "os2"; then
36348     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36349 else
36350     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36351 fi
36352
36353
36354
36355 if test "$wxUSE_COCOA" = 1; then
36356
36357     ac_ext=c
36358 ac_cpp='$CPP $CPPFLAGS'
36359 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36360 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36361 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36362
36363 ac_ext=m
36364
36365     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36366 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36367     cat >conftest.$ac_ext <<_ACEOF
36368 /* confdefs.h.  */
36369 _ACEOF
36370 cat confdefs.h >>conftest.$ac_ext
36371 cat >>conftest.$ac_ext <<_ACEOF
36372 /* end confdefs.h.  */
36373 #include <AppKit/NSEvent.h>
36374 #include <CoreFoundation/CoreFoundation.h>
36375
36376 int
36377 main ()
36378 {
36379
36380   ;
36381   return 0;
36382 }
36383 _ACEOF
36384 rm -f conftest.$ac_objext
36385 if { (ac_try="$ac_compile"
36386 case "(($ac_try" in
36387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36388   *) ac_try_echo=$ac_try;;
36389 esac
36390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36391   (eval "$ac_compile") 2>conftest.er1
36392   ac_status=$?
36393   grep -v '^ *+' conftest.er1 >conftest.err
36394   rm -f conftest.er1
36395   cat conftest.err >&5
36396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36397   (exit $ac_status); } && {
36398          test -z "$ac_c_werror_flag" ||
36399          test ! -s conftest.err
36400        } && test -s conftest.$ac_objext; then
36401   { echo "$as_me:$LINENO: result: no" >&5
36402 echo "${ECHO_T}no" >&6; }
36403 else
36404   echo "$as_me: failed program was:" >&5
36405 sed 's/^/| /' conftest.$ac_ext >&5
36406
36407         { echo "$as_me:$LINENO: result: yes" >&5
36408 echo "${ECHO_T}yes" >&6; }
36409         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36410 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36411         cat >conftest.$ac_ext <<_ACEOF
36412 /* confdefs.h.  */
36413 _ACEOF
36414 cat confdefs.h >>conftest.$ac_ext
36415 cat >>conftest.$ac_ext <<_ACEOF
36416 /* end confdefs.h.  */
36417 #define __Point__ 1
36418 #include <AppKit/NSEvent.h>
36419 #include <CoreFoundation/CoreFoundation.h>
36420
36421 int
36422 main ()
36423 {
36424
36425   ;
36426   return 0;
36427 }
36428 _ACEOF
36429 rm -f conftest.$ac_objext
36430 if { (ac_try="$ac_compile"
36431 case "(($ac_try" in
36432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36433   *) ac_try_echo=$ac_try;;
36434 esac
36435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36436   (eval "$ac_compile") 2>conftest.er1
36437   ac_status=$?
36438   grep -v '^ *+' conftest.er1 >conftest.err
36439   rm -f conftest.er1
36440   cat conftest.err >&5
36441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36442   (exit $ac_status); } && {
36443          test -z "$ac_c_werror_flag" ||
36444          test ! -s conftest.err
36445        } && test -s conftest.$ac_objext; then
36446   { echo "$as_me:$LINENO: result: yes" >&5
36447 echo "${ECHO_T}yes" >&6; }
36448             cat >>confdefs.h <<\_ACEOF
36449 #define __Point__ 1
36450 _ACEOF
36451
36452
36453 else
36454   echo "$as_me: failed program was:" >&5
36455 sed 's/^/| /' conftest.$ac_ext >&5
36456
36457         { { echo "$as_me:$LINENO: error: no
36458 See \`config.log' for more details." >&5
36459 echo "$as_me: error: no
36460 See \`config.log' for more details." >&2;}
36461    { (exit 1); exit 1; }; }
36462
36463 fi
36464
36465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36466
36467 fi
36468
36469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36470     ac_ext=c
36471 ac_cpp='$CPP $CPPFLAGS'
36472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36475
36476 fi
36477
36478
36479 { echo "$as_me:$LINENO: checking for mode_t" >&5
36480 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
36481 if test "${ac_cv_type_mode_t+set}" = set; then
36482   echo $ECHO_N "(cached) $ECHO_C" >&6
36483 else
36484   cat >conftest.$ac_ext <<_ACEOF
36485 /* confdefs.h.  */
36486 _ACEOF
36487 cat confdefs.h >>conftest.$ac_ext
36488 cat >>conftest.$ac_ext <<_ACEOF
36489 /* end confdefs.h.  */
36490 $ac_includes_default
36491 typedef mode_t ac__type_new_;
36492 int
36493 main ()
36494 {
36495 if ((ac__type_new_ *) 0)
36496   return 0;
36497 if (sizeof (ac__type_new_))
36498   return 0;
36499   ;
36500   return 0;
36501 }
36502 _ACEOF
36503 rm -f conftest.$ac_objext
36504 if { (ac_try="$ac_compile"
36505 case "(($ac_try" in
36506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36507   *) ac_try_echo=$ac_try;;
36508 esac
36509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36510   (eval "$ac_compile") 2>conftest.er1
36511   ac_status=$?
36512   grep -v '^ *+' conftest.er1 >conftest.err
36513   rm -f conftest.er1
36514   cat conftest.err >&5
36515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36516   (exit $ac_status); } && {
36517          test -z "$ac_c_werror_flag" ||
36518          test ! -s conftest.err
36519        } && test -s conftest.$ac_objext; then
36520   ac_cv_type_mode_t=yes
36521 else
36522   echo "$as_me: failed program was:" >&5
36523 sed 's/^/| /' conftest.$ac_ext >&5
36524
36525         ac_cv_type_mode_t=no
36526 fi
36527
36528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36529 fi
36530 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
36531 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
36532 if test $ac_cv_type_mode_t = yes; then
36533   :
36534 else
36535
36536 cat >>confdefs.h <<_ACEOF
36537 #define mode_t int
36538 _ACEOF
36539
36540 fi
36541
36542 { echo "$as_me:$LINENO: checking for off_t" >&5
36543 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
36544 if test "${ac_cv_type_off_t+set}" = set; then
36545   echo $ECHO_N "(cached) $ECHO_C" >&6
36546 else
36547   cat >conftest.$ac_ext <<_ACEOF
36548 /* confdefs.h.  */
36549 _ACEOF
36550 cat confdefs.h >>conftest.$ac_ext
36551 cat >>conftest.$ac_ext <<_ACEOF
36552 /* end confdefs.h.  */
36553 $ac_includes_default
36554 typedef off_t ac__type_new_;
36555 int
36556 main ()
36557 {
36558 if ((ac__type_new_ *) 0)
36559   return 0;
36560 if (sizeof (ac__type_new_))
36561   return 0;
36562   ;
36563   return 0;
36564 }
36565 _ACEOF
36566 rm -f conftest.$ac_objext
36567 if { (ac_try="$ac_compile"
36568 case "(($ac_try" in
36569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36570   *) ac_try_echo=$ac_try;;
36571 esac
36572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36573   (eval "$ac_compile") 2>conftest.er1
36574   ac_status=$?
36575   grep -v '^ *+' conftest.er1 >conftest.err
36576   rm -f conftest.er1
36577   cat conftest.err >&5
36578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36579   (exit $ac_status); } && {
36580          test -z "$ac_c_werror_flag" ||
36581          test ! -s conftest.err
36582        } && test -s conftest.$ac_objext; then
36583   ac_cv_type_off_t=yes
36584 else
36585   echo "$as_me: failed program was:" >&5
36586 sed 's/^/| /' conftest.$ac_ext >&5
36587
36588         ac_cv_type_off_t=no
36589 fi
36590
36591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36592 fi
36593 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
36594 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
36595 if test $ac_cv_type_off_t = yes; then
36596   :
36597 else
36598
36599 cat >>confdefs.h <<_ACEOF
36600 #define off_t long int
36601 _ACEOF
36602
36603 fi
36604
36605 { echo "$as_me:$LINENO: checking for pid_t" >&5
36606 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
36607 if test "${ac_cv_type_pid_t+set}" = set; then
36608   echo $ECHO_N "(cached) $ECHO_C" >&6
36609 else
36610   cat >conftest.$ac_ext <<_ACEOF
36611 /* confdefs.h.  */
36612 _ACEOF
36613 cat confdefs.h >>conftest.$ac_ext
36614 cat >>conftest.$ac_ext <<_ACEOF
36615 /* end confdefs.h.  */
36616 $ac_includes_default
36617 typedef pid_t ac__type_new_;
36618 int
36619 main ()
36620 {
36621 if ((ac__type_new_ *) 0)
36622   return 0;
36623 if (sizeof (ac__type_new_))
36624   return 0;
36625   ;
36626   return 0;
36627 }
36628 _ACEOF
36629 rm -f conftest.$ac_objext
36630 if { (ac_try="$ac_compile"
36631 case "(($ac_try" in
36632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36633   *) ac_try_echo=$ac_try;;
36634 esac
36635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36636   (eval "$ac_compile") 2>conftest.er1
36637   ac_status=$?
36638   grep -v '^ *+' conftest.er1 >conftest.err
36639   rm -f conftest.er1
36640   cat conftest.err >&5
36641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36642   (exit $ac_status); } && {
36643          test -z "$ac_c_werror_flag" ||
36644          test ! -s conftest.err
36645        } && test -s conftest.$ac_objext; then
36646   ac_cv_type_pid_t=yes
36647 else
36648   echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36650
36651         ac_cv_type_pid_t=no
36652 fi
36653
36654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36655 fi
36656 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
36657 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
36658 if test $ac_cv_type_pid_t = yes; then
36659   :
36660 else
36661
36662 cat >>confdefs.h <<_ACEOF
36663 #define pid_t int
36664 _ACEOF
36665
36666 fi
36667
36668 { echo "$as_me:$LINENO: checking for size_t" >&5
36669 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
36670 if test "${ac_cv_type_size_t+set}" = set; then
36671   echo $ECHO_N "(cached) $ECHO_C" >&6
36672 else
36673   cat >conftest.$ac_ext <<_ACEOF
36674 /* confdefs.h.  */
36675 _ACEOF
36676 cat confdefs.h >>conftest.$ac_ext
36677 cat >>conftest.$ac_ext <<_ACEOF
36678 /* end confdefs.h.  */
36679 $ac_includes_default
36680 typedef size_t ac__type_new_;
36681 int
36682 main ()
36683 {
36684 if ((ac__type_new_ *) 0)
36685   return 0;
36686 if (sizeof (ac__type_new_))
36687   return 0;
36688   ;
36689   return 0;
36690 }
36691 _ACEOF
36692 rm -f conftest.$ac_objext
36693 if { (ac_try="$ac_compile"
36694 case "(($ac_try" in
36695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36696   *) ac_try_echo=$ac_try;;
36697 esac
36698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36699   (eval "$ac_compile") 2>conftest.er1
36700   ac_status=$?
36701   grep -v '^ *+' conftest.er1 >conftest.err
36702   rm -f conftest.er1
36703   cat conftest.err >&5
36704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36705   (exit $ac_status); } && {
36706          test -z "$ac_c_werror_flag" ||
36707          test ! -s conftest.err
36708        } && test -s conftest.$ac_objext; then
36709   ac_cv_type_size_t=yes
36710 else
36711   echo "$as_me: failed program was:" >&5
36712 sed 's/^/| /' conftest.$ac_ext >&5
36713
36714         ac_cv_type_size_t=no
36715 fi
36716
36717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36718 fi
36719 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
36720 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
36721 if test $ac_cv_type_size_t = yes; then
36722   :
36723 else
36724
36725 cat >>confdefs.h <<_ACEOF
36726 #define size_t unsigned int
36727 _ACEOF
36728
36729 fi
36730
36731 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
36732 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
36733 if test "${ac_cv_type_uid_t+set}" = set; then
36734   echo $ECHO_N "(cached) $ECHO_C" >&6
36735 else
36736   cat >conftest.$ac_ext <<_ACEOF
36737 /* confdefs.h.  */
36738 _ACEOF
36739 cat confdefs.h >>conftest.$ac_ext
36740 cat >>conftest.$ac_ext <<_ACEOF
36741 /* end confdefs.h.  */
36742 #include <sys/types.h>
36743
36744 _ACEOF
36745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36746   $EGREP "uid_t" >/dev/null 2>&1; then
36747   ac_cv_type_uid_t=yes
36748 else
36749   ac_cv_type_uid_t=no
36750 fi
36751 rm -f conftest*
36752
36753 fi
36754 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
36755 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
36756 if test $ac_cv_type_uid_t = no; then
36757
36758 cat >>confdefs.h <<\_ACEOF
36759 #define uid_t int
36760 _ACEOF
36761
36762
36763 cat >>confdefs.h <<\_ACEOF
36764 #define gid_t int
36765 _ACEOF
36766
36767 fi
36768
36769
36770 { echo "$as_me:$LINENO: checking for ssize_t" >&5
36771 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
36772 if test "${ac_cv_type_ssize_t+set}" = set; then
36773   echo $ECHO_N "(cached) $ECHO_C" >&6
36774 else
36775   cat >conftest.$ac_ext <<_ACEOF
36776 /* confdefs.h.  */
36777 _ACEOF
36778 cat confdefs.h >>conftest.$ac_ext
36779 cat >>conftest.$ac_ext <<_ACEOF
36780 /* end confdefs.h.  */
36781 $ac_includes_default
36782 typedef ssize_t ac__type_new_;
36783 int
36784 main ()
36785 {
36786 if ((ac__type_new_ *) 0)
36787   return 0;
36788 if (sizeof (ac__type_new_))
36789   return 0;
36790   ;
36791   return 0;
36792 }
36793 _ACEOF
36794 rm -f conftest.$ac_objext
36795 if { (ac_try="$ac_compile"
36796 case "(($ac_try" in
36797   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36798   *) ac_try_echo=$ac_try;;
36799 esac
36800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36801   (eval "$ac_compile") 2>conftest.er1
36802   ac_status=$?
36803   grep -v '^ *+' conftest.er1 >conftest.err
36804   rm -f conftest.er1
36805   cat conftest.err >&5
36806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36807   (exit $ac_status); } && {
36808          test -z "$ac_c_werror_flag" ||
36809          test ! -s conftest.err
36810        } && test -s conftest.$ac_objext; then
36811   ac_cv_type_ssize_t=yes
36812 else
36813   echo "$as_me: failed program was:" >&5
36814 sed 's/^/| /' conftest.$ac_ext >&5
36815
36816         ac_cv_type_ssize_t=no
36817 fi
36818
36819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36820 fi
36821 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
36822 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
36823 if test $ac_cv_type_ssize_t = yes; then
36824
36825 cat >>confdefs.h <<_ACEOF
36826 #define HAVE_SSIZE_T 1
36827 _ACEOF
36828
36829
36830 fi
36831
36832
36833 ac_ext=cpp
36834 ac_cpp='$CXXCPP $CPPFLAGS'
36835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36838  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
36839 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
36840 if test "${wx_cv_size_t_is_uint+set}" = set; then
36841   echo $ECHO_N "(cached) $ECHO_C" >&6
36842 else
36843
36844                             cat >conftest.$ac_ext <<_ACEOF
36845 /* confdefs.h.  */
36846 _ACEOF
36847 cat confdefs.h >>conftest.$ac_ext
36848 cat >>conftest.$ac_ext <<_ACEOF
36849 /* end confdefs.h.  */
36850 #include <stddef.h>
36851 int
36852 main ()
36853 {
36854
36855             return 0; }
36856
36857             struct Foo { void foo(size_t); void foo(unsigned int); };
36858
36859             int bar() {
36860
36861   ;
36862   return 0;
36863 }
36864 _ACEOF
36865 rm -f conftest.$ac_objext
36866 if { (ac_try="$ac_compile"
36867 case "(($ac_try" in
36868   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36869   *) ac_try_echo=$ac_try;;
36870 esac
36871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36872   (eval "$ac_compile") 2>conftest.er1
36873   ac_status=$?
36874   grep -v '^ *+' conftest.er1 >conftest.err
36875   rm -f conftest.er1
36876   cat conftest.err >&5
36877   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36878   (exit $ac_status); } && {
36879          test -z "$ac_cxx_werror_flag" ||
36880          test ! -s conftest.err
36881        } && test -s conftest.$ac_objext; then
36882   wx_cv_size_t_is_uint=no
36883 else
36884   echo "$as_me: failed program was:" >&5
36885 sed 's/^/| /' conftest.$ac_ext >&5
36886
36887         wx_cv_size_t_is_uint=yes
36888
36889 fi
36890
36891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36892
36893
36894 fi
36895 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
36896 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
36897
36898 if test "$wx_cv_size_t_is_uint" = "yes"; then
36899     cat >>confdefs.h <<\_ACEOF
36900 #define wxSIZE_T_IS_UINT 1
36901 _ACEOF
36902
36903 else
36904     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
36905 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
36906 if test "${wx_cv_size_t_is_ulong+set}" = set; then
36907   echo $ECHO_N "(cached) $ECHO_C" >&6
36908 else
36909   cat >conftest.$ac_ext <<_ACEOF
36910 /* confdefs.h.  */
36911 _ACEOF
36912 cat confdefs.h >>conftest.$ac_ext
36913 cat >>conftest.$ac_ext <<_ACEOF
36914 /* end confdefs.h.  */
36915 #include <stddef.h>
36916 int
36917 main ()
36918 {
36919
36920                 return 0; }
36921
36922                 struct Foo { void foo(size_t); void foo(unsigned long); };
36923
36924                 int bar() {
36925
36926   ;
36927   return 0;
36928 }
36929 _ACEOF
36930 rm -f conftest.$ac_objext
36931 if { (ac_try="$ac_compile"
36932 case "(($ac_try" in
36933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36934   *) ac_try_echo=$ac_try;;
36935 esac
36936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36937   (eval "$ac_compile") 2>conftest.er1
36938   ac_status=$?
36939   grep -v '^ *+' conftest.er1 >conftest.err
36940   rm -f conftest.er1
36941   cat conftest.err >&5
36942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); } && {
36944          test -z "$ac_cxx_werror_flag" ||
36945          test ! -s conftest.err
36946        } && test -s conftest.$ac_objext; then
36947   wx_cv_size_t_is_ulong=no
36948 else
36949   echo "$as_me: failed program was:" >&5
36950 sed 's/^/| /' conftest.$ac_ext >&5
36951
36952         wx_cv_size_t_is_ulong=yes
36953
36954 fi
36955
36956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36957
36958 fi
36959 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
36960 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
36961
36962     if test "$wx_cv_size_t_is_ulong" = "yes"; then
36963         cat >>confdefs.h <<\_ACEOF
36964 #define wxSIZE_T_IS_ULONG 1
36965 _ACEOF
36966
36967     fi
36968 fi
36969
36970 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
36971 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
36972 if test "${wx_cv_wchar_t_is_separate_type+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 <wchar.h>
36982 int
36983 main ()
36984 {
36985
36986             return 0; }
36987
36988             struct Foo { void foo(wchar_t);
36989                          void foo(unsigned short);
36990                          void foo(unsigned int);
36991                          void foo(unsigned long); };
36992
36993             int bar() {
36994
36995   ;
36996   return 0;
36997 }
36998 _ACEOF
36999 rm -f conftest.$ac_objext
37000 if { (ac_try="$ac_compile"
37001 case "(($ac_try" in
37002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37003   *) ac_try_echo=$ac_try;;
37004 esac
37005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37006   (eval "$ac_compile") 2>conftest.er1
37007   ac_status=$?
37008   grep -v '^ *+' conftest.er1 >conftest.err
37009   rm -f conftest.er1
37010   cat conftest.err >&5
37011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37012   (exit $ac_status); } && {
37013          test -z "$ac_cxx_werror_flag" ||
37014          test ! -s conftest.err
37015        } && test -s conftest.$ac_objext; then
37016   wx_cv_wchar_t_is_separate_type=yes
37017 else
37018   echo "$as_me: failed program was:" >&5
37019 sed 's/^/| /' conftest.$ac_ext >&5
37020
37021         wx_cv_wchar_t_is_separate_type=no
37022
37023 fi
37024
37025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37026
37027 fi
37028 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37029 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37030
37031 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37032     cat >>confdefs.h <<\_ACEOF
37033 #define wxWCHAR_T_IS_REAL_TYPE 1
37034 _ACEOF
37035
37036 else
37037     cat >>confdefs.h <<\_ACEOF
37038 #define wxWCHAR_T_IS_REAL_TYPE 0
37039 _ACEOF
37040
37041 fi
37042
37043 ac_ext=c
37044 ac_cpp='$CPP $CPPFLAGS'
37045 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37046 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37047 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37048
37049
37050 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37051 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37052 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37053   echo $ECHO_N "(cached) $ECHO_C" >&6
37054 else
37055
37056         cat >conftest.$ac_ext <<_ACEOF
37057 /* confdefs.h.  */
37058 _ACEOF
37059 cat confdefs.h >>conftest.$ac_ext
37060 cat >>conftest.$ac_ext <<_ACEOF
37061 /* end confdefs.h.  */
37062 #include <pwd.h>
37063 int
37064 main ()
37065 {
37066
37067                 char *p;
37068                 struct passwd *pw;
37069                 p = pw->pw_gecos;
37070
37071   ;
37072   return 0;
37073 }
37074 _ACEOF
37075 rm -f conftest.$ac_objext
37076 if { (ac_try="$ac_compile"
37077 case "(($ac_try" in
37078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37079   *) ac_try_echo=$ac_try;;
37080 esac
37081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37082   (eval "$ac_compile") 2>conftest.er1
37083   ac_status=$?
37084   grep -v '^ *+' conftest.er1 >conftest.err
37085   rm -f conftest.er1
37086   cat conftest.err >&5
37087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37088   (exit $ac_status); } && {
37089          test -z "$ac_c_werror_flag" ||
37090          test ! -s conftest.err
37091        } && test -s conftest.$ac_objext; then
37092
37093                 wx_cv_struct_pw_gecos=yes
37094
37095 else
37096   echo "$as_me: failed program was:" >&5
37097 sed 's/^/| /' conftest.$ac_ext >&5
37098
37099
37100                 wx_cv_struct_pw_gecos=no
37101
37102
37103 fi
37104
37105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37106
37107
37108 fi
37109 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37110 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37111
37112 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37113     cat >>confdefs.h <<\_ACEOF
37114 #define HAVE_PW_GECOS 1
37115 _ACEOF
37116
37117 fi
37118
37119
37120 if test "$wxUSE_WCHAR_T" = "yes"; then
37121     cat >>confdefs.h <<\_ACEOF
37122 #define wxUSE_WCHAR_T 1
37123 _ACEOF
37124
37125
37126         WCSLEN_FOUND=0
37127     WCHAR_LINK=
37128
37129 for ac_func in wcslen
37130 do
37131 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37132 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37133 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37134 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37135   echo $ECHO_N "(cached) $ECHO_C" >&6
37136 else
37137   cat >conftest.$ac_ext <<_ACEOF
37138 /* confdefs.h.  */
37139 _ACEOF
37140 cat confdefs.h >>conftest.$ac_ext
37141 cat >>conftest.$ac_ext <<_ACEOF
37142 /* end confdefs.h.  */
37143 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37144    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37145 #define $ac_func innocuous_$ac_func
37146
37147 /* System header to define __stub macros and hopefully few prototypes,
37148     which can conflict with char $ac_func (); below.
37149     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37150     <limits.h> exists even on freestanding compilers.  */
37151
37152 #ifdef __STDC__
37153 # include <limits.h>
37154 #else
37155 # include <assert.h>
37156 #endif
37157
37158 #undef $ac_func
37159
37160 /* Override any GCC internal prototype to avoid an error.
37161    Use char because int might match the return type of a GCC
37162    builtin and then its argument prototype would still apply.  */
37163 #ifdef __cplusplus
37164 extern "C"
37165 #endif
37166 char $ac_func ();
37167 /* The GNU C library defines this for functions which it implements
37168     to always fail with ENOSYS.  Some functions are actually named
37169     something starting with __ and the normal name is an alias.  */
37170 #if defined __stub_$ac_func || defined __stub___$ac_func
37171 choke me
37172 #endif
37173
37174 int
37175 main ()
37176 {
37177 return $ac_func ();
37178   ;
37179   return 0;
37180 }
37181 _ACEOF
37182 rm -f conftest.$ac_objext conftest$ac_exeext
37183 if { (ac_try="$ac_link"
37184 case "(($ac_try" in
37185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37186   *) ac_try_echo=$ac_try;;
37187 esac
37188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37189   (eval "$ac_link") 2>conftest.er1
37190   ac_status=$?
37191   grep -v '^ *+' conftest.er1 >conftest.err
37192   rm -f conftest.er1
37193   cat conftest.err >&5
37194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37195   (exit $ac_status); } && {
37196          test -z "$ac_c_werror_flag" ||
37197          test ! -s conftest.err
37198        } && test -s conftest$ac_exeext &&
37199        $as_test_x conftest$ac_exeext; then
37200   eval "$as_ac_var=yes"
37201 else
37202   echo "$as_me: failed program was:" >&5
37203 sed 's/^/| /' conftest.$ac_ext >&5
37204
37205         eval "$as_ac_var=no"
37206 fi
37207
37208 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37209       conftest$ac_exeext conftest.$ac_ext
37210 fi
37211 ac_res=`eval echo '${'$as_ac_var'}'`
37212                { echo "$as_me:$LINENO: result: $ac_res" >&5
37213 echo "${ECHO_T}$ac_res" >&6; }
37214 if test `eval echo '${'$as_ac_var'}'` = yes; then
37215   cat >>confdefs.h <<_ACEOF
37216 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37217 _ACEOF
37218  WCSLEN_FOUND=1
37219 fi
37220 done
37221
37222
37223     if test "$WCSLEN_FOUND" = 0; then
37224         if test "$TOOLKIT" = "MSW"; then
37225             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37226 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37227 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37228   echo $ECHO_N "(cached) $ECHO_C" >&6
37229 else
37230   ac_check_lib_save_LIBS=$LIBS
37231 LIBS="-lmsvcrt  $LIBS"
37232 cat >conftest.$ac_ext <<_ACEOF
37233 /* confdefs.h.  */
37234 _ACEOF
37235 cat confdefs.h >>conftest.$ac_ext
37236 cat >>conftest.$ac_ext <<_ACEOF
37237 /* end confdefs.h.  */
37238
37239 /* Override any GCC internal prototype to avoid an error.
37240    Use char because int might match the return type of a GCC
37241    builtin and then its argument prototype would still apply.  */
37242 #ifdef __cplusplus
37243 extern "C"
37244 #endif
37245 char wcslen ();
37246 int
37247 main ()
37248 {
37249 return wcslen ();
37250   ;
37251   return 0;
37252 }
37253 _ACEOF
37254 rm -f conftest.$ac_objext conftest$ac_exeext
37255 if { (ac_try="$ac_link"
37256 case "(($ac_try" in
37257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37258   *) ac_try_echo=$ac_try;;
37259 esac
37260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37261   (eval "$ac_link") 2>conftest.er1
37262   ac_status=$?
37263   grep -v '^ *+' conftest.er1 >conftest.err
37264   rm -f conftest.er1
37265   cat conftest.err >&5
37266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37267   (exit $ac_status); } && {
37268          test -z "$ac_c_werror_flag" ||
37269          test ! -s conftest.err
37270        } && test -s conftest$ac_exeext &&
37271        $as_test_x conftest$ac_exeext; then
37272   ac_cv_lib_msvcrt_wcslen=yes
37273 else
37274   echo "$as_me: failed program was:" >&5
37275 sed 's/^/| /' conftest.$ac_ext >&5
37276
37277         ac_cv_lib_msvcrt_wcslen=no
37278 fi
37279
37280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37281       conftest$ac_exeext conftest.$ac_ext
37282 LIBS=$ac_check_lib_save_LIBS
37283 fi
37284 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37285 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37286 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37287   WCHAR_OK=1
37288 fi
37289
37290         else
37291             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37292 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37293 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37294   echo $ECHO_N "(cached) $ECHO_C" >&6
37295 else
37296   ac_check_lib_save_LIBS=$LIBS
37297 LIBS="-lw  $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_w_wcslen=yes
37339 else
37340   echo "$as_me: failed program was:" >&5
37341 sed 's/^/| /' conftest.$ac_ext >&5
37342
37343         ac_cv_lib_w_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_w_wcslen" >&5
37351 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37352 if test $ac_cv_lib_w_wcslen = yes; then
37353
37354                             WCHAR_LINK=" -lw"
37355                             WCSLEN_FOUND=1
37356
37357 fi
37358
37359         fi
37360     fi
37361
37362     if test "$WCSLEN_FOUND" = 1; then
37363         cat >>confdefs.h <<\_ACEOF
37364 #define HAVE_WCSLEN 1
37365 _ACEOF
37366
37367     fi
37368
37369
37370 for ac_func in wcsdup
37371 do
37372 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37376   echo $ECHO_N "(cached) $ECHO_C" >&6
37377 else
37378   cat >conftest.$ac_ext <<_ACEOF
37379 /* confdefs.h.  */
37380 _ACEOF
37381 cat confdefs.h >>conftest.$ac_ext
37382 cat >>conftest.$ac_ext <<_ACEOF
37383 /* end confdefs.h.  */
37384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37385    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37386 #define $ac_func innocuous_$ac_func
37387
37388 /* System header to define __stub macros and hopefully few prototypes,
37389     which can conflict with char $ac_func (); below.
37390     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37391     <limits.h> exists even on freestanding compilers.  */
37392
37393 #ifdef __STDC__
37394 # include <limits.h>
37395 #else
37396 # include <assert.h>
37397 #endif
37398
37399 #undef $ac_func
37400
37401 /* Override any GCC internal prototype to avoid an error.
37402    Use char because int might match the return type of a GCC
37403    builtin and then its argument prototype would still apply.  */
37404 #ifdef __cplusplus
37405 extern "C"
37406 #endif
37407 char $ac_func ();
37408 /* The GNU C library defines this for functions which it implements
37409     to always fail with ENOSYS.  Some functions are actually named
37410     something starting with __ and the normal name is an alias.  */
37411 #if defined __stub_$ac_func || defined __stub___$ac_func
37412 choke me
37413 #endif
37414
37415 int
37416 main ()
37417 {
37418 return $ac_func ();
37419   ;
37420   return 0;
37421 }
37422 _ACEOF
37423 rm -f conftest.$ac_objext conftest$ac_exeext
37424 if { (ac_try="$ac_link"
37425 case "(($ac_try" in
37426   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37427   *) ac_try_echo=$ac_try;;
37428 esac
37429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37430   (eval "$ac_link") 2>conftest.er1
37431   ac_status=$?
37432   grep -v '^ *+' conftest.er1 >conftest.err
37433   rm -f conftest.er1
37434   cat conftest.err >&5
37435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37436   (exit $ac_status); } && {
37437          test -z "$ac_c_werror_flag" ||
37438          test ! -s conftest.err
37439        } && test -s conftest$ac_exeext &&
37440        $as_test_x conftest$ac_exeext; then
37441   eval "$as_ac_var=yes"
37442 else
37443   echo "$as_me: failed program was:" >&5
37444 sed 's/^/| /' conftest.$ac_ext >&5
37445
37446         eval "$as_ac_var=no"
37447 fi
37448
37449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37450       conftest$ac_exeext conftest.$ac_ext
37451 fi
37452 ac_res=`eval echo '${'$as_ac_var'}'`
37453                { echo "$as_me:$LINENO: result: $ac_res" >&5
37454 echo "${ECHO_T}$ac_res" >&6; }
37455 if test `eval echo '${'$as_ac_var'}'` = yes; then
37456   cat >>confdefs.h <<_ACEOF
37457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37458 _ACEOF
37459
37460 fi
37461 done
37462
37463
37464                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
37465         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
37466     fi
37467
37468                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
37469 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
37470 if test "${ac_cv_type_mbstate_t+set}" = set; then
37471   echo $ECHO_N "(cached) $ECHO_C" >&6
37472 else
37473   cat >conftest.$ac_ext <<_ACEOF
37474 /* confdefs.h.  */
37475 _ACEOF
37476 cat confdefs.h >>conftest.$ac_ext
37477 cat >>conftest.$ac_ext <<_ACEOF
37478 /* end confdefs.h.  */
37479 #include <wchar.h>
37480
37481 typedef mbstate_t ac__type_new_;
37482 int
37483 main ()
37484 {
37485 if ((ac__type_new_ *) 0)
37486   return 0;
37487 if (sizeof (ac__type_new_))
37488   return 0;
37489   ;
37490   return 0;
37491 }
37492 _ACEOF
37493 rm -f conftest.$ac_objext
37494 if { (ac_try="$ac_compile"
37495 case "(($ac_try" in
37496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37497   *) ac_try_echo=$ac_try;;
37498 esac
37499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37500   (eval "$ac_compile") 2>conftest.er1
37501   ac_status=$?
37502   grep -v '^ *+' conftest.er1 >conftest.err
37503   rm -f conftest.er1
37504   cat conftest.err >&5
37505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506   (exit $ac_status); } && {
37507          test -z "$ac_c_werror_flag" ||
37508          test ! -s conftest.err
37509        } && test -s conftest.$ac_objext; then
37510   ac_cv_type_mbstate_t=yes
37511 else
37512   echo "$as_me: failed program was:" >&5
37513 sed 's/^/| /' conftest.$ac_ext >&5
37514
37515         ac_cv_type_mbstate_t=no
37516 fi
37517
37518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37519 fi
37520 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
37521 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
37522 if test $ac_cv_type_mbstate_t = yes; then
37523
37524 cat >>confdefs.h <<_ACEOF
37525 #define HAVE_MBSTATE_T 1
37526 _ACEOF
37527
37528
37529 for ac_func in wcsrtombs
37530 do
37531 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37532 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37533 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37534 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37535   echo $ECHO_N "(cached) $ECHO_C" >&6
37536 else
37537   cat >conftest.$ac_ext <<_ACEOF
37538 /* confdefs.h.  */
37539 _ACEOF
37540 cat confdefs.h >>conftest.$ac_ext
37541 cat >>conftest.$ac_ext <<_ACEOF
37542 /* end confdefs.h.  */
37543 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37544    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37545 #define $ac_func innocuous_$ac_func
37546
37547 /* System header to define __stub macros and hopefully few prototypes,
37548     which can conflict with char $ac_func (); below.
37549     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37550     <limits.h> exists even on freestanding compilers.  */
37551
37552 #ifdef __STDC__
37553 # include <limits.h>
37554 #else
37555 # include <assert.h>
37556 #endif
37557
37558 #undef $ac_func
37559
37560 /* Override any GCC internal prototype to avoid an error.
37561    Use char because int might match the return type of a GCC
37562    builtin and then its argument prototype would still apply.  */
37563 #ifdef __cplusplus
37564 extern "C"
37565 #endif
37566 char $ac_func ();
37567 /* The GNU C library defines this for functions which it implements
37568     to always fail with ENOSYS.  Some functions are actually named
37569     something starting with __ and the normal name is an alias.  */
37570 #if defined __stub_$ac_func || defined __stub___$ac_func
37571 choke me
37572 #endif
37573
37574 int
37575 main ()
37576 {
37577 return $ac_func ();
37578   ;
37579   return 0;
37580 }
37581 _ACEOF
37582 rm -f conftest.$ac_objext conftest$ac_exeext
37583 if { (ac_try="$ac_link"
37584 case "(($ac_try" in
37585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37586   *) ac_try_echo=$ac_try;;
37587 esac
37588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37589   (eval "$ac_link") 2>conftest.er1
37590   ac_status=$?
37591   grep -v '^ *+' conftest.er1 >conftest.err
37592   rm -f conftest.er1
37593   cat conftest.err >&5
37594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37595   (exit $ac_status); } && {
37596          test -z "$ac_c_werror_flag" ||
37597          test ! -s conftest.err
37598        } && test -s conftest$ac_exeext &&
37599        $as_test_x conftest$ac_exeext; then
37600   eval "$as_ac_var=yes"
37601 else
37602   echo "$as_me: failed program was:" >&5
37603 sed 's/^/| /' conftest.$ac_ext >&5
37604
37605         eval "$as_ac_var=no"
37606 fi
37607
37608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37609       conftest$ac_exeext conftest.$ac_ext
37610 fi
37611 ac_res=`eval echo '${'$as_ac_var'}'`
37612                { echo "$as_me:$LINENO: result: $ac_res" >&5
37613 echo "${ECHO_T}$ac_res" >&6; }
37614 if test `eval echo '${'$as_ac_var'}'` = yes; then
37615   cat >>confdefs.h <<_ACEOF
37616 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37617 _ACEOF
37618
37619 fi
37620 done
37621
37622 fi
37623
37624 else
37625     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
37626 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
37627 fi
37628
37629
37630
37631 for ac_func in snprintf vsnprintf
37632 do
37633 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37634 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37635 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37636 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37637   echo $ECHO_N "(cached) $ECHO_C" >&6
37638 else
37639   cat >conftest.$ac_ext <<_ACEOF
37640 /* confdefs.h.  */
37641 _ACEOF
37642 cat confdefs.h >>conftest.$ac_ext
37643 cat >>conftest.$ac_ext <<_ACEOF
37644 /* end confdefs.h.  */
37645 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37646    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37647 #define $ac_func innocuous_$ac_func
37648
37649 /* System header to define __stub macros and hopefully few prototypes,
37650     which can conflict with char $ac_func (); below.
37651     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37652     <limits.h> exists even on freestanding compilers.  */
37653
37654 #ifdef __STDC__
37655 # include <limits.h>
37656 #else
37657 # include <assert.h>
37658 #endif
37659
37660 #undef $ac_func
37661
37662 /* Override any GCC internal prototype to avoid an error.
37663    Use char because int might match the return type of a GCC
37664    builtin and then its argument prototype would still apply.  */
37665 #ifdef __cplusplus
37666 extern "C"
37667 #endif
37668 char $ac_func ();
37669 /* The GNU C library defines this for functions which it implements
37670     to always fail with ENOSYS.  Some functions are actually named
37671     something starting with __ and the normal name is an alias.  */
37672 #if defined __stub_$ac_func || defined __stub___$ac_func
37673 choke me
37674 #endif
37675
37676 int
37677 main ()
37678 {
37679 return $ac_func ();
37680   ;
37681   return 0;
37682 }
37683 _ACEOF
37684 rm -f conftest.$ac_objext conftest$ac_exeext
37685 if { (ac_try="$ac_link"
37686 case "(($ac_try" in
37687   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37688   *) ac_try_echo=$ac_try;;
37689 esac
37690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37691   (eval "$ac_link") 2>conftest.er1
37692   ac_status=$?
37693   grep -v '^ *+' conftest.er1 >conftest.err
37694   rm -f conftest.er1
37695   cat conftest.err >&5
37696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37697   (exit $ac_status); } && {
37698          test -z "$ac_c_werror_flag" ||
37699          test ! -s conftest.err
37700        } && test -s conftest$ac_exeext &&
37701        $as_test_x conftest$ac_exeext; then
37702   eval "$as_ac_var=yes"
37703 else
37704   echo "$as_me: failed program was:" >&5
37705 sed 's/^/| /' conftest.$ac_ext >&5
37706
37707         eval "$as_ac_var=no"
37708 fi
37709
37710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37711       conftest$ac_exeext conftest.$ac_ext
37712 fi
37713 ac_res=`eval echo '${'$as_ac_var'}'`
37714                { echo "$as_me:$LINENO: result: $ac_res" >&5
37715 echo "${ECHO_T}$ac_res" >&6; }
37716 if test `eval echo '${'$as_ac_var'}'` = yes; then
37717   cat >>confdefs.h <<_ACEOF
37718 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37719 _ACEOF
37720
37721 fi
37722 done
37723
37724
37725 if test "$ac_cv_func_vsnprintf" = "yes"; then
37726         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
37727 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
37728 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
37729   echo $ECHO_N "(cached) $ECHO_C" >&6
37730 else
37731
37732                                                             cat >conftest.$ac_ext <<_ACEOF
37733 /* confdefs.h.  */
37734 _ACEOF
37735 cat confdefs.h >>conftest.$ac_ext
37736 cat >>conftest.$ac_ext <<_ACEOF
37737 /* end confdefs.h.  */
37738
37739                     #include <stdio.h>
37740                     #include <stdarg.h>
37741                     #ifdef __MSL__
37742                     #if __MSL__ >= 0x6000
37743                     namespace std {}
37744                     using namespace std;
37745                     #endif
37746                     #endif
37747
37748 int
37749 main ()
37750 {
37751
37752                     char *buf;
37753                     va_list ap;
37754                     vsnprintf(buf, 10u, "%s", ap);
37755
37756   ;
37757   return 0;
37758 }
37759 _ACEOF
37760 rm -f conftest.$ac_objext
37761 if { (ac_try="$ac_compile"
37762 case "(($ac_try" in
37763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37764   *) ac_try_echo=$ac_try;;
37765 esac
37766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37767   (eval "$ac_compile") 2>conftest.er1
37768   ac_status=$?
37769   grep -v '^ *+' conftest.er1 >conftest.err
37770   rm -f conftest.er1
37771   cat conftest.err >&5
37772   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37773   (exit $ac_status); } && {
37774          test -z "$ac_c_werror_flag" ||
37775          test ! -s conftest.err
37776        } && test -s conftest.$ac_objext; then
37777   wx_cv_func_vsnprintf_decl=yes
37778 else
37779   echo "$as_me: failed program was:" >&5
37780 sed 's/^/| /' conftest.$ac_ext >&5
37781
37782         wx_cv_func_vsnprintf_decl=no
37783
37784 fi
37785
37786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37787
37788
37789 fi
37790 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
37791 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
37792
37793     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
37794         cat >>confdefs.h <<\_ACEOF
37795 #define HAVE_VSNPRINTF_DECL 1
37796 _ACEOF
37797
37798
37799                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
37800 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
37801 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
37802   echo $ECHO_N "(cached) $ECHO_C" >&6
37803 else
37804
37805                 cat >conftest.$ac_ext <<_ACEOF
37806 /* confdefs.h.  */
37807 _ACEOF
37808 cat confdefs.h >>conftest.$ac_ext
37809 cat >>conftest.$ac_ext <<_ACEOF
37810 /* end confdefs.h.  */
37811
37812                         #include <stdio.h>
37813                         #include <stdarg.h>
37814                         #ifdef __MSL__
37815                         #if __MSL__ >= 0x6000
37816                         namespace std {}
37817                         using namespace std;
37818                         #endif
37819                         #endif
37820
37821 int
37822 main ()
37823 {
37824
37825                         char *buf;
37826                         va_list ap;
37827                         const char *fmt = "%s";
37828                         vsnprintf(buf, 10u, fmt, ap);
37829
37830   ;
37831   return 0;
37832 }
37833 _ACEOF
37834 rm -f conftest.$ac_objext
37835 if { (ac_try="$ac_compile"
37836 case "(($ac_try" in
37837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37838   *) ac_try_echo=$ac_try;;
37839 esac
37840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37841   (eval "$ac_compile") 2>conftest.er1
37842   ac_status=$?
37843   grep -v '^ *+' conftest.er1 >conftest.err
37844   rm -f conftest.er1
37845   cat conftest.err >&5
37846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37847   (exit $ac_status); } && {
37848          test -z "$ac_c_werror_flag" ||
37849          test ! -s conftest.err
37850        } && test -s conftest.$ac_objext; then
37851   wx_cv_func_broken_vsnprintf_decl=no
37852 else
37853   echo "$as_me: failed program was:" >&5
37854 sed 's/^/| /' conftest.$ac_ext >&5
37855
37856         wx_cv_func_broken_vsnprintf_decl=yes
37857
37858 fi
37859
37860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37861
37862
37863 fi
37864 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
37865 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
37866
37867         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
37868             cat >>confdefs.h <<\_ACEOF
37869 #define HAVE_BROKEN_VSNPRINTF_DECL 1
37870 _ACEOF
37871
37872         fi
37873     fi
37874 fi
37875
37876 if test "$ac_cv_func_snprintf" = "yes"; then
37877     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
37878 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
37879 if test "${wx_cv_func_snprintf_decl+set}" = set; then
37880   echo $ECHO_N "(cached) $ECHO_C" >&6
37881 else
37882
37883             cat >conftest.$ac_ext <<_ACEOF
37884 /* confdefs.h.  */
37885 _ACEOF
37886 cat confdefs.h >>conftest.$ac_ext
37887 cat >>conftest.$ac_ext <<_ACEOF
37888 /* end confdefs.h.  */
37889
37890                     #include <stdio.h>
37891                     #include <stdarg.h>
37892                     #ifdef __MSL__
37893                     #if __MSL__ >= 0x6000
37894                     namespace std {}
37895                     using namespace std;
37896                     #endif
37897                     #endif
37898
37899 int
37900 main ()
37901 {
37902
37903                     char *buf;
37904                     snprintf(buf, 10u, "%s", "wx");
37905
37906   ;
37907   return 0;
37908 }
37909 _ACEOF
37910 rm -f conftest.$ac_objext
37911 if { (ac_try="$ac_compile"
37912 case "(($ac_try" in
37913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37914   *) ac_try_echo=$ac_try;;
37915 esac
37916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37917   (eval "$ac_compile") 2>conftest.er1
37918   ac_status=$?
37919   grep -v '^ *+' conftest.er1 >conftest.err
37920   rm -f conftest.er1
37921   cat conftest.err >&5
37922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37923   (exit $ac_status); } && {
37924          test -z "$ac_c_werror_flag" ||
37925          test ! -s conftest.err
37926        } && test -s conftest.$ac_objext; then
37927   wx_cv_func_snprintf_decl=yes
37928 else
37929   echo "$as_me: failed program was:" >&5
37930 sed 's/^/| /' conftest.$ac_ext >&5
37931
37932         wx_cv_func_snprintf_decl=no
37933
37934 fi
37935
37936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37937
37938
37939 fi
37940 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
37941 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
37942
37943     if test "$wx_cv_func_snprintf_decl" = "yes"; then
37944         cat >>confdefs.h <<\_ACEOF
37945 #define HAVE_SNPRINTF_DECL 1
37946 _ACEOF
37947
37948     fi
37949
37950     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
37951
37952                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
37953 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
37954 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
37955   echo $ECHO_N "(cached) $ECHO_C" >&6
37956 else
37957
37958                 if test "$cross_compiling" = yes; then
37959
37960                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
37961 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
37962 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
37963 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
37964                         wx_cv_func_snprintf_pos_params=no
37965
37966
37967 else
37968   cat >conftest.$ac_ext <<_ACEOF
37969 /* confdefs.h.  */
37970 _ACEOF
37971 cat confdefs.h >>conftest.$ac_ext
37972 cat >>conftest.$ac_ext <<_ACEOF
37973 /* end confdefs.h.  */
37974
37975                         #include <stdio.h>
37976
37977                         int main (void)
37978                         {
37979                             char buffer[128];
37980                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
37981                             if (strcmp ("2 3 1", buffer) == 0)
37982                                 exit (0);
37983                             exit (1);
37984                         }
37985
37986 _ACEOF
37987 rm -f conftest$ac_exeext
37988 if { (ac_try="$ac_link"
37989 case "(($ac_try" in
37990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37991   *) ac_try_echo=$ac_try;;
37992 esac
37993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37994   (eval "$ac_link") 2>&5
37995   ac_status=$?
37996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37998   { (case "(($ac_try" in
37999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38000   *) ac_try_echo=$ac_try;;
38001 esac
38002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38003   (eval "$ac_try") 2>&5
38004   ac_status=$?
38005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38006   (exit $ac_status); }; }; then
38007   wx_cv_func_snprintf_pos_params=no
38008 else
38009   echo "$as_me: program exited with status $ac_status" >&5
38010 echo "$as_me: failed program was:" >&5
38011 sed 's/^/| /' conftest.$ac_ext >&5
38012
38013 ( exit $ac_status )
38014 wx_cv_func_snprintf_pos_params=yes
38015 fi
38016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38017 fi
38018
38019
38020
38021
38022 fi
38023 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38024 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38025
38026         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38027             cat >>confdefs.h <<\_ACEOF
38028 #define HAVE_UNIX98_PRINTF 1
38029 _ACEOF
38030
38031         fi
38032     fi
38033 fi
38034
38035 if test "$wxUSE_UNICODE" = yes; then
38036
38037             wchar_headers="#include <stdio.h>
38038 #include <wchar.h>"
38039     case "${host}" in
38040         *-*-solaris2* )
38041
38042 for ac_header in widec.h
38043 do
38044 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38048   echo $ECHO_N "(cached) $ECHO_C" >&6
38049 else
38050   cat >conftest.$ac_ext <<_ACEOF
38051 /* confdefs.h.  */
38052 _ACEOF
38053 cat confdefs.h >>conftest.$ac_ext
38054 cat >>conftest.$ac_ext <<_ACEOF
38055 /* end confdefs.h.  */
38056 $ac_includes_default
38057
38058 #include <$ac_header>
38059 _ACEOF
38060 rm -f conftest.$ac_objext
38061 if { (ac_try="$ac_compile"
38062 case "(($ac_try" in
38063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38064   *) ac_try_echo=$ac_try;;
38065 esac
38066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38067   (eval "$ac_compile") 2>conftest.er1
38068   ac_status=$?
38069   grep -v '^ *+' conftest.er1 >conftest.err
38070   rm -f conftest.er1
38071   cat conftest.err >&5
38072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38073   (exit $ac_status); } && {
38074          test -z "$ac_c_werror_flag" ||
38075          test ! -s conftest.err
38076        } && test -s conftest.$ac_objext; then
38077   eval "$as_ac_Header=yes"
38078 else
38079   echo "$as_me: failed program was:" >&5
38080 sed 's/^/| /' conftest.$ac_ext >&5
38081
38082         eval "$as_ac_Header=no"
38083 fi
38084
38085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38086 fi
38087 ac_res=`eval echo '${'$as_ac_Header'}'`
38088                { echo "$as_me:$LINENO: result: $ac_res" >&5
38089 echo "${ECHO_T}$ac_res" >&6; }
38090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38091   cat >>confdefs.h <<_ACEOF
38092 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38093 _ACEOF
38094
38095 fi
38096
38097 done
38098
38099             if test "$ac_cv_header_widec_h" = "yes"; then
38100                 wchar_headers="$wchar_headers
38101 #include <widec.h>"
38102             fi
38103     esac
38104
38105
38106   for wx_func in putws fputws wprintf vswprintf
38107   do
38108     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38109 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38110 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38111   echo $ECHO_N "(cached) $ECHO_C" >&6
38112 else
38113
38114         cat >conftest.$ac_ext <<_ACEOF
38115
38116             /* confdefs.h.  */
38117 _ACEOF
38118 cat confdefs.h >>conftest.$ac_ext
38119 cat >>conftest.$ac_ext <<_ACEOF
38120 /* end confdefs.h.  */
38121
38122                 $wchar_headers
38123                 $ac_includes_default
38124
38125 int
38126 main ()
38127 {
38128
38129                 #ifndef $wx_func
38130                   &$wx_func;
38131                 #endif
38132
38133
38134   ;
38135   return 0;
38136 }
38137
38138 _ACEOF
38139 rm -f conftest.$ac_objext conftest$ac_exeext
38140 if { (ac_try="$ac_link"
38141 case "(($ac_try" in
38142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38143   *) ac_try_echo=$ac_try;;
38144 esac
38145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38146   (eval "$ac_link") 2>conftest.er1
38147   ac_status=$?
38148   grep -v '^ *+' conftest.er1 >conftest.err
38149   rm -f conftest.er1
38150   cat conftest.err >&5
38151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38152   (exit $ac_status); } && {
38153          test -z "$ac_c_werror_flag" ||
38154          test ! -s conftest.err
38155        } && test -s conftest$ac_exeext &&
38156        $as_test_x conftest$ac_exeext; then
38157   eval wx_cv_func_$wx_func=yes
38158 else
38159   echo "$as_me: failed program was:" >&5
38160 sed 's/^/| /' conftest.$ac_ext >&5
38161
38162         eval wx_cv_func_$wx_func=no
38163 fi
38164
38165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38166       conftest$ac_exeext conftest.$ac_ext
38167
38168 fi
38169 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38170                { echo "$as_me:$LINENO: result: $ac_res" >&5
38171 echo "${ECHO_T}$ac_res" >&6; }
38172
38173     if eval test \$wx_cv_func_$wx_func = yes
38174     then
38175       cat >>confdefs.h <<_ACEOF
38176 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38177 _ACEOF
38178
38179
38180     else
38181       :
38182
38183     fi
38184   done
38185
38186
38187                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
38188 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
38189     cat >conftest.$ac_ext <<_ACEOF
38190 /* confdefs.h.  */
38191 _ACEOF
38192 cat confdefs.h >>conftest.$ac_ext
38193 cat >>conftest.$ac_ext <<_ACEOF
38194 /* end confdefs.h.  */
38195 #include <wchar.h>
38196 int
38197 main ()
38198 {
38199 &_vsnwprintf;
38200   ;
38201   return 0;
38202 }
38203 _ACEOF
38204 rm -f conftest.$ac_objext
38205 if { (ac_try="$ac_compile"
38206 case "(($ac_try" in
38207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38208   *) ac_try_echo=$ac_try;;
38209 esac
38210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38211   (eval "$ac_compile") 2>conftest.er1
38212   ac_status=$?
38213   grep -v '^ *+' conftest.er1 >conftest.err
38214   rm -f conftest.er1
38215   cat conftest.err >&5
38216   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38217   (exit $ac_status); } && {
38218          test -z "$ac_c_werror_flag" ||
38219          test ! -s conftest.err
38220        } && test -s conftest.$ac_objext; then
38221   { echo "$as_me:$LINENO: result: yes" >&5
38222 echo "${ECHO_T}yes" >&6; }
38223                     cat >>confdefs.h <<\_ACEOF
38224 #define HAVE__VSNWPRINTF 1
38225 _ACEOF
38226
38227 else
38228   echo "$as_me: failed program was:" >&5
38229 sed 's/^/| /' conftest.$ac_ext >&5
38230
38231         { echo "$as_me:$LINENO: result: no" >&5
38232 echo "${ECHO_T}no" >&6; }
38233 fi
38234
38235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
38236 fi
38237
38238 if test "$wxUSE_FILE" = "yes"; then
38239
38240   for wx_func in fsync
38241   do
38242     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38243 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38244 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38245   echo $ECHO_N "(cached) $ECHO_C" >&6
38246 else
38247
38248         cat >conftest.$ac_ext <<_ACEOF
38249
38250             /* confdefs.h.  */
38251 _ACEOF
38252 cat confdefs.h >>conftest.$ac_ext
38253 cat >>conftest.$ac_ext <<_ACEOF
38254 /* end confdefs.h.  */
38255
38256
38257                 $ac_includes_default
38258
38259 int
38260 main ()
38261 {
38262
38263                 #ifndef $wx_func
38264                   &$wx_func;
38265                 #endif
38266
38267
38268   ;
38269   return 0;
38270 }
38271
38272 _ACEOF
38273 rm -f conftest.$ac_objext conftest$ac_exeext
38274 if { (ac_try="$ac_link"
38275 case "(($ac_try" in
38276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38277   *) ac_try_echo=$ac_try;;
38278 esac
38279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38280   (eval "$ac_link") 2>conftest.er1
38281   ac_status=$?
38282   grep -v '^ *+' conftest.er1 >conftest.err
38283   rm -f conftest.er1
38284   cat conftest.err >&5
38285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38286   (exit $ac_status); } && {
38287          test -z "$ac_c_werror_flag" ||
38288          test ! -s conftest.err
38289        } && test -s conftest$ac_exeext &&
38290        $as_test_x conftest$ac_exeext; then
38291   eval wx_cv_func_$wx_func=yes
38292 else
38293   echo "$as_me: failed program was:" >&5
38294 sed 's/^/| /' conftest.$ac_ext >&5
38295
38296         eval wx_cv_func_$wx_func=no
38297 fi
38298
38299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38300       conftest$ac_exeext conftest.$ac_ext
38301
38302 fi
38303 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38304                { echo "$as_me:$LINENO: result: $ac_res" >&5
38305 echo "${ECHO_T}$ac_res" >&6; }
38306
38307     if eval test \$wx_cv_func_$wx_func = yes
38308     then
38309       cat >>confdefs.h <<_ACEOF
38310 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38311 _ACEOF
38312
38313
38314     else
38315       :
38316
38317     fi
38318   done
38319
38320 fi
38321
38322 ac_ext=cpp
38323 ac_cpp='$CXXCPP $CPPFLAGS'
38324 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38325 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38326 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38327
38328
38329   for wx_func in round
38330   do
38331     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38332 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38333 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38334   echo $ECHO_N "(cached) $ECHO_C" >&6
38335 else
38336
38337         cat >conftest.$ac_ext <<_ACEOF
38338
38339             /* confdefs.h.  */
38340 _ACEOF
38341 cat confdefs.h >>conftest.$ac_ext
38342 cat >>conftest.$ac_ext <<_ACEOF
38343 /* end confdefs.h.  */
38344
38345                 #include <math.h>
38346                 $ac_includes_default
38347
38348 int
38349 main ()
38350 {
38351
38352                 #ifndef $wx_func
38353                   &$wx_func;
38354                 #endif
38355
38356
38357   ;
38358   return 0;
38359 }
38360
38361 _ACEOF
38362 rm -f conftest.$ac_objext conftest$ac_exeext
38363 if { (ac_try="$ac_link"
38364 case "(($ac_try" in
38365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38366   *) ac_try_echo=$ac_try;;
38367 esac
38368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38369   (eval "$ac_link") 2>conftest.er1
38370   ac_status=$?
38371   grep -v '^ *+' conftest.er1 >conftest.err
38372   rm -f conftest.er1
38373   cat conftest.err >&5
38374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38375   (exit $ac_status); } && {
38376          test -z "$ac_cxx_werror_flag" ||
38377          test ! -s conftest.err
38378        } && test -s conftest$ac_exeext &&
38379        $as_test_x conftest$ac_exeext; then
38380   eval wx_cv_func_$wx_func=yes
38381 else
38382   echo "$as_me: failed program was:" >&5
38383 sed 's/^/| /' conftest.$ac_ext >&5
38384
38385         eval wx_cv_func_$wx_func=no
38386 fi
38387
38388 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38389       conftest$ac_exeext conftest.$ac_ext
38390
38391 fi
38392 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
38393                { echo "$as_me:$LINENO: result: $ac_res" >&5
38394 echo "${ECHO_T}$ac_res" >&6; }
38395
38396     if eval test \$wx_cv_func_$wx_func = yes
38397     then
38398       cat >>confdefs.h <<_ACEOF
38399 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
38400 _ACEOF
38401
38402
38403     else
38404       :
38405
38406     fi
38407   done
38408
38409 ac_ext=c
38410 ac_cpp='$CPP $CPPFLAGS'
38411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38414
38415
38416 if test "$TOOLKIT" != "MSW"; then
38417
38418
38419
38420
38421
38422 # Check whether --with-libiconv-prefix was given.
38423 if test "${with_libiconv_prefix+set}" = set; then
38424   withval=$with_libiconv_prefix;
38425     for dir in `echo "$withval" | tr : ' '`; do
38426       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
38427       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
38428     done
38429
38430 fi
38431
38432
38433   { echo "$as_me:$LINENO: checking for iconv" >&5
38434 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
38435 if test "${am_cv_func_iconv+set}" = set; then
38436   echo $ECHO_N "(cached) $ECHO_C" >&6
38437 else
38438
38439     am_cv_func_iconv="no, consider installing GNU libiconv"
38440     am_cv_lib_iconv=no
38441     cat >conftest.$ac_ext <<_ACEOF
38442 /* confdefs.h.  */
38443 _ACEOF
38444 cat confdefs.h >>conftest.$ac_ext
38445 cat >>conftest.$ac_ext <<_ACEOF
38446 /* end confdefs.h.  */
38447 #include <stdlib.h>
38448 #include <iconv.h>
38449 int
38450 main ()
38451 {
38452 iconv_t cd = iconv_open("","");
38453        iconv(cd,NULL,NULL,NULL,NULL);
38454        iconv_close(cd);
38455   ;
38456   return 0;
38457 }
38458 _ACEOF
38459 rm -f conftest.$ac_objext conftest$ac_exeext
38460 if { (ac_try="$ac_link"
38461 case "(($ac_try" in
38462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38463   *) ac_try_echo=$ac_try;;
38464 esac
38465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38466   (eval "$ac_link") 2>conftest.er1
38467   ac_status=$?
38468   grep -v '^ *+' conftest.er1 >conftest.err
38469   rm -f conftest.er1
38470   cat conftest.err >&5
38471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38472   (exit $ac_status); } && {
38473          test -z "$ac_c_werror_flag" ||
38474          test ! -s conftest.err
38475        } && test -s conftest$ac_exeext &&
38476        $as_test_x conftest$ac_exeext; then
38477   am_cv_func_iconv=yes
38478 else
38479   echo "$as_me: failed program was:" >&5
38480 sed 's/^/| /' conftest.$ac_ext >&5
38481
38482
38483 fi
38484
38485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38486       conftest$ac_exeext conftest.$ac_ext
38487     if test "$am_cv_func_iconv" != yes; then
38488       am_save_LIBS="$LIBS"
38489       LIBS="$LIBS -liconv"
38490       cat >conftest.$ac_ext <<_ACEOF
38491 /* confdefs.h.  */
38492 _ACEOF
38493 cat confdefs.h >>conftest.$ac_ext
38494 cat >>conftest.$ac_ext <<_ACEOF
38495 /* end confdefs.h.  */
38496 #include <stdlib.h>
38497 #include <iconv.h>
38498 int
38499 main ()
38500 {
38501 iconv_t cd = iconv_open("","");
38502          iconv(cd,NULL,NULL,NULL,NULL);
38503          iconv_close(cd);
38504   ;
38505   return 0;
38506 }
38507 _ACEOF
38508 rm -f conftest.$ac_objext conftest$ac_exeext
38509 if { (ac_try="$ac_link"
38510 case "(($ac_try" in
38511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38512   *) ac_try_echo=$ac_try;;
38513 esac
38514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38515   (eval "$ac_link") 2>conftest.er1
38516   ac_status=$?
38517   grep -v '^ *+' conftest.er1 >conftest.err
38518   rm -f conftest.er1
38519   cat conftest.err >&5
38520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38521   (exit $ac_status); } && {
38522          test -z "$ac_c_werror_flag" ||
38523          test ! -s conftest.err
38524        } && test -s conftest$ac_exeext &&
38525        $as_test_x conftest$ac_exeext; then
38526   am_cv_lib_iconv=yes
38527         am_cv_func_iconv=yes
38528 else
38529   echo "$as_me: failed program was:" >&5
38530 sed 's/^/| /' conftest.$ac_ext >&5
38531
38532
38533 fi
38534
38535 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38536       conftest$ac_exeext conftest.$ac_ext
38537       LIBS="$am_save_LIBS"
38538     fi
38539
38540 fi
38541 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
38542 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
38543   if test "$am_cv_func_iconv" = yes; then
38544
38545 cat >>confdefs.h <<\_ACEOF
38546 #define HAVE_ICONV 1
38547 _ACEOF
38548
38549     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
38550 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
38551 if test "${wx_cv_func_iconv_const+set}" = set; then
38552   echo $ECHO_N "(cached) $ECHO_C" >&6
38553 else
38554   cat >conftest.$ac_ext <<_ACEOF
38555 /* confdefs.h.  */
38556 _ACEOF
38557 cat confdefs.h >>conftest.$ac_ext
38558 cat >>conftest.$ac_ext <<_ACEOF
38559 /* end confdefs.h.  */
38560
38561 #include <stdlib.h>
38562 #include <iconv.h>
38563 extern
38564 #ifdef __cplusplus
38565 "C"
38566 #endif
38567 #if defined(__STDC__) || defined(__cplusplus)
38568 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
38569 #else
38570 size_t iconv();
38571 #endif
38572
38573 int
38574 main ()
38575 {
38576
38577   ;
38578   return 0;
38579 }
38580 _ACEOF
38581 rm -f conftest.$ac_objext
38582 if { (ac_try="$ac_compile"
38583 case "(($ac_try" in
38584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38585   *) ac_try_echo=$ac_try;;
38586 esac
38587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38588   (eval "$ac_compile") 2>conftest.er1
38589   ac_status=$?
38590   grep -v '^ *+' conftest.er1 >conftest.err
38591   rm -f conftest.er1
38592   cat conftest.err >&5
38593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38594   (exit $ac_status); } && {
38595          test -z "$ac_c_werror_flag" ||
38596          test ! -s conftest.err
38597        } && test -s conftest.$ac_objext; then
38598   wx_cv_func_iconv_const="no"
38599 else
38600   echo "$as_me: failed program was:" >&5
38601 sed 's/^/| /' conftest.$ac_ext >&5
38602
38603         wx_cv_func_iconv_const="yes"
38604
38605 fi
38606
38607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38608
38609 fi
38610 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
38611 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
38612
38613     iconv_const=
38614     if test "x$wx_cv_func_iconv_const" = "xyes"; then
38615         iconv_const="const"
38616     fi
38617
38618
38619 cat >>confdefs.h <<_ACEOF
38620 #define ICONV_CONST $iconv_const
38621 _ACEOF
38622
38623   fi
38624   LIBICONV=
38625   if test "$am_cv_lib_iconv" = yes; then
38626     LIBICONV="-liconv"
38627   fi
38628
38629
38630 LIBS="$LIBICONV $LIBS"
38631
38632 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38633
38634 for ac_func in sigaction
38635 do
38636 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38637 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38638 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38639 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38640   echo $ECHO_N "(cached) $ECHO_C" >&6
38641 else
38642   cat >conftest.$ac_ext <<_ACEOF
38643 /* confdefs.h.  */
38644 _ACEOF
38645 cat confdefs.h >>conftest.$ac_ext
38646 cat >>conftest.$ac_ext <<_ACEOF
38647 /* end confdefs.h.  */
38648 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38649    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38650 #define $ac_func innocuous_$ac_func
38651
38652 /* System header to define __stub macros and hopefully few prototypes,
38653     which can conflict with char $ac_func (); below.
38654     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38655     <limits.h> exists even on freestanding compilers.  */
38656
38657 #ifdef __STDC__
38658 # include <limits.h>
38659 #else
38660 # include <assert.h>
38661 #endif
38662
38663 #undef $ac_func
38664
38665 /* Override any GCC internal prototype to avoid an error.
38666    Use char because int might match the return type of a GCC
38667    builtin and then its argument prototype would still apply.  */
38668 #ifdef __cplusplus
38669 extern "C"
38670 #endif
38671 char $ac_func ();
38672 /* The GNU C library defines this for functions which it implements
38673     to always fail with ENOSYS.  Some functions are actually named
38674     something starting with __ and the normal name is an alias.  */
38675 #if defined __stub_$ac_func || defined __stub___$ac_func
38676 choke me
38677 #endif
38678
38679 int
38680 main ()
38681 {
38682 return $ac_func ();
38683   ;
38684   return 0;
38685 }
38686 _ACEOF
38687 rm -f conftest.$ac_objext conftest$ac_exeext
38688 if { (ac_try="$ac_link"
38689 case "(($ac_try" in
38690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38691   *) ac_try_echo=$ac_try;;
38692 esac
38693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38694   (eval "$ac_link") 2>conftest.er1
38695   ac_status=$?
38696   grep -v '^ *+' conftest.er1 >conftest.err
38697   rm -f conftest.er1
38698   cat conftest.err >&5
38699   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); } && {
38701          test -z "$ac_c_werror_flag" ||
38702          test ! -s conftest.err
38703        } && test -s conftest$ac_exeext &&
38704        $as_test_x conftest$ac_exeext; then
38705   eval "$as_ac_var=yes"
38706 else
38707   echo "$as_me: failed program was:" >&5
38708 sed 's/^/| /' conftest.$ac_ext >&5
38709
38710         eval "$as_ac_var=no"
38711 fi
38712
38713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38714       conftest$ac_exeext conftest.$ac_ext
38715 fi
38716 ac_res=`eval echo '${'$as_ac_var'}'`
38717                { echo "$as_me:$LINENO: result: $ac_res" >&5
38718 echo "${ECHO_T}$ac_res" >&6; }
38719 if test `eval echo '${'$as_ac_var'}'` = yes; then
38720   cat >>confdefs.h <<_ACEOF
38721 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38722 _ACEOF
38723
38724 fi
38725 done
38726
38727
38728     if test "$ac_cv_func_sigaction" = "no"; then
38729         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
38730 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
38731         wxUSE_ON_FATAL_EXCEPTION=no
38732     fi
38733
38734     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
38735       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
38736 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
38737 if test "${wx_cv_type_sa_handler+set}" = set; then
38738   echo $ECHO_N "(cached) $ECHO_C" >&6
38739 else
38740
38741                 ac_ext=cpp
38742 ac_cpp='$CXXCPP $CPPFLAGS'
38743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38746
38747         cat >conftest.$ac_ext <<_ACEOF
38748 /* confdefs.h.  */
38749 _ACEOF
38750 cat confdefs.h >>conftest.$ac_ext
38751 cat >>conftest.$ac_ext <<_ACEOF
38752 /* end confdefs.h.  */
38753 #include <signal.h>
38754 int
38755 main ()
38756 {
38757
38758                         extern void testSigHandler(int);
38759
38760                         struct sigaction sa;
38761                         sa.sa_handler = testSigHandler;
38762
38763   ;
38764   return 0;
38765 }
38766 _ACEOF
38767 rm -f conftest.$ac_objext
38768 if { (ac_try="$ac_compile"
38769 case "(($ac_try" in
38770   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38771   *) ac_try_echo=$ac_try;;
38772 esac
38773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38774   (eval "$ac_compile") 2>conftest.er1
38775   ac_status=$?
38776   grep -v '^ *+' conftest.er1 >conftest.err
38777   rm -f conftest.er1
38778   cat conftest.err >&5
38779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38780   (exit $ac_status); } && {
38781          test -z "$ac_cxx_werror_flag" ||
38782          test ! -s conftest.err
38783        } && test -s conftest.$ac_objext; then
38784
38785                         wx_cv_type_sa_handler=int
38786
38787 else
38788   echo "$as_me: failed program was:" >&5
38789 sed 's/^/| /' conftest.$ac_ext >&5
38790
38791
38792                         wx_cv_type_sa_handler=void
38793
38794 fi
38795
38796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38797         ac_ext=c
38798 ac_cpp='$CPP $CPPFLAGS'
38799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38802
38803
38804 fi
38805 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
38806 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
38807
38808       cat >>confdefs.h <<_ACEOF
38809 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
38810 _ACEOF
38811
38812     fi
38813 fi
38814
38815 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
38816     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
38817 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
38818 if test "${wx_cv_func_backtrace+set}" = set; then
38819   echo $ECHO_N "(cached) $ECHO_C" >&6
38820 else
38821
38822             ac_ext=cpp
38823 ac_cpp='$CXXCPP $CPPFLAGS'
38824 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38825 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38826 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38827
38828             cat >conftest.$ac_ext <<_ACEOF
38829 /* confdefs.h.  */
38830 _ACEOF
38831 cat confdefs.h >>conftest.$ac_ext
38832 cat >>conftest.$ac_ext <<_ACEOF
38833 /* end confdefs.h.  */
38834 #include <execinfo.h>
38835 int
38836 main ()
38837 {
38838
38839                     void *trace[1];
38840                     char **messages;
38841
38842                     backtrace(trace, 1);
38843                     messages = backtrace_symbols(trace, 1);
38844
38845   ;
38846   return 0;
38847 }
38848 _ACEOF
38849 rm -f conftest.$ac_objext
38850 if { (ac_try="$ac_compile"
38851 case "(($ac_try" in
38852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38853   *) ac_try_echo=$ac_try;;
38854 esac
38855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38856   (eval "$ac_compile") 2>conftest.er1
38857   ac_status=$?
38858   grep -v '^ *+' conftest.er1 >conftest.err
38859   rm -f conftest.er1
38860   cat conftest.err >&5
38861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38862   (exit $ac_status); } && {
38863          test -z "$ac_cxx_werror_flag" ||
38864          test ! -s conftest.err
38865        } && test -s conftest.$ac_objext; then
38866   wx_cv_func_backtrace=yes
38867 else
38868   echo "$as_me: failed program was:" >&5
38869 sed 's/^/| /' conftest.$ac_ext >&5
38870
38871         wx_cv_func_backtrace=no
38872
38873 fi
38874
38875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38876             ac_ext=c
38877 ac_cpp='$CPP $CPPFLAGS'
38878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38881
38882
38883
38884 fi
38885 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
38886 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
38887
38888
38889     if test "$wx_cv_func_backtrace" = "no"; then
38890         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
38891 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
38892         wxUSE_STACKWALKER=no
38893     else
38894         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
38895 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
38896 if test "${wx_cv_func_cxa_demangle+set}" = set; then
38897   echo $ECHO_N "(cached) $ECHO_C" >&6
38898 else
38899
38900                 ac_ext=cpp
38901 ac_cpp='$CXXCPP $CPPFLAGS'
38902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
38905
38906                 cat >conftest.$ac_ext <<_ACEOF
38907 /* confdefs.h.  */
38908 _ACEOF
38909 cat confdefs.h >>conftest.$ac_ext
38910 cat >>conftest.$ac_ext <<_ACEOF
38911 /* end confdefs.h.  */
38912 #include <cxxabi.h>
38913 int
38914 main ()
38915 {
38916
38917                         int rc;
38918                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
38919
38920   ;
38921   return 0;
38922 }
38923 _ACEOF
38924 rm -f conftest.$ac_objext conftest$ac_exeext
38925 if { (ac_try="$ac_link"
38926 case "(($ac_try" in
38927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38928   *) ac_try_echo=$ac_try;;
38929 esac
38930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38931   (eval "$ac_link") 2>conftest.er1
38932   ac_status=$?
38933   grep -v '^ *+' conftest.er1 >conftest.err
38934   rm -f conftest.er1
38935   cat conftest.err >&5
38936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38937   (exit $ac_status); } && {
38938          test -z "$ac_cxx_werror_flag" ||
38939          test ! -s conftest.err
38940        } && test -s conftest$ac_exeext &&
38941        $as_test_x conftest$ac_exeext; then
38942   wx_cv_func_cxa_demangle=yes
38943 else
38944   echo "$as_me: failed program was:" >&5
38945 sed 's/^/| /' conftest.$ac_ext >&5
38946
38947         wx_cv_func_cxa_demangle=no
38948
38949 fi
38950
38951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38952       conftest$ac_exeext conftest.$ac_ext
38953                 ac_ext=c
38954 ac_cpp='$CPP $CPPFLAGS'
38955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
38956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
38957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
38958
38959
38960
38961 fi
38962 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
38963 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
38964
38965         if test "$wx_cv_func_cxa_demangle" = "yes"; then
38966             cat >>confdefs.h <<\_ACEOF
38967 #define HAVE_CXA_DEMANGLE 1
38968 _ACEOF
38969
38970         fi
38971     fi
38972 fi
38973
38974 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
38975     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
38976 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
38977     wxUSE_STACKWALKER=no
38978 fi
38979
38980
38981
38982
38983 for ac_func in mkstemp mktemp
38984 do
38985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38989   echo $ECHO_N "(cached) $ECHO_C" >&6
38990 else
38991   cat >conftest.$ac_ext <<_ACEOF
38992 /* confdefs.h.  */
38993 _ACEOF
38994 cat confdefs.h >>conftest.$ac_ext
38995 cat >>conftest.$ac_ext <<_ACEOF
38996 /* end confdefs.h.  */
38997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38998    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38999 #define $ac_func innocuous_$ac_func
39000
39001 /* System header to define __stub macros and hopefully few prototypes,
39002     which can conflict with char $ac_func (); below.
39003     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39004     <limits.h> exists even on freestanding compilers.  */
39005
39006 #ifdef __STDC__
39007 # include <limits.h>
39008 #else
39009 # include <assert.h>
39010 #endif
39011
39012 #undef $ac_func
39013
39014 /* Override any GCC internal prototype to avoid an error.
39015    Use char because int might match the return type of a GCC
39016    builtin and then its argument prototype would still apply.  */
39017 #ifdef __cplusplus
39018 extern "C"
39019 #endif
39020 char $ac_func ();
39021 /* The GNU C library defines this for functions which it implements
39022     to always fail with ENOSYS.  Some functions are actually named
39023     something starting with __ and the normal name is an alias.  */
39024 #if defined __stub_$ac_func || defined __stub___$ac_func
39025 choke me
39026 #endif
39027
39028 int
39029 main ()
39030 {
39031 return $ac_func ();
39032   ;
39033   return 0;
39034 }
39035 _ACEOF
39036 rm -f conftest.$ac_objext conftest$ac_exeext
39037 if { (ac_try="$ac_link"
39038 case "(($ac_try" in
39039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39040   *) ac_try_echo=$ac_try;;
39041 esac
39042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39043   (eval "$ac_link") 2>conftest.er1
39044   ac_status=$?
39045   grep -v '^ *+' conftest.er1 >conftest.err
39046   rm -f conftest.er1
39047   cat conftest.err >&5
39048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39049   (exit $ac_status); } && {
39050          test -z "$ac_c_werror_flag" ||
39051          test ! -s conftest.err
39052        } && test -s conftest$ac_exeext &&
39053        $as_test_x conftest$ac_exeext; then
39054   eval "$as_ac_var=yes"
39055 else
39056   echo "$as_me: failed program was:" >&5
39057 sed 's/^/| /' conftest.$ac_ext >&5
39058
39059         eval "$as_ac_var=no"
39060 fi
39061
39062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39063       conftest$ac_exeext conftest.$ac_ext
39064 fi
39065 ac_res=`eval echo '${'$as_ac_var'}'`
39066                { echo "$as_me:$LINENO: result: $ac_res" >&5
39067 echo "${ECHO_T}$ac_res" >&6; }
39068 if test `eval echo '${'$as_ac_var'}'` = yes; then
39069   cat >>confdefs.h <<_ACEOF
39070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39071 _ACEOF
39072  break
39073 fi
39074 done
39075
39076
39077 { echo "$as_me:$LINENO: checking for statfs" >&5
39078 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
39079 if test "${wx_cv_func_statfs+set}" = set; then
39080   echo $ECHO_N "(cached) $ECHO_C" >&6
39081 else
39082   cat >conftest.$ac_ext <<_ACEOF
39083 /* confdefs.h.  */
39084 _ACEOF
39085 cat confdefs.h >>conftest.$ac_ext
39086 cat >>conftest.$ac_ext <<_ACEOF
39087 /* end confdefs.h.  */
39088
39089              #if defined(__BSD__)
39090              #include <sys/param.h>
39091              #include <sys/mount.h>
39092              #else
39093              #include <sys/vfs.h>
39094              #endif
39095
39096 int
39097 main ()
39098 {
39099
39100              long l;
39101              struct statfs fs;
39102              statfs("/", &fs);
39103              l = fs.f_bsize;
39104              l += fs.f_blocks;
39105              l += fs.f_bavail;
39106
39107   ;
39108   return 0;
39109 }
39110 _ACEOF
39111 rm -f conftest.$ac_objext
39112 if { (ac_try="$ac_compile"
39113 case "(($ac_try" in
39114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39115   *) ac_try_echo=$ac_try;;
39116 esac
39117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39118   (eval "$ac_compile") 2>conftest.er1
39119   ac_status=$?
39120   grep -v '^ *+' conftest.er1 >conftest.err
39121   rm -f conftest.er1
39122   cat conftest.err >&5
39123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39124   (exit $ac_status); } && {
39125          test -z "$ac_c_werror_flag" ||
39126          test ! -s conftest.err
39127        } && test -s conftest.$ac_objext; then
39128   wx_cv_func_statfs=yes
39129 else
39130   echo "$as_me: failed program was:" >&5
39131 sed 's/^/| /' conftest.$ac_ext >&5
39132
39133         wx_cv_func_statfs=no
39134
39135 fi
39136
39137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39138
39139 fi
39140 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
39141 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
39142
39143 if test "$wx_cv_func_statfs" = "yes"; then
39144         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
39145 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
39146 if test "${wx_cv_func_statfs_decl+set}" = set; then
39147   echo $ECHO_N "(cached) $ECHO_C" >&6
39148 else
39149   ac_ext=cpp
39150 ac_cpp='$CXXCPP $CPPFLAGS'
39151 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39152 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39153 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39154
39155         cat >conftest.$ac_ext <<_ACEOF
39156 /* confdefs.h.  */
39157 _ACEOF
39158 cat confdefs.h >>conftest.$ac_ext
39159 cat >>conftest.$ac_ext <<_ACEOF
39160 /* end confdefs.h.  */
39161
39162                  #if defined(__BSD__)
39163                  #include <sys/param.h>
39164                  #include <sys/mount.h>
39165                  #else
39166                  #include <sys/vfs.h>
39167                  #endif
39168
39169 int
39170 main ()
39171 {
39172
39173                 struct statfs fs;
39174                 statfs("", &fs);
39175
39176   ;
39177   return 0;
39178 }
39179 _ACEOF
39180 rm -f conftest.$ac_objext
39181 if { (ac_try="$ac_compile"
39182 case "(($ac_try" in
39183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39184   *) ac_try_echo=$ac_try;;
39185 esac
39186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39187   (eval "$ac_compile") 2>conftest.er1
39188   ac_status=$?
39189   grep -v '^ *+' conftest.er1 >conftest.err
39190   rm -f conftest.er1
39191   cat conftest.err >&5
39192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39193   (exit $ac_status); } && {
39194          test -z "$ac_cxx_werror_flag" ||
39195          test ! -s conftest.err
39196        } && test -s conftest.$ac_objext; then
39197   wx_cv_func_statfs_decl=yes
39198 else
39199   echo "$as_me: failed program was:" >&5
39200 sed 's/^/| /' conftest.$ac_ext >&5
39201
39202         wx_cv_func_statfs_decl=no
39203
39204 fi
39205
39206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39207         ac_ext=c
39208 ac_cpp='$CPP $CPPFLAGS'
39209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39211 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39212
39213
39214 fi
39215 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
39216 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
39217
39218     if test "$wx_cv_func_statfs_decl" = "yes"; then
39219         cat >>confdefs.h <<\_ACEOF
39220 #define HAVE_STATFS_DECL 1
39221 _ACEOF
39222
39223     fi
39224
39225     wx_cv_type_statvfs_t="struct statfs"
39226     cat >>confdefs.h <<\_ACEOF
39227 #define HAVE_STATFS 1
39228 _ACEOF
39229
39230 else
39231     { echo "$as_me:$LINENO: checking for statvfs" >&5
39232 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
39233 if test "${wx_cv_func_statvfs+set}" = set; then
39234   echo $ECHO_N "(cached) $ECHO_C" >&6
39235 else
39236   cat >conftest.$ac_ext <<_ACEOF
39237 /* confdefs.h.  */
39238 _ACEOF
39239 cat confdefs.h >>conftest.$ac_ext
39240 cat >>conftest.$ac_ext <<_ACEOF
39241 /* end confdefs.h.  */
39242
39243                 #include <stddef.h>
39244                 #include <sys/statvfs.h>
39245
39246 int
39247 main ()
39248 {
39249
39250                 statvfs("/", NULL);
39251
39252   ;
39253   return 0;
39254 }
39255 _ACEOF
39256 rm -f conftest.$ac_objext
39257 if { (ac_try="$ac_compile"
39258 case "(($ac_try" in
39259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39260   *) ac_try_echo=$ac_try;;
39261 esac
39262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39263   (eval "$ac_compile") 2>conftest.er1
39264   ac_status=$?
39265   grep -v '^ *+' conftest.er1 >conftest.err
39266   rm -f conftest.er1
39267   cat conftest.err >&5
39268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39269   (exit $ac_status); } && {
39270          test -z "$ac_c_werror_flag" ||
39271          test ! -s conftest.err
39272        } && test -s conftest.$ac_objext; then
39273   wx_cv_func_statvfs=yes
39274 else
39275   echo "$as_me: failed program was:" >&5
39276 sed 's/^/| /' conftest.$ac_ext >&5
39277
39278         wx_cv_func_statvfs=no
39279
39280 fi
39281
39282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39283
39284 fi
39285 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
39286 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
39287
39288     if test "$wx_cv_func_statvfs" = "yes"; then
39289                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
39290 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
39291 if test "${wx_cv_type_statvfs_t+set}" = set; then
39292   echo $ECHO_N "(cached) $ECHO_C" >&6
39293 else
39294   ac_ext=cpp
39295 ac_cpp='$CXXCPP $CPPFLAGS'
39296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39299
39300             cat >conftest.$ac_ext <<_ACEOF
39301 /* confdefs.h.  */
39302 _ACEOF
39303 cat confdefs.h >>conftest.$ac_ext
39304 cat >>conftest.$ac_ext <<_ACEOF
39305 /* end confdefs.h.  */
39306
39307                     #include <sys/statvfs.h>
39308
39309 int
39310 main ()
39311 {
39312
39313                     long l;
39314                     statvfs_t fs;
39315                     statvfs("/", &fs);
39316                     l = fs.f_bsize;
39317                     l += fs.f_blocks;
39318                     l += fs.f_bavail;
39319
39320   ;
39321   return 0;
39322 }
39323 _ACEOF
39324 rm -f conftest.$ac_objext
39325 if { (ac_try="$ac_compile"
39326 case "(($ac_try" in
39327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39328   *) ac_try_echo=$ac_try;;
39329 esac
39330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39331   (eval "$ac_compile") 2>conftest.er1
39332   ac_status=$?
39333   grep -v '^ *+' conftest.er1 >conftest.err
39334   rm -f conftest.er1
39335   cat conftest.err >&5
39336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39337   (exit $ac_status); } && {
39338          test -z "$ac_cxx_werror_flag" ||
39339          test ! -s conftest.err
39340        } && test -s conftest.$ac_objext; then
39341   wx_cv_type_statvfs_t=statvfs_t
39342 else
39343   echo "$as_me: failed program was:" >&5
39344 sed 's/^/| /' conftest.$ac_ext >&5
39345
39346
39347                     cat >conftest.$ac_ext <<_ACEOF
39348 /* confdefs.h.  */
39349 _ACEOF
39350 cat confdefs.h >>conftest.$ac_ext
39351 cat >>conftest.$ac_ext <<_ACEOF
39352 /* end confdefs.h.  */
39353
39354                             #include <sys/statvfs.h>
39355
39356 int
39357 main ()
39358 {
39359
39360                             long l;
39361                             struct statvfs fs;
39362                             statvfs("/", &fs);
39363                             l = fs.f_bsize;
39364                             l += fs.f_blocks;
39365                             l += fs.f_bavail;
39366
39367   ;
39368   return 0;
39369 }
39370 _ACEOF
39371 rm -f conftest.$ac_objext
39372 if { (ac_try="$ac_compile"
39373 case "(($ac_try" in
39374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39375   *) ac_try_echo=$ac_try;;
39376 esac
39377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39378   (eval "$ac_compile") 2>conftest.er1
39379   ac_status=$?
39380   grep -v '^ *+' conftest.er1 >conftest.err
39381   rm -f conftest.er1
39382   cat conftest.err >&5
39383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39384   (exit $ac_status); } && {
39385          test -z "$ac_cxx_werror_flag" ||
39386          test ! -s conftest.err
39387        } && test -s conftest.$ac_objext; then
39388   wx_cv_type_statvfs_t="struct statvfs"
39389 else
39390   echo "$as_me: failed program was:" >&5
39391 sed 's/^/| /' conftest.$ac_ext >&5
39392
39393         wx_cv_type_statvfs_t="unknown"
39394
39395 fi
39396
39397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39398
39399
39400 fi
39401
39402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39403             ac_ext=c
39404 ac_cpp='$CPP $CPPFLAGS'
39405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39408
39409
39410 fi
39411 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
39412 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
39413
39414         if test "$wx_cv_type_statvfs_t" != "unknown"; then
39415             cat >>confdefs.h <<\_ACEOF
39416 #define HAVE_STATVFS 1
39417 _ACEOF
39418
39419         fi
39420     else
39421                 wx_cv_type_statvfs_t="unknown"
39422     fi
39423 fi
39424
39425 if test "$wx_cv_type_statvfs_t" != "unknown"; then
39426     cat >>confdefs.h <<_ACEOF
39427 #define WX_STATFS_T $wx_cv_type_statvfs_t
39428 _ACEOF
39429
39430 else
39431     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
39432 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
39433 fi
39434
39435 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
39436
39437
39438 for ac_func in fcntl flock
39439 do
39440 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39441 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39442 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39443 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39444   echo $ECHO_N "(cached) $ECHO_C" >&6
39445 else
39446   cat >conftest.$ac_ext <<_ACEOF
39447 /* confdefs.h.  */
39448 _ACEOF
39449 cat confdefs.h >>conftest.$ac_ext
39450 cat >>conftest.$ac_ext <<_ACEOF
39451 /* end confdefs.h.  */
39452 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39453    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39454 #define $ac_func innocuous_$ac_func
39455
39456 /* System header to define __stub macros and hopefully few prototypes,
39457     which can conflict with char $ac_func (); below.
39458     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39459     <limits.h> exists even on freestanding compilers.  */
39460
39461 #ifdef __STDC__
39462 # include <limits.h>
39463 #else
39464 # include <assert.h>
39465 #endif
39466
39467 #undef $ac_func
39468
39469 /* Override any GCC internal prototype to avoid an error.
39470    Use char because int might match the return type of a GCC
39471    builtin and then its argument prototype would still apply.  */
39472 #ifdef __cplusplus
39473 extern "C"
39474 #endif
39475 char $ac_func ();
39476 /* The GNU C library defines this for functions which it implements
39477     to always fail with ENOSYS.  Some functions are actually named
39478     something starting with __ and the normal name is an alias.  */
39479 #if defined __stub_$ac_func || defined __stub___$ac_func
39480 choke me
39481 #endif
39482
39483 int
39484 main ()
39485 {
39486 return $ac_func ();
39487   ;
39488   return 0;
39489 }
39490 _ACEOF
39491 rm -f conftest.$ac_objext conftest$ac_exeext
39492 if { (ac_try="$ac_link"
39493 case "(($ac_try" in
39494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39495   *) ac_try_echo=$ac_try;;
39496 esac
39497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39498   (eval "$ac_link") 2>conftest.er1
39499   ac_status=$?
39500   grep -v '^ *+' conftest.er1 >conftest.err
39501   rm -f conftest.er1
39502   cat conftest.err >&5
39503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39504   (exit $ac_status); } && {
39505          test -z "$ac_c_werror_flag" ||
39506          test ! -s conftest.err
39507        } && test -s conftest$ac_exeext &&
39508        $as_test_x conftest$ac_exeext; then
39509   eval "$as_ac_var=yes"
39510 else
39511   echo "$as_me: failed program was:" >&5
39512 sed 's/^/| /' conftest.$ac_ext >&5
39513
39514         eval "$as_ac_var=no"
39515 fi
39516
39517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39518       conftest$ac_exeext conftest.$ac_ext
39519 fi
39520 ac_res=`eval echo '${'$as_ac_var'}'`
39521                { echo "$as_me:$LINENO: result: $ac_res" >&5
39522 echo "${ECHO_T}$ac_res" >&6; }
39523 if test `eval echo '${'$as_ac_var'}'` = yes; then
39524   cat >>confdefs.h <<_ACEOF
39525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39526 _ACEOF
39527  break
39528 fi
39529 done
39530
39531
39532     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
39533         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
39534 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
39535         wxUSE_SNGLINST_CHECKER=no
39536     fi
39537 fi
39538
39539
39540
39541 for ac_func in setenv putenv
39542 do
39543 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39544 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39545 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39546 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39547   echo $ECHO_N "(cached) $ECHO_C" >&6
39548 else
39549   cat >conftest.$ac_ext <<_ACEOF
39550 /* confdefs.h.  */
39551 _ACEOF
39552 cat confdefs.h >>conftest.$ac_ext
39553 cat >>conftest.$ac_ext <<_ACEOF
39554 /* end confdefs.h.  */
39555 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39556    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39557 #define $ac_func innocuous_$ac_func
39558
39559 /* System header to define __stub macros and hopefully few prototypes,
39560     which can conflict with char $ac_func (); below.
39561     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39562     <limits.h> exists even on freestanding compilers.  */
39563
39564 #ifdef __STDC__
39565 # include <limits.h>
39566 #else
39567 # include <assert.h>
39568 #endif
39569
39570 #undef $ac_func
39571
39572 /* Override any GCC internal prototype to avoid an error.
39573    Use char because int might match the return type of a GCC
39574    builtin and then its argument prototype would still apply.  */
39575 #ifdef __cplusplus
39576 extern "C"
39577 #endif
39578 char $ac_func ();
39579 /* The GNU C library defines this for functions which it implements
39580     to always fail with ENOSYS.  Some functions are actually named
39581     something starting with __ and the normal name is an alias.  */
39582 #if defined __stub_$ac_func || defined __stub___$ac_func
39583 choke me
39584 #endif
39585
39586 int
39587 main ()
39588 {
39589 return $ac_func ();
39590   ;
39591   return 0;
39592 }
39593 _ACEOF
39594 rm -f conftest.$ac_objext conftest$ac_exeext
39595 if { (ac_try="$ac_link"
39596 case "(($ac_try" in
39597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39598   *) ac_try_echo=$ac_try;;
39599 esac
39600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39601   (eval "$ac_link") 2>conftest.er1
39602   ac_status=$?
39603   grep -v '^ *+' conftest.er1 >conftest.err
39604   rm -f conftest.er1
39605   cat conftest.err >&5
39606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39607   (exit $ac_status); } && {
39608          test -z "$ac_c_werror_flag" ||
39609          test ! -s conftest.err
39610        } && test -s conftest$ac_exeext &&
39611        $as_test_x conftest$ac_exeext; then
39612   eval "$as_ac_var=yes"
39613 else
39614   echo "$as_me: failed program was:" >&5
39615 sed 's/^/| /' conftest.$ac_ext >&5
39616
39617         eval "$as_ac_var=no"
39618 fi
39619
39620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39621       conftest$ac_exeext conftest.$ac_ext
39622 fi
39623 ac_res=`eval echo '${'$as_ac_var'}'`
39624                { echo "$as_me:$LINENO: result: $ac_res" >&5
39625 echo "${ECHO_T}$ac_res" >&6; }
39626 if test `eval echo '${'$as_ac_var'}'` = yes; then
39627   cat >>confdefs.h <<_ACEOF
39628 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39629 _ACEOF
39630  break
39631 fi
39632 done
39633
39634 if test "$ac_cv_func_setenv" = "yes"; then
39635
39636 for ac_func in unsetenv
39637 do
39638 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39639 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39640 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39641 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39642   echo $ECHO_N "(cached) $ECHO_C" >&6
39643 else
39644   cat >conftest.$ac_ext <<_ACEOF
39645 /* confdefs.h.  */
39646 _ACEOF
39647 cat confdefs.h >>conftest.$ac_ext
39648 cat >>conftest.$ac_ext <<_ACEOF
39649 /* end confdefs.h.  */
39650 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39651    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39652 #define $ac_func innocuous_$ac_func
39653
39654 /* System header to define __stub macros and hopefully few prototypes,
39655     which can conflict with char $ac_func (); below.
39656     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39657     <limits.h> exists even on freestanding compilers.  */
39658
39659 #ifdef __STDC__
39660 # include <limits.h>
39661 #else
39662 # include <assert.h>
39663 #endif
39664
39665 #undef $ac_func
39666
39667 /* Override any GCC internal prototype to avoid an error.
39668    Use char because int might match the return type of a GCC
39669    builtin and then its argument prototype would still apply.  */
39670 #ifdef __cplusplus
39671 extern "C"
39672 #endif
39673 char $ac_func ();
39674 /* The GNU C library defines this for functions which it implements
39675     to always fail with ENOSYS.  Some functions are actually named
39676     something starting with __ and the normal name is an alias.  */
39677 #if defined __stub_$ac_func || defined __stub___$ac_func
39678 choke me
39679 #endif
39680
39681 int
39682 main ()
39683 {
39684 return $ac_func ();
39685   ;
39686   return 0;
39687 }
39688 _ACEOF
39689 rm -f conftest.$ac_objext conftest$ac_exeext
39690 if { (ac_try="$ac_link"
39691 case "(($ac_try" in
39692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39693   *) ac_try_echo=$ac_try;;
39694 esac
39695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39696   (eval "$ac_link") 2>conftest.er1
39697   ac_status=$?
39698   grep -v '^ *+' conftest.er1 >conftest.err
39699   rm -f conftest.er1
39700   cat conftest.err >&5
39701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39702   (exit $ac_status); } && {
39703          test -z "$ac_c_werror_flag" ||
39704          test ! -s conftest.err
39705        } && test -s conftest$ac_exeext &&
39706        $as_test_x conftest$ac_exeext; then
39707   eval "$as_ac_var=yes"
39708 else
39709   echo "$as_me: failed program was:" >&5
39710 sed 's/^/| /' conftest.$ac_ext >&5
39711
39712         eval "$as_ac_var=no"
39713 fi
39714
39715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39716       conftest$ac_exeext conftest.$ac_ext
39717 fi
39718 ac_res=`eval echo '${'$as_ac_var'}'`
39719                { echo "$as_me:$LINENO: result: $ac_res" >&5
39720 echo "${ECHO_T}$ac_res" >&6; }
39721 if test `eval echo '${'$as_ac_var'}'` = yes; then
39722   cat >>confdefs.h <<_ACEOF
39723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39724 _ACEOF
39725
39726 fi
39727 done
39728
39729 fi
39730
39731 HAVE_SOME_SLEEP_FUNC=0
39732 if test "$USE_BEOS" = 1; then
39733             cat >>confdefs.h <<\_ACEOF
39734 #define HAVE_SLEEP 1
39735 _ACEOF
39736
39737     HAVE_SOME_SLEEP_FUNC=1
39738 fi
39739
39740 if test "$USE_DARWIN" = 1; then
39741             cat >>confdefs.h <<\_ACEOF
39742 #define HAVE_USLEEP 1
39743 _ACEOF
39744
39745     HAVE_SOME_SLEEP_FUNC=1
39746 fi
39747
39748 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
39749         POSIX4_LINK=
39750
39751 for ac_func in nanosleep
39752 do
39753 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39754 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39755 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39756 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39757   echo $ECHO_N "(cached) $ECHO_C" >&6
39758 else
39759   cat >conftest.$ac_ext <<_ACEOF
39760 /* confdefs.h.  */
39761 _ACEOF
39762 cat confdefs.h >>conftest.$ac_ext
39763 cat >>conftest.$ac_ext <<_ACEOF
39764 /* end confdefs.h.  */
39765 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39767 #define $ac_func innocuous_$ac_func
39768
39769 /* System header to define __stub macros and hopefully few prototypes,
39770     which can conflict with char $ac_func (); below.
39771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39772     <limits.h> exists even on freestanding compilers.  */
39773
39774 #ifdef __STDC__
39775 # include <limits.h>
39776 #else
39777 # include <assert.h>
39778 #endif
39779
39780 #undef $ac_func
39781
39782 /* Override any GCC internal prototype to avoid an error.
39783    Use char because int might match the return type of a GCC
39784    builtin and then its argument prototype would still apply.  */
39785 #ifdef __cplusplus
39786 extern "C"
39787 #endif
39788 char $ac_func ();
39789 /* The GNU C library defines this for functions which it implements
39790     to always fail with ENOSYS.  Some functions are actually named
39791     something starting with __ and the normal name is an alias.  */
39792 #if defined __stub_$ac_func || defined __stub___$ac_func
39793 choke me
39794 #endif
39795
39796 int
39797 main ()
39798 {
39799 return $ac_func ();
39800   ;
39801   return 0;
39802 }
39803 _ACEOF
39804 rm -f conftest.$ac_objext conftest$ac_exeext
39805 if { (ac_try="$ac_link"
39806 case "(($ac_try" in
39807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39808   *) ac_try_echo=$ac_try;;
39809 esac
39810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39811   (eval "$ac_link") 2>conftest.er1
39812   ac_status=$?
39813   grep -v '^ *+' conftest.er1 >conftest.err
39814   rm -f conftest.er1
39815   cat conftest.err >&5
39816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39817   (exit $ac_status); } && {
39818          test -z "$ac_c_werror_flag" ||
39819          test ! -s conftest.err
39820        } && test -s conftest$ac_exeext &&
39821        $as_test_x conftest$ac_exeext; then
39822   eval "$as_ac_var=yes"
39823 else
39824   echo "$as_me: failed program was:" >&5
39825 sed 's/^/| /' conftest.$ac_ext >&5
39826
39827         eval "$as_ac_var=no"
39828 fi
39829
39830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39831       conftest$ac_exeext conftest.$ac_ext
39832 fi
39833 ac_res=`eval echo '${'$as_ac_var'}'`
39834                { echo "$as_me:$LINENO: result: $ac_res" >&5
39835 echo "${ECHO_T}$ac_res" >&6; }
39836 if test `eval echo '${'$as_ac_var'}'` = yes; then
39837   cat >>confdefs.h <<_ACEOF
39838 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39839 _ACEOF
39840  cat >>confdefs.h <<\_ACEOF
39841 #define HAVE_NANOSLEEP 1
39842 _ACEOF
39843
39844 else
39845
39846             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
39847 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
39848 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
39849   echo $ECHO_N "(cached) $ECHO_C" >&6
39850 else
39851   ac_check_lib_save_LIBS=$LIBS
39852 LIBS="-lposix4  $LIBS"
39853 cat >conftest.$ac_ext <<_ACEOF
39854 /* confdefs.h.  */
39855 _ACEOF
39856 cat confdefs.h >>conftest.$ac_ext
39857 cat >>conftest.$ac_ext <<_ACEOF
39858 /* end confdefs.h.  */
39859
39860 /* Override any GCC internal prototype to avoid an error.
39861    Use char because int might match the return type of a GCC
39862    builtin and then its argument prototype would still apply.  */
39863 #ifdef __cplusplus
39864 extern "C"
39865 #endif
39866 char nanosleep ();
39867 int
39868 main ()
39869 {
39870 return nanosleep ();
39871   ;
39872   return 0;
39873 }
39874 _ACEOF
39875 rm -f conftest.$ac_objext conftest$ac_exeext
39876 if { (ac_try="$ac_link"
39877 case "(($ac_try" in
39878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39879   *) ac_try_echo=$ac_try;;
39880 esac
39881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39882   (eval "$ac_link") 2>conftest.er1
39883   ac_status=$?
39884   grep -v '^ *+' conftest.er1 >conftest.err
39885   rm -f conftest.er1
39886   cat conftest.err >&5
39887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39888   (exit $ac_status); } && {
39889          test -z "$ac_c_werror_flag" ||
39890          test ! -s conftest.err
39891        } && test -s conftest$ac_exeext &&
39892        $as_test_x conftest$ac_exeext; then
39893   ac_cv_lib_posix4_nanosleep=yes
39894 else
39895   echo "$as_me: failed program was:" >&5
39896 sed 's/^/| /' conftest.$ac_ext >&5
39897
39898         ac_cv_lib_posix4_nanosleep=no
39899 fi
39900
39901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39902       conftest$ac_exeext conftest.$ac_ext
39903 LIBS=$ac_check_lib_save_LIBS
39904 fi
39905 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
39906 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
39907 if test $ac_cv_lib_posix4_nanosleep = yes; then
39908
39909                     cat >>confdefs.h <<\_ACEOF
39910 #define HAVE_NANOSLEEP 1
39911 _ACEOF
39912
39913                     POSIX4_LINK=" -lposix4"
39914
39915 else
39916
39917
39918   for wx_func in usleep
39919   do
39920     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39921 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39922 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39923   echo $ECHO_N "(cached) $ECHO_C" >&6
39924 else
39925
39926         cat >conftest.$ac_ext <<_ACEOF
39927
39928             /* confdefs.h.  */
39929 _ACEOF
39930 cat confdefs.h >>conftest.$ac_ext
39931 cat >>conftest.$ac_ext <<_ACEOF
39932 /* end confdefs.h.  */
39933
39934
39935                 $ac_includes_default
39936
39937 int
39938 main ()
39939 {
39940
39941                 #ifndef $wx_func
39942                   &$wx_func;
39943                 #endif
39944
39945
39946   ;
39947   return 0;
39948 }
39949
39950 _ACEOF
39951 rm -f conftest.$ac_objext conftest$ac_exeext
39952 if { (ac_try="$ac_link"
39953 case "(($ac_try" in
39954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39955   *) ac_try_echo=$ac_try;;
39956 esac
39957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39958   (eval "$ac_link") 2>conftest.er1
39959   ac_status=$?
39960   grep -v '^ *+' conftest.er1 >conftest.err
39961   rm -f conftest.er1
39962   cat conftest.err >&5
39963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964   (exit $ac_status); } && {
39965          test -z "$ac_c_werror_flag" ||
39966          test ! -s conftest.err
39967        } && test -s conftest$ac_exeext &&
39968        $as_test_x conftest$ac_exeext; then
39969   eval wx_cv_func_$wx_func=yes
39970 else
39971   echo "$as_me: failed program was:" >&5
39972 sed 's/^/| /' conftest.$ac_ext >&5
39973
39974         eval wx_cv_func_$wx_func=no
39975 fi
39976
39977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39978       conftest$ac_exeext conftest.$ac_ext
39979
39980 fi
39981 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39982                { echo "$as_me:$LINENO: result: $ac_res" >&5
39983 echo "${ECHO_T}$ac_res" >&6; }
39984
39985     if eval test \$wx_cv_func_$wx_func = yes
39986     then
39987       cat >>confdefs.h <<_ACEOF
39988 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
39989 _ACEOF
39990
39991
39992     else
39993       :
39994       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
39995 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
39996
39997     fi
39998   done
39999
40000
40001
40002 fi
40003
40004
40005
40006 fi
40007 done
40008
40009 fi
40010
40011
40012   for wx_func in uname
40013   do
40014     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40015 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40016 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40017   echo $ECHO_N "(cached) $ECHO_C" >&6
40018 else
40019
40020         cat >conftest.$ac_ext <<_ACEOF
40021
40022             /* confdefs.h.  */
40023 _ACEOF
40024 cat confdefs.h >>conftest.$ac_ext
40025 cat >>conftest.$ac_ext <<_ACEOF
40026 /* end confdefs.h.  */
40027
40028                 #include <sys/utsname.h>
40029                 $ac_includes_default
40030
40031 int
40032 main ()
40033 {
40034
40035                 #ifndef $wx_func
40036                   &$wx_func;
40037                 #endif
40038
40039
40040   ;
40041   return 0;
40042 }
40043
40044 _ACEOF
40045 rm -f conftest.$ac_objext conftest$ac_exeext
40046 if { (ac_try="$ac_link"
40047 case "(($ac_try" in
40048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40049   *) ac_try_echo=$ac_try;;
40050 esac
40051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40052   (eval "$ac_link") 2>conftest.er1
40053   ac_status=$?
40054   grep -v '^ *+' conftest.er1 >conftest.err
40055   rm -f conftest.er1
40056   cat conftest.err >&5
40057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40058   (exit $ac_status); } && {
40059          test -z "$ac_c_werror_flag" ||
40060          test ! -s conftest.err
40061        } && test -s conftest$ac_exeext &&
40062        $as_test_x conftest$ac_exeext; then
40063   eval wx_cv_func_$wx_func=yes
40064 else
40065   echo "$as_me: failed program was:" >&5
40066 sed 's/^/| /' conftest.$ac_ext >&5
40067
40068         eval wx_cv_func_$wx_func=no
40069 fi
40070
40071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40072       conftest$ac_exeext conftest.$ac_ext
40073
40074 fi
40075 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40076                { echo "$as_me:$LINENO: result: $ac_res" >&5
40077 echo "${ECHO_T}$ac_res" >&6; }
40078
40079     if eval test \$wx_cv_func_$wx_func = yes
40080     then
40081       cat >>confdefs.h <<_ACEOF
40082 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40083 _ACEOF
40084
40085
40086     else
40087       :
40088
40089     fi
40090   done
40091
40092 if test "$wx_cv_func_uname" != yes; then
40093
40094   for wx_func in gethostname
40095   do
40096     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40097 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40098 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40099   echo $ECHO_N "(cached) $ECHO_C" >&6
40100 else
40101
40102         cat >conftest.$ac_ext <<_ACEOF
40103
40104             /* confdefs.h.  */
40105 _ACEOF
40106 cat confdefs.h >>conftest.$ac_ext
40107 cat >>conftest.$ac_ext <<_ACEOF
40108 /* end confdefs.h.  */
40109
40110
40111                 $ac_includes_default
40112
40113 int
40114 main ()
40115 {
40116
40117                 #ifndef $wx_func
40118                   &$wx_func;
40119                 #endif
40120
40121
40122   ;
40123   return 0;
40124 }
40125
40126 _ACEOF
40127 rm -f conftest.$ac_objext conftest$ac_exeext
40128 if { (ac_try="$ac_link"
40129 case "(($ac_try" in
40130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40131   *) ac_try_echo=$ac_try;;
40132 esac
40133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40134   (eval "$ac_link") 2>conftest.er1
40135   ac_status=$?
40136   grep -v '^ *+' conftest.er1 >conftest.err
40137   rm -f conftest.er1
40138   cat conftest.err >&5
40139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40140   (exit $ac_status); } && {
40141          test -z "$ac_c_werror_flag" ||
40142          test ! -s conftest.err
40143        } && test -s conftest$ac_exeext &&
40144        $as_test_x conftest$ac_exeext; then
40145   eval wx_cv_func_$wx_func=yes
40146 else
40147   echo "$as_me: failed program was:" >&5
40148 sed 's/^/| /' conftest.$ac_ext >&5
40149
40150         eval wx_cv_func_$wx_func=no
40151 fi
40152
40153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40154       conftest$ac_exeext conftest.$ac_ext
40155
40156 fi
40157 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40158                { echo "$as_me:$LINENO: result: $ac_res" >&5
40159 echo "${ECHO_T}$ac_res" >&6; }
40160
40161     if eval test \$wx_cv_func_$wx_func = yes
40162     then
40163       cat >>confdefs.h <<_ACEOF
40164 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40165 _ACEOF
40166
40167
40168     else
40169       :
40170
40171     fi
40172   done
40173
40174 fi
40175
40176
40177   for wx_func in strtok_r
40178   do
40179     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40180 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40181 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40182   echo $ECHO_N "(cached) $ECHO_C" >&6
40183 else
40184
40185         cat >conftest.$ac_ext <<_ACEOF
40186
40187             /* confdefs.h.  */
40188 _ACEOF
40189 cat confdefs.h >>conftest.$ac_ext
40190 cat >>conftest.$ac_ext <<_ACEOF
40191 /* end confdefs.h.  */
40192
40193                 #define _REENTRANT
40194                 $ac_includes_default
40195
40196 int
40197 main ()
40198 {
40199
40200                 #ifndef $wx_func
40201                   &$wx_func;
40202                 #endif
40203
40204
40205   ;
40206   return 0;
40207 }
40208
40209 _ACEOF
40210 rm -f conftest.$ac_objext conftest$ac_exeext
40211 if { (ac_try="$ac_link"
40212 case "(($ac_try" in
40213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40214   *) ac_try_echo=$ac_try;;
40215 esac
40216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40217   (eval "$ac_link") 2>conftest.er1
40218   ac_status=$?
40219   grep -v '^ *+' conftest.er1 >conftest.err
40220   rm -f conftest.er1
40221   cat conftest.err >&5
40222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40223   (exit $ac_status); } && {
40224          test -z "$ac_c_werror_flag" ||
40225          test ! -s conftest.err
40226        } && test -s conftest$ac_exeext &&
40227        $as_test_x conftest$ac_exeext; then
40228   eval wx_cv_func_$wx_func=yes
40229 else
40230   echo "$as_me: failed program was:" >&5
40231 sed 's/^/| /' conftest.$ac_ext >&5
40232
40233         eval wx_cv_func_$wx_func=no
40234 fi
40235
40236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40237       conftest$ac_exeext conftest.$ac_ext
40238
40239 fi
40240 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40241                { echo "$as_me:$LINENO: result: $ac_res" >&5
40242 echo "${ECHO_T}$ac_res" >&6; }
40243
40244     if eval test \$wx_cv_func_$wx_func = yes
40245     then
40246       cat >>confdefs.h <<_ACEOF
40247 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40248 _ACEOF
40249
40250
40251     else
40252       :
40253
40254     fi
40255   done
40256
40257
40258 INET_LINK=
40259
40260 for ac_func in inet_addr
40261 do
40262 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40263 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40264 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40266   echo $ECHO_N "(cached) $ECHO_C" >&6
40267 else
40268   cat >conftest.$ac_ext <<_ACEOF
40269 /* confdefs.h.  */
40270 _ACEOF
40271 cat confdefs.h >>conftest.$ac_ext
40272 cat >>conftest.$ac_ext <<_ACEOF
40273 /* end confdefs.h.  */
40274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40276 #define $ac_func innocuous_$ac_func
40277
40278 /* System header to define __stub macros and hopefully few prototypes,
40279     which can conflict with char $ac_func (); below.
40280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40281     <limits.h> exists even on freestanding compilers.  */
40282
40283 #ifdef __STDC__
40284 # include <limits.h>
40285 #else
40286 # include <assert.h>
40287 #endif
40288
40289 #undef $ac_func
40290
40291 /* Override any GCC internal prototype to avoid an error.
40292    Use char because int might match the return type of a GCC
40293    builtin and then its argument prototype would still apply.  */
40294 #ifdef __cplusplus
40295 extern "C"
40296 #endif
40297 char $ac_func ();
40298 /* The GNU C library defines this for functions which it implements
40299     to always fail with ENOSYS.  Some functions are actually named
40300     something starting with __ and the normal name is an alias.  */
40301 #if defined __stub_$ac_func || defined __stub___$ac_func
40302 choke me
40303 #endif
40304
40305 int
40306 main ()
40307 {
40308 return $ac_func ();
40309   ;
40310   return 0;
40311 }
40312 _ACEOF
40313 rm -f conftest.$ac_objext conftest$ac_exeext
40314 if { (ac_try="$ac_link"
40315 case "(($ac_try" in
40316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40317   *) ac_try_echo=$ac_try;;
40318 esac
40319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40320   (eval "$ac_link") 2>conftest.er1
40321   ac_status=$?
40322   grep -v '^ *+' conftest.er1 >conftest.err
40323   rm -f conftest.er1
40324   cat conftest.err >&5
40325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40326   (exit $ac_status); } && {
40327          test -z "$ac_c_werror_flag" ||
40328          test ! -s conftest.err
40329        } && test -s conftest$ac_exeext &&
40330        $as_test_x conftest$ac_exeext; then
40331   eval "$as_ac_var=yes"
40332 else
40333   echo "$as_me: failed program was:" >&5
40334 sed 's/^/| /' conftest.$ac_ext >&5
40335
40336         eval "$as_ac_var=no"
40337 fi
40338
40339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40340       conftest$ac_exeext conftest.$ac_ext
40341 fi
40342 ac_res=`eval echo '${'$as_ac_var'}'`
40343                { echo "$as_me:$LINENO: result: $ac_res" >&5
40344 echo "${ECHO_T}$ac_res" >&6; }
40345 if test `eval echo '${'$as_ac_var'}'` = yes; then
40346   cat >>confdefs.h <<_ACEOF
40347 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40348 _ACEOF
40349  cat >>confdefs.h <<\_ACEOF
40350 #define HAVE_INET_ADDR 1
40351 _ACEOF
40352
40353 else
40354
40355         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
40356 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
40357 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
40358   echo $ECHO_N "(cached) $ECHO_C" >&6
40359 else
40360   ac_check_lib_save_LIBS=$LIBS
40361 LIBS="-lnsl  $LIBS"
40362 cat >conftest.$ac_ext <<_ACEOF
40363 /* confdefs.h.  */
40364 _ACEOF
40365 cat confdefs.h >>conftest.$ac_ext
40366 cat >>conftest.$ac_ext <<_ACEOF
40367 /* end confdefs.h.  */
40368
40369 /* Override any GCC internal prototype to avoid an error.
40370    Use char because int might match the return type of a GCC
40371    builtin and then its argument prototype would still apply.  */
40372 #ifdef __cplusplus
40373 extern "C"
40374 #endif
40375 char inet_addr ();
40376 int
40377 main ()
40378 {
40379 return inet_addr ();
40380   ;
40381   return 0;
40382 }
40383 _ACEOF
40384 rm -f conftest.$ac_objext conftest$ac_exeext
40385 if { (ac_try="$ac_link"
40386 case "(($ac_try" in
40387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40388   *) ac_try_echo=$ac_try;;
40389 esac
40390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40391   (eval "$ac_link") 2>conftest.er1
40392   ac_status=$?
40393   grep -v '^ *+' conftest.er1 >conftest.err
40394   rm -f conftest.er1
40395   cat conftest.err >&5
40396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40397   (exit $ac_status); } && {
40398          test -z "$ac_c_werror_flag" ||
40399          test ! -s conftest.err
40400        } && test -s conftest$ac_exeext &&
40401        $as_test_x conftest$ac_exeext; then
40402   ac_cv_lib_nsl_inet_addr=yes
40403 else
40404   echo "$as_me: failed program was:" >&5
40405 sed 's/^/| /' conftest.$ac_ext >&5
40406
40407         ac_cv_lib_nsl_inet_addr=no
40408 fi
40409
40410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40411       conftest$ac_exeext conftest.$ac_ext
40412 LIBS=$ac_check_lib_save_LIBS
40413 fi
40414 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
40415 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
40416 if test $ac_cv_lib_nsl_inet_addr = yes; then
40417   INET_LINK="nsl"
40418 else
40419
40420                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
40421 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
40422 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
40423   echo $ECHO_N "(cached) $ECHO_C" >&6
40424 else
40425   ac_check_lib_save_LIBS=$LIBS
40426 LIBS="-lresolv  $LIBS"
40427 cat >conftest.$ac_ext <<_ACEOF
40428 /* confdefs.h.  */
40429 _ACEOF
40430 cat confdefs.h >>conftest.$ac_ext
40431 cat >>conftest.$ac_ext <<_ACEOF
40432 /* end confdefs.h.  */
40433
40434 /* Override any GCC internal prototype to avoid an error.
40435    Use char because int might match the return type of a GCC
40436    builtin and then its argument prototype would still apply.  */
40437 #ifdef __cplusplus
40438 extern "C"
40439 #endif
40440 char inet_addr ();
40441 int
40442 main ()
40443 {
40444 return inet_addr ();
40445   ;
40446   return 0;
40447 }
40448 _ACEOF
40449 rm -f conftest.$ac_objext conftest$ac_exeext
40450 if { (ac_try="$ac_link"
40451 case "(($ac_try" in
40452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40453   *) ac_try_echo=$ac_try;;
40454 esac
40455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40456   (eval "$ac_link") 2>conftest.er1
40457   ac_status=$?
40458   grep -v '^ *+' conftest.er1 >conftest.err
40459   rm -f conftest.er1
40460   cat conftest.err >&5
40461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40462   (exit $ac_status); } && {
40463          test -z "$ac_c_werror_flag" ||
40464          test ! -s conftest.err
40465        } && test -s conftest$ac_exeext &&
40466        $as_test_x conftest$ac_exeext; then
40467   ac_cv_lib_resolv_inet_addr=yes
40468 else
40469   echo "$as_me: failed program was:" >&5
40470 sed 's/^/| /' conftest.$ac_ext >&5
40471
40472         ac_cv_lib_resolv_inet_addr=no
40473 fi
40474
40475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40476       conftest$ac_exeext conftest.$ac_ext
40477 LIBS=$ac_check_lib_save_LIBS
40478 fi
40479 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
40480 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
40481 if test $ac_cv_lib_resolv_inet_addr = yes; then
40482   INET_LINK="resolv"
40483 else
40484
40485                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
40486 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
40487 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
40488   echo $ECHO_N "(cached) $ECHO_C" >&6
40489 else
40490   ac_check_lib_save_LIBS=$LIBS
40491 LIBS="-lsocket  $LIBS"
40492 cat >conftest.$ac_ext <<_ACEOF
40493 /* confdefs.h.  */
40494 _ACEOF
40495 cat confdefs.h >>conftest.$ac_ext
40496 cat >>conftest.$ac_ext <<_ACEOF
40497 /* end confdefs.h.  */
40498
40499 /* Override any GCC internal prototype to avoid an error.
40500    Use char because int might match the return type of a GCC
40501    builtin and then its argument prototype would still apply.  */
40502 #ifdef __cplusplus
40503 extern "C"
40504 #endif
40505 char inet_addr ();
40506 int
40507 main ()
40508 {
40509 return inet_addr ();
40510   ;
40511   return 0;
40512 }
40513 _ACEOF
40514 rm -f conftest.$ac_objext conftest$ac_exeext
40515 if { (ac_try="$ac_link"
40516 case "(($ac_try" in
40517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40518   *) ac_try_echo=$ac_try;;
40519 esac
40520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40521   (eval "$ac_link") 2>conftest.er1
40522   ac_status=$?
40523   grep -v '^ *+' conftest.er1 >conftest.err
40524   rm -f conftest.er1
40525   cat conftest.err >&5
40526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40527   (exit $ac_status); } && {
40528          test -z "$ac_c_werror_flag" ||
40529          test ! -s conftest.err
40530        } && test -s conftest$ac_exeext &&
40531        $as_test_x conftest$ac_exeext; then
40532   ac_cv_lib_socket_inet_addr=yes
40533 else
40534   echo "$as_me: failed program was:" >&5
40535 sed 's/^/| /' conftest.$ac_ext >&5
40536
40537         ac_cv_lib_socket_inet_addr=no
40538 fi
40539
40540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40541       conftest$ac_exeext conftest.$ac_ext
40542 LIBS=$ac_check_lib_save_LIBS
40543 fi
40544 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
40545 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
40546 if test $ac_cv_lib_socket_inet_addr = yes; then
40547   INET_LINK="socket"
40548
40549 fi
40550
40551
40552
40553 fi
40554
40555
40556
40557 fi
40558
40559
40560
40561 fi
40562 done
40563
40564
40565
40566 for ac_func in inet_aton
40567 do
40568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40572   echo $ECHO_N "(cached) $ECHO_C" >&6
40573 else
40574   cat >conftest.$ac_ext <<_ACEOF
40575 /* confdefs.h.  */
40576 _ACEOF
40577 cat confdefs.h >>conftest.$ac_ext
40578 cat >>conftest.$ac_ext <<_ACEOF
40579 /* end confdefs.h.  */
40580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40582 #define $ac_func innocuous_$ac_func
40583
40584 /* System header to define __stub macros and hopefully few prototypes,
40585     which can conflict with char $ac_func (); below.
40586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40587     <limits.h> exists even on freestanding compilers.  */
40588
40589 #ifdef __STDC__
40590 # include <limits.h>
40591 #else
40592 # include <assert.h>
40593 #endif
40594
40595 #undef $ac_func
40596
40597 /* Override any GCC internal prototype to avoid an error.
40598    Use char because int might match the return type of a GCC
40599    builtin and then its argument prototype would still apply.  */
40600 #ifdef __cplusplus
40601 extern "C"
40602 #endif
40603 char $ac_func ();
40604 /* The GNU C library defines this for functions which it implements
40605     to always fail with ENOSYS.  Some functions are actually named
40606     something starting with __ and the normal name is an alias.  */
40607 #if defined __stub_$ac_func || defined __stub___$ac_func
40608 choke me
40609 #endif
40610
40611 int
40612 main ()
40613 {
40614 return $ac_func ();
40615   ;
40616   return 0;
40617 }
40618 _ACEOF
40619 rm -f conftest.$ac_objext conftest$ac_exeext
40620 if { (ac_try="$ac_link"
40621 case "(($ac_try" in
40622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40623   *) ac_try_echo=$ac_try;;
40624 esac
40625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40626   (eval "$ac_link") 2>conftest.er1
40627   ac_status=$?
40628   grep -v '^ *+' conftest.er1 >conftest.err
40629   rm -f conftest.er1
40630   cat conftest.err >&5
40631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40632   (exit $ac_status); } && {
40633          test -z "$ac_c_werror_flag" ||
40634          test ! -s conftest.err
40635        } && test -s conftest$ac_exeext &&
40636        $as_test_x conftest$ac_exeext; then
40637   eval "$as_ac_var=yes"
40638 else
40639   echo "$as_me: failed program was:" >&5
40640 sed 's/^/| /' conftest.$ac_ext >&5
40641
40642         eval "$as_ac_var=no"
40643 fi
40644
40645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40646       conftest$ac_exeext conftest.$ac_ext
40647 fi
40648 ac_res=`eval echo '${'$as_ac_var'}'`
40649                { echo "$as_me:$LINENO: result: $ac_res" >&5
40650 echo "${ECHO_T}$ac_res" >&6; }
40651 if test `eval echo '${'$as_ac_var'}'` = yes; then
40652   cat >>confdefs.h <<_ACEOF
40653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40654 _ACEOF
40655  cat >>confdefs.h <<\_ACEOF
40656 #define HAVE_INET_ATON 1
40657 _ACEOF
40658
40659 else
40660
40661                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
40662 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
40663 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
40664 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
40665   echo $ECHO_N "(cached) $ECHO_C" >&6
40666 else
40667   ac_check_lib_save_LIBS=$LIBS
40668 LIBS="-l$INET_LINK  $LIBS"
40669 cat >conftest.$ac_ext <<_ACEOF
40670 /* confdefs.h.  */
40671 _ACEOF
40672 cat confdefs.h >>conftest.$ac_ext
40673 cat >>conftest.$ac_ext <<_ACEOF
40674 /* end confdefs.h.  */
40675
40676 /* Override any GCC internal prototype to avoid an error.
40677    Use char because int might match the return type of a GCC
40678    builtin and then its argument prototype would still apply.  */
40679 #ifdef __cplusplus
40680 extern "C"
40681 #endif
40682 char inet_aton ();
40683 int
40684 main ()
40685 {
40686 return inet_aton ();
40687   ;
40688   return 0;
40689 }
40690 _ACEOF
40691 rm -f conftest.$ac_objext conftest$ac_exeext
40692 if { (ac_try="$ac_link"
40693 case "(($ac_try" in
40694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40695   *) ac_try_echo=$ac_try;;
40696 esac
40697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40698   (eval "$ac_link") 2>conftest.er1
40699   ac_status=$?
40700   grep -v '^ *+' conftest.er1 >conftest.err
40701   rm -f conftest.er1
40702   cat conftest.err >&5
40703   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40704   (exit $ac_status); } && {
40705          test -z "$ac_c_werror_flag" ||
40706          test ! -s conftest.err
40707        } && test -s conftest$ac_exeext &&
40708        $as_test_x conftest$ac_exeext; then
40709   eval "$as_ac_Lib=yes"
40710 else
40711   echo "$as_me: failed program was:" >&5
40712 sed 's/^/| /' conftest.$ac_ext >&5
40713
40714         eval "$as_ac_Lib=no"
40715 fi
40716
40717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40718       conftest$ac_exeext conftest.$ac_ext
40719 LIBS=$ac_check_lib_save_LIBS
40720 fi
40721 ac_res=`eval echo '${'$as_ac_Lib'}'`
40722                { echo "$as_me:$LINENO: result: $ac_res" >&5
40723 echo "${ECHO_T}$ac_res" >&6; }
40724 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
40725   cat >>confdefs.h <<\_ACEOF
40726 #define HAVE_INET_ATON 1
40727 _ACEOF
40728
40729 fi
40730
40731
40732 fi
40733 done
40734
40735
40736 if test "x$INET_LINK" != "x"; then
40737     cat >>confdefs.h <<\_ACEOF
40738 #define HAVE_INET_ADDR 1
40739 _ACEOF
40740
40741     INET_LINK=" -l$INET_LINK"
40742 fi
40743
40744
40745   for wx_func in fdopen
40746   do
40747     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40748 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40749 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40750   echo $ECHO_N "(cached) $ECHO_C" >&6
40751 else
40752
40753         cat >conftest.$ac_ext <<_ACEOF
40754
40755             /* confdefs.h.  */
40756 _ACEOF
40757 cat confdefs.h >>conftest.$ac_ext
40758 cat >>conftest.$ac_ext <<_ACEOF
40759 /* end confdefs.h.  */
40760
40761
40762                 $ac_includes_default
40763
40764 int
40765 main ()
40766 {
40767
40768                 #ifndef $wx_func
40769                   &$wx_func;
40770                 #endif
40771
40772
40773   ;
40774   return 0;
40775 }
40776
40777 _ACEOF
40778 rm -f conftest.$ac_objext conftest$ac_exeext
40779 if { (ac_try="$ac_link"
40780 case "(($ac_try" in
40781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40782   *) ac_try_echo=$ac_try;;
40783 esac
40784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40785   (eval "$ac_link") 2>conftest.er1
40786   ac_status=$?
40787   grep -v '^ *+' conftest.er1 >conftest.err
40788   rm -f conftest.er1
40789   cat conftest.err >&5
40790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40791   (exit $ac_status); } && {
40792          test -z "$ac_c_werror_flag" ||
40793          test ! -s conftest.err
40794        } && test -s conftest$ac_exeext &&
40795        $as_test_x conftest$ac_exeext; then
40796   eval wx_cv_func_$wx_func=yes
40797 else
40798   echo "$as_me: failed program was:" >&5
40799 sed 's/^/| /' conftest.$ac_ext >&5
40800
40801         eval wx_cv_func_$wx_func=no
40802 fi
40803
40804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40805       conftest$ac_exeext conftest.$ac_ext
40806
40807 fi
40808 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40809                { echo "$as_me:$LINENO: result: $ac_res" >&5
40810 echo "${ECHO_T}$ac_res" >&6; }
40811
40812     if eval test \$wx_cv_func_$wx_func = yes
40813     then
40814       cat >>confdefs.h <<_ACEOF
40815 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40816 _ACEOF
40817
40818
40819     else
40820       :
40821
40822     fi
40823   done
40824
40825
40826 if test "$wxUSE_TARSTREAM" = "yes"; then
40827
40828   for wx_func in sysconf
40829   do
40830     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40831 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40832 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40833   echo $ECHO_N "(cached) $ECHO_C" >&6
40834 else
40835
40836         cat >conftest.$ac_ext <<_ACEOF
40837
40838             /* confdefs.h.  */
40839 _ACEOF
40840 cat confdefs.h >>conftest.$ac_ext
40841 cat >>conftest.$ac_ext <<_ACEOF
40842 /* end confdefs.h.  */
40843
40844
40845                 $ac_includes_default
40846
40847 int
40848 main ()
40849 {
40850
40851                 #ifndef $wx_func
40852                   &$wx_func;
40853                 #endif
40854
40855
40856   ;
40857   return 0;
40858 }
40859
40860 _ACEOF
40861 rm -f conftest.$ac_objext conftest$ac_exeext
40862 if { (ac_try="$ac_link"
40863 case "(($ac_try" in
40864   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40865   *) ac_try_echo=$ac_try;;
40866 esac
40867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40868   (eval "$ac_link") 2>conftest.er1
40869   ac_status=$?
40870   grep -v '^ *+' conftest.er1 >conftest.err
40871   rm -f conftest.er1
40872   cat conftest.err >&5
40873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40874   (exit $ac_status); } && {
40875          test -z "$ac_c_werror_flag" ||
40876          test ! -s conftest.err
40877        } && test -s conftest$ac_exeext &&
40878        $as_test_x conftest$ac_exeext; then
40879   eval wx_cv_func_$wx_func=yes
40880 else
40881   echo "$as_me: failed program was:" >&5
40882 sed 's/^/| /' conftest.$ac_ext >&5
40883
40884         eval wx_cv_func_$wx_func=no
40885 fi
40886
40887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40888       conftest$ac_exeext conftest.$ac_ext
40889
40890 fi
40891 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40892                { echo "$as_me:$LINENO: result: $ac_res" >&5
40893 echo "${ECHO_T}$ac_res" >&6; }
40894
40895     if eval test \$wx_cv_func_$wx_func = yes
40896     then
40897       cat >>confdefs.h <<_ACEOF
40898 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40899 _ACEOF
40900
40901
40902     else
40903       :
40904
40905     fi
40906   done
40907
40908
40909
40910   for wx_func in getpwuid_r
40911   do
40912     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40913 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40914 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40915   echo $ECHO_N "(cached) $ECHO_C" >&6
40916 else
40917
40918         cat >conftest.$ac_ext <<_ACEOF
40919
40920             /* confdefs.h.  */
40921 _ACEOF
40922 cat confdefs.h >>conftest.$ac_ext
40923 cat >>conftest.$ac_ext <<_ACEOF
40924 /* end confdefs.h.  */
40925
40926
40927                     #define _REENTRANT
40928                     #include <pwd.h>
40929
40930                 $ac_includes_default
40931
40932 int
40933 main ()
40934 {
40935
40936                 #ifndef $wx_func
40937                   &$wx_func;
40938                 #endif
40939
40940                     struct passwd pw, *ppw;
40941                     char buf[1024];
40942                     getpwuid_r(0, &pw, buf, sizeof(buf), &ppw)
40943
40944
40945   ;
40946   return 0;
40947 }
40948
40949 _ACEOF
40950 rm -f conftest.$ac_objext conftest$ac_exeext
40951 if { (ac_try="$ac_link"
40952 case "(($ac_try" in
40953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40954   *) ac_try_echo=$ac_try;;
40955 esac
40956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40957   (eval "$ac_link") 2>conftest.er1
40958   ac_status=$?
40959   grep -v '^ *+' conftest.er1 >conftest.err
40960   rm -f conftest.er1
40961   cat conftest.err >&5
40962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40963   (exit $ac_status); } && {
40964          test -z "$ac_c_werror_flag" ||
40965          test ! -s conftest.err
40966        } && test -s conftest$ac_exeext &&
40967        $as_test_x conftest$ac_exeext; then
40968   eval wx_cv_func_$wx_func=yes
40969 else
40970   echo "$as_me: failed program was:" >&5
40971 sed 's/^/| /' conftest.$ac_ext >&5
40972
40973         eval wx_cv_func_$wx_func=no
40974 fi
40975
40976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40977       conftest$ac_exeext conftest.$ac_ext
40978
40979 fi
40980 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40981                { echo "$as_me:$LINENO: result: $ac_res" >&5
40982 echo "${ECHO_T}$ac_res" >&6; }
40983
40984     if eval test \$wx_cv_func_$wx_func = yes
40985     then
40986       cat >>confdefs.h <<_ACEOF
40987 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
40988 _ACEOF
40989
40990
40991     else
40992       :
40993
40994     fi
40995   done
40996
40997
40998
40999   for wx_func in getgrgid_r
41000   do
41001     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41002 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41003 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41004   echo $ECHO_N "(cached) $ECHO_C" >&6
41005 else
41006
41007         cat >conftest.$ac_ext <<_ACEOF
41008
41009             /* confdefs.h.  */
41010 _ACEOF
41011 cat confdefs.h >>conftest.$ac_ext
41012 cat >>conftest.$ac_ext <<_ACEOF
41013 /* end confdefs.h.  */
41014
41015
41016                     #define _REENTRANT
41017                     #include <grp.h>
41018
41019                 $ac_includes_default
41020
41021 int
41022 main ()
41023 {
41024
41025                 #ifndef $wx_func
41026                   &$wx_func;
41027                 #endif
41028
41029                     struct group grp, *pgrp;
41030                     char buf[1024];
41031                     getgrgid_r(0, &grp, buf, sizeof(buf), &pgrp)
41032
41033
41034   ;
41035   return 0;
41036 }
41037
41038 _ACEOF
41039 rm -f conftest.$ac_objext conftest$ac_exeext
41040 if { (ac_try="$ac_link"
41041 case "(($ac_try" in
41042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41043   *) ac_try_echo=$ac_try;;
41044 esac
41045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41046   (eval "$ac_link") 2>conftest.er1
41047   ac_status=$?
41048   grep -v '^ *+' conftest.er1 >conftest.err
41049   rm -f conftest.er1
41050   cat conftest.err >&5
41051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41052   (exit $ac_status); } && {
41053          test -z "$ac_c_werror_flag" ||
41054          test ! -s conftest.err
41055        } && test -s conftest$ac_exeext &&
41056        $as_test_x conftest$ac_exeext; then
41057   eval wx_cv_func_$wx_func=yes
41058 else
41059   echo "$as_me: failed program was:" >&5
41060 sed 's/^/| /' conftest.$ac_ext >&5
41061
41062         eval wx_cv_func_$wx_func=no
41063 fi
41064
41065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41066       conftest$ac_exeext conftest.$ac_ext
41067
41068 fi
41069 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41070                { echo "$as_me:$LINENO: result: $ac_res" >&5
41071 echo "${ECHO_T}$ac_res" >&6; }
41072
41073     if eval test \$wx_cv_func_$wx_func = yes
41074     then
41075       cat >>confdefs.h <<_ACEOF
41076 #define `echo "HAVE_$wx_func" | $as_tr_cpp` 1
41077 _ACEOF
41078
41079
41080     else
41081       :
41082
41083     fi
41084   done
41085
41086 fi
41087
41088 fi
41089
41090
41091
41092 cat >confcache <<\_ACEOF
41093 # This file is a shell script that caches the results of configure
41094 # tests run on this system so they can be shared between configure
41095 # scripts and configure runs, see configure's option --config-cache.
41096 # It is not useful on other systems.  If it contains results you don't
41097 # want to keep, you may remove or edit it.
41098 #
41099 # config.status only pays attention to the cache file if you give it
41100 # the --recheck option to rerun configure.
41101 #
41102 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41103 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41104 # following values.
41105
41106 _ACEOF
41107
41108 # The following way of writing the cache mishandles newlines in values,
41109 # but we know of no workaround that is simple, portable, and efficient.
41110 # So, we kill variables containing newlines.
41111 # Ultrix sh set writes to stderr and can't be redirected directly,
41112 # and sets the high bit in the cache file unless we assign to the vars.
41113 (
41114   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41115     eval ac_val=\$$ac_var
41116     case $ac_val in #(
41117     *${as_nl}*)
41118       case $ac_var in #(
41119       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41120 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41121       esac
41122       case $ac_var in #(
41123       _ | IFS | as_nl) ;; #(
41124       *) $as_unset $ac_var ;;
41125       esac ;;
41126     esac
41127   done
41128
41129   (set) 2>&1 |
41130     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41131     *${as_nl}ac_space=\ *)
41132       # `set' does not quote correctly, so add quotes (double-quote
41133       # substitution turns \\\\ into \\, and sed turns \\ into \).
41134       sed -n \
41135         "s/'/'\\\\''/g;
41136           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41137       ;; #(
41138     *)
41139       # `set' quotes correctly as required by POSIX, so do not add quotes.
41140       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41141       ;;
41142     esac |
41143     sort
41144 ) |
41145   sed '
41146      /^ac_cv_env_/b end
41147      t clear
41148      :clear
41149      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41150      t end
41151      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41152      :end' >>confcache
41153 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41154   if test -w "$cache_file"; then
41155     test "x$cache_file" != "x/dev/null" &&
41156       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41157 echo "$as_me: updating cache $cache_file" >&6;}
41158     cat confcache >$cache_file
41159   else
41160     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41161 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41162   fi
41163 fi
41164 rm -f confcache
41165
41166
41167 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41168
41169
41170     THREADS_LINK=
41171     THREADS_CFLAGS=
41172
41173     if test "$wxUSE_THREADS" = "yes" ; then
41174         if test "$USE_BEOS" = 1; then
41175             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41176 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41177             wxUSE_THREADS="no"
41178         fi
41179     fi
41180
41181     if test "$wxUSE_THREADS" = "yes" ; then
41182
41183
41184                                 THREAD_OPTS="-pthread"
41185         if test "x$SUNCXX" = xyes; then
41186             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41187         fi
41188
41189         case "${host}" in
41190           *-*-solaris2* | *-*-sunos4* )
41191                 if test "x$GCC" = "xyes"; then
41192                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41193                 fi
41194                 ;;
41195           *-*-freebsd*)
41196                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41197                 ;;
41198           *-*-darwin* | *-*-cygwin* )
41199                                                 THREAD_OPTS=""
41200                 ;;
41201           *-*-aix*)
41202                                 THREAD_OPTS="pthreads"
41203                 ;;
41204           *-hp-hpux* )
41205                 if test "x$GCC" = "xyes"; then
41206                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41207                         THREAD_OPTS=""
41208                 else
41209                                                             THREAD_OPTS="-mt"
41210                 fi
41211                 ;;
41212
41213           *-*-irix* )
41214                                                                 if test "x$GCC" = "xyes"; then
41215                     THREAD_OPTS=""
41216                 fi
41217                 ;;
41218
41219           *-*-*UnixWare*)
41220                                 if test "x$GCC" != "xyes"; then
41221                     THREAD_OPTS="-Ethread"
41222                 fi
41223                 ;;
41224         esac
41225
41226                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41227
41228                 THREADS_OK=no
41229         for flag in $THREAD_OPTS; do
41230             case $flag in
41231                 none)
41232                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41233 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41234                     ;;
41235
41236                 -*)
41237                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41238 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41239                     THREADS_CFLAGS="$flag"
41240                     ;;
41241
41242                 *)
41243                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41244 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41245                     THREADS_LINK="-l$flag"
41246                     ;;
41247               esac
41248
41249               save_LIBS="$LIBS"
41250               save_CFLAGS="$CFLAGS"
41251               LIBS="$THREADS_LINK $LIBS"
41252               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41253
41254               cat >conftest.$ac_ext <<_ACEOF
41255 /* confdefs.h.  */
41256 _ACEOF
41257 cat confdefs.h >>conftest.$ac_ext
41258 cat >>conftest.$ac_ext <<_ACEOF
41259 /* end confdefs.h.  */
41260 #include <pthread.h>
41261 int
41262 main ()
41263 {
41264 pthread_create(0,0,0,0);
41265   ;
41266   return 0;
41267 }
41268 _ACEOF
41269 rm -f conftest.$ac_objext conftest$ac_exeext
41270 if { (ac_try="$ac_link"
41271 case "(($ac_try" in
41272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41273   *) ac_try_echo=$ac_try;;
41274 esac
41275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41276   (eval "$ac_link") 2>conftest.er1
41277   ac_status=$?
41278   grep -v '^ *+' conftest.er1 >conftest.err
41279   rm -f conftest.er1
41280   cat conftest.err >&5
41281   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41282   (exit $ac_status); } && {
41283          test -z "$ac_c_werror_flag" ||
41284          test ! -s conftest.err
41285        } && test -s conftest$ac_exeext &&
41286        $as_test_x conftest$ac_exeext; then
41287   THREADS_OK=yes
41288 else
41289   echo "$as_me: failed program was:" >&5
41290 sed 's/^/| /' conftest.$ac_ext >&5
41291
41292
41293 fi
41294
41295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41296       conftest$ac_exeext conftest.$ac_ext
41297
41298               LIBS="$save_LIBS"
41299               CFLAGS="$save_CFLAGS"
41300
41301               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41302 echo "${ECHO_T}$THREADS_OK" >&6; }
41303               if test "x$THREADS_OK" = "xyes"; then
41304                       break;
41305               fi
41306
41307               THREADS_LINK=""
41308               THREADS_CFLAGS=""
41309       done
41310
41311       if test "x$THREADS_OK" != "xyes"; then
41312           wxUSE_THREADS=no
41313           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41314 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41315       else
41316                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41317           LIBS="$THREADS_LINK $LIBS"
41318
41319           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41320 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41321           flag=no
41322           case "${host}" in
41323             *-aix*)
41324                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41325                 flag="-D_THREAD_SAFE"
41326                 ;;
41327             *-freebsd*)
41328                 flag="-D_THREAD_SAFE"
41329                 ;;
41330             *-hp-hpux* )
41331                 flag="-D_REENTRANT"
41332                 if test "x$GCC" != "xyes"; then
41333                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41334                 fi
41335                 ;;
41336             *solaris* | alpha*-osf*)
41337                 flag="-D_REENTRANT"
41338                 ;;
41339           esac
41340           { echo "$as_me:$LINENO: result: ${flag}" >&5
41341 echo "${ECHO_T}${flag}" >&6; }
41342           if test "x$flag" != xno; then
41343               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
41344           fi
41345
41346                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
41347       fi
41348     fi
41349
41350         if test "$wxUSE_THREADS" = "yes" ; then
41351
41352 for ac_func in thr_setconcurrency
41353 do
41354 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41355 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41356 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41357 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41358   echo $ECHO_N "(cached) $ECHO_C" >&6
41359 else
41360   cat >conftest.$ac_ext <<_ACEOF
41361 /* confdefs.h.  */
41362 _ACEOF
41363 cat confdefs.h >>conftest.$ac_ext
41364 cat >>conftest.$ac_ext <<_ACEOF
41365 /* end confdefs.h.  */
41366 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41367    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41368 #define $ac_func innocuous_$ac_func
41369
41370 /* System header to define __stub macros and hopefully few prototypes,
41371     which can conflict with char $ac_func (); below.
41372     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41373     <limits.h> exists even on freestanding compilers.  */
41374
41375 #ifdef __STDC__
41376 # include <limits.h>
41377 #else
41378 # include <assert.h>
41379 #endif
41380
41381 #undef $ac_func
41382
41383 /* Override any GCC internal prototype to avoid an error.
41384    Use char because int might match the return type of a GCC
41385    builtin and then its argument prototype would still apply.  */
41386 #ifdef __cplusplus
41387 extern "C"
41388 #endif
41389 char $ac_func ();
41390 /* The GNU C library defines this for functions which it implements
41391     to always fail with ENOSYS.  Some functions are actually named
41392     something starting with __ and the normal name is an alias.  */
41393 #if defined __stub_$ac_func || defined __stub___$ac_func
41394 choke me
41395 #endif
41396
41397 int
41398 main ()
41399 {
41400 return $ac_func ();
41401   ;
41402   return 0;
41403 }
41404 _ACEOF
41405 rm -f conftest.$ac_objext conftest$ac_exeext
41406 if { (ac_try="$ac_link"
41407 case "(($ac_try" in
41408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41409   *) ac_try_echo=$ac_try;;
41410 esac
41411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41412   (eval "$ac_link") 2>conftest.er1
41413   ac_status=$?
41414   grep -v '^ *+' conftest.er1 >conftest.err
41415   rm -f conftest.er1
41416   cat conftest.err >&5
41417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41418   (exit $ac_status); } && {
41419          test -z "$ac_c_werror_flag" ||
41420          test ! -s conftest.err
41421        } && test -s conftest$ac_exeext &&
41422        $as_test_x conftest$ac_exeext; then
41423   eval "$as_ac_var=yes"
41424 else
41425   echo "$as_me: failed program was:" >&5
41426 sed 's/^/| /' conftest.$ac_ext >&5
41427
41428         eval "$as_ac_var=no"
41429 fi
41430
41431 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41432       conftest$ac_exeext conftest.$ac_ext
41433 fi
41434 ac_res=`eval echo '${'$as_ac_var'}'`
41435                { echo "$as_me:$LINENO: result: $ac_res" >&5
41436 echo "${ECHO_T}$ac_res" >&6; }
41437 if test `eval echo '${'$as_ac_var'}'` = yes; then
41438   cat >>confdefs.h <<_ACEOF
41439 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41440 _ACEOF
41441
41442 fi
41443 done
41444
41445
41446                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
41447 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
41448 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
41449   echo $ECHO_N "(cached) $ECHO_C" >&6
41450 else
41451
41452                                 ac_ext=cpp
41453 ac_cpp='$CXXCPP $CPPFLAGS'
41454 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41455 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41456 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
41457
41458         cat >conftest.$ac_ext <<_ACEOF
41459 /* confdefs.h.  */
41460 _ACEOF
41461 cat confdefs.h >>conftest.$ac_ext
41462 cat >>conftest.$ac_ext <<_ACEOF
41463 /* end confdefs.h.  */
41464 #include <pthread.h>
41465                void ThreadCleanupFunc(void *p);
41466
41467 int
41468 main ()
41469 {
41470
41471                 void *p;
41472                 pthread_cleanup_push(ThreadCleanupFunc, p);
41473                 pthread_cleanup_pop(0);
41474
41475   ;
41476   return 0;
41477 }
41478 _ACEOF
41479 rm -f conftest.$ac_objext
41480 if { (ac_try="$ac_compile"
41481 case "(($ac_try" in
41482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41483   *) ac_try_echo=$ac_try;;
41484 esac
41485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41486   (eval "$ac_compile") 2>conftest.er1
41487   ac_status=$?
41488   grep -v '^ *+' conftest.er1 >conftest.err
41489   rm -f conftest.er1
41490   cat conftest.err >&5
41491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41492   (exit $ac_status); } && {
41493          test -z "$ac_cxx_werror_flag" ||
41494          test ! -s conftest.err
41495        } && test -s conftest.$ac_objext; then
41496
41497                wx_cv_func_pthread_cleanup=yes
41498
41499 else
41500   echo "$as_me: failed program was:" >&5
41501 sed 's/^/| /' conftest.$ac_ext >&5
41502
41503
41504                wx_cv_func_pthread_cleanup=no
41505
41506
41507 fi
41508
41509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41510         ac_ext=c
41511 ac_cpp='$CPP $CPPFLAGS'
41512 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
41513 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
41514 ac_compiler_gnu=$ac_cv_c_compiler_gnu
41515
41516
41517 fi
41518 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
41519 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
41520       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
41521         cat >>confdefs.h <<\_ACEOF
41522 #define wxHAVE_PTHREAD_CLEANUP 1
41523 _ACEOF
41524
41525       fi
41526
41527
41528 for ac_header in sched.h
41529 do
41530 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
41531 { echo "$as_me:$LINENO: checking for $ac_header" >&5
41532 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
41533 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
41534   echo $ECHO_N "(cached) $ECHO_C" >&6
41535 else
41536   cat >conftest.$ac_ext <<_ACEOF
41537 /* confdefs.h.  */
41538 _ACEOF
41539 cat confdefs.h >>conftest.$ac_ext
41540 cat >>conftest.$ac_ext <<_ACEOF
41541 /* end confdefs.h.  */
41542 $ac_includes_default
41543
41544 #include <$ac_header>
41545 _ACEOF
41546 rm -f conftest.$ac_objext
41547 if { (ac_try="$ac_compile"
41548 case "(($ac_try" in
41549   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41550   *) ac_try_echo=$ac_try;;
41551 esac
41552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41553   (eval "$ac_compile") 2>conftest.er1
41554   ac_status=$?
41555   grep -v '^ *+' conftest.er1 >conftest.err
41556   rm -f conftest.er1
41557   cat conftest.err >&5
41558   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41559   (exit $ac_status); } && {
41560          test -z "$ac_c_werror_flag" ||
41561          test ! -s conftest.err
41562        } && test -s conftest.$ac_objext; then
41563   eval "$as_ac_Header=yes"
41564 else
41565   echo "$as_me: failed program was:" >&5
41566 sed 's/^/| /' conftest.$ac_ext >&5
41567
41568         eval "$as_ac_Header=no"
41569 fi
41570
41571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41572 fi
41573 ac_res=`eval echo '${'$as_ac_Header'}'`
41574                { echo "$as_me:$LINENO: result: $ac_res" >&5
41575 echo "${ECHO_T}$ac_res" >&6; }
41576 if test `eval echo '${'$as_ac_Header'}'` = yes; then
41577   cat >>confdefs.h <<_ACEOF
41578 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
41579 _ACEOF
41580
41581 fi
41582
41583 done
41584
41585       if test "$ac_cv_header_sched_h" = "yes"; then
41586           { echo "$as_me:$LINENO: checking for sched_yield" >&5
41587 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
41588 if test "${ac_cv_func_sched_yield+set}" = set; then
41589   echo $ECHO_N "(cached) $ECHO_C" >&6
41590 else
41591   cat >conftest.$ac_ext <<_ACEOF
41592 /* confdefs.h.  */
41593 _ACEOF
41594 cat confdefs.h >>conftest.$ac_ext
41595 cat >>conftest.$ac_ext <<_ACEOF
41596 /* end confdefs.h.  */
41597 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
41598    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41599 #define sched_yield innocuous_sched_yield
41600
41601 /* System header to define __stub macros and hopefully few prototypes,
41602     which can conflict with char sched_yield (); below.
41603     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41604     <limits.h> exists even on freestanding compilers.  */
41605
41606 #ifdef __STDC__
41607 # include <limits.h>
41608 #else
41609 # include <assert.h>
41610 #endif
41611
41612 #undef sched_yield
41613
41614 /* Override any GCC internal prototype to avoid an error.
41615    Use char because int might match the return type of a GCC
41616    builtin and then its argument prototype would still apply.  */
41617 #ifdef __cplusplus
41618 extern "C"
41619 #endif
41620 char sched_yield ();
41621 /* The GNU C library defines this for functions which it implements
41622     to always fail with ENOSYS.  Some functions are actually named
41623     something starting with __ and the normal name is an alias.  */
41624 #if defined __stub_sched_yield || defined __stub___sched_yield
41625 choke me
41626 #endif
41627
41628 int
41629 main ()
41630 {
41631 return sched_yield ();
41632   ;
41633   return 0;
41634 }
41635 _ACEOF
41636 rm -f conftest.$ac_objext conftest$ac_exeext
41637 if { (ac_try="$ac_link"
41638 case "(($ac_try" in
41639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41640   *) ac_try_echo=$ac_try;;
41641 esac
41642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41643   (eval "$ac_link") 2>conftest.er1
41644   ac_status=$?
41645   grep -v '^ *+' conftest.er1 >conftest.err
41646   rm -f conftest.er1
41647   cat conftest.err >&5
41648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41649   (exit $ac_status); } && {
41650          test -z "$ac_c_werror_flag" ||
41651          test ! -s conftest.err
41652        } && test -s conftest$ac_exeext &&
41653        $as_test_x conftest$ac_exeext; then
41654   ac_cv_func_sched_yield=yes
41655 else
41656   echo "$as_me: failed program was:" >&5
41657 sed 's/^/| /' conftest.$ac_ext >&5
41658
41659         ac_cv_func_sched_yield=no
41660 fi
41661
41662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41663       conftest$ac_exeext conftest.$ac_ext
41664 fi
41665 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
41666 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
41667 if test $ac_cv_func_sched_yield = yes; then
41668   cat >>confdefs.h <<\_ACEOF
41669 #define HAVE_SCHED_YIELD 1
41670 _ACEOF
41671
41672 else
41673
41674                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
41675 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
41676 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
41677   echo $ECHO_N "(cached) $ECHO_C" >&6
41678 else
41679   ac_check_lib_save_LIBS=$LIBS
41680 LIBS="-lposix4  $LIBS"
41681 cat >conftest.$ac_ext <<_ACEOF
41682 /* confdefs.h.  */
41683 _ACEOF
41684 cat confdefs.h >>conftest.$ac_ext
41685 cat >>conftest.$ac_ext <<_ACEOF
41686 /* end confdefs.h.  */
41687
41688 /* Override any GCC internal prototype to avoid an error.
41689    Use char because int might match the return type of a GCC
41690    builtin and then its argument prototype would still apply.  */
41691 #ifdef __cplusplus
41692 extern "C"
41693 #endif
41694 char sched_yield ();
41695 int
41696 main ()
41697 {
41698 return sched_yield ();
41699   ;
41700   return 0;
41701 }
41702 _ACEOF
41703 rm -f conftest.$ac_objext conftest$ac_exeext
41704 if { (ac_try="$ac_link"
41705 case "(($ac_try" in
41706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41707   *) ac_try_echo=$ac_try;;
41708 esac
41709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41710   (eval "$ac_link") 2>conftest.er1
41711   ac_status=$?
41712   grep -v '^ *+' conftest.er1 >conftest.err
41713   rm -f conftest.er1
41714   cat conftest.err >&5
41715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41716   (exit $ac_status); } && {
41717          test -z "$ac_c_werror_flag" ||
41718          test ! -s conftest.err
41719        } && test -s conftest$ac_exeext &&
41720        $as_test_x conftest$ac_exeext; then
41721   ac_cv_lib_posix4_sched_yield=yes
41722 else
41723   echo "$as_me: failed program was:" >&5
41724 sed 's/^/| /' conftest.$ac_ext >&5
41725
41726         ac_cv_lib_posix4_sched_yield=no
41727 fi
41728
41729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41730       conftest$ac_exeext conftest.$ac_ext
41731 LIBS=$ac_check_lib_save_LIBS
41732 fi
41733 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
41734 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
41735 if test $ac_cv_lib_posix4_sched_yield = yes; then
41736   cat >>confdefs.h <<\_ACEOF
41737 #define HAVE_SCHED_YIELD 1
41738 _ACEOF
41739  POSIX4_LINK=" -lposix4"
41740 else
41741   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
41742 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
41743
41744 fi
41745
41746
41747
41748 fi
41749
41750       fi
41751
41752                                           HAVE_PRIOR_FUNCS=0
41753       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
41754 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
41755 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
41756   echo $ECHO_N "(cached) $ECHO_C" >&6
41757 else
41758   cat >conftest.$ac_ext <<_ACEOF
41759 /* confdefs.h.  */
41760 _ACEOF
41761 cat confdefs.h >>conftest.$ac_ext
41762 cat >>conftest.$ac_ext <<_ACEOF
41763 /* end confdefs.h.  */
41764 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
41765    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41766 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
41767
41768 /* System header to define __stub macros and hopefully few prototypes,
41769     which can conflict with char pthread_attr_getschedpolicy (); below.
41770     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41771     <limits.h> exists even on freestanding compilers.  */
41772
41773 #ifdef __STDC__
41774 # include <limits.h>
41775 #else
41776 # include <assert.h>
41777 #endif
41778
41779 #undef pthread_attr_getschedpolicy
41780
41781 /* Override any GCC internal prototype to avoid an error.
41782    Use char because int might match the return type of a GCC
41783    builtin and then its argument prototype would still apply.  */
41784 #ifdef __cplusplus
41785 extern "C"
41786 #endif
41787 char pthread_attr_getschedpolicy ();
41788 /* The GNU C library defines this for functions which it implements
41789     to always fail with ENOSYS.  Some functions are actually named
41790     something starting with __ and the normal name is an alias.  */
41791 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
41792 choke me
41793 #endif
41794
41795 int
41796 main ()
41797 {
41798 return pthread_attr_getschedpolicy ();
41799   ;
41800   return 0;
41801 }
41802 _ACEOF
41803 rm -f conftest.$ac_objext conftest$ac_exeext
41804 if { (ac_try="$ac_link"
41805 case "(($ac_try" in
41806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41807   *) ac_try_echo=$ac_try;;
41808 esac
41809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41810   (eval "$ac_link") 2>conftest.er1
41811   ac_status=$?
41812   grep -v '^ *+' conftest.er1 >conftest.err
41813   rm -f conftest.er1
41814   cat conftest.err >&5
41815   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41816   (exit $ac_status); } && {
41817          test -z "$ac_c_werror_flag" ||
41818          test ! -s conftest.err
41819        } && test -s conftest$ac_exeext &&
41820        $as_test_x conftest$ac_exeext; then
41821   ac_cv_func_pthread_attr_getschedpolicy=yes
41822 else
41823   echo "$as_me: failed program was:" >&5
41824 sed 's/^/| /' conftest.$ac_ext >&5
41825
41826         ac_cv_func_pthread_attr_getschedpolicy=no
41827 fi
41828
41829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41830       conftest$ac_exeext conftest.$ac_ext
41831 fi
41832 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
41833 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
41834 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
41835   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
41836 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
41837 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
41838   echo $ECHO_N "(cached) $ECHO_C" >&6
41839 else
41840   cat >conftest.$ac_ext <<_ACEOF
41841 /* confdefs.h.  */
41842 _ACEOF
41843 cat confdefs.h >>conftest.$ac_ext
41844 cat >>conftest.$ac_ext <<_ACEOF
41845 /* end confdefs.h.  */
41846 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
41847    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41848 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
41849
41850 /* System header to define __stub macros and hopefully few prototypes,
41851     which can conflict with char pthread_attr_setschedparam (); below.
41852     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41853     <limits.h> exists even on freestanding compilers.  */
41854
41855 #ifdef __STDC__
41856 # include <limits.h>
41857 #else
41858 # include <assert.h>
41859 #endif
41860
41861 #undef pthread_attr_setschedparam
41862
41863 /* Override any GCC internal prototype to avoid an error.
41864    Use char because int might match the return type of a GCC
41865    builtin and then its argument prototype would still apply.  */
41866 #ifdef __cplusplus
41867 extern "C"
41868 #endif
41869 char pthread_attr_setschedparam ();
41870 /* The GNU C library defines this for functions which it implements
41871     to always fail with ENOSYS.  Some functions are actually named
41872     something starting with __ and the normal name is an alias.  */
41873 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
41874 choke me
41875 #endif
41876
41877 int
41878 main ()
41879 {
41880 return pthread_attr_setschedparam ();
41881   ;
41882   return 0;
41883 }
41884 _ACEOF
41885 rm -f conftest.$ac_objext conftest$ac_exeext
41886 if { (ac_try="$ac_link"
41887 case "(($ac_try" in
41888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41889   *) ac_try_echo=$ac_try;;
41890 esac
41891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41892   (eval "$ac_link") 2>conftest.er1
41893   ac_status=$?
41894   grep -v '^ *+' conftest.er1 >conftest.err
41895   rm -f conftest.er1
41896   cat conftest.err >&5
41897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41898   (exit $ac_status); } && {
41899          test -z "$ac_c_werror_flag" ||
41900          test ! -s conftest.err
41901        } && test -s conftest$ac_exeext &&
41902        $as_test_x conftest$ac_exeext; then
41903   ac_cv_func_pthread_attr_setschedparam=yes
41904 else
41905   echo "$as_me: failed program was:" >&5
41906 sed 's/^/| /' conftest.$ac_ext >&5
41907
41908         ac_cv_func_pthread_attr_setschedparam=no
41909 fi
41910
41911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41912       conftest$ac_exeext conftest.$ac_ext
41913 fi
41914 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
41915 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
41916 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
41917   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
41918 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
41919 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
41920   echo $ECHO_N "(cached) $ECHO_C" >&6
41921 else
41922   cat >conftest.$ac_ext <<_ACEOF
41923 /* confdefs.h.  */
41924 _ACEOF
41925 cat confdefs.h >>conftest.$ac_ext
41926 cat >>conftest.$ac_ext <<_ACEOF
41927 /* end confdefs.h.  */
41928 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
41929    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41930 #define sched_get_priority_max innocuous_sched_get_priority_max
41931
41932 /* System header to define __stub macros and hopefully few prototypes,
41933     which can conflict with char sched_get_priority_max (); below.
41934     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41935     <limits.h> exists even on freestanding compilers.  */
41936
41937 #ifdef __STDC__
41938 # include <limits.h>
41939 #else
41940 # include <assert.h>
41941 #endif
41942
41943 #undef sched_get_priority_max
41944
41945 /* Override any GCC internal prototype to avoid an error.
41946    Use char because int might match the return type of a GCC
41947    builtin and then its argument prototype would still apply.  */
41948 #ifdef __cplusplus
41949 extern "C"
41950 #endif
41951 char sched_get_priority_max ();
41952 /* The GNU C library defines this for functions which it implements
41953     to always fail with ENOSYS.  Some functions are actually named
41954     something starting with __ and the normal name is an alias.  */
41955 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
41956 choke me
41957 #endif
41958
41959 int
41960 main ()
41961 {
41962 return sched_get_priority_max ();
41963   ;
41964   return 0;
41965 }
41966 _ACEOF
41967 rm -f conftest.$ac_objext conftest$ac_exeext
41968 if { (ac_try="$ac_link"
41969 case "(($ac_try" in
41970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41971   *) ac_try_echo=$ac_try;;
41972 esac
41973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41974   (eval "$ac_link") 2>conftest.er1
41975   ac_status=$?
41976   grep -v '^ *+' conftest.er1 >conftest.err
41977   rm -f conftest.er1
41978   cat conftest.err >&5
41979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41980   (exit $ac_status); } && {
41981          test -z "$ac_c_werror_flag" ||
41982          test ! -s conftest.err
41983        } && test -s conftest$ac_exeext &&
41984        $as_test_x conftest$ac_exeext; then
41985   ac_cv_func_sched_get_priority_max=yes
41986 else
41987   echo "$as_me: failed program was:" >&5
41988 sed 's/^/| /' conftest.$ac_ext >&5
41989
41990         ac_cv_func_sched_get_priority_max=no
41991 fi
41992
41993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41994       conftest$ac_exeext conftest.$ac_ext
41995 fi
41996 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
41997 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
41998 if test $ac_cv_func_sched_get_priority_max = yes; then
41999   HAVE_PRIOR_FUNCS=1
42000 else
42001   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42002 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42003 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42004   echo $ECHO_N "(cached) $ECHO_C" >&6
42005 else
42006   ac_check_lib_save_LIBS=$LIBS
42007 LIBS="-lposix4  $LIBS"
42008 cat >conftest.$ac_ext <<_ACEOF
42009 /* confdefs.h.  */
42010 _ACEOF
42011 cat confdefs.h >>conftest.$ac_ext
42012 cat >>conftest.$ac_ext <<_ACEOF
42013 /* end confdefs.h.  */
42014
42015 /* Override any GCC internal prototype to avoid an error.
42016    Use char because int might match the return type of a GCC
42017    builtin and then its argument prototype would still apply.  */
42018 #ifdef __cplusplus
42019 extern "C"
42020 #endif
42021 char sched_get_priority_max ();
42022 int
42023 main ()
42024 {
42025 return sched_get_priority_max ();
42026   ;
42027   return 0;
42028 }
42029 _ACEOF
42030 rm -f conftest.$ac_objext conftest$ac_exeext
42031 if { (ac_try="$ac_link"
42032 case "(($ac_try" in
42033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42034   *) ac_try_echo=$ac_try;;
42035 esac
42036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42037   (eval "$ac_link") 2>conftest.er1
42038   ac_status=$?
42039   grep -v '^ *+' conftest.er1 >conftest.err
42040   rm -f conftest.er1
42041   cat conftest.err >&5
42042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42043   (exit $ac_status); } && {
42044          test -z "$ac_c_werror_flag" ||
42045          test ! -s conftest.err
42046        } && test -s conftest$ac_exeext &&
42047        $as_test_x conftest$ac_exeext; then
42048   ac_cv_lib_posix4_sched_get_priority_max=yes
42049 else
42050   echo "$as_me: failed program was:" >&5
42051 sed 's/^/| /' conftest.$ac_ext >&5
42052
42053         ac_cv_lib_posix4_sched_get_priority_max=no
42054 fi
42055
42056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42057       conftest$ac_exeext conftest.$ac_ext
42058 LIBS=$ac_check_lib_save_LIBS
42059 fi
42060 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42061 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42062 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42063
42064                                 HAVE_PRIOR_FUNCS=1
42065                                 POSIX4_LINK=" -lposix4"
42066
42067 fi
42068
42069
42070 fi
42071
42072
42073 fi
42074
42075
42076 fi
42077
42078
42079       if test "$HAVE_PRIOR_FUNCS" = 1; then
42080         cat >>confdefs.h <<\_ACEOF
42081 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42082 _ACEOF
42083
42084       else
42085         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42086 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42087       fi
42088
42089       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42090 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42091 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42092   echo $ECHO_N "(cached) $ECHO_C" >&6
42093 else
42094   cat >conftest.$ac_ext <<_ACEOF
42095 /* confdefs.h.  */
42096 _ACEOF
42097 cat confdefs.h >>conftest.$ac_ext
42098 cat >>conftest.$ac_ext <<_ACEOF
42099 /* end confdefs.h.  */
42100 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42101    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42102 #define pthread_cancel innocuous_pthread_cancel
42103
42104 /* System header to define __stub macros and hopefully few prototypes,
42105     which can conflict with char pthread_cancel (); below.
42106     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42107     <limits.h> exists even on freestanding compilers.  */
42108
42109 #ifdef __STDC__
42110 # include <limits.h>
42111 #else
42112 # include <assert.h>
42113 #endif
42114
42115 #undef pthread_cancel
42116
42117 /* Override any GCC internal prototype to avoid an error.
42118    Use char because int might match the return type of a GCC
42119    builtin and then its argument prototype would still apply.  */
42120 #ifdef __cplusplus
42121 extern "C"
42122 #endif
42123 char pthread_cancel ();
42124 /* The GNU C library defines this for functions which it implements
42125     to always fail with ENOSYS.  Some functions are actually named
42126     something starting with __ and the normal name is an alias.  */
42127 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42128 choke me
42129 #endif
42130
42131 int
42132 main ()
42133 {
42134 return pthread_cancel ();
42135   ;
42136   return 0;
42137 }
42138 _ACEOF
42139 rm -f conftest.$ac_objext conftest$ac_exeext
42140 if { (ac_try="$ac_link"
42141 case "(($ac_try" in
42142   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42143   *) ac_try_echo=$ac_try;;
42144 esac
42145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42146   (eval "$ac_link") 2>conftest.er1
42147   ac_status=$?
42148   grep -v '^ *+' conftest.er1 >conftest.err
42149   rm -f conftest.er1
42150   cat conftest.err >&5
42151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42152   (exit $ac_status); } && {
42153          test -z "$ac_c_werror_flag" ||
42154          test ! -s conftest.err
42155        } && test -s conftest$ac_exeext &&
42156        $as_test_x conftest$ac_exeext; then
42157   ac_cv_func_pthread_cancel=yes
42158 else
42159   echo "$as_me: failed program was:" >&5
42160 sed 's/^/| /' conftest.$ac_ext >&5
42161
42162         ac_cv_func_pthread_cancel=no
42163 fi
42164
42165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42166       conftest$ac_exeext conftest.$ac_ext
42167 fi
42168 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42169 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42170 if test $ac_cv_func_pthread_cancel = yes; then
42171   cat >>confdefs.h <<\_ACEOF
42172 #define HAVE_PTHREAD_CANCEL 1
42173 _ACEOF
42174
42175 else
42176   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42177 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42178 fi
42179
42180
42181       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42182 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42183 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42184   echo $ECHO_N "(cached) $ECHO_C" >&6
42185 else
42186   cat >conftest.$ac_ext <<_ACEOF
42187 /* confdefs.h.  */
42188 _ACEOF
42189 cat confdefs.h >>conftest.$ac_ext
42190 cat >>conftest.$ac_ext <<_ACEOF
42191 /* end confdefs.h.  */
42192 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42193    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42194 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42195
42196 /* System header to define __stub macros and hopefully few prototypes,
42197     which can conflict with char pthread_mutex_timedlock (); below.
42198     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42199     <limits.h> exists even on freestanding compilers.  */
42200
42201 #ifdef __STDC__
42202 # include <limits.h>
42203 #else
42204 # include <assert.h>
42205 #endif
42206
42207 #undef pthread_mutex_timedlock
42208
42209 /* Override any GCC internal prototype to avoid an error.
42210    Use char because int might match the return type of a GCC
42211    builtin and then its argument prototype would still apply.  */
42212 #ifdef __cplusplus
42213 extern "C"
42214 #endif
42215 char pthread_mutex_timedlock ();
42216 /* The GNU C library defines this for functions which it implements
42217     to always fail with ENOSYS.  Some functions are actually named
42218     something starting with __ and the normal name is an alias.  */
42219 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42220 choke me
42221 #endif
42222
42223 int
42224 main ()
42225 {
42226 return pthread_mutex_timedlock ();
42227   ;
42228   return 0;
42229 }
42230 _ACEOF
42231 rm -f conftest.$ac_objext conftest$ac_exeext
42232 if { (ac_try="$ac_link"
42233 case "(($ac_try" in
42234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42235   *) ac_try_echo=$ac_try;;
42236 esac
42237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42238   (eval "$ac_link") 2>conftest.er1
42239   ac_status=$?
42240   grep -v '^ *+' conftest.er1 >conftest.err
42241   rm -f conftest.er1
42242   cat conftest.err >&5
42243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42244   (exit $ac_status); } && {
42245          test -z "$ac_c_werror_flag" ||
42246          test ! -s conftest.err
42247        } && test -s conftest$ac_exeext &&
42248        $as_test_x conftest$ac_exeext; then
42249   ac_cv_func_pthread_mutex_timedlock=yes
42250 else
42251   echo "$as_me: failed program was:" >&5
42252 sed 's/^/| /' conftest.$ac_ext >&5
42253
42254         ac_cv_func_pthread_mutex_timedlock=no
42255 fi
42256
42257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42258       conftest$ac_exeext conftest.$ac_ext
42259 fi
42260 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42261 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42262 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42263   cat >>confdefs.h <<\_ACEOF
42264 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42265 _ACEOF
42266
42267 else
42268   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42269 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42270 fi
42271
42272
42273       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42274 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42275 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42276   echo $ECHO_N "(cached) $ECHO_C" >&6
42277 else
42278   cat >conftest.$ac_ext <<_ACEOF
42279 /* confdefs.h.  */
42280 _ACEOF
42281 cat confdefs.h >>conftest.$ac_ext
42282 cat >>conftest.$ac_ext <<_ACEOF
42283 /* end confdefs.h.  */
42284 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42285    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42286 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42287
42288 /* System header to define __stub macros and hopefully few prototypes,
42289     which can conflict with char pthread_attr_setstacksize (); below.
42290     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42291     <limits.h> exists even on freestanding compilers.  */
42292
42293 #ifdef __STDC__
42294 # include <limits.h>
42295 #else
42296 # include <assert.h>
42297 #endif
42298
42299 #undef pthread_attr_setstacksize
42300
42301 /* Override any GCC internal prototype to avoid an error.
42302    Use char because int might match the return type of a GCC
42303    builtin and then its argument prototype would still apply.  */
42304 #ifdef __cplusplus
42305 extern "C"
42306 #endif
42307 char pthread_attr_setstacksize ();
42308 /* The GNU C library defines this for functions which it implements
42309     to always fail with ENOSYS.  Some functions are actually named
42310     something starting with __ and the normal name is an alias.  */
42311 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42312 choke me
42313 #endif
42314
42315 int
42316 main ()
42317 {
42318 return pthread_attr_setstacksize ();
42319   ;
42320   return 0;
42321 }
42322 _ACEOF
42323 rm -f conftest.$ac_objext conftest$ac_exeext
42324 if { (ac_try="$ac_link"
42325 case "(($ac_try" in
42326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42327   *) ac_try_echo=$ac_try;;
42328 esac
42329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42330   (eval "$ac_link") 2>conftest.er1
42331   ac_status=$?
42332   grep -v '^ *+' conftest.er1 >conftest.err
42333   rm -f conftest.er1
42334   cat conftest.err >&5
42335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42336   (exit $ac_status); } && {
42337          test -z "$ac_c_werror_flag" ||
42338          test ! -s conftest.err
42339        } && test -s conftest$ac_exeext &&
42340        $as_test_x conftest$ac_exeext; then
42341   ac_cv_func_pthread_attr_setstacksize=yes
42342 else
42343   echo "$as_me: failed program was:" >&5
42344 sed 's/^/| /' conftest.$ac_ext >&5
42345
42346         ac_cv_func_pthread_attr_setstacksize=no
42347 fi
42348
42349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42350       conftest$ac_exeext conftest.$ac_ext
42351 fi
42352 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
42353 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
42354 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
42355   cat >>confdefs.h <<\_ACEOF
42356 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
42357 _ACEOF
42358
42359 fi
42360
42361
42362
42363       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
42364 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
42365 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
42366   echo $ECHO_N "(cached) $ECHO_C" >&6
42367 else
42368
42369         cat >conftest.$ac_ext <<_ACEOF
42370 /* confdefs.h.  */
42371 _ACEOF
42372 cat confdefs.h >>conftest.$ac_ext
42373 cat >>conftest.$ac_ext <<_ACEOF
42374 /* end confdefs.h.  */
42375 #include <pthread.h>
42376 int
42377 main ()
42378 {
42379
42380                pthread_mutexattr_t attr;
42381                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42382
42383   ;
42384   return 0;
42385 }
42386 _ACEOF
42387 rm -f conftest.$ac_objext
42388 if { (ac_try="$ac_compile"
42389 case "(($ac_try" in
42390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42391   *) ac_try_echo=$ac_try;;
42392 esac
42393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42394   (eval "$ac_compile") 2>conftest.er1
42395   ac_status=$?
42396   grep -v '^ *+' conftest.er1 >conftest.err
42397   rm -f conftest.er1
42398   cat conftest.err >&5
42399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42400   (exit $ac_status); } && {
42401          test -z "$ac_c_werror_flag" ||
42402          test ! -s conftest.err
42403        } && test -s conftest.$ac_objext; then
42404   wx_cv_type_pthread_mutexattr_t=yes
42405 else
42406   echo "$as_me: failed program was:" >&5
42407 sed 's/^/| /' conftest.$ac_ext >&5
42408
42409         wx_cv_type_pthread_mutexattr_t=no
42410
42411 fi
42412
42413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42414
42415 fi
42416 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
42417 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
42418
42419       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
42420         cat >>confdefs.h <<\_ACEOF
42421 #define HAVE_PTHREAD_MUTEXATTR_T 1
42422 _ACEOF
42423
42424
42425                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
42426 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
42427 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
42428   echo $ECHO_N "(cached) $ECHO_C" >&6
42429 else
42430
42431                        cat >conftest.$ac_ext <<_ACEOF
42432 /* confdefs.h.  */
42433 _ACEOF
42434 cat confdefs.h >>conftest.$ac_ext
42435 cat >>conftest.$ac_ext <<_ACEOF
42436 /* end confdefs.h.  */
42437 #include <pthread.h>
42438 int
42439 main ()
42440 {
42441
42442                                pthread_mutexattr_t attr;
42443                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
42444
42445   ;
42446   return 0;
42447 }
42448 _ACEOF
42449 rm -f conftest.$ac_objext
42450 if { (ac_try="$ac_compile"
42451 case "(($ac_try" in
42452   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42453   *) ac_try_echo=$ac_try;;
42454 esac
42455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42456   (eval "$ac_compile") 2>conftest.er1
42457   ac_status=$?
42458   grep -v '^ *+' conftest.er1 >conftest.err
42459   rm -f conftest.er1
42460   cat conftest.err >&5
42461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42462   (exit $ac_status); } && {
42463          test -z "$ac_c_werror_flag" ||
42464          test ! -s conftest.err
42465        } && test -s conftest.$ac_objext; then
42466   wx_cv_func_pthread_mutexattr_settype_decl=yes
42467 else
42468   echo "$as_me: failed program was:" >&5
42469 sed 's/^/| /' conftest.$ac_ext >&5
42470
42471         wx_cv_func_pthread_mutexattr_settype_decl=no
42472
42473 fi
42474
42475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42476
42477 fi
42478 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
42479 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
42480         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
42481             cat >>confdefs.h <<\_ACEOF
42482 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
42483 _ACEOF
42484
42485         fi
42486       else
42487                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
42488 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
42489 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
42490   echo $ECHO_N "(cached) $ECHO_C" >&6
42491 else
42492
42493             cat >conftest.$ac_ext <<_ACEOF
42494 /* confdefs.h.  */
42495 _ACEOF
42496 cat confdefs.h >>conftest.$ac_ext
42497 cat >>conftest.$ac_ext <<_ACEOF
42498 /* end confdefs.h.  */
42499 #include <pthread.h>
42500 int
42501 main ()
42502 {
42503
42504                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
42505
42506   ;
42507   return 0;
42508 }
42509 _ACEOF
42510 rm -f conftest.$ac_objext
42511 if { (ac_try="$ac_compile"
42512 case "(($ac_try" in
42513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42514   *) ac_try_echo=$ac_try;;
42515 esac
42516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42517   (eval "$ac_compile") 2>conftest.er1
42518   ac_status=$?
42519   grep -v '^ *+' conftest.er1 >conftest.err
42520   rm -f conftest.er1
42521   cat conftest.err >&5
42522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42523   (exit $ac_status); } && {
42524          test -z "$ac_c_werror_flag" ||
42525          test ! -s conftest.err
42526        } && test -s conftest.$ac_objext; then
42527
42528                     wx_cv_type_pthread_rec_mutex_init=yes
42529
42530 else
42531   echo "$as_me: failed program was:" >&5
42532 sed 's/^/| /' conftest.$ac_ext >&5
42533
42534
42535                     wx_cv_type_pthread_rec_mutex_init=no
42536
42537
42538 fi
42539
42540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42541
42542 fi
42543 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
42544 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
42545         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
42546           cat >>confdefs.h <<\_ACEOF
42547 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
42548 _ACEOF
42549
42550         else
42551                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
42552 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
42553         fi
42554       fi
42555     fi
42556
42557 else
42558     if test "$wxUSE_THREADS" = "yes" ; then
42559       case "${host}" in
42560         *-*-mingw32* )
42561                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
42562 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
42563 if test "${wx_cv_cflags_mthread+set}" = set; then
42564   echo $ECHO_N "(cached) $ECHO_C" >&6
42565 else
42566
42567                     CFLAGS_OLD="$CFLAGS"
42568                     CFLAGS="-mthreads $CFLAGS"
42569                     cat >conftest.$ac_ext <<_ACEOF
42570 /* confdefs.h.  */
42571 _ACEOF
42572 cat confdefs.h >>conftest.$ac_ext
42573 cat >>conftest.$ac_ext <<_ACEOF
42574 /* end confdefs.h.  */
42575
42576 int
42577 main ()
42578 {
42579
42580   ;
42581   return 0;
42582 }
42583 _ACEOF
42584 rm -f conftest.$ac_objext
42585 if { (ac_try="$ac_compile"
42586 case "(($ac_try" in
42587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42588   *) ac_try_echo=$ac_try;;
42589 esac
42590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42591   (eval "$ac_compile") 2>conftest.er1
42592   ac_status=$?
42593   grep -v '^ *+' conftest.er1 >conftest.err
42594   rm -f conftest.er1
42595   cat conftest.err >&5
42596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42597   (exit $ac_status); } && {
42598          test -z "$ac_c_werror_flag" ||
42599          test ! -s conftest.err
42600        } && test -s conftest.$ac_objext; then
42601   wx_cv_cflags_mthread=yes
42602 else
42603   echo "$as_me: failed program was:" >&5
42604 sed 's/^/| /' conftest.$ac_ext >&5
42605
42606         wx_cv_cflags_mthread=no
42607
42608 fi
42609
42610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42611
42612
42613 fi
42614 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
42615 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
42616
42617             if test "$wx_cv_cflags_mthread" = "yes"; then
42618                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
42619                 LDFLAGS="$LDFLAGS -mthreads"
42620             else
42621                                 CFLAGS="$CFLAGS_OLD"
42622             fi
42623         ;;
42624         *-pc-os2*emx )
42625             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
42626             LDFLAGS="$LDFLAGS -Zmt"
42627         ;;
42628       esac
42629     fi
42630 fi
42631
42632 { echo "$as_me:$LINENO: checking for localtime_r" >&5
42633 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
42634 if test "${ac_cv_func_localtime_r+set}" = set; then
42635   echo $ECHO_N "(cached) $ECHO_C" >&6
42636 else
42637   cat >conftest.$ac_ext <<_ACEOF
42638 /* confdefs.h.  */
42639 _ACEOF
42640 cat confdefs.h >>conftest.$ac_ext
42641 cat >>conftest.$ac_ext <<_ACEOF
42642 /* end confdefs.h.  */
42643 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
42644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42645 #define localtime_r innocuous_localtime_r
42646
42647 /* System header to define __stub macros and hopefully few prototypes,
42648     which can conflict with char localtime_r (); below.
42649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42650     <limits.h> exists even on freestanding compilers.  */
42651
42652 #ifdef __STDC__
42653 # include <limits.h>
42654 #else
42655 # include <assert.h>
42656 #endif
42657
42658 #undef localtime_r
42659
42660 /* Override any GCC internal prototype to avoid an error.
42661    Use char because int might match the return type of a GCC
42662    builtin and then its argument prototype would still apply.  */
42663 #ifdef __cplusplus
42664 extern "C"
42665 #endif
42666 char localtime_r ();
42667 /* The GNU C library defines this for functions which it implements
42668     to always fail with ENOSYS.  Some functions are actually named
42669     something starting with __ and the normal name is an alias.  */
42670 #if defined __stub_localtime_r || defined __stub___localtime_r
42671 choke me
42672 #endif
42673
42674 int
42675 main ()
42676 {
42677 return localtime_r ();
42678   ;
42679   return 0;
42680 }
42681 _ACEOF
42682 rm -f conftest.$ac_objext conftest$ac_exeext
42683 if { (ac_try="$ac_link"
42684 case "(($ac_try" in
42685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42686   *) ac_try_echo=$ac_try;;
42687 esac
42688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42689   (eval "$ac_link") 2>conftest.er1
42690   ac_status=$?
42691   grep -v '^ *+' conftest.er1 >conftest.err
42692   rm -f conftest.er1
42693   cat conftest.err >&5
42694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42695   (exit $ac_status); } && {
42696          test -z "$ac_c_werror_flag" ||
42697          test ! -s conftest.err
42698        } && test -s conftest$ac_exeext &&
42699        $as_test_x conftest$ac_exeext; then
42700   ac_cv_func_localtime_r=yes
42701 else
42702   echo "$as_me: failed program was:" >&5
42703 sed 's/^/| /' conftest.$ac_ext >&5
42704
42705         ac_cv_func_localtime_r=no
42706 fi
42707
42708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42709       conftest$ac_exeext conftest.$ac_ext
42710 fi
42711 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
42712 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
42713 if test $ac_cv_func_localtime_r = yes; then
42714    cat >>confdefs.h <<\_ACEOF
42715 #define HAVE_LOCALTIME_R 1
42716 _ACEOF
42717
42718 fi
42719
42720 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
42721 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
42722 if test "${ac_cv_func_gmtime_r+set}" = set; then
42723   echo $ECHO_N "(cached) $ECHO_C" >&6
42724 else
42725   cat >conftest.$ac_ext <<_ACEOF
42726 /* confdefs.h.  */
42727 _ACEOF
42728 cat confdefs.h >>conftest.$ac_ext
42729 cat >>conftest.$ac_ext <<_ACEOF
42730 /* end confdefs.h.  */
42731 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
42732    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42733 #define gmtime_r innocuous_gmtime_r
42734
42735 /* System header to define __stub macros and hopefully few prototypes,
42736     which can conflict with char gmtime_r (); below.
42737     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42738     <limits.h> exists even on freestanding compilers.  */
42739
42740 #ifdef __STDC__
42741 # include <limits.h>
42742 #else
42743 # include <assert.h>
42744 #endif
42745
42746 #undef gmtime_r
42747
42748 /* Override any GCC internal prototype to avoid an error.
42749    Use char because int might match the return type of a GCC
42750    builtin and then its argument prototype would still apply.  */
42751 #ifdef __cplusplus
42752 extern "C"
42753 #endif
42754 char gmtime_r ();
42755 /* The GNU C library defines this for functions which it implements
42756     to always fail with ENOSYS.  Some functions are actually named
42757     something starting with __ and the normal name is an alias.  */
42758 #if defined __stub_gmtime_r || defined __stub___gmtime_r
42759 choke me
42760 #endif
42761
42762 int
42763 main ()
42764 {
42765 return gmtime_r ();
42766   ;
42767   return 0;
42768 }
42769 _ACEOF
42770 rm -f conftest.$ac_objext conftest$ac_exeext
42771 if { (ac_try="$ac_link"
42772 case "(($ac_try" in
42773   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42774   *) ac_try_echo=$ac_try;;
42775 esac
42776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42777   (eval "$ac_link") 2>conftest.er1
42778   ac_status=$?
42779   grep -v '^ *+' conftest.er1 >conftest.err
42780   rm -f conftest.er1
42781   cat conftest.err >&5
42782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42783   (exit $ac_status); } && {
42784          test -z "$ac_c_werror_flag" ||
42785          test ! -s conftest.err
42786        } && test -s conftest$ac_exeext &&
42787        $as_test_x conftest$ac_exeext; then
42788   ac_cv_func_gmtime_r=yes
42789 else
42790   echo "$as_me: failed program was:" >&5
42791 sed 's/^/| /' conftest.$ac_ext >&5
42792
42793         ac_cv_func_gmtime_r=no
42794 fi
42795
42796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42797       conftest$ac_exeext conftest.$ac_ext
42798 fi
42799 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
42800 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
42801 if test $ac_cv_func_gmtime_r = yes; then
42802    cat >>confdefs.h <<\_ACEOF
42803 #define HAVE_GMTIME_R 1
42804 _ACEOF
42805
42806 fi
42807
42808
42809
42810
42811     ac_ext=c
42812 ac_cpp='$CPP $CPPFLAGS'
42813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42815 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42816
42817     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
42818 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
42819
42820     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
42821   echo $ECHO_N "(cached) $ECHO_C" >&6
42822 else
42823
42824
42825 ################################################################
42826
42827 ac_cv_func_which_gethostbyname_r=unknown
42828
42829 #
42830 # ONE ARGUMENT (sanity check)
42831 #
42832
42833 # This should fail, as there is no variant of gethostbyname_r() that takes
42834 # a single argument. If it actually compiles, then we can assume that
42835 # netdb.h is not declaring the function, and the compiler is thereby
42836 # assuming an implicit prototype. In which case, we're out of luck.
42837 #
42838 cat >conftest.$ac_ext <<_ACEOF
42839 /* confdefs.h.  */
42840 _ACEOF
42841 cat confdefs.h >>conftest.$ac_ext
42842 cat >>conftest.$ac_ext <<_ACEOF
42843 /* end confdefs.h.  */
42844 #include <netdb.h>
42845 int
42846 main ()
42847 {
42848
42849             char *name = "www.gnu.org";
42850             (void)gethostbyname_r(name) /* ; */
42851
42852   ;
42853   return 0;
42854 }
42855 _ACEOF
42856 rm -f conftest.$ac_objext
42857 if { (ac_try="$ac_compile"
42858 case "(($ac_try" in
42859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42860   *) ac_try_echo=$ac_try;;
42861 esac
42862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42863   (eval "$ac_compile") 2>conftest.er1
42864   ac_status=$?
42865   grep -v '^ *+' conftest.er1 >conftest.err
42866   rm -f conftest.er1
42867   cat conftest.err >&5
42868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42869   (exit $ac_status); } && {
42870          test -z "$ac_c_werror_flag" ||
42871          test ! -s conftest.err
42872        } && test -s conftest.$ac_objext; then
42873   ac_cv_func_which_gethostbyname_r=no
42874 else
42875   echo "$as_me: failed program was:" >&5
42876 sed 's/^/| /' conftest.$ac_ext >&5
42877
42878
42879 fi
42880
42881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42882
42883 #
42884 # SIX ARGUMENTS
42885 # (e.g. Linux)
42886 #
42887
42888 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42889
42890 cat >conftest.$ac_ext <<_ACEOF
42891 /* confdefs.h.  */
42892 _ACEOF
42893 cat confdefs.h >>conftest.$ac_ext
42894 cat >>conftest.$ac_ext <<_ACEOF
42895 /* end confdefs.h.  */
42896 #include <netdb.h>
42897 int
42898 main ()
42899 {
42900
42901             char *name = "www.gnu.org";
42902             struct hostent ret, *retp;
42903             char buf[1024];
42904             int buflen = 1024;
42905             int my_h_errno;
42906             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
42907
42908   ;
42909   return 0;
42910 }
42911 _ACEOF
42912 rm -f conftest.$ac_objext
42913 if { (ac_try="$ac_compile"
42914 case "(($ac_try" in
42915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42916   *) ac_try_echo=$ac_try;;
42917 esac
42918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42919   (eval "$ac_compile") 2>conftest.er1
42920   ac_status=$?
42921   grep -v '^ *+' conftest.er1 >conftest.err
42922   rm -f conftest.er1
42923   cat conftest.err >&5
42924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42925   (exit $ac_status); } && {
42926          test -z "$ac_c_werror_flag" ||
42927          test ! -s conftest.err
42928        } && test -s conftest.$ac_objext; then
42929   ac_cv_func_which_gethostbyname_r=six
42930 else
42931   echo "$as_me: failed program was:" >&5
42932 sed 's/^/| /' conftest.$ac_ext >&5
42933
42934
42935 fi
42936
42937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42938
42939 fi
42940
42941 #
42942 # FIVE ARGUMENTS
42943 # (e.g. Solaris)
42944 #
42945
42946 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
42947
42948 cat >conftest.$ac_ext <<_ACEOF
42949 /* confdefs.h.  */
42950 _ACEOF
42951 cat confdefs.h >>conftest.$ac_ext
42952 cat >>conftest.$ac_ext <<_ACEOF
42953 /* end confdefs.h.  */
42954 #include <netdb.h>
42955 int
42956 main ()
42957 {
42958
42959             char *name = "www.gnu.org";
42960             struct hostent ret;
42961             char buf[1024];
42962             int buflen = 1024;
42963             int my_h_errno;
42964             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
42965
42966   ;
42967   return 0;
42968 }
42969 _ACEOF
42970 rm -f conftest.$ac_objext
42971 if { (ac_try="$ac_compile"
42972 case "(($ac_try" in
42973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42974   *) ac_try_echo=$ac_try;;
42975 esac
42976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42977   (eval "$ac_compile") 2>conftest.er1
42978   ac_status=$?
42979   grep -v '^ *+' conftest.er1 >conftest.err
42980   rm -f conftest.er1
42981   cat conftest.err >&5
42982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42983   (exit $ac_status); } && {
42984          test -z "$ac_c_werror_flag" ||
42985          test ! -s conftest.err
42986        } && test -s conftest.$ac_objext; then
42987   ac_cv_func_which_gethostbyname_r=five
42988 else
42989   echo "$as_me: failed program was:" >&5
42990 sed 's/^/| /' conftest.$ac_ext >&5
42991
42992
42993 fi
42994
42995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42996
42997 fi
42998
42999 #
43000 # THREE ARGUMENTS
43001 # (e.g. AIX, HP-UX, Tru64)
43002 #
43003
43004 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43005
43006 cat >conftest.$ac_ext <<_ACEOF
43007 /* confdefs.h.  */
43008 _ACEOF
43009 cat confdefs.h >>conftest.$ac_ext
43010 cat >>conftest.$ac_ext <<_ACEOF
43011 /* end confdefs.h.  */
43012 #include <netdb.h>
43013 int
43014 main ()
43015 {
43016
43017             char *name = "www.gnu.org";
43018             struct hostent ret;
43019             struct hostent_data data;
43020             (void)gethostbyname_r(name, &ret, &data) /* ; */
43021
43022   ;
43023   return 0;
43024 }
43025 _ACEOF
43026 rm -f conftest.$ac_objext
43027 if { (ac_try="$ac_compile"
43028 case "(($ac_try" in
43029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43030   *) ac_try_echo=$ac_try;;
43031 esac
43032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43033   (eval "$ac_compile") 2>conftest.er1
43034   ac_status=$?
43035   grep -v '^ *+' conftest.er1 >conftest.err
43036   rm -f conftest.er1
43037   cat conftest.err >&5
43038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43039   (exit $ac_status); } && {
43040          test -z "$ac_c_werror_flag" ||
43041          test ! -s conftest.err
43042        } && test -s conftest.$ac_objext; then
43043   ac_cv_func_which_gethostbyname_r=three
43044 else
43045   echo "$as_me: failed program was:" >&5
43046 sed 's/^/| /' conftest.$ac_ext >&5
43047
43048
43049 fi
43050
43051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43052
43053 fi
43054
43055 ################################################################
43056
43057
43058 fi
43059
43060 case "$ac_cv_func_which_gethostbyname_r" in
43061     three)
43062     { echo "$as_me:$LINENO: result: three" >&5
43063 echo "${ECHO_T}three" >&6; }
43064     cat >>confdefs.h <<\_ACEOF
43065 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43066 _ACEOF
43067
43068     ;;
43069
43070     five)
43071     { echo "$as_me:$LINENO: result: five" >&5
43072 echo "${ECHO_T}five" >&6; }
43073     cat >>confdefs.h <<\_ACEOF
43074 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43075 _ACEOF
43076
43077     ;;
43078
43079     six)
43080     { echo "$as_me:$LINENO: result: six" >&5
43081 echo "${ECHO_T}six" >&6; }
43082     cat >>confdefs.h <<\_ACEOF
43083 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43084 _ACEOF
43085
43086     ;;
43087
43088     no)
43089     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43090 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43091     ;;
43092
43093     unknown)
43094     { echo "$as_me:$LINENO: result: can't tell" >&5
43095 echo "${ECHO_T}can't tell" >&6; }
43096     ;;
43097
43098     *)
43099     { { echo "$as_me:$LINENO: error: internal error" >&5
43100 echo "$as_me: error: internal error" >&2;}
43101    { (exit 1); exit 1; }; }
43102     ;;
43103 esac
43104
43105 ac_ext=c
43106 ac_cpp='$CPP $CPPFLAGS'
43107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43110
43111
43112
43113       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43114               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43115           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43116 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43117 if test "${ac_cv_func_gethostbyname+set}" = set; then
43118   echo $ECHO_N "(cached) $ECHO_C" >&6
43119 else
43120   cat >conftest.$ac_ext <<_ACEOF
43121 /* confdefs.h.  */
43122 _ACEOF
43123 cat confdefs.h >>conftest.$ac_ext
43124 cat >>conftest.$ac_ext <<_ACEOF
43125 /* end confdefs.h.  */
43126 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43127    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43128 #define gethostbyname innocuous_gethostbyname
43129
43130 /* System header to define __stub macros and hopefully few prototypes,
43131     which can conflict with char gethostbyname (); below.
43132     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43133     <limits.h> exists even on freestanding compilers.  */
43134
43135 #ifdef __STDC__
43136 # include <limits.h>
43137 #else
43138 # include <assert.h>
43139 #endif
43140
43141 #undef gethostbyname
43142
43143 /* Override any GCC internal prototype to avoid an error.
43144    Use char because int might match the return type of a GCC
43145    builtin and then its argument prototype would still apply.  */
43146 #ifdef __cplusplus
43147 extern "C"
43148 #endif
43149 char gethostbyname ();
43150 /* The GNU C library defines this for functions which it implements
43151     to always fail with ENOSYS.  Some functions are actually named
43152     something starting with __ and the normal name is an alias.  */
43153 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43154 choke me
43155 #endif
43156
43157 int
43158 main ()
43159 {
43160 return gethostbyname ();
43161   ;
43162   return 0;
43163 }
43164 _ACEOF
43165 rm -f conftest.$ac_objext conftest$ac_exeext
43166 if { (ac_try="$ac_link"
43167 case "(($ac_try" in
43168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43169   *) ac_try_echo=$ac_try;;
43170 esac
43171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43172   (eval "$ac_link") 2>conftest.er1
43173   ac_status=$?
43174   grep -v '^ *+' conftest.er1 >conftest.err
43175   rm -f conftest.er1
43176   cat conftest.err >&5
43177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43178   (exit $ac_status); } && {
43179          test -z "$ac_c_werror_flag" ||
43180          test ! -s conftest.err
43181        } && test -s conftest$ac_exeext &&
43182        $as_test_x conftest$ac_exeext; then
43183   ac_cv_func_gethostbyname=yes
43184 else
43185   echo "$as_me: failed program was:" >&5
43186 sed 's/^/| /' conftest.$ac_ext >&5
43187
43188         ac_cv_func_gethostbyname=no
43189 fi
43190
43191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43192       conftest$ac_exeext conftest.$ac_ext
43193 fi
43194 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43195 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43196 if test $ac_cv_func_gethostbyname = yes; then
43197    cat >>confdefs.h <<\_ACEOF
43198 #define HAVE_GETHOSTBYNAME 1
43199 _ACEOF
43200
43201 fi
43202
43203       fi
43204
43205 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43206 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43207 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43208   echo $ECHO_N "(cached) $ECHO_C" >&6
43209 else
43210
43211                 ac_ext=cpp
43212 ac_cpp='$CXXCPP $CPPFLAGS'
43213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43216
43217
43218         cat >conftest.$ac_ext <<_ACEOF
43219 /* confdefs.h.  */
43220 _ACEOF
43221 cat confdefs.h >>conftest.$ac_ext
43222 cat >>conftest.$ac_ext <<_ACEOF
43223 /* end confdefs.h.  */
43224 #include <netdb.h>
43225 int
43226 main ()
43227 {
43228
43229                 char *name;
43230                 char *proto;
43231                 struct servent *se, *res;
43232                 char buffer[2048];
43233                 int buflen = 2048;
43234                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43235
43236   ;
43237   return 0;
43238 }
43239 _ACEOF
43240 rm -f conftest.$ac_objext
43241 if { (ac_try="$ac_compile"
43242 case "(($ac_try" in
43243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43244   *) ac_try_echo=$ac_try;;
43245 esac
43246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43247   (eval "$ac_compile") 2>conftest.er1
43248   ac_status=$?
43249   grep -v '^ *+' conftest.er1 >conftest.err
43250   rm -f conftest.er1
43251   cat conftest.err >&5
43252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43253   (exit $ac_status); } && {
43254          test -z "$ac_cxx_werror_flag" ||
43255          test ! -s conftest.err
43256        } && test -s conftest.$ac_objext; then
43257   ac_cv_func_which_getservbyname_r=six
43258 else
43259   echo "$as_me: failed program was:" >&5
43260 sed 's/^/| /' conftest.$ac_ext >&5
43261
43262
43263                 cat >conftest.$ac_ext <<_ACEOF
43264 /* confdefs.h.  */
43265 _ACEOF
43266 cat confdefs.h >>conftest.$ac_ext
43267 cat >>conftest.$ac_ext <<_ACEOF
43268 /* end confdefs.h.  */
43269 #include <netdb.h>
43270 int
43271 main ()
43272 {
43273
43274                         char *name;
43275                         char *proto;
43276                         struct servent *se;
43277                         char buffer[2048];
43278                         int buflen = 2048;
43279                         (void) getservbyname_r(name, proto, se, buffer, buflen)
43280
43281   ;
43282   return 0;
43283 }
43284 _ACEOF
43285 rm -f conftest.$ac_objext
43286 if { (ac_try="$ac_compile"
43287 case "(($ac_try" in
43288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43289   *) ac_try_echo=$ac_try;;
43290 esac
43291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43292   (eval "$ac_compile") 2>conftest.er1
43293   ac_status=$?
43294   grep -v '^ *+' conftest.er1 >conftest.err
43295   rm -f conftest.er1
43296   cat conftest.err >&5
43297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43298   (exit $ac_status); } && {
43299          test -z "$ac_cxx_werror_flag" ||
43300          test ! -s conftest.err
43301        } && test -s conftest.$ac_objext; then
43302   ac_cv_func_which_getservbyname_r=five
43303 else
43304   echo "$as_me: failed program was:" >&5
43305 sed 's/^/| /' conftest.$ac_ext >&5
43306
43307
43308                         cat >conftest.$ac_ext <<_ACEOF
43309 /* confdefs.h.  */
43310 _ACEOF
43311 cat confdefs.h >>conftest.$ac_ext
43312 cat >>conftest.$ac_ext <<_ACEOF
43313 /* end confdefs.h.  */
43314 #include <netdb.h>
43315 int
43316 main ()
43317 {
43318
43319                                 char *name;
43320                                 char *proto;
43321                                 struct servent *se;
43322                                 struct servent_data data;
43323                                 (void) getservbyname_r(name, proto, se, &data);
43324
43325   ;
43326   return 0;
43327 }
43328 _ACEOF
43329 rm -f conftest.$ac_objext
43330 if { (ac_try="$ac_compile"
43331 case "(($ac_try" in
43332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43333   *) ac_try_echo=$ac_try;;
43334 esac
43335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43336   (eval "$ac_compile") 2>conftest.er1
43337   ac_status=$?
43338   grep -v '^ *+' conftest.er1 >conftest.err
43339   rm -f conftest.er1
43340   cat conftest.err >&5
43341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43342   (exit $ac_status); } && {
43343          test -z "$ac_cxx_werror_flag" ||
43344          test ! -s conftest.err
43345        } && test -s conftest.$ac_objext; then
43346   ac_cv_func_which_getservbyname_r=four
43347 else
43348   echo "$as_me: failed program was:" >&5
43349 sed 's/^/| /' conftest.$ac_ext >&5
43350
43351         ac_cv_func_which_getservbyname_r=no
43352
43353 fi
43354
43355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43356
43357
43358 fi
43359
43360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43361
43362
43363 fi
43364
43365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43366         ac_ext=c
43367 ac_cpp='$CPP $CPPFLAGS'
43368 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43369 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43370 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43371
43372
43373
43374 fi
43375 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
43376 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
43377
43378 if test $ac_cv_func_which_getservbyname_r = six; then
43379   cat >>confdefs.h <<\_ACEOF
43380 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
43381 _ACEOF
43382
43383 elif test $ac_cv_func_which_getservbyname_r = five; then
43384   cat >>confdefs.h <<\_ACEOF
43385 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
43386 _ACEOF
43387
43388 elif test $ac_cv_func_which_getservbyname_r = four; then
43389   cat >>confdefs.h <<\_ACEOF
43390 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
43391 _ACEOF
43392
43393 fi
43394
43395
43396       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
43397               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
43398
43399 for ac_func in getservbyname
43400 do
43401 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43402 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43403 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43404 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43405   echo $ECHO_N "(cached) $ECHO_C" >&6
43406 else
43407   cat >conftest.$ac_ext <<_ACEOF
43408 /* confdefs.h.  */
43409 _ACEOF
43410 cat confdefs.h >>conftest.$ac_ext
43411 cat >>conftest.$ac_ext <<_ACEOF
43412 /* end confdefs.h.  */
43413 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43414    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43415 #define $ac_func innocuous_$ac_func
43416
43417 /* System header to define __stub macros and hopefully few prototypes,
43418     which can conflict with char $ac_func (); below.
43419     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43420     <limits.h> exists even on freestanding compilers.  */
43421
43422 #ifdef __STDC__
43423 # include <limits.h>
43424 #else
43425 # include <assert.h>
43426 #endif
43427
43428 #undef $ac_func
43429
43430 /* Override any GCC internal prototype to avoid an error.
43431    Use char because int might match the return type of a GCC
43432    builtin and then its argument prototype would still apply.  */
43433 #ifdef __cplusplus
43434 extern "C"
43435 #endif
43436 char $ac_func ();
43437 /* The GNU C library defines this for functions which it implements
43438     to always fail with ENOSYS.  Some functions are actually named
43439     something starting with __ and the normal name is an alias.  */
43440 #if defined __stub_$ac_func || defined __stub___$ac_func
43441 choke me
43442 #endif
43443
43444 int
43445 main ()
43446 {
43447 return $ac_func ();
43448   ;
43449   return 0;
43450 }
43451 _ACEOF
43452 rm -f conftest.$ac_objext conftest$ac_exeext
43453 if { (ac_try="$ac_link"
43454 case "(($ac_try" in
43455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43456   *) ac_try_echo=$ac_try;;
43457 esac
43458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43459   (eval "$ac_link") 2>conftest.er1
43460   ac_status=$?
43461   grep -v '^ *+' conftest.er1 >conftest.err
43462   rm -f conftest.er1
43463   cat conftest.err >&5
43464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43465   (exit $ac_status); } && {
43466          test -z "$ac_c_werror_flag" ||
43467          test ! -s conftest.err
43468        } && test -s conftest$ac_exeext &&
43469        $as_test_x conftest$ac_exeext; then
43470   eval "$as_ac_var=yes"
43471 else
43472   echo "$as_me: failed program was:" >&5
43473 sed 's/^/| /' conftest.$ac_ext >&5
43474
43475         eval "$as_ac_var=no"
43476 fi
43477
43478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43479       conftest$ac_exeext conftest.$ac_ext
43480 fi
43481 ac_res=`eval echo '${'$as_ac_var'}'`
43482                { echo "$as_me:$LINENO: result: $ac_res" >&5
43483 echo "${ECHO_T}$ac_res" >&6; }
43484 if test `eval echo '${'$as_ac_var'}'` = yes; then
43485   cat >>confdefs.h <<_ACEOF
43486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43487 _ACEOF
43488   cat >>confdefs.h <<\_ACEOF
43489 #define HAVE_GETSERVBYNAME 1
43490 _ACEOF
43491
43492 fi
43493 done
43494
43495       fi
43496
43497 if test "$wxUSE_THREADS" = "yes"; then
43498   cat >>confdefs.h <<\_ACEOF
43499 #define wxUSE_THREADS 1
43500 _ACEOF
43501
43502
43503   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
43504 else
43505       if test "$wx_cv_func_strtok_r" = "yes"; then
43506     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
43507 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
43508     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
43509         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
43510         { echo "$as_me:$LINENO: result: yes" >&5
43511 echo "${ECHO_T}yes" >&6; }
43512     else
43513         { echo "$as_me:$LINENO: result: no" >&5
43514 echo "${ECHO_T}no" >&6; }
43515     fi
43516   fi
43517 fi
43518
43519 if test "$WXGTK2" = 1 ; then
43520   cat >>confdefs.h <<_ACEOF
43521 #define __WXGTK20__ $WXGTK2
43522 _ACEOF
43523
43524   WXGTK12=1
43525 fi
43526
43527 if test "$WXGTK12" = 1 ; then
43528   cat >>confdefs.h <<_ACEOF
43529 #define __WXGTK12__ $WXGTK12
43530 _ACEOF
43531
43532 fi
43533
43534 if test "$WXGTK127" = 1 ; then
43535   cat >>confdefs.h <<_ACEOF
43536 #define __WXGTK127__ $WXGTK127
43537 _ACEOF
43538
43539 fi
43540
43541 if test "$WXGPE" = 1 ; then
43542   cat >>confdefs.h <<_ACEOF
43543 #define __WXGPE__ $WXGPE
43544 _ACEOF
43545
43546 fi
43547
43548 DEBUG_CFLAGS=
43549 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
43550     DEBUG_CFLAGS="-g"
43551     wxUSE_OPTIMISE=no
43552 fi
43553
43554 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
43555     wxUSE_DEBUG_INFO=yes
43556     if test "$GCC" = yes; then
43557         DEBUG_CFLAGS="-ggdb"
43558     fi
43559 fi
43560
43561 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
43562     cat >>confdefs.h <<\_ACEOF
43563 #define WXDEBUG 1
43564 _ACEOF
43565
43566     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
43567 else
43568     if test "$wxUSE_GTK" = 1 ; then
43569         if test "x$wxGTK_VERSION" = "x1" ; then
43570             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
43571         fi
43572     fi
43573 fi
43574
43575 if test "$wxUSE_MEM_TRACING" = "yes" ; then
43576     cat >>confdefs.h <<\_ACEOF
43577 #define wxUSE_MEMORY_TRACING 1
43578 _ACEOF
43579
43580     cat >>confdefs.h <<\_ACEOF
43581 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
43582 _ACEOF
43583
43584     cat >>confdefs.h <<\_ACEOF
43585 #define wxUSE_DEBUG_NEW_ALWAYS 1
43586 _ACEOF
43587
43588     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
43589 fi
43590
43591 if test "$wxUSE_DMALLOC" = "yes" ; then
43592     DMALLOC_LIBS="-ldmallocthcxx"
43593 fi
43594
43595 PROFILE_FLAGS=
43596 if test "$wxUSE_PROFILE" = "yes" ; then
43597     PROFILE_FLAGS=" -pg"
43598 fi
43599
43600 if test "$GCC" = "yes" ; then
43601     if test "$wxUSE_NO_RTTI" = "yes" ; then
43602         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
43603     fi
43604     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
43605         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
43606     fi
43607     if test "$wxUSE_PERMISSIVE" = "yes" ; then
43608         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
43609     fi
43610
43611                                                 case "${host}" in
43612       powerpc*-*-aix* )
43613         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
43614         ;;
43615       *-hppa* )
43616         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
43617         ;;
43618     esac
43619 fi
43620
43621 OPTIMISE_CFLAGS=
43622 if test "$wxUSE_OPTIMISE" = "no" ; then
43623     if test "$GCC" = yes ; then
43624                         OPTIMISE_CFLAGS="-O0"
43625     fi
43626 else
43627     if test "$GCC" = yes ; then
43628         case "${host}" in
43629             *-pc-os2_emx | *-pc-os2-emx )
43630                                                 OPTIMISE_CFLAGS="-O2"
43631             ;;
43632             *)
43633                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
43634             ;;
43635         esac
43636     else
43637         OPTIMISE_CFLAGS="-O"
43638     fi
43639 fi
43640
43641
43642 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
43643     cat >>confdefs.h <<\_ACEOF
43644 #define WXWIN_COMPATIBILITY_2_6 1
43645 _ACEOF
43646
43647
43648     WXWIN_COMPATIBILITY_2_8="yes"
43649 fi
43650
43651 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
43652     cat >>confdefs.h <<\_ACEOF
43653 #define WXWIN_COMPATIBILITY_2_8 1
43654 _ACEOF
43655
43656 fi
43657
43658
43659 if test "$wxUSE_GUI" = "yes"; then
43660     cat >>confdefs.h <<\_ACEOF
43661 #define wxUSE_GUI 1
43662 _ACEOF
43663
43664
43665                                             fi
43666
43667
43668 if test "$wxUSE_UNIX" = "yes"; then
43669   cat >>confdefs.h <<\_ACEOF
43670 #define wxUSE_UNIX 1
43671 _ACEOF
43672
43673 fi
43674
43675
43676 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
43677
43678     HAVE_DL_FUNCS=0
43679     HAVE_SHL_FUNCS=0
43680     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
43681         if test "$USE_DARWIN" = 1; then
43682                         HAVE_DL_FUNCS=1
43683         elif test "$USE_DOS" = 1; then
43684             HAVE_DL_FUNCS=0
43685         else
43686
43687 for ac_func in dlopen
43688 do
43689 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43690 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43691 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43692 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43693   echo $ECHO_N "(cached) $ECHO_C" >&6
43694 else
43695   cat >conftest.$ac_ext <<_ACEOF
43696 /* confdefs.h.  */
43697 _ACEOF
43698 cat confdefs.h >>conftest.$ac_ext
43699 cat >>conftest.$ac_ext <<_ACEOF
43700 /* end confdefs.h.  */
43701 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43702    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43703 #define $ac_func innocuous_$ac_func
43704
43705 /* System header to define __stub macros and hopefully few prototypes,
43706     which can conflict with char $ac_func (); below.
43707     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43708     <limits.h> exists even on freestanding compilers.  */
43709
43710 #ifdef __STDC__
43711 # include <limits.h>
43712 #else
43713 # include <assert.h>
43714 #endif
43715
43716 #undef $ac_func
43717
43718 /* Override any GCC internal prototype to avoid an error.
43719    Use char because int might match the return type of a GCC
43720    builtin and then its argument prototype would still apply.  */
43721 #ifdef __cplusplus
43722 extern "C"
43723 #endif
43724 char $ac_func ();
43725 /* The GNU C library defines this for functions which it implements
43726     to always fail with ENOSYS.  Some functions are actually named
43727     something starting with __ and the normal name is an alias.  */
43728 #if defined __stub_$ac_func || defined __stub___$ac_func
43729 choke me
43730 #endif
43731
43732 int
43733 main ()
43734 {
43735 return $ac_func ();
43736   ;
43737   return 0;
43738 }
43739 _ACEOF
43740 rm -f conftest.$ac_objext conftest$ac_exeext
43741 if { (ac_try="$ac_link"
43742 case "(($ac_try" in
43743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43744   *) ac_try_echo=$ac_try;;
43745 esac
43746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43747   (eval "$ac_link") 2>conftest.er1
43748   ac_status=$?
43749   grep -v '^ *+' conftest.er1 >conftest.err
43750   rm -f conftest.er1
43751   cat conftest.err >&5
43752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43753   (exit $ac_status); } && {
43754          test -z "$ac_c_werror_flag" ||
43755          test ! -s conftest.err
43756        } && test -s conftest$ac_exeext &&
43757        $as_test_x conftest$ac_exeext; then
43758   eval "$as_ac_var=yes"
43759 else
43760   echo "$as_me: failed program was:" >&5
43761 sed 's/^/| /' conftest.$ac_ext >&5
43762
43763         eval "$as_ac_var=no"
43764 fi
43765
43766 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43767       conftest$ac_exeext conftest.$ac_ext
43768 fi
43769 ac_res=`eval echo '${'$as_ac_var'}'`
43770                { echo "$as_me:$LINENO: result: $ac_res" >&5
43771 echo "${ECHO_T}$ac_res" >&6; }
43772 if test `eval echo '${'$as_ac_var'}'` = yes; then
43773   cat >>confdefs.h <<_ACEOF
43774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43775 _ACEOF
43776
43777                 cat >>confdefs.h <<\_ACEOF
43778 #define HAVE_DLOPEN 1
43779 _ACEOF
43780
43781                 HAVE_DL_FUNCS=1
43782
43783 else
43784
43785                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
43786 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
43787 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
43788   echo $ECHO_N "(cached) $ECHO_C" >&6
43789 else
43790   ac_check_lib_save_LIBS=$LIBS
43791 LIBS="-ldl  $LIBS"
43792 cat >conftest.$ac_ext <<_ACEOF
43793 /* confdefs.h.  */
43794 _ACEOF
43795 cat confdefs.h >>conftest.$ac_ext
43796 cat >>conftest.$ac_ext <<_ACEOF
43797 /* end confdefs.h.  */
43798
43799 /* Override any GCC internal prototype to avoid an error.
43800    Use char because int might match the return type of a GCC
43801    builtin and then its argument prototype would still apply.  */
43802 #ifdef __cplusplus
43803 extern "C"
43804 #endif
43805 char dlopen ();
43806 int
43807 main ()
43808 {
43809 return dlopen ();
43810   ;
43811   return 0;
43812 }
43813 _ACEOF
43814 rm -f conftest.$ac_objext conftest$ac_exeext
43815 if { (ac_try="$ac_link"
43816 case "(($ac_try" in
43817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43818   *) ac_try_echo=$ac_try;;
43819 esac
43820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43821   (eval "$ac_link") 2>conftest.er1
43822   ac_status=$?
43823   grep -v '^ *+' conftest.er1 >conftest.err
43824   rm -f conftest.er1
43825   cat conftest.err >&5
43826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43827   (exit $ac_status); } && {
43828          test -z "$ac_c_werror_flag" ||
43829          test ! -s conftest.err
43830        } && test -s conftest$ac_exeext &&
43831        $as_test_x conftest$ac_exeext; then
43832   ac_cv_lib_dl_dlopen=yes
43833 else
43834   echo "$as_me: failed program was:" >&5
43835 sed 's/^/| /' conftest.$ac_ext >&5
43836
43837         ac_cv_lib_dl_dlopen=no
43838 fi
43839
43840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43841       conftest$ac_exeext conftest.$ac_ext
43842 LIBS=$ac_check_lib_save_LIBS
43843 fi
43844 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
43845 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
43846 if test $ac_cv_lib_dl_dlopen = yes; then
43847
43848                                 cat >>confdefs.h <<\_ACEOF
43849 #define HAVE_DLOPEN 1
43850 _ACEOF
43851
43852                                 HAVE_DL_FUNCS=1
43853                                 DL_LINK=" -ldl$DL_LINK"
43854
43855 else
43856
43857
43858 for ac_func in shl_load
43859 do
43860 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
43861 { echo "$as_me:$LINENO: checking for $ac_func" >&5
43862 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
43863 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
43864   echo $ECHO_N "(cached) $ECHO_C" >&6
43865 else
43866   cat >conftest.$ac_ext <<_ACEOF
43867 /* confdefs.h.  */
43868 _ACEOF
43869 cat confdefs.h >>conftest.$ac_ext
43870 cat >>conftest.$ac_ext <<_ACEOF
43871 /* end confdefs.h.  */
43872 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
43873    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43874 #define $ac_func innocuous_$ac_func
43875
43876 /* System header to define __stub macros and hopefully few prototypes,
43877     which can conflict with char $ac_func (); below.
43878     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43879     <limits.h> exists even on freestanding compilers.  */
43880
43881 #ifdef __STDC__
43882 # include <limits.h>
43883 #else
43884 # include <assert.h>
43885 #endif
43886
43887 #undef $ac_func
43888
43889 /* Override any GCC internal prototype to avoid an error.
43890    Use char because int might match the return type of a GCC
43891    builtin and then its argument prototype would still apply.  */
43892 #ifdef __cplusplus
43893 extern "C"
43894 #endif
43895 char $ac_func ();
43896 /* The GNU C library defines this for functions which it implements
43897     to always fail with ENOSYS.  Some functions are actually named
43898     something starting with __ and the normal name is an alias.  */
43899 #if defined __stub_$ac_func || defined __stub___$ac_func
43900 choke me
43901 #endif
43902
43903 int
43904 main ()
43905 {
43906 return $ac_func ();
43907   ;
43908   return 0;
43909 }
43910 _ACEOF
43911 rm -f conftest.$ac_objext conftest$ac_exeext
43912 if { (ac_try="$ac_link"
43913 case "(($ac_try" in
43914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43915   *) ac_try_echo=$ac_try;;
43916 esac
43917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43918   (eval "$ac_link") 2>conftest.er1
43919   ac_status=$?
43920   grep -v '^ *+' conftest.er1 >conftest.err
43921   rm -f conftest.er1
43922   cat conftest.err >&5
43923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43924   (exit $ac_status); } && {
43925          test -z "$ac_c_werror_flag" ||
43926          test ! -s conftest.err
43927        } && test -s conftest$ac_exeext &&
43928        $as_test_x conftest$ac_exeext; then
43929   eval "$as_ac_var=yes"
43930 else
43931   echo "$as_me: failed program was:" >&5
43932 sed 's/^/| /' conftest.$ac_ext >&5
43933
43934         eval "$as_ac_var=no"
43935 fi
43936
43937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43938       conftest$ac_exeext conftest.$ac_ext
43939 fi
43940 ac_res=`eval echo '${'$as_ac_var'}'`
43941                { echo "$as_me:$LINENO: result: $ac_res" >&5
43942 echo "${ECHO_T}$ac_res" >&6; }
43943 if test `eval echo '${'$as_ac_var'}'` = yes; then
43944   cat >>confdefs.h <<_ACEOF
43945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
43946 _ACEOF
43947
43948                                                 cat >>confdefs.h <<\_ACEOF
43949 #define HAVE_SHL_LOAD 1
43950 _ACEOF
43951
43952                                                 HAVE_SHL_FUNCS=1
43953
43954 else
43955
43956                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
43957 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
43958 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
43959   echo $ECHO_N "(cached) $ECHO_C" >&6
43960 else
43961   ac_check_lib_save_LIBS=$LIBS
43962 LIBS="-lshl_load  $LIBS"
43963 cat >conftest.$ac_ext <<_ACEOF
43964 /* confdefs.h.  */
43965 _ACEOF
43966 cat confdefs.h >>conftest.$ac_ext
43967 cat >>conftest.$ac_ext <<_ACEOF
43968 /* end confdefs.h.  */
43969
43970 /* Override any GCC internal prototype to avoid an error.
43971    Use char because int might match the return type of a GCC
43972    builtin and then its argument prototype would still apply.  */
43973 #ifdef __cplusplus
43974 extern "C"
43975 #endif
43976 char dld ();
43977 int
43978 main ()
43979 {
43980 return dld ();
43981   ;
43982   return 0;
43983 }
43984 _ACEOF
43985 rm -f conftest.$ac_objext conftest$ac_exeext
43986 if { (ac_try="$ac_link"
43987 case "(($ac_try" in
43988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43989   *) ac_try_echo=$ac_try;;
43990 esac
43991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43992   (eval "$ac_link") 2>conftest.er1
43993   ac_status=$?
43994   grep -v '^ *+' conftest.er1 >conftest.err
43995   rm -f conftest.er1
43996   cat conftest.err >&5
43997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43998   (exit $ac_status); } && {
43999          test -z "$ac_c_werror_flag" ||
44000          test ! -s conftest.err
44001        } && test -s conftest$ac_exeext &&
44002        $as_test_x conftest$ac_exeext; then
44003   ac_cv_lib_shl_load_dld=yes
44004 else
44005   echo "$as_me: failed program was:" >&5
44006 sed 's/^/| /' conftest.$ac_ext >&5
44007
44008         ac_cv_lib_shl_load_dld=no
44009 fi
44010
44011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44012       conftest$ac_exeext conftest.$ac_ext
44013 LIBS=$ac_check_lib_save_LIBS
44014 fi
44015 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44016 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44017 if test $ac_cv_lib_shl_load_dld = yes; then
44018
44019                                                                 HAVE_SHL_FUNCS=1
44020                                                                 DL_LINK=" -ldld$DL_LINK"
44021
44022 fi
44023
44024
44025 fi
44026 done
44027
44028
44029 fi
44030
44031
44032 fi
44033 done
44034
44035
44036                 if test "$HAVE_DL_FUNCS" = 1; then
44037
44038 for ac_func in dlerror
44039 do
44040 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44043 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44044   echo $ECHO_N "(cached) $ECHO_C" >&6
44045 else
44046   cat >conftest.$ac_ext <<_ACEOF
44047 /* confdefs.h.  */
44048 _ACEOF
44049 cat confdefs.h >>conftest.$ac_ext
44050 cat >>conftest.$ac_ext <<_ACEOF
44051 /* end confdefs.h.  */
44052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44053    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44054 #define $ac_func innocuous_$ac_func
44055
44056 /* System header to define __stub macros and hopefully few prototypes,
44057     which can conflict with char $ac_func (); below.
44058     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44059     <limits.h> exists even on freestanding compilers.  */
44060
44061 #ifdef __STDC__
44062 # include <limits.h>
44063 #else
44064 # include <assert.h>
44065 #endif
44066
44067 #undef $ac_func
44068
44069 /* Override any GCC internal prototype to avoid an error.
44070    Use char because int might match the return type of a GCC
44071    builtin and then its argument prototype would still apply.  */
44072 #ifdef __cplusplus
44073 extern "C"
44074 #endif
44075 char $ac_func ();
44076 /* The GNU C library defines this for functions which it implements
44077     to always fail with ENOSYS.  Some functions are actually named
44078     something starting with __ and the normal name is an alias.  */
44079 #if defined __stub_$ac_func || defined __stub___$ac_func
44080 choke me
44081 #endif
44082
44083 int
44084 main ()
44085 {
44086 return $ac_func ();
44087   ;
44088   return 0;
44089 }
44090 _ACEOF
44091 rm -f conftest.$ac_objext conftest$ac_exeext
44092 if { (ac_try="$ac_link"
44093 case "(($ac_try" in
44094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44095   *) ac_try_echo=$ac_try;;
44096 esac
44097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44098   (eval "$ac_link") 2>conftest.er1
44099   ac_status=$?
44100   grep -v '^ *+' conftest.er1 >conftest.err
44101   rm -f conftest.er1
44102   cat conftest.err >&5
44103   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44104   (exit $ac_status); } && {
44105          test -z "$ac_c_werror_flag" ||
44106          test ! -s conftest.err
44107        } && test -s conftest$ac_exeext &&
44108        $as_test_x conftest$ac_exeext; then
44109   eval "$as_ac_var=yes"
44110 else
44111   echo "$as_me: failed program was:" >&5
44112 sed 's/^/| /' conftest.$ac_ext >&5
44113
44114         eval "$as_ac_var=no"
44115 fi
44116
44117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44118       conftest$ac_exeext conftest.$ac_ext
44119 fi
44120 ac_res=`eval echo '${'$as_ac_var'}'`
44121                { echo "$as_me:$LINENO: result: $ac_res" >&5
44122 echo "${ECHO_T}$ac_res" >&6; }
44123 if test `eval echo '${'$as_ac_var'}'` = yes; then
44124   cat >>confdefs.h <<_ACEOF
44125 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44126 _ACEOF
44127  cat >>confdefs.h <<\_ACEOF
44128 #define HAVE_DLERROR 1
44129 _ACEOF
44130
44131 else
44132
44133                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44134 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44135 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44136   echo $ECHO_N "(cached) $ECHO_C" >&6
44137 else
44138   ac_check_lib_save_LIBS=$LIBS
44139 LIBS="-ldl  $LIBS"
44140 cat >conftest.$ac_ext <<_ACEOF
44141 /* confdefs.h.  */
44142 _ACEOF
44143 cat confdefs.h >>conftest.$ac_ext
44144 cat >>conftest.$ac_ext <<_ACEOF
44145 /* end confdefs.h.  */
44146
44147 /* Override any GCC internal prototype to avoid an error.
44148    Use char because int might match the return type of a GCC
44149    builtin and then its argument prototype would still apply.  */
44150 #ifdef __cplusplus
44151 extern "C"
44152 #endif
44153 char dlerror ();
44154 int
44155 main ()
44156 {
44157 return dlerror ();
44158   ;
44159   return 0;
44160 }
44161 _ACEOF
44162 rm -f conftest.$ac_objext conftest$ac_exeext
44163 if { (ac_try="$ac_link"
44164 case "(($ac_try" in
44165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44166   *) ac_try_echo=$ac_try;;
44167 esac
44168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44169   (eval "$ac_link") 2>conftest.er1
44170   ac_status=$?
44171   grep -v '^ *+' conftest.er1 >conftest.err
44172   rm -f conftest.er1
44173   cat conftest.err >&5
44174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44175   (exit $ac_status); } && {
44176          test -z "$ac_c_werror_flag" ||
44177          test ! -s conftest.err
44178        } && test -s conftest$ac_exeext &&
44179        $as_test_x conftest$ac_exeext; then
44180   ac_cv_lib_dl_dlerror=yes
44181 else
44182   echo "$as_me: failed program was:" >&5
44183 sed 's/^/| /' conftest.$ac_ext >&5
44184
44185         ac_cv_lib_dl_dlerror=no
44186 fi
44187
44188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44189       conftest$ac_exeext conftest.$ac_ext
44190 LIBS=$ac_check_lib_save_LIBS
44191 fi
44192 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44193 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44194 if test $ac_cv_lib_dl_dlerror = yes; then
44195   cat >>confdefs.h <<\_ACEOF
44196 #define HAVE_DLERROR 1
44197 _ACEOF
44198
44199 fi
44200
44201
44202
44203 fi
44204 done
44205
44206         fi
44207         fi
44208
44209         if test "$HAVE_DL_FUNCS" = 0; then
44210             if test "$HAVE_SHL_FUNCS" = 0; then
44211               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44212                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44213 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44214                   wxUSE_DYNAMIC_LOADER=no
44215                   wxUSE_DYNLIB_CLASS=no
44216               else
44217                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44218 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44219               fi
44220             fi
44221         fi
44222     fi
44223 fi
44224
44225 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44226     cat >>confdefs.h <<\_ACEOF
44227 #define wxUSE_DYNAMIC_LOADER 1
44228 _ACEOF
44229
44230 fi
44231 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44232     cat >>confdefs.h <<\_ACEOF
44233 #define wxUSE_DYNLIB_CLASS 1
44234 _ACEOF
44235
44236 fi
44237
44238
44239
44240 if test "$wxUSE_PLUGINS" = "yes" ; then
44241     if test "$wxUSE_SHARED" = "no" ; then
44242         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44243 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44244         wxUSE_PLUGINS=no
44245     fi
44246     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44247         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44248 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44249         wxUSE_PLUGINS=no
44250     fi
44251     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
44252         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
44253 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
44254         wxUSE_PLUGINS=no
44255     fi
44256     if test "$wxUSE_PLUGINS" = "yes" ; then
44257         cat >>confdefs.h <<\_ACEOF
44258 #define wxUSE_PLUGINS 1
44259 _ACEOF
44260
44261     fi
44262 fi
44263
44264
44265 if test "$wxUSE_STL" = "yes"; then
44266   cat >>confdefs.h <<\_ACEOF
44267 #define wxUSE_STL 1
44268 _ACEOF
44269
44270 fi
44271
44272 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
44273   cat >>confdefs.h <<\_ACEOF
44274 #define wxUSE_EXTENDED_RTTI 1
44275 _ACEOF
44276
44277 fi
44278
44279 if test "$wxUSE_APPLE_IEEE" = "yes"; then
44280   cat >>confdefs.h <<\_ACEOF
44281 #define wxUSE_APPLE_IEEE 1
44282 _ACEOF
44283
44284 fi
44285
44286 if test "$wxUSE_TIMER" = "yes"; then
44287   cat >>confdefs.h <<\_ACEOF
44288 #define wxUSE_TIMER 1
44289 _ACEOF
44290
44291 fi
44292
44293 if test "$USE_UNIX" = "1" ; then
44294         if test "$wxUSE_MGL" != 1; then
44295                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
44296 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
44297 if test "${ac_cv_header_sys_soundcard+set}" = set; then
44298   echo $ECHO_N "(cached) $ECHO_C" >&6
44299 else
44300
44301             cat >conftest.$ac_ext <<_ACEOF
44302 /* confdefs.h.  */
44303 _ACEOF
44304 cat confdefs.h >>conftest.$ac_ext
44305 cat >>conftest.$ac_ext <<_ACEOF
44306 /* end confdefs.h.  */
44307
44308                     #include <sys/ioctl.h>
44309                     #include <sys/soundcard.h>
44310
44311 int
44312 main ()
44313 {
44314
44315                     ioctl(0, SNDCTL_DSP_SPEED, 0);
44316
44317   ;
44318   return 0;
44319 }
44320 _ACEOF
44321 rm -f conftest.$ac_objext conftest$ac_exeext
44322 if { (ac_try="$ac_link"
44323 case "(($ac_try" in
44324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44325   *) ac_try_echo=$ac_try;;
44326 esac
44327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44328   (eval "$ac_link") 2>conftest.er1
44329   ac_status=$?
44330   grep -v '^ *+' conftest.er1 >conftest.err
44331   rm -f conftest.er1
44332   cat conftest.err >&5
44333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44334   (exit $ac_status); } && {
44335          test -z "$ac_c_werror_flag" ||
44336          test ! -s conftest.err
44337        } && test -s conftest$ac_exeext &&
44338        $as_test_x conftest$ac_exeext; then
44339   ac_cv_header_sys_soundcard=yes
44340 else
44341   echo "$as_me: failed program was:" >&5
44342 sed 's/^/| /' conftest.$ac_ext >&5
44343
44344
44345                     saveLibs="$LIBS"
44346                     LIBS="$saveLibs -lossaudio"
44347                     cat >conftest.$ac_ext <<_ACEOF
44348 /* confdefs.h.  */
44349 _ACEOF
44350 cat confdefs.h >>conftest.$ac_ext
44351 cat >>conftest.$ac_ext <<_ACEOF
44352 /* end confdefs.h.  */
44353
44354                             #include <sys/ioctl.h>
44355                             #include <sys/soundcard.h>
44356
44357 int
44358 main ()
44359 {
44360
44361                             ioctl(0, SNDCTL_DSP_SPEED, 0);
44362
44363   ;
44364   return 0;
44365 }
44366 _ACEOF
44367 rm -f conftest.$ac_objext conftest$ac_exeext
44368 if { (ac_try="$ac_link"
44369 case "(($ac_try" in
44370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44371   *) ac_try_echo=$ac_try;;
44372 esac
44373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44374   (eval "$ac_link") 2>conftest.er1
44375   ac_status=$?
44376   grep -v '^ *+' conftest.er1 >conftest.err
44377   rm -f conftest.er1
44378   cat conftest.err >&5
44379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44380   (exit $ac_status); } && {
44381          test -z "$ac_c_werror_flag" ||
44382          test ! -s conftest.err
44383        } && test -s conftest$ac_exeext &&
44384        $as_test_x conftest$ac_exeext; then
44385   ac_cv_header_sys_soundcard=yes
44386 else
44387   echo "$as_me: failed program was:" >&5
44388 sed 's/^/| /' conftest.$ac_ext >&5
44389
44390
44391                             LIBS="$saveLibs"
44392                             ac_cv_header_sys_soundcard=no
44393
44394
44395 fi
44396
44397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44398       conftest$ac_exeext conftest.$ac_ext
44399
44400
44401 fi
44402
44403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44404       conftest$ac_exeext conftest.$ac_ext
44405
44406 fi
44407 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
44408 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
44409     fi
44410
44411     if test "$ac_cv_header_sys_soundcard" = "yes"; then
44412         cat >>confdefs.h <<\_ACEOF
44413 #define HAVE_SYS_SOUNDCARD_H 1
44414 _ACEOF
44415
44416     fi
44417 fi
44418
44419 WITH_PLUGIN_SDL=0
44420 if test "$wxUSE_SOUND" = "yes"; then
44421   if test "$USE_UNIX" = "1" ; then
44422     if test "$wxUSE_LIBSDL" != "no"; then
44423
44424 # Check whether --with-sdl-prefix was given.
44425 if test "${with_sdl_prefix+set}" = set; then
44426   withval=$with_sdl_prefix; sdl_prefix="$withval"
44427 else
44428   sdl_prefix=""
44429 fi
44430
44431
44432 # Check whether --with-sdl-exec-prefix was given.
44433 if test "${with_sdl_exec_prefix+set}" = set; then
44434   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
44435 else
44436   sdl_exec_prefix=""
44437 fi
44438
44439 # Check whether --enable-sdltest was given.
44440 if test "${enable_sdltest+set}" = set; then
44441   enableval=$enable_sdltest;
44442 else
44443   enable_sdltest=yes
44444 fi
44445
44446
44447   if test x$sdl_exec_prefix != x ; then
44448     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
44449     if test x${SDL_CONFIG+set} != xset ; then
44450       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
44451     fi
44452   fi
44453   if test x$sdl_prefix != x ; then
44454     sdl_args="$sdl_args --prefix=$sdl_prefix"
44455     if test x${SDL_CONFIG+set} != xset ; then
44456       SDL_CONFIG=$sdl_prefix/bin/sdl-config
44457     fi
44458   fi
44459
44460   if test "x$prefix" != xNONE; then
44461     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
44462   fi
44463   # Extract the first word of "sdl-config", so it can be a program name with args.
44464 set dummy sdl-config; ac_word=$2
44465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44467 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
44468   echo $ECHO_N "(cached) $ECHO_C" >&6
44469 else
44470   case $SDL_CONFIG in
44471   [\\/]* | ?:[\\/]*)
44472   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
44473   ;;
44474   *)
44475   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44476 for as_dir in $PATH
44477 do
44478   IFS=$as_save_IFS
44479   test -z "$as_dir" && as_dir=.
44480   for ac_exec_ext in '' $ac_executable_extensions; do
44481   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44482     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44484     break 2
44485   fi
44486 done
44487 done
44488 IFS=$as_save_IFS
44489
44490   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
44491   ;;
44492 esac
44493 fi
44494 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
44495 if test -n "$SDL_CONFIG"; then
44496   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
44497 echo "${ECHO_T}$SDL_CONFIG" >&6; }
44498 else
44499   { echo "$as_me:$LINENO: result: no" >&5
44500 echo "${ECHO_T}no" >&6; }
44501 fi
44502
44503
44504   min_sdl_version=1.2.0
44505   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
44506 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
44507   no_sdl=""
44508   if test "$SDL_CONFIG" = "no" ; then
44509     no_sdl=yes
44510   else
44511     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
44512     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
44513
44514     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
44515            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
44516     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
44517            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
44518     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
44519            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
44520     if test "x$enable_sdltest" = "xyes" ; then
44521       ac_save_CFLAGS="$CFLAGS"
44522       ac_save_CXXFLAGS="$CXXFLAGS"
44523       ac_save_LIBS="$LIBS"
44524       CFLAGS="$CFLAGS $SDL_CFLAGS"
44525       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44526       LIBS="$LIBS $SDL_LIBS"
44527       rm -f conf.sdltest
44528       if test "$cross_compiling" = yes; then
44529   echo $ac_n "cross compiling; assumed OK... $ac_c"
44530 else
44531   cat >conftest.$ac_ext <<_ACEOF
44532 /* confdefs.h.  */
44533 _ACEOF
44534 cat confdefs.h >>conftest.$ac_ext
44535 cat >>conftest.$ac_ext <<_ACEOF
44536 /* end confdefs.h.  */
44537
44538 #include <stdio.h>
44539 #include <stdlib.h>
44540 #include <string.h>
44541 #include "SDL.h"
44542
44543 char*
44544 my_strdup (char *str)
44545 {
44546   char *new_str;
44547
44548   if (str)
44549     {
44550       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
44551       strcpy (new_str, str);
44552     }
44553   else
44554     new_str = NULL;
44555
44556   return new_str;
44557 }
44558
44559 int main (int argc, char *argv[])
44560 {
44561   int major, minor, micro;
44562   char *tmp_version;
44563
44564   /* This hangs on some systems (?)
44565   system ("touch conf.sdltest");
44566   */
44567   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
44568
44569   /* HP/UX 9 (%@#!) writes to sscanf strings */
44570   tmp_version = my_strdup("$min_sdl_version");
44571   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
44572      printf("%s, bad version string\n", "$min_sdl_version");
44573      exit(1);
44574    }
44575
44576    if (($sdl_major_version > major) ||
44577       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
44578       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
44579     {
44580       return 0;
44581     }
44582   else
44583     {
44584       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
44585       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
44586       printf("*** best to upgrade to the required version.\n");
44587       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
44588       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
44589       printf("*** config.cache before re-running configure\n");
44590       return 1;
44591     }
44592 }
44593
44594
44595 _ACEOF
44596 rm -f conftest$ac_exeext
44597 if { (ac_try="$ac_link"
44598 case "(($ac_try" in
44599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44600   *) ac_try_echo=$ac_try;;
44601 esac
44602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44603   (eval "$ac_link") 2>&5
44604   ac_status=$?
44605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44606   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44607   { (case "(($ac_try" in
44608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44609   *) ac_try_echo=$ac_try;;
44610 esac
44611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44612   (eval "$ac_try") 2>&5
44613   ac_status=$?
44614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44615   (exit $ac_status); }; }; then
44616   :
44617 else
44618   echo "$as_me: program exited with status $ac_status" >&5
44619 echo "$as_me: failed program was:" >&5
44620 sed 's/^/| /' conftest.$ac_ext >&5
44621
44622 ( exit $ac_status )
44623 no_sdl=yes
44624 fi
44625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44626 fi
44627
44628
44629        CFLAGS="$ac_save_CFLAGS"
44630        CXXFLAGS="$ac_save_CXXFLAGS"
44631        LIBS="$ac_save_LIBS"
44632      fi
44633   fi
44634   if test "x$no_sdl" = x ; then
44635      { echo "$as_me:$LINENO: result: yes" >&5
44636 echo "${ECHO_T}yes" >&6; }
44637
44638                     EXTRALIBS_SDL="$SDL_LIBS"
44639                     CFLAGS="$SDL_CFLAGS $CFLAGS"
44640                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
44641                     cat >>confdefs.h <<\_ACEOF
44642 #define wxUSE_LIBSDL 1
44643 _ACEOF
44644
44645
44646   else
44647      { echo "$as_me:$LINENO: result: no" >&5
44648 echo "${ECHO_T}no" >&6; }
44649      if test "$SDL_CONFIG" = "no" ; then
44650        echo "*** The sdl-config script installed by SDL could not be found"
44651        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
44652        echo "*** your path, or set the SDL_CONFIG environment variable to the"
44653        echo "*** full path to sdl-config."
44654      else
44655        if test -f conf.sdltest ; then
44656         :
44657        else
44658           echo "*** Could not run SDL test program, checking why..."
44659           CFLAGS="$CFLAGS $SDL_CFLAGS"
44660           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
44661           LIBS="$LIBS $SDL_LIBS"
44662           cat >conftest.$ac_ext <<_ACEOF
44663 /* confdefs.h.  */
44664 _ACEOF
44665 cat confdefs.h >>conftest.$ac_ext
44666 cat >>conftest.$ac_ext <<_ACEOF
44667 /* end confdefs.h.  */
44668
44669 #include <stdio.h>
44670 #include "SDL.h"
44671
44672 int main(int argc, char *argv[])
44673 { return 0; }
44674 #undef  main
44675 #define main K_and_R_C_main
44676
44677 int
44678 main ()
44679 {
44680  return 0;
44681   ;
44682   return 0;
44683 }
44684 _ACEOF
44685 rm -f conftest.$ac_objext conftest$ac_exeext
44686 if { (ac_try="$ac_link"
44687 case "(($ac_try" in
44688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44689   *) ac_try_echo=$ac_try;;
44690 esac
44691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44692   (eval "$ac_link") 2>conftest.er1
44693   ac_status=$?
44694   grep -v '^ *+' conftest.er1 >conftest.err
44695   rm -f conftest.er1
44696   cat conftest.err >&5
44697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44698   (exit $ac_status); } && {
44699          test -z "$ac_c_werror_flag" ||
44700          test ! -s conftest.err
44701        } && test -s conftest$ac_exeext &&
44702        $as_test_x conftest$ac_exeext; then
44703    echo "*** The test program compiled, but did not run. This usually means"
44704           echo "*** that the run-time linker is not finding SDL or finding the wrong"
44705           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
44706           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
44707           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
44708           echo "*** is required on your system"
44709           echo "***"
44710           echo "*** If you have an old version installed, it is best to remove it, although"
44711           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
44712 else
44713   echo "$as_me: failed program was:" >&5
44714 sed 's/^/| /' conftest.$ac_ext >&5
44715
44716          echo "*** The test program failed to compile or link. See the file config.log for the"
44717           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
44718           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
44719           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
44720 fi
44721
44722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44723       conftest$ac_exeext conftest.$ac_ext
44724           CFLAGS="$ac_save_CFLAGS"
44725           CXXFLAGS="$ac_save_CXXFLAGS"
44726           LIBS="$ac_save_LIBS"
44727        fi
44728      fi
44729      SDL_CFLAGS=""
44730      SDL_LIBS=""
44731      wxUSE_LIBSDL="no"
44732   fi
44733
44734
44735   rm -f conf.sdltest
44736
44737       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
44738         WITH_PLUGIN_SDL=1
44739       fi
44740     fi
44741   else
44742         if test "$wxUSE_MGL" = 1; then
44743         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
44744 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
44745         wxUSE_SOUND="no"
44746     fi
44747   fi
44748 fi
44749
44750 if test "$wxUSE_SOUND" = "yes"; then
44751   cat >>confdefs.h <<\_ACEOF
44752 #define wxUSE_SOUND 1
44753 _ACEOF
44754
44755   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
44756 fi
44757
44758 if test "$WXGTK2" = 1; then
44759
44760
44761 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
44762         if test -n "$ac_tool_prefix"; then
44763   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44764 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44767 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
44768   echo $ECHO_N "(cached) $ECHO_C" >&6
44769 else
44770   case $PKG_CONFIG in
44771   [\\/]* | ?:[\\/]*)
44772   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
44773   ;;
44774   *)
44775   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44776 for as_dir in $PATH
44777 do
44778   IFS=$as_save_IFS
44779   test -z "$as_dir" && as_dir=.
44780   for ac_exec_ext in '' $ac_executable_extensions; do
44781   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44782     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44783     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44784     break 2
44785   fi
44786 done
44787 done
44788 IFS=$as_save_IFS
44789
44790   ;;
44791 esac
44792 fi
44793 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
44794 if test -n "$PKG_CONFIG"; then
44795   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
44796 echo "${ECHO_T}$PKG_CONFIG" >&6; }
44797 else
44798   { echo "$as_me:$LINENO: result: no" >&5
44799 echo "${ECHO_T}no" >&6; }
44800 fi
44801
44802
44803 fi
44804 if test -z "$ac_cv_path_PKG_CONFIG"; then
44805   ac_pt_PKG_CONFIG=$PKG_CONFIG
44806   # Extract the first word of "pkg-config", so it can be a program name with args.
44807 set dummy pkg-config; ac_word=$2
44808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
44809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
44810 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
44811   echo $ECHO_N "(cached) $ECHO_C" >&6
44812 else
44813   case $ac_pt_PKG_CONFIG in
44814   [\\/]* | ?:[\\/]*)
44815   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
44816   ;;
44817   *)
44818   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44819 for as_dir in $PATH
44820 do
44821   IFS=$as_save_IFS
44822   test -z "$as_dir" && as_dir=.
44823   for ac_exec_ext in '' $ac_executable_extensions; do
44824   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
44825     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
44826     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
44827     break 2
44828   fi
44829 done
44830 done
44831 IFS=$as_save_IFS
44832
44833   ;;
44834 esac
44835 fi
44836 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
44837 if test -n "$ac_pt_PKG_CONFIG"; then
44838   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
44839 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
44840 else
44841   { echo "$as_me:$LINENO: result: no" >&5
44842 echo "${ECHO_T}no" >&6; }
44843 fi
44844
44845   if test "x$ac_pt_PKG_CONFIG" = x; then
44846     PKG_CONFIG=""
44847   else
44848     case $cross_compiling:$ac_tool_warned in
44849 yes:)
44850 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
44851 whose name does not start with the host triplet.  If you think this
44852 configuration is useful to you, please write to autoconf@gnu.org." >&5
44853 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
44854 whose name does not start with the host triplet.  If you think this
44855 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
44856 ac_tool_warned=yes ;;
44857 esac
44858     PKG_CONFIG=$ac_pt_PKG_CONFIG
44859   fi
44860 else
44861   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
44862 fi
44863
44864 fi
44865 if test -n "$PKG_CONFIG"; then
44866         _pkg_min_version=0.9.0
44867         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
44868 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
44869         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
44870                 { echo "$as_me:$LINENO: result: yes" >&5
44871 echo "${ECHO_T}yes" >&6; }
44872         else
44873                 { echo "$as_me:$LINENO: result: no" >&5
44874 echo "${ECHO_T}no" >&6; }
44875                 PKG_CONFIG=""
44876         fi
44877
44878 fi
44879
44880     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
44881
44882         if test "$wxUSE_GTKPRINT" = "yes" ; then
44883
44884
44885 pkg_failed=no
44886 { echo "$as_me:$LINENO: checking for GTKPRINT" >&5
44887 echo $ECHO_N "checking for GTKPRINT... $ECHO_C" >&6; }
44888
44889 if test -n "$PKG_CONFIG"; then
44890     if test -n "$GTKPRINT_CFLAGS"; then
44891         pkg_cv_GTKPRINT_CFLAGS="$GTKPRINT_CFLAGS"
44892     else
44893         if test -n "$PKG_CONFIG" && \
44894     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44895   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44896   ac_status=$?
44897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44898   (exit $ac_status); }; then
44899   pkg_cv_GTKPRINT_CFLAGS=`$PKG_CONFIG --cflags "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44900 else
44901   pkg_failed=yes
44902 fi
44903     fi
44904 else
44905         pkg_failed=untried
44906 fi
44907 if test -n "$PKG_CONFIG"; then
44908     if test -n "$GTKPRINT_LIBS"; then
44909         pkg_cv_GTKPRINT_LIBS="$GTKPRINT_LIBS"
44910     else
44911         if test -n "$PKG_CONFIG" && \
44912     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk+-unix-print-2.0 >= 2.10\"") >&5
44913   ($PKG_CONFIG --exists --print-errors "gtk+-unix-print-2.0 >= 2.10") 2>&5
44914   ac_status=$?
44915   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44916   (exit $ac_status); }; then
44917   pkg_cv_GTKPRINT_LIBS=`$PKG_CONFIG --libs "gtk+-unix-print-2.0 >= 2.10" 2>/dev/null`
44918 else
44919   pkg_failed=yes
44920 fi
44921     fi
44922 else
44923         pkg_failed=untried
44924 fi
44925
44926
44927
44928 if test $pkg_failed = yes; then
44929
44930 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
44931         _pkg_short_errors_supported=yes
44932 else
44933         _pkg_short_errors_supported=no
44934 fi
44935         if test $_pkg_short_errors_supported = yes; then
44936                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44937         else
44938                 GTKPRINT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-unix-print-2.0 >= 2.10"`
44939         fi
44940         # Put the nasty error message in config.log where it belongs
44941         echo "$GTKPRINT_PKG_ERRORS" >&5
44942
44943
44944                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44945 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44946                         wxUSE_GTKPRINT="no"
44947
44948
44949 elif test $pkg_failed = untried; then
44950
44951                         { echo "$as_me:$LINENO: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&5
44952 echo "$as_me: WARNING: GTK printing support not found (GTK+ >= 2.10), library will use GNOME printing support or standard PostScript printing" >&2;}
44953                         wxUSE_GTKPRINT="no"
44954
44955
44956 else
44957         GTKPRINT_CFLAGS=$pkg_cv_GTKPRINT_CFLAGS
44958         GTKPRINT_LIBS=$pkg_cv_GTKPRINT_LIBS
44959         { echo "$as_me:$LINENO: result: yes" >&5
44960 echo "${ECHO_T}yes" >&6; }
44961
44962                         CFLAGS="$GTKPRINT_CFLAGS $CFLAGS"
44963                         CXXFLAGS="$GTKPRINT_CFLAGS $CXXFLAGS"
44964                         cat >>confdefs.h <<\_ACEOF
44965 #define wxUSE_GTKPRINT 1
44966 _ACEOF
44967
44968
44969 fi
44970         fi
44971
44972         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
44973
44974
44975 pkg_failed=no
44976 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
44977 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
44978
44979 if test -n "$PKG_CONFIG"; then
44980     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
44981         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
44982     else
44983         if test -n "$PKG_CONFIG" && \
44984     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
44985   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
44986   ac_status=$?
44987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44988   (exit $ac_status); }; then
44989   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
44990 else
44991   pkg_failed=yes
44992 fi
44993     fi
44994 else
44995         pkg_failed=untried
44996 fi
44997 if test -n "$PKG_CONFIG"; then
44998     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
44999         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45000     else
45001         if test -n "$PKG_CONFIG" && \
45002     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45003   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45004   ac_status=$?
45005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45006   (exit $ac_status); }; then
45007   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45008 else
45009   pkg_failed=yes
45010 fi
45011     fi
45012 else
45013         pkg_failed=untried
45014 fi
45015
45016
45017
45018 if test $pkg_failed = yes; then
45019
45020 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45021         _pkg_short_errors_supported=yes
45022 else
45023         _pkg_short_errors_supported=no
45024 fi
45025         if test $_pkg_short_errors_supported = yes; then
45026                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45027         else
45028                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45029         fi
45030         # Put the nasty error message in config.log where it belongs
45031         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45032
45033
45034                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45035 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45036                         wxUSE_LIBGNOMEPRINT="no"
45037
45038
45039 elif test $pkg_failed = untried; then
45040
45041                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45042 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45043                         wxUSE_LIBGNOMEPRINT="no"
45044
45045
45046 else
45047         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45048         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45049         { echo "$as_me:$LINENO: result: yes" >&5
45050 echo "${ECHO_T}yes" >&6; }
45051
45052                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45053                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45054                         cat >>confdefs.h <<\_ACEOF
45055 #define wxUSE_LIBGNOMEPRINT 1
45056 _ACEOF
45057
45058
45059 fi
45060         fi
45061     fi
45062
45063     if test "$wxUSE_MIMETYPE" = "yes" ; then
45064         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45065
45066
45067 pkg_failed=no
45068 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45069 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45070
45071 if test -n "$PKG_CONFIG"; then
45072     if test -n "$GNOMEVFS_CFLAGS"; then
45073         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45074     else
45075         if test -n "$PKG_CONFIG" && \
45076     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45077   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45078   ac_status=$?
45079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45080   (exit $ac_status); }; then
45081   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45082 else
45083   pkg_failed=yes
45084 fi
45085     fi
45086 else
45087         pkg_failed=untried
45088 fi
45089 if test -n "$PKG_CONFIG"; then
45090     if test -n "$GNOMEVFS_LIBS"; then
45091         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45092     else
45093         if test -n "$PKG_CONFIG" && \
45094     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45095   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45096   ac_status=$?
45097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45098   (exit $ac_status); }; then
45099   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45100 else
45101   pkg_failed=yes
45102 fi
45103     fi
45104 else
45105         pkg_failed=untried
45106 fi
45107
45108
45109
45110 if test $pkg_failed = yes; then
45111
45112 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45113         _pkg_short_errors_supported=yes
45114 else
45115         _pkg_short_errors_supported=no
45116 fi
45117         if test $_pkg_short_errors_supported = yes; then
45118                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45119         else
45120                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45121         fi
45122         # Put the nasty error message in config.log where it belongs
45123         echo "$GNOMEVFS_PKG_ERRORS" >&5
45124
45125
45126                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45127 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45128                         wxUSE_LIBGNOMEVFS="no"
45129
45130
45131 elif test $pkg_failed = untried; then
45132
45133                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45134 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45135                         wxUSE_LIBGNOMEVFS="no"
45136
45137
45138 else
45139         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45140         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45141         { echo "$as_me:$LINENO: result: yes" >&5
45142 echo "${ECHO_T}yes" >&6; }
45143
45144                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45145                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45146                         cat >>confdefs.h <<\_ACEOF
45147 #define wxUSE_LIBGNOMEVFS 1
45148 _ACEOF
45149
45150
45151 fi
45152         fi
45153     fi
45154
45155     if test "$wxUSE_LIBHILDON" = "yes" ; then
45156
45157 pkg_failed=no
45158 { echo "$as_me:$LINENO: checking for HILDON" >&5
45159 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45160
45161 if test -n "$PKG_CONFIG"; then
45162     if test -n "$HILDON_CFLAGS"; then
45163         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45164     else
45165         if test -n "$PKG_CONFIG" && \
45166     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45167   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45168   ac_status=$?
45169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45170   (exit $ac_status); }; then
45171   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45172 else
45173   pkg_failed=yes
45174 fi
45175     fi
45176 else
45177         pkg_failed=untried
45178 fi
45179 if test -n "$PKG_CONFIG"; then
45180     if test -n "$HILDON_LIBS"; then
45181         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45182     else
45183         if test -n "$PKG_CONFIG" && \
45184     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45185   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45186   ac_status=$?
45187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45188   (exit $ac_status); }; then
45189   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45190 else
45191   pkg_failed=yes
45192 fi
45193     fi
45194 else
45195         pkg_failed=untried
45196 fi
45197
45198
45199
45200 if test $pkg_failed = yes; then
45201
45202 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45203         _pkg_short_errors_supported=yes
45204 else
45205         _pkg_short_errors_supported=no
45206 fi
45207         if test $_pkg_short_errors_supported = yes; then
45208                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45209         else
45210                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45211         fi
45212         # Put the nasty error message in config.log where it belongs
45213         echo "$HILDON_PKG_ERRORS" >&5
45214
45215
45216                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45217 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45218                         wxUSE_LIBHILDON="no"
45219
45220
45221 elif test $pkg_failed = untried; then
45222
45223                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45224 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45225                         wxUSE_LIBHILDON="no"
45226
45227
45228 else
45229         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45230         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45231         { echo "$as_me:$LINENO: result: yes" >&5
45232 echo "${ECHO_T}yes" >&6; }
45233
45234                 EXTRALIBS_HILDON="$HILDON_LIBS"
45235                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45236                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45237                 cat >>confdefs.h <<\_ACEOF
45238 #define wxUSE_LIBHILDON 1
45239 _ACEOF
45240
45241
45242 fi
45243     fi
45244 fi
45245
45246 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45247   cat >>confdefs.h <<\_ACEOF
45248 #define wxUSE_CMDLINE_PARSER 1
45249 _ACEOF
45250
45251 fi
45252
45253 if test "$wxUSE_STOPWATCH" = "yes"; then
45254   cat >>confdefs.h <<\_ACEOF
45255 #define wxUSE_STOPWATCH 1
45256 _ACEOF
45257
45258 fi
45259
45260 if test "$wxUSE_DATETIME" = "yes"; then
45261   cat >>confdefs.h <<\_ACEOF
45262 #define wxUSE_DATETIME 1
45263 _ACEOF
45264
45265 fi
45266
45267 if test "$wxUSE_FILE" = "yes"; then
45268   cat >>confdefs.h <<\_ACEOF
45269 #define wxUSE_FILE 1
45270 _ACEOF
45271
45272 fi
45273
45274 if test "$wxUSE_FFILE" = "yes"; then
45275   cat >>confdefs.h <<\_ACEOF
45276 #define wxUSE_FFILE 1
45277 _ACEOF
45278
45279 fi
45280
45281 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45282   if test "$wxUSE_STREAMS" != yes; then
45283     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45284 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45285     wxUSE_ARCHIVE_STREAMS=no
45286   else
45287     cat >>confdefs.h <<\_ACEOF
45288 #define wxUSE_ARCHIVE_STREAMS 1
45289 _ACEOF
45290
45291   fi
45292 fi
45293
45294 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45295   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45296     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45297 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45298   elif test "$wxUSE_ZLIB" = "no"; then
45299     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45300 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45301   else
45302     cat >>confdefs.h <<\_ACEOF
45303 #define wxUSE_ZIPSTREAM 1
45304 _ACEOF
45305
45306   fi
45307 fi
45308
45309 if test "$wxUSE_TARSTREAM" = "yes"; then
45310   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45311     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45312 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45313   else
45314     cat >>confdefs.h <<\_ACEOF
45315 #define wxUSE_TARSTREAM 1
45316 _ACEOF
45317
45318   fi
45319 fi
45320
45321 if test "$wxUSE_FILESYSTEM" = "yes"; then
45322   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45323     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45324 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45325     wxUSE_FILESYSTEM=no
45326   else
45327     cat >>confdefs.h <<\_ACEOF
45328 #define wxUSE_FILESYSTEM 1
45329 _ACEOF
45330
45331   fi
45332 fi
45333
45334 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45335   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45336     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45337 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45338   else
45339     cat >>confdefs.h <<\_ACEOF
45340 #define wxUSE_FS_ARCHIVE 1
45341 _ACEOF
45342
45343   fi
45344 fi
45345
45346 if test "$wxUSE_FS_ZIP" = "yes"; then
45347   if test "$wxUSE_FS_ARCHIVE" != yes; then
45348     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
45349 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
45350   else
45351     cat >>confdefs.h <<\_ACEOF
45352 #define wxUSE_FS_ZIP 1
45353 _ACEOF
45354
45355   fi
45356 fi
45357
45358 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45359   if test "$USE_UNIX" != 1; then
45360     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
45361 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
45362     wxUSE_ON_FATAL_EXCEPTION=no
45363   else
45364     cat >>confdefs.h <<\_ACEOF
45365 #define wxUSE_ON_FATAL_EXCEPTION 1
45366 _ACEOF
45367
45368   fi
45369 fi
45370
45371 if test "$wxUSE_STACKWALKER" = "yes"; then
45372     cat >>confdefs.h <<\_ACEOF
45373 #define wxUSE_STACKWALKER 1
45374 _ACEOF
45375
45376 fi
45377
45378 if test "$wxUSE_DEBUGREPORT" = "yes"; then
45379     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
45380         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
45381 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
45382         wxUSE_DEBUGREPORT=no
45383     else
45384         cat >>confdefs.h <<\_ACEOF
45385 #define wxUSE_DEBUGREPORT 1
45386 _ACEOF
45387
45388         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
45389             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
45390         fi
45391     fi
45392 fi
45393
45394 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
45395   cat >>confdefs.h <<\_ACEOF
45396 #define wxUSE_SNGLINST_CHECKER 1
45397 _ACEOF
45398
45399 fi
45400
45401 if test "$wxUSE_BUSYINFO" = "yes"; then
45402   cat >>confdefs.h <<\_ACEOF
45403 #define wxUSE_BUSYINFO 1
45404 _ACEOF
45405
45406 fi
45407
45408 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
45409   cat >>confdefs.h <<\_ACEOF
45410 #define wxUSE_STD_IOSTREAM 1
45411 _ACEOF
45412
45413 fi
45414
45415 if test "$wxUSE_STD_STRING" = "yes"; then
45416   cat >>confdefs.h <<\_ACEOF
45417 #define wxUSE_STD_STRING 1
45418 _ACEOF
45419
45420 fi
45421
45422 if test "$wxUSE_STDPATHS" = "yes"; then
45423   cat >>confdefs.h <<\_ACEOF
45424 #define wxUSE_STDPATHS 1
45425 _ACEOF
45426
45427 fi
45428
45429 if test "$wxUSE_TEXTBUFFER" = "yes"; then
45430     cat >>confdefs.h <<\_ACEOF
45431 #define wxUSE_TEXTBUFFER 1
45432 _ACEOF
45433
45434 fi
45435
45436 if test "$wxUSE_TEXTFILE" = "yes"; then
45437   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
45438     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
45439 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
45440   else
45441     cat >>confdefs.h <<\_ACEOF
45442 #define wxUSE_TEXTFILE 1
45443 _ACEOF
45444
45445   fi
45446 fi
45447
45448 if test "$wxUSE_CONFIG" = "yes" ; then
45449   if test "$wxUSE_TEXTFILE" != "yes"; then
45450     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
45451 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
45452   else
45453     cat >>confdefs.h <<\_ACEOF
45454 #define wxUSE_CONFIG 1
45455 _ACEOF
45456
45457     cat >>confdefs.h <<\_ACEOF
45458 #define wxUSE_CONFIG_NATIVE 1
45459 _ACEOF
45460
45461     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
45462   fi
45463 fi
45464
45465 if test "$wxUSE_INTL" = "yes" ; then
45466   if test "$wxUSE_FILE" != "yes"; then
45467     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
45468 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
45469   else
45470     cat >>confdefs.h <<\_ACEOF
45471 #define wxUSE_INTL 1
45472 _ACEOF
45473
45474     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
45475     GUIDIST="$GUIDIST INTL_DIST"
45476   fi
45477 fi
45478
45479 if test "$wxUSE_LOG" = "yes"; then
45480   cat >>confdefs.h <<\_ACEOF
45481 #define wxUSE_LOG 1
45482 _ACEOF
45483
45484
45485     if test "$wxUSE_LOGGUI" = "yes"; then
45486       cat >>confdefs.h <<\_ACEOF
45487 #define wxUSE_LOGGUI 1
45488 _ACEOF
45489
45490     fi
45491
45492     if test "$wxUSE_LOGWINDOW" = "yes"; then
45493       cat >>confdefs.h <<\_ACEOF
45494 #define wxUSE_LOGWINDOW 1
45495 _ACEOF
45496
45497     fi
45498
45499     if test "$wxUSE_LOGDIALOG" = "yes"; then
45500       cat >>confdefs.h <<\_ACEOF
45501 #define wxUSE_LOG_DIALOG 1
45502 _ACEOF
45503
45504     fi
45505
45506         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
45507 fi
45508
45509 if test "$wxUSE_LONGLONG" = "yes"; then
45510   cat >>confdefs.h <<\_ACEOF
45511 #define wxUSE_LONGLONG 1
45512 _ACEOF
45513
45514 fi
45515
45516 if test "$wxUSE_GEOMETRY" = "yes"; then
45517   cat >>confdefs.h <<\_ACEOF
45518 #define wxUSE_GEOMETRY 1
45519 _ACEOF
45520
45521 fi
45522
45523 if test "$wxUSE_BASE64" = "yes"; then
45524   cat >>confdefs.h <<\_ACEOF
45525 #define wxUSE_BASE64 1
45526 _ACEOF
45527
45528 fi
45529
45530 if test "$wxUSE_STREAMS" = "yes" ; then
45531   cat >>confdefs.h <<\_ACEOF
45532 #define wxUSE_STREAMS 1
45533 _ACEOF
45534
45535 fi
45536
45537 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
45538   cat >>confdefs.h <<\_ACEOF
45539 #define wxUSE_PRINTF_POS_PARAMS 1
45540 _ACEOF
45541
45542 fi
45543
45544 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
45545   cat >>confdefs.h <<\_ACEOF
45546 #define wxUSE_OBJC_UNIQUIFYING 1
45547 _ACEOF
45548
45549 fi
45550
45551
45552 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
45553     cat >>confdefs.h <<\_ACEOF
45554 #define wxUSE_CONSOLE_EVENTLOOP 1
45555 _ACEOF
45556
45557
45558     if test "$wxUSE_UNIX" = "yes"; then
45559         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
45560             cat >>confdefs.h <<\_ACEOF
45561 #define wxUSE_SELECT_DISPATCHER 1
45562 _ACEOF
45563
45564         fi
45565
45566         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
45567
45568 for ac_header in sys/epoll.h
45569 do
45570 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
45571 { echo "$as_me:$LINENO: checking for $ac_header" >&5
45572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
45573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
45574   echo $ECHO_N "(cached) $ECHO_C" >&6
45575 else
45576   cat >conftest.$ac_ext <<_ACEOF
45577 /* confdefs.h.  */
45578 _ACEOF
45579 cat confdefs.h >>conftest.$ac_ext
45580 cat >>conftest.$ac_ext <<_ACEOF
45581 /* end confdefs.h.  */
45582 $ac_includes_default
45583
45584 #include <$ac_header>
45585 _ACEOF
45586 rm -f conftest.$ac_objext
45587 if { (ac_try="$ac_compile"
45588 case "(($ac_try" in
45589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45590   *) ac_try_echo=$ac_try;;
45591 esac
45592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45593   (eval "$ac_compile") 2>conftest.er1
45594   ac_status=$?
45595   grep -v '^ *+' conftest.er1 >conftest.err
45596   rm -f conftest.er1
45597   cat conftest.err >&5
45598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45599   (exit $ac_status); } && {
45600          test -z "$ac_c_werror_flag" ||
45601          test ! -s conftest.err
45602        } && test -s conftest.$ac_objext; then
45603   eval "$as_ac_Header=yes"
45604 else
45605   echo "$as_me: failed program was:" >&5
45606 sed 's/^/| /' conftest.$ac_ext >&5
45607
45608         eval "$as_ac_Header=no"
45609 fi
45610
45611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45612 fi
45613 ac_res=`eval echo '${'$as_ac_Header'}'`
45614                { echo "$as_me:$LINENO: result: $ac_res" >&5
45615 echo "${ECHO_T}$ac_res" >&6; }
45616 if test `eval echo '${'$as_ac_Header'}'` = yes; then
45617   cat >>confdefs.h <<_ACEOF
45618 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
45619 _ACEOF
45620
45621 fi
45622
45623 done
45624
45625             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
45626                 cat >>confdefs.h <<\_ACEOF
45627 #define wxUSE_EPOLL_DISPATCHER 1
45628 _ACEOF
45629
45630             else
45631                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
45632 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
45633             fi
45634         fi
45635     fi
45636 fi
45637
45638
45639
45640
45641 for ac_func in gettimeofday ftime
45642 do
45643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
45644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
45645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
45646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45647   echo $ECHO_N "(cached) $ECHO_C" >&6
45648 else
45649   cat >conftest.$ac_ext <<_ACEOF
45650 /* confdefs.h.  */
45651 _ACEOF
45652 cat confdefs.h >>conftest.$ac_ext
45653 cat >>conftest.$ac_ext <<_ACEOF
45654 /* end confdefs.h.  */
45655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45656    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45657 #define $ac_func innocuous_$ac_func
45658
45659 /* System header to define __stub macros and hopefully few prototypes,
45660     which can conflict with char $ac_func (); below.
45661     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45662     <limits.h> exists even on freestanding compilers.  */
45663
45664 #ifdef __STDC__
45665 # include <limits.h>
45666 #else
45667 # include <assert.h>
45668 #endif
45669
45670 #undef $ac_func
45671
45672 /* Override any GCC internal prototype to avoid an error.
45673    Use char because int might match the return type of a GCC
45674    builtin and then its argument prototype would still apply.  */
45675 #ifdef __cplusplus
45676 extern "C"
45677 #endif
45678 char $ac_func ();
45679 /* The GNU C library defines this for functions which it implements
45680     to always fail with ENOSYS.  Some functions are actually named
45681     something starting with __ and the normal name is an alias.  */
45682 #if defined __stub_$ac_func || defined __stub___$ac_func
45683 choke me
45684 #endif
45685
45686 int
45687 main ()
45688 {
45689 return $ac_func ();
45690   ;
45691   return 0;
45692 }
45693 _ACEOF
45694 rm -f conftest.$ac_objext conftest$ac_exeext
45695 if { (ac_try="$ac_link"
45696 case "(($ac_try" in
45697   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45698   *) ac_try_echo=$ac_try;;
45699 esac
45700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45701   (eval "$ac_link") 2>conftest.er1
45702   ac_status=$?
45703   grep -v '^ *+' conftest.er1 >conftest.err
45704   rm -f conftest.er1
45705   cat conftest.err >&5
45706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45707   (exit $ac_status); } && {
45708          test -z "$ac_c_werror_flag" ||
45709          test ! -s conftest.err
45710        } && test -s conftest$ac_exeext &&
45711        $as_test_x conftest$ac_exeext; then
45712   eval "$as_ac_var=yes"
45713 else
45714   echo "$as_me: failed program was:" >&5
45715 sed 's/^/| /' conftest.$ac_ext >&5
45716
45717         eval "$as_ac_var=no"
45718 fi
45719
45720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45721       conftest$ac_exeext conftest.$ac_ext
45722 fi
45723 ac_res=`eval echo '${'$as_ac_var'}'`
45724                { echo "$as_me:$LINENO: result: $ac_res" >&5
45725 echo "${ECHO_T}$ac_res" >&6; }
45726 if test `eval echo '${'$as_ac_var'}'` = yes; then
45727   cat >>confdefs.h <<_ACEOF
45728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
45729 _ACEOF
45730  break
45731 fi
45732 done
45733
45734
45735 if test "$ac_cv_func_gettimeofday" = "yes"; then
45736     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
45737 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
45738 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
45739   echo $ECHO_N "(cached) $ECHO_C" >&6
45740 else
45741
45742                 cat >conftest.$ac_ext <<_ACEOF
45743 /* confdefs.h.  */
45744 _ACEOF
45745 cat confdefs.h >>conftest.$ac_ext
45746 cat >>conftest.$ac_ext <<_ACEOF
45747 /* end confdefs.h.  */
45748
45749                 #include <sys/time.h>
45750                 #include <unistd.h>
45751
45752 int
45753 main ()
45754 {
45755
45756                 struct timeval tv;
45757                 gettimeofday(&tv, NULL);
45758
45759   ;
45760   return 0;
45761 }
45762 _ACEOF
45763 rm -f conftest.$ac_objext
45764 if { (ac_try="$ac_compile"
45765 case "(($ac_try" in
45766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45767   *) ac_try_echo=$ac_try;;
45768 esac
45769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45770   (eval "$ac_compile") 2>conftest.er1
45771   ac_status=$?
45772   grep -v '^ *+' conftest.er1 >conftest.err
45773   rm -f conftest.er1
45774   cat conftest.err >&5
45775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45776   (exit $ac_status); } && {
45777          test -z "$ac_c_werror_flag" ||
45778          test ! -s conftest.err
45779        } && test -s conftest.$ac_objext; then
45780   wx_cv_func_gettimeofday_has_2_args=yes
45781 else
45782   echo "$as_me: failed program was:" >&5
45783 sed 's/^/| /' conftest.$ac_ext >&5
45784
45785         cat >conftest.$ac_ext <<_ACEOF
45786 /* confdefs.h.  */
45787 _ACEOF
45788 cat confdefs.h >>conftest.$ac_ext
45789 cat >>conftest.$ac_ext <<_ACEOF
45790 /* end confdefs.h.  */
45791
45792                     #include <sys/time.h>
45793                     #include <unistd.h>
45794
45795 int
45796 main ()
45797 {
45798
45799                     struct timeval tv;
45800                     gettimeofday(&tv);
45801
45802   ;
45803   return 0;
45804 }
45805 _ACEOF
45806 rm -f conftest.$ac_objext
45807 if { (ac_try="$ac_compile"
45808 case "(($ac_try" in
45809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45810   *) ac_try_echo=$ac_try;;
45811 esac
45812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45813   (eval "$ac_compile") 2>conftest.er1
45814   ac_status=$?
45815   grep -v '^ *+' conftest.er1 >conftest.err
45816   rm -f conftest.er1
45817   cat conftest.err >&5
45818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45819   (exit $ac_status); } && {
45820          test -z "$ac_c_werror_flag" ||
45821          test ! -s conftest.err
45822        } && test -s conftest.$ac_objext; then
45823   wx_cv_func_gettimeofday_has_2_args=no
45824 else
45825   echo "$as_me: failed program was:" >&5
45826 sed 's/^/| /' conftest.$ac_ext >&5
45827
45828
45829                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
45830 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
45831                     wx_cv_func_gettimeofday_has_2_args=unknown
45832
45833
45834 fi
45835
45836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45837
45838 fi
45839
45840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45841
45842 fi
45843 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
45844 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
45845
45846     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
45847         cat >>confdefs.h <<\_ACEOF
45848 #define WX_GETTIMEOFDAY_NO_TZ 1
45849 _ACEOF
45850
45851     fi
45852 fi
45853
45854 if test "$wxUSE_DATETIME" = "yes"; then
45855         { echo "$as_me:$LINENO: checking for strptime" >&5
45856 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
45857 if test "${ac_cv_func_strptime+set}" = set; then
45858   echo $ECHO_N "(cached) $ECHO_C" >&6
45859 else
45860   cat >conftest.$ac_ext <<_ACEOF
45861 /* confdefs.h.  */
45862 _ACEOF
45863 cat confdefs.h >>conftest.$ac_ext
45864 cat >>conftest.$ac_ext <<_ACEOF
45865 /* end confdefs.h.  */
45866 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
45867    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45868 #define strptime innocuous_strptime
45869
45870 /* System header to define __stub macros and hopefully few prototypes,
45871     which can conflict with char strptime (); below.
45872     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45873     <limits.h> exists even on freestanding compilers.  */
45874
45875 #ifdef __STDC__
45876 # include <limits.h>
45877 #else
45878 # include <assert.h>
45879 #endif
45880
45881 #undef strptime
45882
45883 /* Override any GCC internal prototype to avoid an error.
45884    Use char because int might match the return type of a GCC
45885    builtin and then its argument prototype would still apply.  */
45886 #ifdef __cplusplus
45887 extern "C"
45888 #endif
45889 char strptime ();
45890 /* The GNU C library defines this for functions which it implements
45891     to always fail with ENOSYS.  Some functions are actually named
45892     something starting with __ and the normal name is an alias.  */
45893 #if defined __stub_strptime || defined __stub___strptime
45894 choke me
45895 #endif
45896
45897 int
45898 main ()
45899 {
45900 return strptime ();
45901   ;
45902   return 0;
45903 }
45904 _ACEOF
45905 rm -f conftest.$ac_objext conftest$ac_exeext
45906 if { (ac_try="$ac_link"
45907 case "(($ac_try" in
45908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45909   *) ac_try_echo=$ac_try;;
45910 esac
45911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45912   (eval "$ac_link") 2>conftest.er1
45913   ac_status=$?
45914   grep -v '^ *+' conftest.er1 >conftest.err
45915   rm -f conftest.er1
45916   cat conftest.err >&5
45917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45918   (exit $ac_status); } && {
45919          test -z "$ac_c_werror_flag" ||
45920          test ! -s conftest.err
45921        } && test -s conftest$ac_exeext &&
45922        $as_test_x conftest$ac_exeext; then
45923   ac_cv_func_strptime=yes
45924 else
45925   echo "$as_me: failed program was:" >&5
45926 sed 's/^/| /' conftest.$ac_ext >&5
45927
45928         ac_cv_func_strptime=no
45929 fi
45930
45931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45932       conftest$ac_exeext conftest.$ac_ext
45933 fi
45934 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
45935 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
45936
45937     if test "$ac_cv_func_strptime" = "yes"; then
45938         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
45939 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
45940 if test "${wx_cv_func_strptime_decl+set}" = set; then
45941   echo $ECHO_N "(cached) $ECHO_C" >&6
45942 else
45943
45944                 ac_ext=cpp
45945 ac_cpp='$CXXCPP $CPPFLAGS'
45946 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
45947 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
45948 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
45949
45950                 cat >conftest.$ac_ext <<_ACEOF
45951 /* confdefs.h.  */
45952 _ACEOF
45953 cat confdefs.h >>conftest.$ac_ext
45954 cat >>conftest.$ac_ext <<_ACEOF
45955 /* end confdefs.h.  */
45956
45957                         #include <time.h>
45958
45959 int
45960 main ()
45961 {
45962
45963                         struct tm t;
45964                         strptime("foo", "bar", &t);
45965
45966   ;
45967   return 0;
45968 }
45969 _ACEOF
45970 rm -f conftest.$ac_objext
45971 if { (ac_try="$ac_compile"
45972 case "(($ac_try" in
45973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45974   *) ac_try_echo=$ac_try;;
45975 esac
45976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45977   (eval "$ac_compile") 2>conftest.er1
45978   ac_status=$?
45979   grep -v '^ *+' conftest.er1 >conftest.err
45980   rm -f conftest.er1
45981   cat conftest.err >&5
45982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45983   (exit $ac_status); } && {
45984          test -z "$ac_cxx_werror_flag" ||
45985          test ! -s conftest.err
45986        } && test -s conftest.$ac_objext; then
45987   wx_cv_func_strptime_decl=yes
45988 else
45989   echo "$as_me: failed program was:" >&5
45990 sed 's/^/| /' conftest.$ac_ext >&5
45991
45992         wx_cv_func_strptime_decl=no
45993
45994 fi
45995
45996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45997                 ac_ext=c
45998 ac_cpp='$CPP $CPPFLAGS'
45999 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46000 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46001 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46002
46003
46004
46005 fi
46006 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46007 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46008     fi
46009     if test "$wx_cv_func_strptime_decl" = "yes"; then
46010         cat >>confdefs.h <<\_ACEOF
46011 #define HAVE_STRPTIME_DECL 1
46012 _ACEOF
46013
46014     else
46015         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46016     fi
46017     if test "$ac_cv_func_strptime" = "yes"; then
46018                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46019 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46020 if test "${wx_cv_func_strptime_ok+set}" = set; then
46021   echo $ECHO_N "(cached) $ECHO_C" >&6
46022 else
46023   if test "$cross_compiling" = yes; then
46024                   wx_cv_func_strptime_ok=no
46025
46026 else
46027   cat >conftest.$ac_ext <<_ACEOF
46028
46029                     #include <stdlib.h>
46030                     #include <time.h>
46031                     #include "confdefs.h"
46032
46033                     $wx_strptime_decl
46034
46035                     int main()
46036                     {
46037                         struct tm t;
46038                         return !!strptime("", "%x", &t);
46039                     }
46040
46041 _ACEOF
46042 rm -f conftest$ac_exeext
46043 if { (ac_try="$ac_link"
46044 case "(($ac_try" in
46045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46046   *) ac_try_echo=$ac_try;;
46047 esac
46048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46049   (eval "$ac_link") 2>&5
46050   ac_status=$?
46051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46052   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46053   { (case "(($ac_try" in
46054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46055   *) ac_try_echo=$ac_try;;
46056 esac
46057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46058   (eval "$ac_try") 2>&5
46059   ac_status=$?
46060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46061   (exit $ac_status); }; }; then
46062   wx_cv_func_strptime_ok=yes
46063 else
46064   echo "$as_me: program exited with status $ac_status" >&5
46065 echo "$as_me: failed program was:" >&5
46066 sed 's/^/| /' conftest.$ac_ext >&5
46067
46068 ( exit $ac_status )
46069 wx_cv_func_strptime_ok=no
46070 fi
46071 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46072 fi
46073
46074
46075
46076 fi
46077 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46078 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46079
46080         if test "$wx_cv_func_strptime_ok" = "yes"; then
46081             cat >>confdefs.h <<\_ACEOF
46082 #define HAVE_STRPTIME 1
46083 _ACEOF
46084
46085         fi
46086     fi
46087
46088             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46089 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46090 if test "${wx_cv_var_timezone+set}" = set; then
46091   echo $ECHO_N "(cached) $ECHO_C" >&6
46092 else
46093
46094                         ac_ext=cpp
46095 ac_cpp='$CXXCPP $CPPFLAGS'
46096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46099
46100                         cat >conftest.$ac_ext <<_ACEOF
46101 /* confdefs.h.  */
46102 _ACEOF
46103 cat confdefs.h >>conftest.$ac_ext
46104 cat >>conftest.$ac_ext <<_ACEOF
46105 /* end confdefs.h.  */
46106
46107                                 #include <time.h>
46108
46109 int
46110 main ()
46111 {
46112
46113                                 int tz;
46114                                 tz = timezone;
46115
46116   ;
46117   return 0;
46118 }
46119 _ACEOF
46120 rm -f conftest.$ac_objext
46121 if { (ac_try="$ac_compile"
46122 case "(($ac_try" in
46123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46124   *) ac_try_echo=$ac_try;;
46125 esac
46126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46127   (eval "$ac_compile") 2>conftest.er1
46128   ac_status=$?
46129   grep -v '^ *+' conftest.er1 >conftest.err
46130   rm -f conftest.er1
46131   cat conftest.err >&5
46132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46133   (exit $ac_status); } && {
46134          test -z "$ac_cxx_werror_flag" ||
46135          test ! -s conftest.err
46136        } && test -s conftest.$ac_objext; then
46137
46138                                 wx_cv_var_timezone=timezone
46139
46140 else
46141   echo "$as_me: failed program was:" >&5
46142 sed 's/^/| /' conftest.$ac_ext >&5
46143
46144
46145                                 cat >conftest.$ac_ext <<_ACEOF
46146 /* confdefs.h.  */
46147 _ACEOF
46148 cat confdefs.h >>conftest.$ac_ext
46149 cat >>conftest.$ac_ext <<_ACEOF
46150 /* end confdefs.h.  */
46151
46152                                         #include <time.h>
46153
46154 int
46155 main ()
46156 {
46157
46158                                         int tz;
46159                                         tz = _timezone;
46160
46161   ;
46162   return 0;
46163 }
46164 _ACEOF
46165 rm -f conftest.$ac_objext
46166 if { (ac_try="$ac_compile"
46167 case "(($ac_try" in
46168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46169   *) ac_try_echo=$ac_try;;
46170 esac
46171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46172   (eval "$ac_compile") 2>conftest.er1
46173   ac_status=$?
46174   grep -v '^ *+' conftest.er1 >conftest.err
46175   rm -f conftest.er1
46176   cat conftest.err >&5
46177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46178   (exit $ac_status); } && {
46179          test -z "$ac_cxx_werror_flag" ||
46180          test ! -s conftest.err
46181        } && test -s conftest.$ac_objext; then
46182
46183                                         wx_cv_var_timezone=_timezone
46184
46185 else
46186   echo "$as_me: failed program was:" >&5
46187 sed 's/^/| /' conftest.$ac_ext >&5
46188
46189
46190                                         cat >conftest.$ac_ext <<_ACEOF
46191 /* confdefs.h.  */
46192 _ACEOF
46193 cat confdefs.h >>conftest.$ac_ext
46194 cat >>conftest.$ac_ext <<_ACEOF
46195 /* end confdefs.h.  */
46196
46197                                                 #include <time.h>
46198
46199 int
46200 main ()
46201 {
46202
46203                                                 int tz;
46204                                                 tz = __timezone;
46205
46206   ;
46207   return 0;
46208 }
46209 _ACEOF
46210 rm -f conftest.$ac_objext
46211 if { (ac_try="$ac_compile"
46212 case "(($ac_try" in
46213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46214   *) ac_try_echo=$ac_try;;
46215 esac
46216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46217   (eval "$ac_compile") 2>conftest.er1
46218   ac_status=$?
46219   grep -v '^ *+' conftest.er1 >conftest.err
46220   rm -f conftest.er1
46221   cat conftest.err >&5
46222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46223   (exit $ac_status); } && {
46224          test -z "$ac_cxx_werror_flag" ||
46225          test ! -s conftest.err
46226        } && test -s conftest.$ac_objext; then
46227
46228                                                 wx_cv_var_timezone=__timezone
46229
46230 else
46231   echo "$as_me: failed program was:" >&5
46232 sed 's/^/| /' conftest.$ac_ext >&5
46233
46234
46235                                                 if test "$USE_DOS" = 0 ; then
46236                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46237 echo "$as_me: WARNING: no timezone variable" >&2;}
46238                                                 fi
46239
46240
46241 fi
46242
46243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46244
46245
46246 fi
46247
46248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46249
46250
46251 fi
46252
46253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46254                         ac_ext=c
46255 ac_cpp='$CPP $CPPFLAGS'
46256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46259
46260
46261
46262 fi
46263 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
46264 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
46265
46266         if test "x$wx_cv_var_timezone" != x ; then
46267         cat >>confdefs.h <<_ACEOF
46268 #define WX_TIMEZONE $wx_cv_var_timezone
46269 _ACEOF
46270
46271     fi
46272
46273
46274 for ac_func in localtime
46275 do
46276 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46280   echo $ECHO_N "(cached) $ECHO_C" >&6
46281 else
46282   cat >conftest.$ac_ext <<_ACEOF
46283 /* confdefs.h.  */
46284 _ACEOF
46285 cat confdefs.h >>conftest.$ac_ext
46286 cat >>conftest.$ac_ext <<_ACEOF
46287 /* end confdefs.h.  */
46288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46289    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46290 #define $ac_func innocuous_$ac_func
46291
46292 /* System header to define __stub macros and hopefully few prototypes,
46293     which can conflict with char $ac_func (); below.
46294     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46295     <limits.h> exists even on freestanding compilers.  */
46296
46297 #ifdef __STDC__
46298 # include <limits.h>
46299 #else
46300 # include <assert.h>
46301 #endif
46302
46303 #undef $ac_func
46304
46305 /* Override any GCC internal prototype to avoid an error.
46306    Use char because int might match the return type of a GCC
46307    builtin and then its argument prototype would still apply.  */
46308 #ifdef __cplusplus
46309 extern "C"
46310 #endif
46311 char $ac_func ();
46312 /* The GNU C library defines this for functions which it implements
46313     to always fail with ENOSYS.  Some functions are actually named
46314     something starting with __ and the normal name is an alias.  */
46315 #if defined __stub_$ac_func || defined __stub___$ac_func
46316 choke me
46317 #endif
46318
46319 int
46320 main ()
46321 {
46322 return $ac_func ();
46323   ;
46324   return 0;
46325 }
46326 _ACEOF
46327 rm -f conftest.$ac_objext conftest$ac_exeext
46328 if { (ac_try="$ac_link"
46329 case "(($ac_try" in
46330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46331   *) ac_try_echo=$ac_try;;
46332 esac
46333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46334   (eval "$ac_link") 2>conftest.er1
46335   ac_status=$?
46336   grep -v '^ *+' conftest.er1 >conftest.err
46337   rm -f conftest.er1
46338   cat conftest.err >&5
46339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46340   (exit $ac_status); } && {
46341          test -z "$ac_c_werror_flag" ||
46342          test ! -s conftest.err
46343        } && test -s conftest$ac_exeext &&
46344        $as_test_x conftest$ac_exeext; then
46345   eval "$as_ac_var=yes"
46346 else
46347   echo "$as_me: failed program was:" >&5
46348 sed 's/^/| /' conftest.$ac_ext >&5
46349
46350         eval "$as_ac_var=no"
46351 fi
46352
46353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46354       conftest$ac_exeext conftest.$ac_ext
46355 fi
46356 ac_res=`eval echo '${'$as_ac_var'}'`
46357                { echo "$as_me:$LINENO: result: $ac_res" >&5
46358 echo "${ECHO_T}$ac_res" >&6; }
46359 if test `eval echo '${'$as_ac_var'}'` = yes; then
46360   cat >>confdefs.h <<_ACEOF
46361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46362 _ACEOF
46363
46364 fi
46365 done
46366
46367
46368     if test "$ac_cv_func_localtime" = "yes"; then
46369         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
46370 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
46371 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
46372   echo $ECHO_N "(cached) $ECHO_C" >&6
46373 else
46374
46375             cat >conftest.$ac_ext <<_ACEOF
46376 /* confdefs.h.  */
46377 _ACEOF
46378 cat confdefs.h >>conftest.$ac_ext
46379 cat >>conftest.$ac_ext <<_ACEOF
46380 /* end confdefs.h.  */
46381
46382                     #include <time.h>
46383
46384 int
46385 main ()
46386 {
46387
46388                     struct tm tm;
46389                     tm.tm_gmtoff++;
46390
46391   ;
46392   return 0;
46393 }
46394 _ACEOF
46395 rm -f conftest.$ac_objext
46396 if { (ac_try="$ac_compile"
46397 case "(($ac_try" in
46398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46399   *) ac_try_echo=$ac_try;;
46400 esac
46401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46402   (eval "$ac_compile") 2>conftest.er1
46403   ac_status=$?
46404   grep -v '^ *+' conftest.er1 >conftest.err
46405   rm -f conftest.er1
46406   cat conftest.err >&5
46407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46408   (exit $ac_status); } && {
46409          test -z "$ac_c_werror_flag" ||
46410          test ! -s conftest.err
46411        } && test -s conftest.$ac_objext; then
46412
46413                     wx_cv_struct_tm_has_gmtoff=yes
46414
46415 else
46416   echo "$as_me: failed program was:" >&5
46417 sed 's/^/| /' conftest.$ac_ext >&5
46418
46419         wx_cv_struct_tm_has_gmtoff=no
46420
46421 fi
46422
46423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46424
46425 fi
46426 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
46427 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
46428     fi
46429
46430     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
46431         cat >>confdefs.h <<\_ACEOF
46432 #define WX_GMTOFF_IN_TM 1
46433 _ACEOF
46434
46435     fi
46436
46437     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
46438 fi
46439
46440
46441 if test "$wxUSE_SOCKETS" = "yes"; then
46442     if test "$wxUSE_MGL" = "1"; then
46443         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
46444 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
46445         wxUSE_SOCKETS="no"
46446     fi
46447 fi
46448
46449 if test "$wxUSE_SOCKETS" = "yes"; then
46450         if test "$TOOLKIT" != "MSW"; then
46451                 { echo "$as_me:$LINENO: checking for socket" >&5
46452 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
46453 if test "${ac_cv_func_socket+set}" = set; then
46454   echo $ECHO_N "(cached) $ECHO_C" >&6
46455 else
46456   cat >conftest.$ac_ext <<_ACEOF
46457 /* confdefs.h.  */
46458 _ACEOF
46459 cat confdefs.h >>conftest.$ac_ext
46460 cat >>conftest.$ac_ext <<_ACEOF
46461 /* end confdefs.h.  */
46462 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
46463    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46464 #define socket innocuous_socket
46465
46466 /* System header to define __stub macros and hopefully few prototypes,
46467     which can conflict with char socket (); below.
46468     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46469     <limits.h> exists even on freestanding compilers.  */
46470
46471 #ifdef __STDC__
46472 # include <limits.h>
46473 #else
46474 # include <assert.h>
46475 #endif
46476
46477 #undef socket
46478
46479 /* Override any GCC internal prototype to avoid an error.
46480    Use char because int might match the return type of a GCC
46481    builtin and then its argument prototype would still apply.  */
46482 #ifdef __cplusplus
46483 extern "C"
46484 #endif
46485 char socket ();
46486 /* The GNU C library defines this for functions which it implements
46487     to always fail with ENOSYS.  Some functions are actually named
46488     something starting with __ and the normal name is an alias.  */
46489 #if defined __stub_socket || defined __stub___socket
46490 choke me
46491 #endif
46492
46493 int
46494 main ()
46495 {
46496 return socket ();
46497   ;
46498   return 0;
46499 }
46500 _ACEOF
46501 rm -f conftest.$ac_objext conftest$ac_exeext
46502 if { (ac_try="$ac_link"
46503 case "(($ac_try" in
46504   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46505   *) ac_try_echo=$ac_try;;
46506 esac
46507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46508   (eval "$ac_link") 2>conftest.er1
46509   ac_status=$?
46510   grep -v '^ *+' conftest.er1 >conftest.err
46511   rm -f conftest.er1
46512   cat conftest.err >&5
46513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46514   (exit $ac_status); } && {
46515          test -z "$ac_c_werror_flag" ||
46516          test ! -s conftest.err
46517        } && test -s conftest$ac_exeext &&
46518        $as_test_x conftest$ac_exeext; then
46519   ac_cv_func_socket=yes
46520 else
46521   echo "$as_me: failed program was:" >&5
46522 sed 's/^/| /' conftest.$ac_ext >&5
46523
46524         ac_cv_func_socket=no
46525 fi
46526
46527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46528       conftest$ac_exeext conftest.$ac_ext
46529 fi
46530 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
46531 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
46532 if test $ac_cv_func_socket = yes; then
46533   :
46534 else
46535
46536                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
46537 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
46538 if test "${ac_cv_lib_socket_socket+set}" = set; then
46539   echo $ECHO_N "(cached) $ECHO_C" >&6
46540 else
46541   ac_check_lib_save_LIBS=$LIBS
46542 LIBS="-lsocket  $LIBS"
46543 cat >conftest.$ac_ext <<_ACEOF
46544 /* confdefs.h.  */
46545 _ACEOF
46546 cat confdefs.h >>conftest.$ac_ext
46547 cat >>conftest.$ac_ext <<_ACEOF
46548 /* end confdefs.h.  */
46549
46550 /* Override any GCC internal prototype to avoid an error.
46551    Use char because int might match the return type of a GCC
46552    builtin and then its argument prototype would still apply.  */
46553 #ifdef __cplusplus
46554 extern "C"
46555 #endif
46556 char socket ();
46557 int
46558 main ()
46559 {
46560 return socket ();
46561   ;
46562   return 0;
46563 }
46564 _ACEOF
46565 rm -f conftest.$ac_objext conftest$ac_exeext
46566 if { (ac_try="$ac_link"
46567 case "(($ac_try" in
46568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46569   *) ac_try_echo=$ac_try;;
46570 esac
46571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46572   (eval "$ac_link") 2>conftest.er1
46573   ac_status=$?
46574   grep -v '^ *+' conftest.er1 >conftest.err
46575   rm -f conftest.er1
46576   cat conftest.err >&5
46577   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46578   (exit $ac_status); } && {
46579          test -z "$ac_c_werror_flag" ||
46580          test ! -s conftest.err
46581        } && test -s conftest$ac_exeext &&
46582        $as_test_x conftest$ac_exeext; then
46583   ac_cv_lib_socket_socket=yes
46584 else
46585   echo "$as_me: failed program was:" >&5
46586 sed 's/^/| /' conftest.$ac_ext >&5
46587
46588         ac_cv_lib_socket_socket=no
46589 fi
46590
46591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46592       conftest$ac_exeext conftest.$ac_ext
46593 LIBS=$ac_check_lib_save_LIBS
46594 fi
46595 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
46596 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
46597 if test $ac_cv_lib_socket_socket = yes; then
46598   if test "$INET_LINK" != " -lsocket"; then
46599                         INET_LINK="$INET_LINK -lsocket"
46600                     fi
46601 else
46602
46603                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
46604 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
46605                         wxUSE_SOCKETS=no
46606
46607
46608 fi
46609
46610
46611
46612 fi
46613
46614     fi
46615 fi
46616
46617 if test "$wxUSE_SOCKETS" = "yes" ; then
46618                 if test "$TOOLKIT" != "MSW"; then
46619                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
46620 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
46621 if test "${wx_cv_type_getsockname3+set}" = set; then
46622   echo $ECHO_N "(cached) $ECHO_C" >&6
46623 else
46624
46625                 ac_ext=cpp
46626 ac_cpp='$CXXCPP $CPPFLAGS'
46627 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46628 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46629 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46630
46631                 cat >conftest.$ac_ext <<_ACEOF
46632 /* confdefs.h.  */
46633 _ACEOF
46634 cat confdefs.h >>conftest.$ac_ext
46635 cat >>conftest.$ac_ext <<_ACEOF
46636 /* end confdefs.h.  */
46637
46638                         #include <sys/types.h>
46639                         #include <sys/socket.h>
46640
46641 int
46642 main ()
46643 {
46644
46645                         socklen_t len;
46646                         getsockname(0, 0, &len);
46647
46648   ;
46649   return 0;
46650 }
46651 _ACEOF
46652 rm -f conftest.$ac_objext
46653 if { (ac_try="$ac_compile"
46654 case "(($ac_try" in
46655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46656   *) ac_try_echo=$ac_try;;
46657 esac
46658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46659   (eval "$ac_compile") 2>conftest.er1
46660   ac_status=$?
46661   grep -v '^ *+' conftest.er1 >conftest.err
46662   rm -f conftest.er1
46663   cat conftest.err >&5
46664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46665   (exit $ac_status); } && {
46666          test -z "$ac_cxx_werror_flag" ||
46667          test ! -s conftest.err
46668        } && test -s conftest.$ac_objext; then
46669   wx_cv_type_getsockname3=socklen_t
46670 else
46671   echo "$as_me: failed program was:" >&5
46672 sed 's/^/| /' conftest.$ac_ext >&5
46673
46674
46675                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
46676                         if test "$GCC" = yes ; then
46677                             CFLAGS="-Werror $CFLAGS"
46678                         fi
46679
46680                         cat >conftest.$ac_ext <<_ACEOF
46681 /* confdefs.h.  */
46682 _ACEOF
46683 cat confdefs.h >>conftest.$ac_ext
46684 cat >>conftest.$ac_ext <<_ACEOF
46685 /* end confdefs.h.  */
46686
46687                                 #include <sys/types.h>
46688                                 #include <sys/socket.h>
46689
46690 int
46691 main ()
46692 {
46693
46694                                 size_t len;
46695                                 getsockname(0, 0, &len);
46696
46697   ;
46698   return 0;
46699 }
46700 _ACEOF
46701 rm -f conftest.$ac_objext
46702 if { (ac_try="$ac_compile"
46703 case "(($ac_try" in
46704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46705   *) ac_try_echo=$ac_try;;
46706 esac
46707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46708   (eval "$ac_compile") 2>conftest.er1
46709   ac_status=$?
46710   grep -v '^ *+' conftest.er1 >conftest.err
46711   rm -f conftest.er1
46712   cat conftest.err >&5
46713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46714   (exit $ac_status); } && {
46715          test -z "$ac_cxx_werror_flag" ||
46716          test ! -s conftest.err
46717        } && test -s conftest.$ac_objext; then
46718   wx_cv_type_getsockname3=size_t
46719 else
46720   echo "$as_me: failed program was:" >&5
46721 sed 's/^/| /' conftest.$ac_ext >&5
46722
46723         cat >conftest.$ac_ext <<_ACEOF
46724 /* confdefs.h.  */
46725 _ACEOF
46726 cat confdefs.h >>conftest.$ac_ext
46727 cat >>conftest.$ac_ext <<_ACEOF
46728 /* end confdefs.h.  */
46729
46730                                     #include <sys/types.h>
46731                                     #include <sys/socket.h>
46732
46733 int
46734 main ()
46735 {
46736
46737                                     int len;
46738                                     getsockname(0, 0, &len);
46739
46740   ;
46741   return 0;
46742 }
46743 _ACEOF
46744 rm -f conftest.$ac_objext
46745 if { (ac_try="$ac_compile"
46746 case "(($ac_try" in
46747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46748   *) ac_try_echo=$ac_try;;
46749 esac
46750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46751   (eval "$ac_compile") 2>conftest.er1
46752   ac_status=$?
46753   grep -v '^ *+' conftest.er1 >conftest.err
46754   rm -f conftest.er1
46755   cat conftest.err >&5
46756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46757   (exit $ac_status); } && {
46758          test -z "$ac_cxx_werror_flag" ||
46759          test ! -s conftest.err
46760        } && test -s conftest.$ac_objext; then
46761   wx_cv_type_getsockname3=int
46762 else
46763   echo "$as_me: failed program was:" >&5
46764 sed 's/^/| /' conftest.$ac_ext >&5
46765
46766         wx_cv_type_getsockname3=unknown
46767
46768 fi
46769
46770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46771
46772 fi
46773
46774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46775
46776                         CFLAGS="$CFLAGS_OLD"
46777
46778
46779 fi
46780
46781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46782                 ac_ext=c
46783 ac_cpp='$CPP $CPPFLAGS'
46784 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46785 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46786 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46787
46788
46789 fi
46790 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
46791 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
46792
46793         if test "$wx_cv_type_getsockname3" = "unknown"; then
46794             wxUSE_SOCKETS=no
46795             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46796 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46797         else
46798             cat >>confdefs.h <<_ACEOF
46799 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
46800 _ACEOF
46801
46802         fi
46803                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
46804 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
46805 if test "${wx_cv_type_getsockopt5+set}" = set; then
46806   echo $ECHO_N "(cached) $ECHO_C" >&6
46807 else
46808
46809                                                                                                 ac_ext=cpp
46810 ac_cpp='$CXXCPP $CPPFLAGS'
46811 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46812 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46813 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46814
46815                 cat >conftest.$ac_ext <<_ACEOF
46816 /* confdefs.h.  */
46817 _ACEOF
46818 cat confdefs.h >>conftest.$ac_ext
46819 cat >>conftest.$ac_ext <<_ACEOF
46820 /* end confdefs.h.  */
46821
46822                         #include <sys/types.h>
46823                         #include <sys/socket.h>
46824
46825 int
46826 main ()
46827 {
46828
46829                         socklen_t len;
46830                         getsockopt(0, 0, 0, 0, &len);
46831
46832   ;
46833   return 0;
46834 }
46835 _ACEOF
46836 rm -f conftest.$ac_objext
46837 if { (ac_try="$ac_compile"
46838 case "(($ac_try" in
46839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46840   *) ac_try_echo=$ac_try;;
46841 esac
46842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46843   (eval "$ac_compile") 2>conftest.er1
46844   ac_status=$?
46845   grep -v '^ *+' conftest.er1 >conftest.err
46846   rm -f conftest.er1
46847   cat conftest.err >&5
46848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46849   (exit $ac_status); } && {
46850          test -z "$ac_cxx_werror_flag" ||
46851          test ! -s conftest.err
46852        } && test -s conftest.$ac_objext; then
46853   wx_cv_type_getsockopt5=socklen_t
46854 else
46855   echo "$as_me: failed program was:" >&5
46856 sed 's/^/| /' conftest.$ac_ext >&5
46857
46858
46859                         cat >conftest.$ac_ext <<_ACEOF
46860 /* confdefs.h.  */
46861 _ACEOF
46862 cat confdefs.h >>conftest.$ac_ext
46863 cat >>conftest.$ac_ext <<_ACEOF
46864 /* end confdefs.h.  */
46865
46866                                 #include <sys/types.h>
46867                                 #include <sys/socket.h>
46868
46869 int
46870 main ()
46871 {
46872
46873                                 size_t len;
46874                                 getsockopt(0, 0, 0, 0, &len);
46875
46876   ;
46877   return 0;
46878 }
46879 _ACEOF
46880 rm -f conftest.$ac_objext
46881 if { (ac_try="$ac_compile"
46882 case "(($ac_try" in
46883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46884   *) ac_try_echo=$ac_try;;
46885 esac
46886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46887   (eval "$ac_compile") 2>conftest.er1
46888   ac_status=$?
46889   grep -v '^ *+' conftest.er1 >conftest.err
46890   rm -f conftest.er1
46891   cat conftest.err >&5
46892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46893   (exit $ac_status); } && {
46894          test -z "$ac_cxx_werror_flag" ||
46895          test ! -s conftest.err
46896        } && test -s conftest.$ac_objext; then
46897   wx_cv_type_getsockopt5=size_t
46898 else
46899   echo "$as_me: failed program was:" >&5
46900 sed 's/^/| /' conftest.$ac_ext >&5
46901
46902         cat >conftest.$ac_ext <<_ACEOF
46903 /* confdefs.h.  */
46904 _ACEOF
46905 cat confdefs.h >>conftest.$ac_ext
46906 cat >>conftest.$ac_ext <<_ACEOF
46907 /* end confdefs.h.  */
46908
46909                                     #include <sys/types.h>
46910                                     #include <sys/socket.h>
46911
46912 int
46913 main ()
46914 {
46915
46916                                     int len;
46917                                     getsockopt(0, 0, 0, 0, &len);
46918
46919   ;
46920   return 0;
46921 }
46922 _ACEOF
46923 rm -f conftest.$ac_objext
46924 if { (ac_try="$ac_compile"
46925 case "(($ac_try" in
46926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46927   *) ac_try_echo=$ac_try;;
46928 esac
46929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46930   (eval "$ac_compile") 2>conftest.er1
46931   ac_status=$?
46932   grep -v '^ *+' conftest.er1 >conftest.err
46933   rm -f conftest.er1
46934   cat conftest.err >&5
46935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46936   (exit $ac_status); } && {
46937          test -z "$ac_cxx_werror_flag" ||
46938          test ! -s conftest.err
46939        } && test -s conftest.$ac_objext; then
46940   wx_cv_type_getsockopt5=int
46941 else
46942   echo "$as_me: failed program was:" >&5
46943 sed 's/^/| /' conftest.$ac_ext >&5
46944
46945         wx_cv_type_getsockopt5=unknown
46946
46947 fi
46948
46949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46950
46951 fi
46952
46953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46954
46955
46956 fi
46957
46958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46959                 ac_ext=c
46960 ac_cpp='$CPP $CPPFLAGS'
46961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46964
46965
46966 fi
46967 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
46968 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
46969
46970         if test "$wx_cv_type_getsockopt5" = "unknown"; then
46971             wxUSE_SOCKETS=no
46972             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
46973 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
46974         else
46975             cat >>confdefs.h <<_ACEOF
46976 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
46977 _ACEOF
46978
46979         fi
46980     fi
46981 fi
46982
46983 if test "$wxUSE_SOCKETS" = "yes" ; then
46984     cat >>confdefs.h <<\_ACEOF
46985 #define wxUSE_SOCKETS 1
46986 _ACEOF
46987
46988     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
46989 fi
46990
46991 if test "$wxUSE_PROTOCOL" = "yes"; then
46992     if test "$wxUSE_SOCKETS" != "yes"; then
46993         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
46994 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
46995         wxUSE_PROTOCOL=no
46996     fi
46997 fi
46998
46999 if test "$wxUSE_PROTOCOL" = "yes"; then
47000     cat >>confdefs.h <<\_ACEOF
47001 #define wxUSE_PROTOCOL 1
47002 _ACEOF
47003
47004
47005     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47006         cat >>confdefs.h <<\_ACEOF
47007 #define wxUSE_PROTOCOL_HTTP 1
47008 _ACEOF
47009
47010     fi
47011     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47012         cat >>confdefs.h <<\_ACEOF
47013 #define wxUSE_PROTOCOL_FTP 1
47014 _ACEOF
47015
47016     fi
47017     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47018         cat >>confdefs.h <<\_ACEOF
47019 #define wxUSE_PROTOCOL_FILE 1
47020 _ACEOF
47021
47022     fi
47023 else
47024     if test "$wxUSE_FS_INET" = "yes"; then
47025         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47026 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47027         wxUSE_FS_INET="no"
47028     fi
47029 fi
47030
47031 if test "$wxUSE_URL" = "yes"; then
47032     if test "$wxUSE_PROTOCOL" != "yes"; then
47033         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47034 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47035         wxUSE_URL=no
47036     fi
47037     if test "$wxUSE_URL" = "yes"; then
47038         cat >>confdefs.h <<\_ACEOF
47039 #define wxUSE_URL 1
47040 _ACEOF
47041
47042     fi
47043 fi
47044
47045 if test "$wxUSE_VARIANT" = "yes"; then
47046     cat >>confdefs.h <<\_ACEOF
47047 #define wxUSE_VARIANT 1
47048 _ACEOF
47049
47050 fi
47051
47052 if test "$wxUSE_FS_INET" = "yes"; then
47053   cat >>confdefs.h <<\_ACEOF
47054 #define wxUSE_FS_INET 1
47055 _ACEOF
47056
47057 fi
47058
47059
47060 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47061     wxUSE_JOYSTICK=no
47062
47063         if test "$TOOLKIT" = "MSW"; then
47064         wxUSE_JOYSTICK=yes
47065
47066         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47067         if test "$USE_DARWIN" = 1; then
47068                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47069 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47070             ac_ext=cpp
47071 ac_cpp='$CXXCPP $CPPFLAGS'
47072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47075
47076             cat >conftest.$ac_ext <<_ACEOF
47077 /* confdefs.h.  */
47078 _ACEOF
47079 cat confdefs.h >>conftest.$ac_ext
47080 cat >>conftest.$ac_ext <<_ACEOF
47081 /* end confdefs.h.  */
47082  #include <IOKit/hid/IOHIDLib.h>
47083 int
47084 main ()
47085 {
47086  IOHIDQueueInterface *qi = NULL;
47087                               IOHIDCallbackFunction cb = NULL;
47088                               qi->setEventCallout(NULL, cb, NULL, NULL);
47089   ;
47090   return 0;
47091 }
47092 _ACEOF
47093 rm -f conftest.$ac_objext
47094 if { (ac_try="$ac_compile"
47095 case "(($ac_try" in
47096   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47097   *) ac_try_echo=$ac_try;;
47098 esac
47099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47100   (eval "$ac_compile") 2>conftest.er1
47101   ac_status=$?
47102   grep -v '^ *+' conftest.er1 >conftest.err
47103   rm -f conftest.er1
47104   cat conftest.err >&5
47105   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47106   (exit $ac_status); } && {
47107          test -z "$ac_cxx_werror_flag" ||
47108          test ! -s conftest.err
47109        } && test -s conftest.$ac_objext; then
47110    wxUSE_JOYSTICK=yes
47111
47112 else
47113   echo "$as_me: failed program was:" >&5
47114 sed 's/^/| /' conftest.$ac_ext >&5
47115
47116
47117 fi
47118
47119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47120             ac_ext=c
47121 ac_cpp='$CPP $CPPFLAGS'
47122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47125
47126             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47127 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47128         fi
47129
47130         else
47131                 if test "$wxUSE_MGL" != "1"; then
47132
47133 for ac_header in linux/joystick.h
47134 do
47135 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47136 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47137 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47138 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47139   echo $ECHO_N "(cached) $ECHO_C" >&6
47140 else
47141   cat >conftest.$ac_ext <<_ACEOF
47142 /* confdefs.h.  */
47143 _ACEOF
47144 cat confdefs.h >>conftest.$ac_ext
47145 cat >>conftest.$ac_ext <<_ACEOF
47146 /* end confdefs.h.  */
47147 $ac_includes_default
47148
47149 #include <$ac_header>
47150 _ACEOF
47151 rm -f conftest.$ac_objext
47152 if { (ac_try="$ac_compile"
47153 case "(($ac_try" in
47154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47155   *) ac_try_echo=$ac_try;;
47156 esac
47157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47158   (eval "$ac_compile") 2>conftest.er1
47159   ac_status=$?
47160   grep -v '^ *+' conftest.er1 >conftest.err
47161   rm -f conftest.er1
47162   cat conftest.err >&5
47163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47164   (exit $ac_status); } && {
47165          test -z "$ac_c_werror_flag" ||
47166          test ! -s conftest.err
47167        } && test -s conftest.$ac_objext; then
47168   eval "$as_ac_Header=yes"
47169 else
47170   echo "$as_me: failed program was:" >&5
47171 sed 's/^/| /' conftest.$ac_ext >&5
47172
47173         eval "$as_ac_Header=no"
47174 fi
47175
47176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47177 fi
47178 ac_res=`eval echo '${'$as_ac_Header'}'`
47179                { echo "$as_me:$LINENO: result: $ac_res" >&5
47180 echo "${ECHO_T}$ac_res" >&6; }
47181 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47182   cat >>confdefs.h <<_ACEOF
47183 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47184 _ACEOF
47185  wxUSE_JOYSTICK=yes
47186 fi
47187
47188 done
47189
47190         fi
47191     fi
47192
47193     if test "$wxUSE_JOYSTICK" = "yes"; then
47194         cat >>confdefs.h <<\_ACEOF
47195 #define wxUSE_JOYSTICK 1
47196 _ACEOF
47197
47198         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47199     else
47200         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47201 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47202     fi
47203 fi
47204
47205
47206
47207 if test "$wxUSE_FONTENUM" = "yes" ; then
47208   cat >>confdefs.h <<\_ACEOF
47209 #define wxUSE_FONTENUM 1
47210 _ACEOF
47211
47212 fi
47213
47214 if test "$wxUSE_FONTMAP" = "yes" ; then
47215   cat >>confdefs.h <<\_ACEOF
47216 #define wxUSE_FONTMAP 1
47217 _ACEOF
47218
47219 fi
47220
47221 if test "$wxUSE_UNICODE" = "yes" ; then
47222   cat >>confdefs.h <<\_ACEOF
47223 #define wxUSE_UNICODE 1
47224 _ACEOF
47225
47226
47227   if test "$USE_WIN32" != 1; then
47228       wxUSE_UNICODE_MSLU=no
47229   fi
47230
47231   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47232         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47233 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47234 if test "${ac_cv_lib_unicows_main+set}" = set; then
47235   echo $ECHO_N "(cached) $ECHO_C" >&6
47236 else
47237   ac_check_lib_save_LIBS=$LIBS
47238 LIBS="-lunicows  $LIBS"
47239 cat >conftest.$ac_ext <<_ACEOF
47240 /* confdefs.h.  */
47241 _ACEOF
47242 cat confdefs.h >>conftest.$ac_ext
47243 cat >>conftest.$ac_ext <<_ACEOF
47244 /* end confdefs.h.  */
47245
47246
47247 int
47248 main ()
47249 {
47250 return main ();
47251   ;
47252   return 0;
47253 }
47254 _ACEOF
47255 rm -f conftest.$ac_objext conftest$ac_exeext
47256 if { (ac_try="$ac_link"
47257 case "(($ac_try" in
47258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47259   *) ac_try_echo=$ac_try;;
47260 esac
47261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47262   (eval "$ac_link") 2>conftest.er1
47263   ac_status=$?
47264   grep -v '^ *+' conftest.er1 >conftest.err
47265   rm -f conftest.er1
47266   cat conftest.err >&5
47267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268   (exit $ac_status); } && {
47269          test -z "$ac_c_werror_flag" ||
47270          test ! -s conftest.err
47271        } && test -s conftest$ac_exeext &&
47272        $as_test_x conftest$ac_exeext; then
47273   ac_cv_lib_unicows_main=yes
47274 else
47275   echo "$as_me: failed program was:" >&5
47276 sed 's/^/| /' conftest.$ac_ext >&5
47277
47278         ac_cv_lib_unicows_main=no
47279 fi
47280
47281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47282       conftest$ac_exeext conftest.$ac_ext
47283 LIBS=$ac_check_lib_save_LIBS
47284 fi
47285 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
47286 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
47287 if test $ac_cv_lib_unicows_main = yes; then
47288
47289                 cat >>confdefs.h <<\_ACEOF
47290 #define wxUSE_UNICODE_MSLU 1
47291 _ACEOF
47292
47293
47294 else
47295
47296                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47297                              Applications will only run on Windows NT/2000/XP!" >&5
47298 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
47299                              Applications will only run on Windows NT/2000/XP!" >&2;}
47300                 wxUSE_UNICODE_MSLU=no
47301
47302 fi
47303
47304     fi
47305 fi
47306
47307 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
47308     cat >>confdefs.h <<\_ACEOF
47309 #define wxUSE_UNICODE_UTF8 1
47310 _ACEOF
47311
47312
47313     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
47314         cat >>confdefs.h <<\_ACEOF
47315 #define wxUSE_UTF8_LOCALE_ONLY 1
47316 _ACEOF
47317
47318     fi
47319 fi
47320
47321
47322 if test "$wxUSE_CONSTRAINTS" = "yes"; then
47323     cat >>confdefs.h <<\_ACEOF
47324 #define wxUSE_CONSTRAINTS 1
47325 _ACEOF
47326
47327     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
47328 fi
47329
47330 if test "$wxUSE_MDI" = "yes"; then
47331     cat >>confdefs.h <<\_ACEOF
47332 #define wxUSE_MDI 1
47333 _ACEOF
47334
47335
47336     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47337         cat >>confdefs.h <<\_ACEOF
47338 #define wxUSE_MDI_ARCHITECTURE 1
47339 _ACEOF
47340
47341         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
47342     fi
47343 fi
47344
47345 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
47346     cat >>confdefs.h <<\_ACEOF
47347 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
47348 _ACEOF
47349
47350     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
47351     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
47352         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
47353     fi
47354 fi
47355
47356 if test "$wxUSE_HELP" = "yes"; then
47357     cat >>confdefs.h <<\_ACEOF
47358 #define wxUSE_HELP 1
47359 _ACEOF
47360
47361     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
47362
47363     if test "$wxUSE_MSW" = 1; then
47364       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
47365         cat >>confdefs.h <<\_ACEOF
47366 #define wxUSE_MS_HTML_HELP 1
47367 _ACEOF
47368
47369       fi
47370     fi
47371
47372     if test "$wxUSE_WXHTML_HELP" = "yes"; then
47373       if test "$wxUSE_HTML" = "yes"; then
47374         cat >>confdefs.h <<\_ACEOF
47375 #define wxUSE_WXHTML_HELP 1
47376 _ACEOF
47377
47378       else
47379         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
47380 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
47381         wxUSE_WXHTML_HELP=no
47382       fi
47383     fi
47384 fi
47385
47386 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
47387     if test "$wxUSE_CONSTRAINTS" != "yes"; then
47388         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
47389 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
47390     else
47391         cat >>confdefs.h <<\_ACEOF
47392 #define wxUSE_PRINTING_ARCHITECTURE 1
47393 _ACEOF
47394
47395     fi
47396     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
47397 fi
47398
47399 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
47400   cat >>confdefs.h <<\_ACEOF
47401 #define wxUSE_POSTSCRIPT 1
47402 _ACEOF
47403
47404 fi
47405
47406 cat >>confdefs.h <<\_ACEOF
47407 #define wxUSE_AFM_FOR_POSTSCRIPT 1
47408 _ACEOF
47409
47410
47411 if test "$wxUSE_SVG" = "yes"; then
47412     cat >>confdefs.h <<\_ACEOF
47413 #define wxUSE_SVG 1
47414 _ACEOF
47415
47416 fi
47417
47418
47419 if test "$wxUSE_METAFILE" = "yes"; then
47420     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
47421         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
47422 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
47423         wxUSE_METAFILE=no
47424     fi
47425 fi
47426
47427
47428 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
47429                           -o "$wxUSE_CLIPBOARD"     = "yes" \
47430                           -o "$wxUSE_OLE"     = "yes" \
47431                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
47432     { echo "$as_me:$LINENO: checking for ole2.h" >&5
47433 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
47434 if test "${ac_cv_header_ole2_h+set}" = set; then
47435   echo $ECHO_N "(cached) $ECHO_C" >&6
47436 else
47437   cat >conftest.$ac_ext <<_ACEOF
47438 /* confdefs.h.  */
47439 _ACEOF
47440 cat confdefs.h >>conftest.$ac_ext
47441 cat >>conftest.$ac_ext <<_ACEOF
47442 /* end confdefs.h.  */
47443
47444
47445 #include <ole2.h>
47446 _ACEOF
47447 rm -f conftest.$ac_objext
47448 if { (ac_try="$ac_compile"
47449 case "(($ac_try" in
47450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47451   *) ac_try_echo=$ac_try;;
47452 esac
47453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47454   (eval "$ac_compile") 2>conftest.er1
47455   ac_status=$?
47456   grep -v '^ *+' conftest.er1 >conftest.err
47457   rm -f conftest.er1
47458   cat conftest.err >&5
47459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47460   (exit $ac_status); } && {
47461          test -z "$ac_c_werror_flag" ||
47462          test ! -s conftest.err
47463        } && test -s conftest.$ac_objext; then
47464   ac_cv_header_ole2_h=yes
47465 else
47466   echo "$as_me: failed program was:" >&5
47467 sed 's/^/| /' conftest.$ac_ext >&5
47468
47469         ac_cv_header_ole2_h=no
47470 fi
47471
47472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47473 fi
47474 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
47475 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
47476
47477
47478
47479     if test "$ac_cv_header_ole2_h" = "yes" ; then
47480         if test "$GCC" = yes ; then
47481             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
47482 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
47483             cat >conftest.$ac_ext <<_ACEOF
47484 /* confdefs.h.  */
47485 _ACEOF
47486 cat confdefs.h >>conftest.$ac_ext
47487 cat >>conftest.$ac_ext <<_ACEOF
47488 /* end confdefs.h.  */
47489 #include <windows.h>
47490                             #include <ole2.h>
47491 int
47492 main ()
47493 {
47494
47495   ;
47496   return 0;
47497 }
47498 _ACEOF
47499 rm -f conftest.$ac_objext
47500 if { (ac_try="$ac_compile"
47501 case "(($ac_try" in
47502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47503   *) ac_try_echo=$ac_try;;
47504 esac
47505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47506   (eval "$ac_compile") 2>conftest.er1
47507   ac_status=$?
47508   grep -v '^ *+' conftest.er1 >conftest.err
47509   rm -f conftest.er1
47510   cat conftest.err >&5
47511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47512   (exit $ac_status); } && {
47513          test -z "$ac_c_werror_flag" ||
47514          test ! -s conftest.err
47515        } && test -s conftest.$ac_objext; then
47516   { echo "$as_me:$LINENO: result: no" >&5
47517 echo "${ECHO_T}no" >&6; }
47518 else
47519   echo "$as_me: failed program was:" >&5
47520 sed 's/^/| /' conftest.$ac_ext >&5
47521
47522         { echo "$as_me:$LINENO: result: yes" >&5
47523 echo "${ECHO_T}yes" >&6; }
47524                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
47525 fi
47526
47527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47528             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
47529             if test "$wxUSE_OLE" = "yes" ; then
47530                 cat >>confdefs.h <<\_ACEOF
47531 #define wxUSE_OLE 1
47532 _ACEOF
47533
47534                 cat >>confdefs.h <<\_ACEOF
47535 #define wxUSE_OLE_AUTOMATION 1
47536 _ACEOF
47537
47538                 cat >>confdefs.h <<\_ACEOF
47539 #define wxUSE_ACTIVEX 1
47540 _ACEOF
47541
47542                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
47543             fi
47544         fi
47545
47546                 if test "$wxUSE_DATAOBJ" = "yes" ; then
47547             cat >>confdefs.h <<\_ACEOF
47548 #define wxUSE_DATAOBJ 1
47549 _ACEOF
47550
47551         fi
47552     else
47553         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
47554 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
47555
47556         wxUSE_CLIPBOARD=no
47557         wxUSE_DRAG_AND_DROP=no
47558         wxUSE_DATAOBJ=no
47559         wxUSE_OLE=no
47560     fi
47561
47562     if test "$wxUSE_METAFILE" = "yes"; then
47563         cat >>confdefs.h <<\_ACEOF
47564 #define wxUSE_METAFILE 1
47565 _ACEOF
47566
47567
47568                 cat >>confdefs.h <<\_ACEOF
47569 #define wxUSE_ENH_METAFILE 1
47570 _ACEOF
47571
47572     fi
47573 fi
47574
47575 if test "$wxUSE_IPC" = "yes"; then
47576     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
47577         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
47578 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
47579         wxUSE_IPC=no
47580     fi
47581
47582     if test "$wxUSE_IPC" = "yes"; then
47583         cat >>confdefs.h <<\_ACEOF
47584 #define wxUSE_IPC 1
47585 _ACEOF
47586
47587         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
47588     fi
47589 fi
47590
47591 if test "$wxUSE_DATAOBJ" = "yes"; then
47592     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47593         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
47594 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
47595         wxUSE_DATAOBJ=no
47596     else
47597         cat >>confdefs.h <<\_ACEOF
47598 #define wxUSE_DATAOBJ 1
47599 _ACEOF
47600
47601     fi
47602 else
47603     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
47604 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
47605     wxUSE_CLIPBOARD=no
47606     wxUSE_DRAG_AND_DROP=no
47607 fi
47608
47609 if test "$wxUSE_CLIPBOARD" = "yes"; then
47610     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
47611         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
47612 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
47613         wxUSE_CLIPBOARD=no
47614     fi
47615
47616     if test "$wxUSE_CLIPBOARD" = "yes"; then
47617         cat >>confdefs.h <<\_ACEOF
47618 #define wxUSE_CLIPBOARD 1
47619 _ACEOF
47620
47621     fi
47622 fi
47623
47624 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
47625     if test "$wxUSE_GTK" = 1; then
47626         if test "$WXGTK12" != 1; then
47627             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
47628 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
47629             wxUSE_DRAG_AND_DROP=no
47630         fi
47631     fi
47632
47633     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
47634             "$wxUSE_DFB" = 1; then
47635         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
47636 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
47637         wxUSE_DRAG_AND_DROP=no
47638     fi
47639
47640     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
47641         cat >>confdefs.h <<\_ACEOF
47642 #define wxUSE_DRAG_AND_DROP 1
47643 _ACEOF
47644
47645     fi
47646
47647 fi
47648
47649 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
47650     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
47651 fi
47652
47653 if test "$wxUSE_SPLINES" = "yes" ; then
47654   cat >>confdefs.h <<\_ACEOF
47655 #define wxUSE_SPLINES 1
47656 _ACEOF
47657
47658 fi
47659
47660 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
47661   cat >>confdefs.h <<\_ACEOF
47662 #define wxUSE_MOUSEWHEEL 1
47663 _ACEOF
47664
47665 fi
47666
47667
47668 USES_CONTROLS=0
47669 if test "$wxUSE_CONTROLS" = "yes"; then
47670   USES_CONTROLS=1
47671 fi
47672
47673 if test "$wxUSE_ACCEL" = "yes"; then
47674   cat >>confdefs.h <<\_ACEOF
47675 #define wxUSE_ACCEL 1
47676 _ACEOF
47677
47678   USES_CONTROLS=1
47679 fi
47680
47681 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
47682   cat >>confdefs.h <<\_ACEOF
47683 #define wxUSE_ANIMATIONCTRL 1
47684 _ACEOF
47685
47686   USES_CONTROLS=1
47687   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
47688 fi
47689
47690 if test "$wxUSE_BUTTON" = "yes"; then
47691   cat >>confdefs.h <<\_ACEOF
47692 #define wxUSE_BUTTON 1
47693 _ACEOF
47694
47695   USES_CONTROLS=1
47696 fi
47697
47698 if test "$wxUSE_BMPBUTTON" = "yes"; then
47699   cat >>confdefs.h <<\_ACEOF
47700 #define wxUSE_BMPBUTTON 1
47701 _ACEOF
47702
47703   USES_CONTROLS=1
47704 fi
47705
47706 if test "$wxUSE_CALCTRL" = "yes"; then
47707   cat >>confdefs.h <<\_ACEOF
47708 #define wxUSE_CALENDARCTRL 1
47709 _ACEOF
47710
47711   USES_CONTROLS=1
47712   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
47713 fi
47714
47715 if test "$wxUSE_CARET" = "yes"; then
47716   cat >>confdefs.h <<\_ACEOF
47717 #define wxUSE_CARET 1
47718 _ACEOF
47719
47720   USES_CONTROLS=1
47721   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
47722 fi
47723
47724 if test "$wxUSE_COLLPANE" = "yes"; then
47725     cat >>confdefs.h <<\_ACEOF
47726 #define wxUSE_COLLPANE 1
47727 _ACEOF
47728
47729     USES_CONTROLS=1
47730     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
47731 fi
47732
47733 if test "$wxUSE_COMBOBOX" = "yes"; then
47734   cat >>confdefs.h <<\_ACEOF
47735 #define wxUSE_COMBOBOX 1
47736 _ACEOF
47737
47738   USES_CONTROLS=1
47739 fi
47740
47741 if test "$wxUSE_COMBOCTRL" = "yes"; then
47742   cat >>confdefs.h <<\_ACEOF
47743 #define wxUSE_COMBOCTRL 1
47744 _ACEOF
47745
47746   USES_CONTROLS=1
47747 fi
47748
47749 if test "$wxUSE_CHOICE" = "yes"; then
47750   cat >>confdefs.h <<\_ACEOF
47751 #define wxUSE_CHOICE 1
47752 _ACEOF
47753
47754   USES_CONTROLS=1
47755 fi
47756
47757 if test "$wxUSE_CHOICEBOOK" = "yes"; then
47758     cat >>confdefs.h <<\_ACEOF
47759 #define wxUSE_CHOICEBOOK 1
47760 _ACEOF
47761
47762     USES_CONTROLS=1
47763 fi
47764
47765 if test "$wxUSE_CHECKBOX" = "yes"; then
47766   cat >>confdefs.h <<\_ACEOF
47767 #define wxUSE_CHECKBOX 1
47768 _ACEOF
47769
47770   USES_CONTROLS=1
47771 fi
47772
47773 if test "$wxUSE_CHECKLST" = "yes"; then
47774   cat >>confdefs.h <<\_ACEOF
47775 #define wxUSE_CHECKLISTBOX 1
47776 _ACEOF
47777
47778   USES_CONTROLS=1
47779 fi
47780
47781 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
47782   cat >>confdefs.h <<\_ACEOF
47783 #define wxUSE_COLOURPICKERCTRL 1
47784 _ACEOF
47785
47786   USES_CONTROLS=1
47787 fi
47788
47789 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
47790   cat >>confdefs.h <<\_ACEOF
47791 #define wxUSE_DATEPICKCTRL 1
47792 _ACEOF
47793
47794   USES_CONTROLS=1
47795 fi
47796
47797 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
47798   cat >>confdefs.h <<\_ACEOF
47799 #define wxUSE_DIRPICKERCTRL 1
47800 _ACEOF
47801
47802   USES_CONTROLS=1
47803 fi
47804
47805 if test "$wxUSE_FILECTRL" = "yes"; then
47806   cat >>confdefs.h <<\_ACEOF
47807 #define wxUSE_FILECTRL 1
47808 _ACEOF
47809
47810   USES_CONTROLS=1
47811 fi
47812
47813 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
47814   cat >>confdefs.h <<\_ACEOF
47815 #define wxUSE_FILEPICKERCTRL 1
47816 _ACEOF
47817
47818   USES_CONTROLS=1
47819 fi
47820
47821 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
47822   cat >>confdefs.h <<\_ACEOF
47823 #define wxUSE_FONTPICKERCTRL 1
47824 _ACEOF
47825
47826   USES_CONTROLS=1
47827 fi
47828
47829 if test "$wxUSE_DISPLAY" = "yes"; then
47830     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
47831         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
47832 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
47833         wxUSE_DISPLAY=no
47834     else
47835         cat >>confdefs.h <<\_ACEOF
47836 #define wxUSE_DISPLAY 1
47837 _ACEOF
47838
47839         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display"
47840     fi
47841 fi
47842
47843 if test "$wxUSE_DETECT_SM" = "yes"; then
47844     cat >>confdefs.h <<\_ACEOF
47845 #define wxUSE_DETECT_SM 1
47846 _ACEOF
47847
47848 fi
47849
47850 if test "$wxUSE_GAUGE" = "yes"; then
47851   cat >>confdefs.h <<\_ACEOF
47852 #define wxUSE_GAUGE 1
47853 _ACEOF
47854
47855   USES_CONTROLS=1
47856 fi
47857
47858 if test "$wxUSE_GRID" = "yes"; then
47859   cat >>confdefs.h <<\_ACEOF
47860 #define wxUSE_GRID 1
47861 _ACEOF
47862
47863   USES_CONTROLS=1
47864   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
47865 fi
47866
47867 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
47868   cat >>confdefs.h <<\_ACEOF
47869 #define wxUSE_HYPERLINKCTRL 1
47870 _ACEOF
47871
47872   USES_CONTROLS=1
47873 fi
47874
47875 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
47876   cat >>confdefs.h <<\_ACEOF
47877 #define wxUSE_BITMAPCOMBOBOX 1
47878 _ACEOF
47879
47880   USES_CONTROLS=1
47881 fi
47882
47883 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
47884   cat >>confdefs.h <<\_ACEOF
47885 #define wxUSE_DATAVIEWCTRL 1
47886 _ACEOF
47887
47888   USES_CONTROLS=1
47889   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
47890 fi
47891
47892 if test "$wxUSE_IMAGLIST" = "yes"; then
47893     cat >>confdefs.h <<\_ACEOF
47894 #define wxUSE_IMAGLIST 1
47895 _ACEOF
47896
47897 fi
47898
47899 if test "$wxUSE_LISTBOOK" = "yes"; then
47900     cat >>confdefs.h <<\_ACEOF
47901 #define wxUSE_LISTBOOK 1
47902 _ACEOF
47903
47904     USES_CONTROLS=1
47905 fi
47906
47907 if test "$wxUSE_LISTBOX" = "yes"; then
47908     cat >>confdefs.h <<\_ACEOF
47909 #define wxUSE_LISTBOX 1
47910 _ACEOF
47911
47912     USES_CONTROLS=1
47913 fi
47914
47915 if test "$wxUSE_LISTCTRL" = "yes"; then
47916     if test "$wxUSE_IMAGLIST" = "yes"; then
47917         cat >>confdefs.h <<\_ACEOF
47918 #define wxUSE_LISTCTRL 1
47919 _ACEOF
47920
47921         USES_CONTROLS=1
47922         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
47923     else
47924         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
47925 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
47926     fi
47927 fi
47928
47929 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
47930     cat >>confdefs.h <<\_ACEOF
47931 #define wxUSE_EDITABLELISTBOX 1
47932 _ACEOF
47933
47934     USES_CONTROLS=1
47935     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
47936 fi
47937
47938 if test "$wxUSE_NOTEBOOK" = "yes"; then
47939     cat >>confdefs.h <<\_ACEOF
47940 #define wxUSE_NOTEBOOK 1
47941 _ACEOF
47942
47943     USES_CONTROLS=1
47944     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
47945 fi
47946
47947 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
47948   cat >>confdefs.h <<\_ACEOF
47949 #define wxUSE_ODCOMBOBOX 1
47950 _ACEOF
47951
47952   USES_CONTROLS=1
47953   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
47954 fi
47955
47956 if test "$wxUSE_RADIOBOX" = "yes"; then
47957     cat >>confdefs.h <<\_ACEOF
47958 #define wxUSE_RADIOBOX 1
47959 _ACEOF
47960
47961     USES_CONTROLS=1
47962 fi
47963
47964 if test "$wxUSE_RADIOBTN" = "yes"; then
47965     cat >>confdefs.h <<\_ACEOF
47966 #define wxUSE_RADIOBTN 1
47967 _ACEOF
47968
47969     USES_CONTROLS=1
47970 fi
47971
47972 if test "$wxUSE_SASH" = "yes"; then
47973     cat >>confdefs.h <<\_ACEOF
47974 #define wxUSE_SASH 1
47975 _ACEOF
47976
47977     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
47978 fi
47979
47980 if test "$wxUSE_SCROLLBAR" = "yes"; then
47981     cat >>confdefs.h <<\_ACEOF
47982 #define wxUSE_SCROLLBAR 1
47983 _ACEOF
47984
47985     USES_CONTROLS=1
47986     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
47987 fi
47988
47989 if test "$wxUSE_SEARCHCTRL" = "yes"; then
47990     cat >>confdefs.h <<\_ACEOF
47991 #define wxUSE_SEARCHCTRL 1
47992 _ACEOF
47993
47994     USES_CONTROLS=1
47995 fi
47996
47997 if test "$wxUSE_SLIDER" = "yes"; then
47998     cat >>confdefs.h <<\_ACEOF
47999 #define wxUSE_SLIDER 1
48000 _ACEOF
48001
48002     USES_CONTROLS=1
48003 fi
48004
48005 if test "$wxUSE_SPINBTN" = "yes"; then
48006     cat >>confdefs.h <<\_ACEOF
48007 #define wxUSE_SPINBTN 1
48008 _ACEOF
48009
48010     USES_CONTROLS=1
48011 fi
48012
48013 if test "$wxUSE_SPINCTRL" = "yes"; then
48014     cat >>confdefs.h <<\_ACEOF
48015 #define wxUSE_SPINCTRL 1
48016 _ACEOF
48017
48018     USES_CONTROLS=1
48019 fi
48020
48021 if test "$wxUSE_SPLITTER" = "yes"; then
48022     cat >>confdefs.h <<\_ACEOF
48023 #define wxUSE_SPLITTER 1
48024 _ACEOF
48025
48026     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48027 fi
48028
48029 if test "$wxUSE_STATBMP" = "yes"; then
48030     cat >>confdefs.h <<\_ACEOF
48031 #define wxUSE_STATBMP 1
48032 _ACEOF
48033
48034     USES_CONTROLS=1
48035 fi
48036
48037 if test "$wxUSE_STATBOX" = "yes"; then
48038     cat >>confdefs.h <<\_ACEOF
48039 #define wxUSE_STATBOX 1
48040 _ACEOF
48041
48042     USES_CONTROLS=1
48043 fi
48044
48045 if test "$wxUSE_STATTEXT" = "yes"; then
48046     cat >>confdefs.h <<\_ACEOF
48047 #define wxUSE_STATTEXT 1
48048 _ACEOF
48049
48050     USES_CONTROLS=1
48051 fi
48052
48053 if test "$wxUSE_STATLINE" = "yes"; then
48054     cat >>confdefs.h <<\_ACEOF
48055 #define wxUSE_STATLINE 1
48056 _ACEOF
48057
48058     USES_CONTROLS=1
48059 fi
48060
48061 if test "$wxUSE_STATUSBAR" = "yes"; then
48062         cat >>confdefs.h <<\_ACEOF
48063 #define wxUSE_NATIVE_STATUSBAR 1
48064 _ACEOF
48065
48066     cat >>confdefs.h <<\_ACEOF
48067 #define wxUSE_STATUSBAR 1
48068 _ACEOF
48069
48070     USES_CONTROLS=1
48071
48072     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48073 fi
48074
48075 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48076     cat >>confdefs.h <<\_ACEOF
48077 #define wxUSE_TAB_DIALOG 1
48078 _ACEOF
48079
48080 fi
48081
48082 if test "$wxUSE_TEXTCTRL" = "yes"; then
48083     cat >>confdefs.h <<\_ACEOF
48084 #define wxUSE_TEXTCTRL 1
48085 _ACEOF
48086
48087     USES_CONTROLS=1
48088     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48089 fi
48090
48091 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48092     if test "$wxUSE_COCOA" = 1 ; then
48093         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48094 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48095         wxUSE_TOGGLEBTN=no
48096     fi
48097
48098     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48099         cat >>confdefs.h <<\_ACEOF
48100 #define wxUSE_TOGGLEBTN 1
48101 _ACEOF
48102
48103         USES_CONTROLS=1
48104     fi
48105 fi
48106
48107 if test "$wxUSE_TOOLBAR" = "yes"; then
48108     cat >>confdefs.h <<\_ACEOF
48109 #define wxUSE_TOOLBAR 1
48110 _ACEOF
48111
48112     USES_CONTROLS=1
48113
48114     if test "$wxUSE_UNIVERSAL" = "yes"; then
48115         wxUSE_TOOLBAR_NATIVE="no"
48116     else
48117         wxUSE_TOOLBAR_NATIVE="yes"
48118         cat >>confdefs.h <<\_ACEOF
48119 #define wxUSE_TOOLBAR_NATIVE 1
48120 _ACEOF
48121
48122     fi
48123
48124     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48125 fi
48126
48127 if test "$wxUSE_TOOLTIPS" = "yes"; then
48128     if test "$wxUSE_MOTIF" = 1; then
48129         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48130 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48131     else
48132         if test "$wxUSE_UNIVERSAL" = "yes"; then
48133             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48134 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48135         else
48136             cat >>confdefs.h <<\_ACEOF
48137 #define wxUSE_TOOLTIPS 1
48138 _ACEOF
48139
48140         fi
48141     fi
48142 fi
48143
48144 if test "$wxUSE_TREEBOOK" = "yes"; then
48145     cat >>confdefs.h <<\_ACEOF
48146 #define wxUSE_TREEBOOK 1
48147 _ACEOF
48148
48149     USES_CONTROLS=1
48150 fi
48151
48152 if test "$wxUSE_TOOLBOOK" = "yes"; then
48153     cat >>confdefs.h <<\_ACEOF
48154 #define wxUSE_TOOLBOOK 1
48155 _ACEOF
48156
48157     USES_CONTROLS=1
48158 fi
48159
48160 if test "$wxUSE_TREECTRL" = "yes"; then
48161     if test "$wxUSE_IMAGLIST" = "yes"; then
48162         cat >>confdefs.h <<\_ACEOF
48163 #define wxUSE_TREECTRL 1
48164 _ACEOF
48165
48166         USES_CONTROLS=1
48167         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48168     else
48169         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48170 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48171     fi
48172 fi
48173
48174 if test "$wxUSE_POPUPWIN" = "yes"; then
48175     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48176         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48177 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48178     else
48179         if test "$wxUSE_PM" = 1; then
48180             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48181 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48182         else
48183             cat >>confdefs.h <<\_ACEOF
48184 #define wxUSE_POPUPWIN 1
48185 _ACEOF
48186
48187             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48188
48189             USES_CONTROLS=1
48190         fi
48191     fi
48192 fi
48193
48194 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48195     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48196         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48197 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48198     else
48199         cat >>confdefs.h <<\_ACEOF
48200 #define wxUSE_DIALUP_MANAGER 1
48201 _ACEOF
48202
48203         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48204     fi
48205 fi
48206
48207 if test "$wxUSE_TIPWINDOW" = "yes"; then
48208     if test "$wxUSE_PM" = 1; then
48209         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48210 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48211     else
48212         cat >>confdefs.h <<\_ACEOF
48213 #define wxUSE_TIPWINDOW 1
48214 _ACEOF
48215
48216     fi
48217 fi
48218
48219 if test "$USES_CONTROLS" = 1; then
48220     cat >>confdefs.h <<\_ACEOF
48221 #define wxUSE_CONTROLS 1
48222 _ACEOF
48223
48224 fi
48225
48226
48227 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48228     cat >>confdefs.h <<\_ACEOF
48229 #define wxUSE_ACCESSIBILITY 1
48230 _ACEOF
48231
48232     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48233 fi
48234
48235 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48236     cat >>confdefs.h <<\_ACEOF
48237 #define wxUSE_DRAGIMAGE 1
48238 _ACEOF
48239
48240     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48241 fi
48242
48243 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48244     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48245         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48246 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
48247     else
48248         cat >>confdefs.h <<\_ACEOF
48249 #define wxUSE_EXCEPTIONS 1
48250 _ACEOF
48251
48252         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
48253     fi
48254 fi
48255
48256 USE_HTML=0
48257 if test "$wxUSE_HTML" = "yes"; then
48258     cat >>confdefs.h <<\_ACEOF
48259 #define wxUSE_HTML 1
48260 _ACEOF
48261
48262     USE_HTML=1
48263     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
48264     if test "$wxUSE_MAC" = 1; then
48265         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
48266     fi
48267 fi
48268 if test "$wxUSE_WEBKIT" = "yes"; then
48269     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
48270         old_CPPFLAGS="$CPPFLAGS"
48271         CPPFLAGS="-x objective-c++ $CPPFLAGS"
48272         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
48273 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
48274 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
48275   echo $ECHO_N "(cached) $ECHO_C" >&6
48276 else
48277   cat >conftest.$ac_ext <<_ACEOF
48278 /* confdefs.h.  */
48279 _ACEOF
48280 cat confdefs.h >>conftest.$ac_ext
48281 cat >>conftest.$ac_ext <<_ACEOF
48282 /* end confdefs.h.  */
48283
48284                            #include <Carbon/Carbon.h>
48285                            #include <WebKit/WebKit.h>
48286
48287
48288 #include <WebKit/HIWebView.h>
48289 _ACEOF
48290 rm -f conftest.$ac_objext
48291 if { (ac_try="$ac_compile"
48292 case "(($ac_try" in
48293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48294   *) ac_try_echo=$ac_try;;
48295 esac
48296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48297   (eval "$ac_compile") 2>conftest.er1
48298   ac_status=$?
48299   grep -v '^ *+' conftest.er1 >conftest.err
48300   rm -f conftest.er1
48301   cat conftest.err >&5
48302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48303   (exit $ac_status); } && {
48304          test -z "$ac_c_werror_flag" ||
48305          test ! -s conftest.err
48306        } && test -s conftest.$ac_objext; then
48307   ac_cv_header_WebKit_HIWebView_h=yes
48308 else
48309   echo "$as_me: failed program was:" >&5
48310 sed 's/^/| /' conftest.$ac_ext >&5
48311
48312         ac_cv_header_WebKit_HIWebView_h=no
48313 fi
48314
48315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48316 fi
48317 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
48318 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
48319 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
48320
48321                            cat >>confdefs.h <<\_ACEOF
48322 #define wxUSE_WEBKIT 1
48323 _ACEOF
48324
48325                            WEBKIT_LINK="-framework WebKit"
48326
48327 else
48328
48329                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
48330 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
48331                            wxUSE_WEBKIT=no
48332
48333 fi
48334
48335
48336         CPPFLAGS="$old_CPPFLAGS"
48337     elif test "$wxUSE_COCOA" = 1; then
48338         cat >>confdefs.h <<\_ACEOF
48339 #define wxUSE_WEBKIT 1
48340 _ACEOF
48341
48342     else
48343         wxUSE_WEBKIT=no
48344     fi
48345 fi
48346
48347 USE_XRC=0
48348 if test "$wxUSE_XRC" = "yes"; then
48349     if test "$wxUSE_XML" != "yes"; then
48350         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
48351 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
48352         wxUSE_XRC=no
48353     else
48354         cat >>confdefs.h <<\_ACEOF
48355 #define wxUSE_XRC 1
48356 _ACEOF
48357
48358         USE_XRC=1
48359         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
48360     fi
48361 fi
48362
48363 USE_AUI=0
48364 if test "$wxUSE_AUI" = "yes"; then
48365    cat >>confdefs.h <<\_ACEOF
48366 #define wxUSE_AUI 1
48367 _ACEOF
48368
48369    USE_AUI=1
48370    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
48371 fi
48372
48373 USE_STC=0
48374 if test "$wxUSE_STC" = "yes"; then
48375    cat >>confdefs.h <<\_ACEOF
48376 #define wxUSE_STC 1
48377 _ACEOF
48378
48379    USE_STC=1
48380    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
48381 fi
48382
48383 if test "$wxUSE_MENUS" = "yes"; then
48384     cat >>confdefs.h <<\_ACEOF
48385 #define wxUSE_MENUS 1
48386 _ACEOF
48387
48388     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
48389 fi
48390
48391 if test "$wxUSE_METAFILE" = "yes"; then
48392     cat >>confdefs.h <<\_ACEOF
48393 #define wxUSE_METAFILE 1
48394 _ACEOF
48395
48396 fi
48397
48398 if test "$wxUSE_MIMETYPE" = "yes"; then
48399     cat >>confdefs.h <<\_ACEOF
48400 #define wxUSE_MIMETYPE 1
48401 _ACEOF
48402
48403 fi
48404
48405 if test "$wxUSE_MINIFRAME" = "yes"; then
48406     cat >>confdefs.h <<\_ACEOF
48407 #define wxUSE_MINIFRAME 1
48408 _ACEOF
48409
48410 fi
48411
48412 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
48413     cat >>confdefs.h <<\_ACEOF
48414 #define wxUSE_SYSTEM_OPTIONS 1
48415 _ACEOF
48416
48417 fi
48418
48419 if test "$wxUSE_TASKBARICON" = "yes"; then
48420     cat >>confdefs.h <<\_ACEOF
48421 #define wxUSE_TASKBARICON 1
48422 _ACEOF
48423
48424     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
48425 fi
48426
48427
48428 if test "$wxUSE_VALIDATORS" = "yes"; then
48429     cat >>confdefs.h <<\_ACEOF
48430 #define wxUSE_VALIDATORS 1
48431 _ACEOF
48432
48433     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
48434 fi
48435
48436 if test "$wxUSE_PALETTE" = "yes" ; then
48437     if test "$wxUSE_DFB" = 1; then
48438         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
48439 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
48440         wxUSE_PALETTE=no
48441     else
48442         cat >>confdefs.h <<\_ACEOF
48443 #define wxUSE_PALETTE 1
48444 _ACEOF
48445
48446     fi
48447 fi
48448
48449 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
48450     LIBS=" -lunicows $LIBS"
48451 fi
48452
48453 USE_RICHTEXT=0
48454 if test "$wxUSE_RICHTEXT" = "yes"; then
48455     cat >>confdefs.h <<\_ACEOF
48456 #define wxUSE_RICHTEXT 1
48457 _ACEOF
48458
48459     USE_RICHTEXT=1
48460     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
48461 fi
48462
48463
48464 if test "$wxUSE_IMAGE" = "yes" ; then
48465     cat >>confdefs.h <<\_ACEOF
48466 #define wxUSE_IMAGE 1
48467 _ACEOF
48468
48469
48470     if test "$wxUSE_GIF" = "yes" ; then
48471       cat >>confdefs.h <<\_ACEOF
48472 #define wxUSE_GIF 1
48473 _ACEOF
48474
48475     fi
48476
48477     if test "$wxUSE_PCX" = "yes" ; then
48478       cat >>confdefs.h <<\_ACEOF
48479 #define wxUSE_PCX 1
48480 _ACEOF
48481
48482     fi
48483
48484     if test "$wxUSE_TGA" = "yes" ; then
48485       cat >>confdefs.h <<\_ACEOF
48486 #define wxUSE_TGA 1
48487 _ACEOF
48488
48489     fi
48490
48491     if test "$wxUSE_IFF" = "yes" ; then
48492       cat >>confdefs.h <<\_ACEOF
48493 #define wxUSE_IFF 1
48494 _ACEOF
48495
48496     fi
48497
48498     if test "$wxUSE_PNM" = "yes" ; then
48499       cat >>confdefs.h <<\_ACEOF
48500 #define wxUSE_PNM 1
48501 _ACEOF
48502
48503     fi
48504
48505     if test "$wxUSE_XPM" = "yes" ; then
48506       cat >>confdefs.h <<\_ACEOF
48507 #define wxUSE_XPM 1
48508 _ACEOF
48509
48510     fi
48511
48512     if test "$wxUSE_ICO_CUR" = "yes" ; then
48513       cat >>confdefs.h <<\_ACEOF
48514 #define wxUSE_ICO_CUR 1
48515 _ACEOF
48516
48517     fi
48518 fi
48519
48520
48521 if test "$wxUSE_ABOUTDLG" = "yes"; then
48522     cat >>confdefs.h <<\_ACEOF
48523 #define wxUSE_ABOUTDLG 1
48524 _ACEOF
48525
48526 fi
48527
48528 if test "$wxUSE_CHOICEDLG" = "yes"; then
48529     cat >>confdefs.h <<\_ACEOF
48530 #define wxUSE_CHOICEDLG 1
48531 _ACEOF
48532
48533 fi
48534
48535 if test "$wxUSE_COLOURDLG" = "yes"; then
48536     cat >>confdefs.h <<\_ACEOF
48537 #define wxUSE_COLOURDLG 1
48538 _ACEOF
48539
48540 fi
48541
48542 if test "$wxUSE_FILEDLG" = "yes"; then
48543     cat >>confdefs.h <<\_ACEOF
48544 #define wxUSE_FILEDLG 1
48545 _ACEOF
48546
48547 fi
48548
48549 if test "$wxUSE_FINDREPLDLG" = "yes"; then
48550     cat >>confdefs.h <<\_ACEOF
48551 #define wxUSE_FINDREPLDLG 1
48552 _ACEOF
48553
48554 fi
48555
48556 if test "$wxUSE_FONTDLG" = "yes"; then
48557     cat >>confdefs.h <<\_ACEOF
48558 #define wxUSE_FONTDLG 1
48559 _ACEOF
48560
48561 fi
48562
48563 if test "$wxUSE_DIRDLG" = "yes"; then
48564     if test "$wxUSE_TREECTRL" != "yes"; then
48565         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
48566 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
48567     else
48568         cat >>confdefs.h <<\_ACEOF
48569 #define wxUSE_DIRDLG 1
48570 _ACEOF
48571
48572     fi
48573 fi
48574
48575 if test "$wxUSE_MSGDLG" = "yes"; then
48576     cat >>confdefs.h <<\_ACEOF
48577 #define wxUSE_MSGDLG 1
48578 _ACEOF
48579
48580 fi
48581
48582 if test "$wxUSE_NUMBERDLG" = "yes"; then
48583     cat >>confdefs.h <<\_ACEOF
48584 #define wxUSE_NUMBERDLG 1
48585 _ACEOF
48586
48587 fi
48588
48589 if test "$wxUSE_PROGRESSDLG" = "yes"; then
48590     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48591        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
48592 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
48593     else
48594         cat >>confdefs.h <<\_ACEOF
48595 #define wxUSE_PROGRESSDLG 1
48596 _ACEOF
48597
48598     fi
48599 fi
48600
48601 if test "$wxUSE_SPLASH" = "yes"; then
48602     cat >>confdefs.h <<\_ACEOF
48603 #define wxUSE_SPLASH 1
48604 _ACEOF
48605
48606     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
48607 fi
48608
48609 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
48610     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48611        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
48612 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
48613     else
48614         cat >>confdefs.h <<\_ACEOF
48615 #define wxUSE_STARTUP_TIPS 1
48616 _ACEOF
48617
48618     fi
48619 fi
48620
48621 if test "$wxUSE_TEXTDLG" = "yes"; then
48622     cat >>confdefs.h <<\_ACEOF
48623 #define wxUSE_TEXTDLG 1
48624 _ACEOF
48625
48626 fi
48627
48628 if test "$wxUSE_WIZARDDLG" = "yes"; then
48629     cat >>confdefs.h <<\_ACEOF
48630 #define wxUSE_WIZARDDLG 1
48631 _ACEOF
48632
48633     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
48634 fi
48635
48636
48637 if test "$wxUSE_MSW" = 1 ; then
48638
48639     if test "$wxUSE_DC_CACHEING" = "yes"; then
48640         cat >>confdefs.h <<\_ACEOF
48641 #define wxUSE_DC_CACHEING 1
48642 _ACEOF
48643
48644     fi
48645
48646     if test "$wxUSE_DIB" = "yes"; then
48647         cat >>confdefs.h <<\_ACEOF
48648 #define wxUSE_WXDIB 1
48649 _ACEOF
48650
48651     fi
48652
48653     if test "$wxUSE_OWNER_DRAWN" = "yes"; then
48654         cat >>confdefs.h <<\_ACEOF
48655 #define wxUSE_OWNER_DRAWN 1
48656 _ACEOF
48657
48658     fi
48659
48660     if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
48661         cat >>confdefs.h <<\_ACEOF
48662 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
48663 _ACEOF
48664
48665     fi
48666
48667     if test "$wxUSE_UXTHEME" = "yes"; then
48668         cat >>confdefs.h <<\_ACEOF
48669 #define wxUSE_UXTHEME 1
48670 _ACEOF
48671
48672     fi
48673
48674 fi
48675
48676
48677 if test "$USE_WIN32" = 1 ; then
48678     if test "$wxUSE_INICONF" = "yes"; then
48679         cat >>confdefs.h <<\_ACEOF
48680 #define wxUSE_INICONF 1
48681 _ACEOF
48682
48683     fi
48684
48685     if test "$wxUSE_REGKEY" = "yes"; then
48686         cat >>confdefs.h <<\_ACEOF
48687 #define wxUSE_REGKEY 1
48688 _ACEOF
48689
48690     fi
48691 fi
48692
48693
48694 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
48695    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
48696       cat >>confdefs.h <<\_ACEOF
48697 #define wxUSE_GRAPHICS_CONTEXT 1
48698 _ACEOF
48699
48700    elif test "$wxUSE_GTK" != 1; then
48701             cat >>confdefs.h <<\_ACEOF
48702 #define wxUSE_GRAPHICS_CONTEXT 1
48703 _ACEOF
48704
48705    else
48706
48707 pkg_failed=no
48708 { echo "$as_me:$LINENO: checking for CAIRO" >&5
48709 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
48710
48711 if test -n "$PKG_CONFIG"; then
48712     if test -n "$CAIRO_CFLAGS"; then
48713         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
48714     else
48715         if test -n "$PKG_CONFIG" && \
48716     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48717   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48718   ac_status=$?
48719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48720   (exit $ac_status); }; then
48721   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
48722 else
48723   pkg_failed=yes
48724 fi
48725     fi
48726 else
48727         pkg_failed=untried
48728 fi
48729 if test -n "$PKG_CONFIG"; then
48730     if test -n "$CAIRO_LIBS"; then
48731         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
48732     else
48733         if test -n "$PKG_CONFIG" && \
48734     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
48735   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
48736   ac_status=$?
48737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48738   (exit $ac_status); }; then
48739   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
48740 else
48741   pkg_failed=yes
48742 fi
48743     fi
48744 else
48745         pkg_failed=untried
48746 fi
48747
48748
48749
48750 if test $pkg_failed = yes; then
48751
48752 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48753         _pkg_short_errors_supported=yes
48754 else
48755         _pkg_short_errors_supported=no
48756 fi
48757         if test $_pkg_short_errors_supported = yes; then
48758                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
48759         else
48760                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
48761         fi
48762         # Put the nasty error message in config.log where it belongs
48763         echo "$CAIRO_PKG_ERRORS" >&5
48764
48765         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48766 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48767
48768 elif test $pkg_failed = untried; then
48769         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
48770 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
48771
48772 else
48773         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
48774         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
48775         { echo "$as_me:$LINENO: result: yes" >&5
48776 echo "${ECHO_T}yes" >&6; }
48777         cat >>confdefs.h <<\_ACEOF
48778 #define wxUSE_GRAPHICS_CONTEXT 1
48779 _ACEOF
48780
48781 fi
48782    fi
48783 fi
48784
48785
48786 USE_MEDIA=0
48787
48788 if test "$wxUSE_MEDIACTRL" = "yes"; then
48789     USE_MEDIA=1
48790
48791                 if test "$wxUSE_GTK" = 1; then
48792         wxUSE_GSTREAMER="no"
48793
48794                                                                 GST_VERSION_MAJOR=0
48795         GST_VERSION_MINOR=10
48796         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48797
48798         if test "$wxUSE_GSTREAMER8" = "no"; then
48799
48800 pkg_failed=no
48801 { echo "$as_me:$LINENO: checking for GST" >&5
48802 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48803
48804 if test -n "$PKG_CONFIG"; then
48805     if test -n "$GST_CFLAGS"; then
48806         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48807     else
48808         if test -n "$PKG_CONFIG" && \
48809     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48810   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48811   ac_status=$?
48812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48813   (exit $ac_status); }; then
48814   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48815 else
48816   pkg_failed=yes
48817 fi
48818     fi
48819 else
48820         pkg_failed=untried
48821 fi
48822 if test -n "$PKG_CONFIG"; then
48823     if test -n "$GST_LIBS"; then
48824         pkg_cv_GST_LIBS="$GST_LIBS"
48825     else
48826         if test -n "$PKG_CONFIG" && \
48827     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
48828   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
48829   ac_status=$?
48830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48831   (exit $ac_status); }; then
48832   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
48833 else
48834   pkg_failed=yes
48835 fi
48836     fi
48837 else
48838         pkg_failed=untried
48839 fi
48840
48841
48842
48843 if test $pkg_failed = yes; then
48844
48845 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48846         _pkg_short_errors_supported=yes
48847 else
48848         _pkg_short_errors_supported=no
48849 fi
48850         if test $_pkg_short_errors_supported = yes; then
48851                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48852         else
48853                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
48854         fi
48855         # Put the nasty error message in config.log where it belongs
48856         echo "$GST_PKG_ERRORS" >&5
48857
48858
48859                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48860 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48861                     GST_VERSION_MINOR=8
48862
48863
48864 elif test $pkg_failed = untried; then
48865
48866                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
48867 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
48868                     GST_VERSION_MINOR=8
48869
48870
48871 else
48872         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48873         GST_LIBS=$pkg_cv_GST_LIBS
48874         { echo "$as_me:$LINENO: result: yes" >&5
48875 echo "${ECHO_T}yes" >&6; }
48876
48877                     wxUSE_GSTREAMER="yes"
48878                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
48879
48880 fi
48881         else
48882                         GST_VERSION_MINOR=8
48883         fi
48884
48885         if test $GST_VERSION_MINOR = "8"; then
48886             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
48887
48888 pkg_failed=no
48889 { echo "$as_me:$LINENO: checking for GST" >&5
48890 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
48891
48892 if test -n "$PKG_CONFIG"; then
48893     if test -n "$GST_CFLAGS"; then
48894         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
48895     else
48896         if test -n "$PKG_CONFIG" && \
48897     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48898   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48899   ac_status=$?
48900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48901   (exit $ac_status); }; then
48902   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48903 else
48904   pkg_failed=yes
48905 fi
48906     fi
48907 else
48908         pkg_failed=untried
48909 fi
48910 if test -n "$PKG_CONFIG"; then
48911     if test -n "$GST_LIBS"; then
48912         pkg_cv_GST_LIBS="$GST_LIBS"
48913     else
48914         if test -n "$PKG_CONFIG" && \
48915     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
48916   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
48917   ac_status=$?
48918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48919   (exit $ac_status); }; then
48920   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
48921 else
48922   pkg_failed=yes
48923 fi
48924     fi
48925 else
48926         pkg_failed=untried
48927 fi
48928
48929
48930
48931 if test $pkg_failed = yes; then
48932
48933 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
48934         _pkg_short_errors_supported=yes
48935 else
48936         _pkg_short_errors_supported=no
48937 fi
48938         if test $_pkg_short_errors_supported = yes; then
48939                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48940         else
48941                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
48942         fi
48943         # Put the nasty error message in config.log where it belongs
48944         echo "$GST_PKG_ERRORS" >&5
48945
48946
48947                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48948 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48949
48950 elif test $pkg_failed = untried; then
48951
48952                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
48953 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
48954
48955 else
48956         GST_CFLAGS=$pkg_cv_GST_CFLAGS
48957         GST_LIBS=$pkg_cv_GST_LIBS
48958         { echo "$as_me:$LINENO: result: yes" >&5
48959 echo "${ECHO_T}yes" >&6; }
48960         wxUSE_GSTREAMER="yes"
48961 fi
48962         fi
48963
48964
48965         if test "$wxUSE_GSTREAMER" = "yes"; then
48966             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
48967             LIBS="$GST_LIBS $LIBS"
48968
48969             cat >>confdefs.h <<\_ACEOF
48970 #define wxUSE_GSTREAMER 1
48971 _ACEOF
48972
48973         else
48974             USE_MEDIA=0
48975         fi
48976     fi
48977
48978     if test $USE_MEDIA = 1; then
48979         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
48980         cat >>confdefs.h <<\_ACEOF
48981 #define wxUSE_MEDIACTRL 1
48982 _ACEOF
48983
48984     fi
48985 fi
48986
48987
48988 if test "$cross_compiling" = "yes"; then
48989         OSINFO="\"$host\""
48990 else
48991         OSINFO=`uname -s -r -m`
48992     OSINFO="\"$OSINFO\""
48993 fi
48994
48995 cat >>confdefs.h <<_ACEOF
48996 #define WXWIN_OS_DESCRIPTION $OSINFO
48997 _ACEOF
48998
48999
49000
49001 if test "x$prefix" != "xNONE"; then
49002     wxPREFIX=$prefix
49003 else
49004     wxPREFIX=$ac_default_prefix
49005 fi
49006
49007 cat >>confdefs.h <<_ACEOF
49008 #define wxINSTALL_PREFIX "$wxPREFIX"
49009 _ACEOF
49010
49011
49012
49013
49014 STD_BASE_LIBS="base"
49015 STD_GUI_LIBS=""
49016 BUILT_WX_LIBS="base"
49017 ALL_WX_LIBS="xrc stc gl media qa html adv core xml net base"
49018
49019 if test "$wxUSE_SOCKETS" = "yes" ; then
49020     STD_BASE_LIBS="net $STD_BASE_LIBS"
49021     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49022 fi
49023 if test "$wxUSE_XML" = "yes" ; then
49024     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49025     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49026 fi
49027
49028 if test "$wxUSE_GUI" = "yes"; then
49029     STD_GUI_LIBS="adv core"
49030     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49031
49032     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49033         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49034         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49035     fi
49036     if test "$wxUSE_HTML" = "yes" ; then
49037         STD_GUI_LIBS="html $STD_GUI_LIBS"
49038         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49039     fi
49040     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49041         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49042     fi
49043     if test "$wxUSE_OPENGL" = "yes" ; then
49044         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49045     fi
49046     if test "$wxUSE_AUI" = "yes" ; then
49047         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49048     fi
49049     if test "$wxUSE_STC" = "yes" ; then
49050         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49051     fi
49052     if test "$wxUSE_XRC" = "yes" ; then
49053         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49054         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49055     fi
49056 fi
49057
49058
49059
49060
49061
49062
49063
49064
49065 if test "$wxUSE_MAC" = 1 ; then
49066     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49067         if test "$USE_DARWIN" = 1; then
49068             LDFLAGS="$LDFLAGS -framework QuickTime"
49069         else
49070             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49071         fi
49072     fi
49073     if test "$USE_DARWIN" = 1; then
49074         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49075     else
49076         LDFLAGS="$LDFLAGS -lCarbonLib"
49077     fi
49078 fi
49079 if test "$wxUSE_COCOA" = 1 ; then
49080     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49081     if test "$wxUSE_MEDIACTRL" = "yes"; then
49082         LDFLAGS="$LDFLAGS -framework QuickTime"
49083     fi
49084 fi
49085 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49086     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49087 fi
49088
49089 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49090
49091 if test "$wxUSE_GUI" = "yes"; then
49092
49093
49094         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49095                      erase event exec font image minimal mobile \
49096                      mobile/wxedit mobile/styles render \
49097                      shaped svg taborder vscroll widgets"
49098
49099     if test "$wxUSE_MONOLITHIC" != "yes"; then
49100         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49101     fi
49102     if test "$TOOLKIT" = "MSW"; then
49103         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49104         if test "$wxUSE_UNIVERSAL" != "yes"; then
49105             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49106         fi
49107     fi
49108     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49109         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49110     fi
49111 else
49112     SAMPLES_SUBDIRS="console"
49113 fi
49114
49115
49116 if test "x$INTELCC" = "xyes" ; then
49117                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49118 elif test "$GCC" = yes ; then
49119     CWARNINGS="-Wall -Wundef"
49120 fi
49121
49122 if test "x$INTELCXX" = "xyes" ; then
49123                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49124 elif test "$GXX" = yes ; then
49125         CXXWARNINGS="-Wall -Wundef -Wunused-parameter -Wno-ctor-dtor-privacy"
49126 fi
49127
49128
49129 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49130 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49131
49132
49133 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49134  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49135  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49136  $CPPFLAGS `
49137
49138 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49139 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49140 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49141
49142 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49143
49144
49145 if test "x$MWCC" = "xyes"; then
49146
49147             CC="$CC -cwd source -I-"
49148     CXX="$CXX -cwd source -I-"
49149 fi
49150
49151
49152 LIBS=`echo $LIBS`
49153 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49154 EXTRALIBS_XML="$EXPAT_LINK"
49155 EXTRALIBS_HTML="$MSPACK_LINK"
49156 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49157 if test "$wxUSE_GUI" = "yes"; then
49158     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49159 fi
49160 if test "$wxUSE_OPENGL" = "yes"; then
49161     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49162 fi
49163
49164 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49165
49166 WXCONFIG_LIBS="$LIBS"
49167
49168 if test "$wxUSE_REGEX" = "builtin" ; then
49169     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49170 fi
49171 if test "$wxUSE_EXPAT" = "builtin" ; then
49172     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49173 fi
49174 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49175     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49176 fi
49177 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49178     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49179 fi
49180 if test "$wxUSE_LIBPNG" = "builtin" ; then
49181     wxconfig_3rdparty="png $wxconfig_3rdparty"
49182 fi
49183 if test "$wxUSE_ZLIB" = "builtin" ; then
49184     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49185 fi
49186
49187 for i in $wxconfig_3rdparty ; do
49188     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49189 done
49190
49191
49192 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49193     WXUNIV=1
49194
49195     case "$wxUNIV_THEMES" in
49196         ''|all)
49197             cat >>confdefs.h <<\_ACEOF
49198 #define wxUSE_ALL_THEMES 1
49199 _ACEOF
49200
49201             ;;
49202
49203         *)
49204             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49205                 cat >>confdefs.h <<_ACEOF
49206 #define wxUSE_THEME_$t 1
49207 _ACEOF
49208
49209             done
49210     esac
49211 else
49212     WXUNIV=0
49213 fi
49214
49215
49216
49217
49218
49219
49220
49221
49222 if test $wxUSE_MONOLITHIC = "yes" ; then
49223     MONOLITHIC=1
49224 else
49225     MONOLITHIC=0
49226 fi
49227
49228 if test $wxUSE_PLUGINS = "yes" ; then
49229     USE_PLUGINS=1
49230 else
49231     USE_PLUGINS=0
49232 fi
49233
49234 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49235     USE_QA=1
49236 else
49237     USE_QA=0
49238 fi
49239
49240 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
49241     OFFICIAL_BUILD=1
49242 else
49243     OFFICIAL_BUILD=0
49244 fi
49245
49246
49247
49248
49249
49250
49251
49252
49253
49254
49255
49256
49257
49258
49259
49260
49261
49262
49263
49264
49265
49266
49267
49268
49269
49270
49271 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr A-Z a-z`
49272
49273
49274
49275
49276
49277
49278
49279
49280 case "$TOOLKIT" in
49281     GTK)
49282         TOOLKIT_DESC="GTK+"
49283         if test "$WXGTK2" = 1; then
49284             TOOLKIT_DESC="$TOOLKIT_DESC 2"
49285             if test "$wxUSE_GTKPRINT" = "yes" ; then
49286                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA GTK+ printing";
49287             fi
49288             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
49289                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
49290             fi
49291             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
49292                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
49293             fi
49294             if test "$wxUSE_LIBHILDON" = "yes"; then
49295                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
49296             fi
49297
49298             if test "$TOOLKIT_EXTRA" != ""; then
49299                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
49300             fi
49301         fi
49302         ;;
49303
49304     ?*)
49305         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
49306         ;;
49307
49308     *)
49309         TOOLKIT_DESC="base only"
49310         ;;
49311 esac
49312
49313 if test "$wxUSE_WINE" = "yes"; then
49314     BAKEFILE_FORCE_PLATFORM=win32
49315 fi
49316
49317 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
49318 then
49319     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
49320 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
49321 if test "${wx_cv_gcc_pch_bug+set}" = set; then
49322   echo $ECHO_N "(cached) $ECHO_C" >&6
49323 else
49324
49325             echo '#include <stdio.h>
49326                   const wchar_t test_var[] = L"awidetest";' > conftest.h
49327
49328             echo '#include "conftest.h"
49329                   int main()
49330                   {
49331                      printf("%ls", test_var);
49332                      return 0;
49333                   }' > conftest.cpp
49334
49335             wx_cv_gcc_pch_bug="pch not supported"
49336
49337             if $CXX conftest.h >/dev/null 2>&1
49338             then
49339                 wx_cv_gcc_pch_bug=
49340
49341                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
49342                 then
49343                     if tr -dc a-z < conftest$PROGRAM_EXT |
49344                         grep awidetest >/dev/null
49345                     then
49346                         wx_cv_gcc_pch_bug=no
49347                     else
49348                         wx_cv_gcc_pch_bug=yes
49349                     fi
49350                 fi
49351             fi
49352
49353             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
49354
49355 fi
49356 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
49357 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
49358
49359     if test "$wx_cv_gcc_pch_bug" = yes; then
49360                         bk_use_pch=no
49361     fi
49362 fi
49363
49364
49365
49366
49367     if test "x$BAKEFILE_HOST" = "x"; then
49368                if test "x${host}" = "x" ; then
49369                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
49370 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
49371    { (exit 1); exit 1; }; }
49372                fi
49373
49374         BAKEFILE_HOST="${host}"
49375     fi
49376
49377     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
49378
49379     if test -n "$ac_tool_prefix"; then
49380   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
49381 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
49382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49384 if test "${ac_cv_prog_RANLIB+set}" = set; then
49385   echo $ECHO_N "(cached) $ECHO_C" >&6
49386 else
49387   if test -n "$RANLIB"; then
49388   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
49389 else
49390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49391 for as_dir in $PATH
49392 do
49393   IFS=$as_save_IFS
49394   test -z "$as_dir" && as_dir=.
49395   for ac_exec_ext in '' $ac_executable_extensions; do
49396   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49397     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
49398     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49399     break 2
49400   fi
49401 done
49402 done
49403 IFS=$as_save_IFS
49404
49405 fi
49406 fi
49407 RANLIB=$ac_cv_prog_RANLIB
49408 if test -n "$RANLIB"; then
49409   { echo "$as_me:$LINENO: result: $RANLIB" >&5
49410 echo "${ECHO_T}$RANLIB" >&6; }
49411 else
49412   { echo "$as_me:$LINENO: result: no" >&5
49413 echo "${ECHO_T}no" >&6; }
49414 fi
49415
49416
49417 fi
49418 if test -z "$ac_cv_prog_RANLIB"; then
49419   ac_ct_RANLIB=$RANLIB
49420   # Extract the first word of "ranlib", so it can be a program name with args.
49421 set dummy ranlib; ac_word=$2
49422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49424 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
49425   echo $ECHO_N "(cached) $ECHO_C" >&6
49426 else
49427   if test -n "$ac_ct_RANLIB"; then
49428   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
49429 else
49430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49431 for as_dir in $PATH
49432 do
49433   IFS=$as_save_IFS
49434   test -z "$as_dir" && as_dir=.
49435   for ac_exec_ext in '' $ac_executable_extensions; do
49436   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49437     ac_cv_prog_ac_ct_RANLIB="ranlib"
49438     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49439     break 2
49440   fi
49441 done
49442 done
49443 IFS=$as_save_IFS
49444
49445 fi
49446 fi
49447 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
49448 if test -n "$ac_ct_RANLIB"; then
49449   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
49450 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
49451 else
49452   { echo "$as_me:$LINENO: result: no" >&5
49453 echo "${ECHO_T}no" >&6; }
49454 fi
49455
49456   if test "x$ac_ct_RANLIB" = x; then
49457     RANLIB=":"
49458   else
49459     case $cross_compiling:$ac_tool_warned in
49460 yes:)
49461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49462 whose name does not start with the host triplet.  If you think this
49463 configuration is useful to you, please write to autoconf@gnu.org." >&5
49464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49465 whose name does not start with the host triplet.  If you think this
49466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49467 ac_tool_warned=yes ;;
49468 esac
49469     RANLIB=$ac_ct_RANLIB
49470   fi
49471 else
49472   RANLIB="$ac_cv_prog_RANLIB"
49473 fi
49474
49475     # Find a good install program.  We prefer a C program (faster),
49476 # so one script is as good as another.  But avoid the broken or
49477 # incompatible versions:
49478 # SysV /etc/install, /usr/sbin/install
49479 # SunOS /usr/etc/install
49480 # IRIX /sbin/install
49481 # AIX /bin/install
49482 # AmigaOS /C/install, which installs bootblocks on floppy discs
49483 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
49484 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
49485 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
49486 # OS/2's system install, which has a completely different semantic
49487 # ./install, which can be erroneously created by make from ./install.sh.
49488 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
49489 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
49490 if test -z "$INSTALL"; then
49491 if test "${ac_cv_path_install+set}" = set; then
49492   echo $ECHO_N "(cached) $ECHO_C" >&6
49493 else
49494   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49495 for as_dir in $PATH
49496 do
49497   IFS=$as_save_IFS
49498   test -z "$as_dir" && as_dir=.
49499   # Account for people who put trailing slashes in PATH elements.
49500 case $as_dir/ in
49501   ./ | .// | /cC/* | \
49502   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
49503   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
49504   /usr/ucb/* ) ;;
49505   *)
49506     # OSF1 and SCO ODT 3.0 have their own names for install.
49507     # Don't use installbsd from OSF since it installs stuff as root
49508     # by default.
49509     for ac_prog in ginstall scoinst install; do
49510       for ac_exec_ext in '' $ac_executable_extensions; do
49511         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
49512           if test $ac_prog = install &&
49513             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49514             # AIX install.  It has an incompatible calling convention.
49515             :
49516           elif test $ac_prog = install &&
49517             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
49518             # program-specific install script used by HP pwplus--don't use.
49519             :
49520           else
49521             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
49522             break 3
49523           fi
49524         fi
49525       done
49526     done
49527     ;;
49528 esac
49529 done
49530 IFS=$as_save_IFS
49531
49532
49533 fi
49534   if test "${ac_cv_path_install+set}" = set; then
49535     INSTALL=$ac_cv_path_install
49536   else
49537     # As a last resort, use the slow shell script.  Don't cache a
49538     # value for INSTALL within a source directory, because that will
49539     # break other packages using the cache if that directory is
49540     # removed, or if the value is a relative name.
49541     INSTALL=$ac_install_sh
49542   fi
49543 fi
49544 { echo "$as_me:$LINENO: result: $INSTALL" >&5
49545 echo "${ECHO_T}$INSTALL" >&6; }
49546
49547 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
49548 # It thinks the first close brace ends the variable substitution.
49549 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
49550
49551 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
49552
49553 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
49554
49555     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
49556 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
49557 LN_S=$as_ln_s
49558 if test "$LN_S" = "ln -s"; then
49559   { echo "$as_me:$LINENO: result: yes" >&5
49560 echo "${ECHO_T}yes" >&6; }
49561 else
49562   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
49563 echo "${ECHO_T}no, using $LN_S" >&6; }
49564 fi
49565
49566
49567     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
49568 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
49569 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
49570 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
49571   echo $ECHO_N "(cached) $ECHO_C" >&6
49572 else
49573   cat >conftest.make <<\_ACEOF
49574 SHELL = /bin/sh
49575 all:
49576         @echo '@@@%%%=$(MAKE)=@@@%%%'
49577 _ACEOF
49578 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
49579 case `${MAKE-make} -f conftest.make 2>/dev/null` in
49580   *@@@%%%=?*=@@@%%%*)
49581     eval ac_cv_prog_make_${ac_make}_set=yes;;
49582   *)
49583     eval ac_cv_prog_make_${ac_make}_set=no;;
49584 esac
49585 rm -f conftest.make
49586 fi
49587 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
49588   { echo "$as_me:$LINENO: result: yes" >&5
49589 echo "${ECHO_T}yes" >&6; }
49590   SET_MAKE=
49591 else
49592   { echo "$as_me:$LINENO: result: no" >&5
49593 echo "${ECHO_T}no" >&6; }
49594   SET_MAKE="MAKE=${MAKE-make}"
49595 fi
49596
49597
49598
49599     if test "x$SUNCXX" = "xyes"; then
49600                                 AR=$CXX
49601         AROPTIONS="-xar -o"
49602
49603     elif test "x$SGICC" = "xyes"; then
49604                 AR=$CXX
49605         AROPTIONS="-ar -o"
49606
49607     else
49608         if test -n "$ac_tool_prefix"; then
49609   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
49610 set dummy ${ac_tool_prefix}ar; ac_word=$2
49611 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49612 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49613 if test "${ac_cv_prog_AR+set}" = set; then
49614   echo $ECHO_N "(cached) $ECHO_C" >&6
49615 else
49616   if test -n "$AR"; then
49617   ac_cv_prog_AR="$AR" # Let the user override the test.
49618 else
49619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49620 for as_dir in $PATH
49621 do
49622   IFS=$as_save_IFS
49623   test -z "$as_dir" && as_dir=.
49624   for ac_exec_ext in '' $ac_executable_extensions; do
49625   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49626     ac_cv_prog_AR="${ac_tool_prefix}ar"
49627     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49628     break 2
49629   fi
49630 done
49631 done
49632 IFS=$as_save_IFS
49633
49634 fi
49635 fi
49636 AR=$ac_cv_prog_AR
49637 if test -n "$AR"; then
49638   { echo "$as_me:$LINENO: result: $AR" >&5
49639 echo "${ECHO_T}$AR" >&6; }
49640 else
49641   { echo "$as_me:$LINENO: result: no" >&5
49642 echo "${ECHO_T}no" >&6; }
49643 fi
49644
49645
49646 fi
49647 if test -z "$ac_cv_prog_AR"; then
49648   ac_ct_AR=$AR
49649   # Extract the first word of "ar", so it can be a program name with args.
49650 set dummy ar; ac_word=$2
49651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49653 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
49654   echo $ECHO_N "(cached) $ECHO_C" >&6
49655 else
49656   if test -n "$ac_ct_AR"; then
49657   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
49658 else
49659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49660 for as_dir in $PATH
49661 do
49662   IFS=$as_save_IFS
49663   test -z "$as_dir" && as_dir=.
49664   for ac_exec_ext in '' $ac_executable_extensions; do
49665   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49666     ac_cv_prog_ac_ct_AR="ar"
49667     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49668     break 2
49669   fi
49670 done
49671 done
49672 IFS=$as_save_IFS
49673
49674 fi
49675 fi
49676 ac_ct_AR=$ac_cv_prog_ac_ct_AR
49677 if test -n "$ac_ct_AR"; then
49678   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
49679 echo "${ECHO_T}$ac_ct_AR" >&6; }
49680 else
49681   { echo "$as_me:$LINENO: result: no" >&5
49682 echo "${ECHO_T}no" >&6; }
49683 fi
49684
49685   if test "x$ac_ct_AR" = x; then
49686     AR="ar"
49687   else
49688     case $cross_compiling:$ac_tool_warned in
49689 yes:)
49690 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49691 whose name does not start with the host triplet.  If you think this
49692 configuration is useful to you, please write to autoconf@gnu.org." >&5
49693 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49694 whose name does not start with the host triplet.  If you think this
49695 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49696 ac_tool_warned=yes ;;
49697 esac
49698     AR=$ac_ct_AR
49699   fi
49700 else
49701   AR="$ac_cv_prog_AR"
49702 fi
49703
49704         AROPTIONS=rcu
49705     fi
49706
49707
49708     if test -n "$ac_tool_prefix"; then
49709   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
49710 set dummy ${ac_tool_prefix}strip; ac_word=$2
49711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49713 if test "${ac_cv_prog_STRIP+set}" = set; then
49714   echo $ECHO_N "(cached) $ECHO_C" >&6
49715 else
49716   if test -n "$STRIP"; then
49717   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
49718 else
49719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49720 for as_dir in $PATH
49721 do
49722   IFS=$as_save_IFS
49723   test -z "$as_dir" && as_dir=.
49724   for ac_exec_ext in '' $ac_executable_extensions; do
49725   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49726     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
49727     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49728     break 2
49729   fi
49730 done
49731 done
49732 IFS=$as_save_IFS
49733
49734 fi
49735 fi
49736 STRIP=$ac_cv_prog_STRIP
49737 if test -n "$STRIP"; then
49738   { echo "$as_me:$LINENO: result: $STRIP" >&5
49739 echo "${ECHO_T}$STRIP" >&6; }
49740 else
49741   { echo "$as_me:$LINENO: result: no" >&5
49742 echo "${ECHO_T}no" >&6; }
49743 fi
49744
49745
49746 fi
49747 if test -z "$ac_cv_prog_STRIP"; then
49748   ac_ct_STRIP=$STRIP
49749   # Extract the first word of "strip", so it can be a program name with args.
49750 set dummy strip; ac_word=$2
49751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49753 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
49754   echo $ECHO_N "(cached) $ECHO_C" >&6
49755 else
49756   if test -n "$ac_ct_STRIP"; then
49757   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
49758 else
49759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49760 for as_dir in $PATH
49761 do
49762   IFS=$as_save_IFS
49763   test -z "$as_dir" && as_dir=.
49764   for ac_exec_ext in '' $ac_executable_extensions; do
49765   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49766     ac_cv_prog_ac_ct_STRIP="strip"
49767     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49768     break 2
49769   fi
49770 done
49771 done
49772 IFS=$as_save_IFS
49773
49774 fi
49775 fi
49776 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
49777 if test -n "$ac_ct_STRIP"; then
49778   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
49779 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
49780 else
49781   { echo "$as_me:$LINENO: result: no" >&5
49782 echo "${ECHO_T}no" >&6; }
49783 fi
49784
49785   if test "x$ac_ct_STRIP" = x; then
49786     STRIP=":"
49787   else
49788     case $cross_compiling:$ac_tool_warned in
49789 yes:)
49790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49791 whose name does not start with the host triplet.  If you think this
49792 configuration is useful to you, please write to autoconf@gnu.org." >&5
49793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49794 whose name does not start with the host triplet.  If you think this
49795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49796 ac_tool_warned=yes ;;
49797 esac
49798     STRIP=$ac_ct_STRIP
49799   fi
49800 else
49801   STRIP="$ac_cv_prog_STRIP"
49802 fi
49803
49804     if test -n "$ac_tool_prefix"; then
49805   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
49806 set dummy ${ac_tool_prefix}nm; ac_word=$2
49807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49809 if test "${ac_cv_prog_NM+set}" = set; then
49810   echo $ECHO_N "(cached) $ECHO_C" >&6
49811 else
49812   if test -n "$NM"; then
49813   ac_cv_prog_NM="$NM" # Let the user override the test.
49814 else
49815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49816 for as_dir in $PATH
49817 do
49818   IFS=$as_save_IFS
49819   test -z "$as_dir" && as_dir=.
49820   for ac_exec_ext in '' $ac_executable_extensions; do
49821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49822     ac_cv_prog_NM="${ac_tool_prefix}nm"
49823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49824     break 2
49825   fi
49826 done
49827 done
49828 IFS=$as_save_IFS
49829
49830 fi
49831 fi
49832 NM=$ac_cv_prog_NM
49833 if test -n "$NM"; then
49834   { echo "$as_me:$LINENO: result: $NM" >&5
49835 echo "${ECHO_T}$NM" >&6; }
49836 else
49837   { echo "$as_me:$LINENO: result: no" >&5
49838 echo "${ECHO_T}no" >&6; }
49839 fi
49840
49841
49842 fi
49843 if test -z "$ac_cv_prog_NM"; then
49844   ac_ct_NM=$NM
49845   # Extract the first word of "nm", so it can be a program name with args.
49846 set dummy nm; ac_word=$2
49847 { echo "$as_me:$LINENO: checking for $ac_word" >&5
49848 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
49849 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
49850   echo $ECHO_N "(cached) $ECHO_C" >&6
49851 else
49852   if test -n "$ac_ct_NM"; then
49853   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
49854 else
49855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49856 for as_dir in $PATH
49857 do
49858   IFS=$as_save_IFS
49859   test -z "$as_dir" && as_dir=.
49860   for ac_exec_ext in '' $ac_executable_extensions; do
49861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49862     ac_cv_prog_ac_ct_NM="nm"
49863     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49864     break 2
49865   fi
49866 done
49867 done
49868 IFS=$as_save_IFS
49869
49870 fi
49871 fi
49872 ac_ct_NM=$ac_cv_prog_ac_ct_NM
49873 if test -n "$ac_ct_NM"; then
49874   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
49875 echo "${ECHO_T}$ac_ct_NM" >&6; }
49876 else
49877   { echo "$as_me:$LINENO: result: no" >&5
49878 echo "${ECHO_T}no" >&6; }
49879 fi
49880
49881   if test "x$ac_ct_NM" = x; then
49882     NM=":"
49883   else
49884     case $cross_compiling:$ac_tool_warned in
49885 yes:)
49886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
49887 whose name does not start with the host triplet.  If you think this
49888 configuration is useful to you, please write to autoconf@gnu.org." >&5
49889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
49890 whose name does not start with the host triplet.  If you think this
49891 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
49892 ac_tool_warned=yes ;;
49893 esac
49894     NM=$ac_ct_NM
49895   fi
49896 else
49897   NM="$ac_cv_prog_NM"
49898 fi
49899
49900
49901     case ${BAKEFILE_HOST} in
49902         *-hp-hpux* )
49903                                     INSTALL_DIR="mkdir -p"
49904             ;;
49905         * )
49906                                     INSTALL_DIR='$(INSTALL) -d'
49907             ;;
49908     esac
49909
49910
49911     LDFLAGS_GUI=
49912     case ${BAKEFILE_HOST} in
49913         *-*-cygwin* | *-*-mingw32* )
49914         LDFLAGS_GUI="-mwindows"
49915     esac
49916
49917
49918     fi
49919
49920         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
49921 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
49922 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
49923   echo $ECHO_N "(cached) $ECHO_C" >&6
49924 else
49925
49926         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
49927                 egrep -s GNU > /dev/null); then
49928             bakefile_cv_prog_makeisgnu="yes"
49929         else
49930             bakefile_cv_prog_makeisgnu="no"
49931         fi
49932
49933 fi
49934 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
49935 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
49936
49937     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
49938         IF_GNU_MAKE=""
49939     else
49940         IF_GNU_MAKE="#"
49941     fi
49942
49943
49944
49945     PLATFORM_UNIX=0
49946     PLATFORM_WIN32=0
49947     PLATFORM_MSDOS=0
49948     PLATFORM_MAC=0
49949     PLATFORM_MACOS=0
49950     PLATFORM_MACOSX=0
49951     PLATFORM_OS2=0
49952     PLATFORM_BEOS=0
49953
49954     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
49955         case "${BAKEFILE_HOST}" in
49956             *-*-mingw32* )
49957                 PLATFORM_WIN32=1
49958             ;;
49959             *-pc-msdosdjgpp )
49960                 PLATFORM_MSDOS=1
49961             ;;
49962             *-pc-os2_emx | *-pc-os2-emx )
49963                 PLATFORM_OS2=1
49964             ;;
49965             *-*-darwin* )
49966                 PLATFORM_MAC=1
49967                 PLATFORM_MACOSX=1
49968             ;;
49969             *-*-beos* )
49970                 PLATFORM_BEOS=1
49971             ;;
49972             powerpc-apple-macos* )
49973                 PLATFORM_MAC=1
49974                 PLATFORM_MACOS=1
49975             ;;
49976             * )
49977                 PLATFORM_UNIX=1
49978             ;;
49979         esac
49980     else
49981         case "$BAKEFILE_FORCE_PLATFORM" in
49982             win32 )
49983                 PLATFORM_WIN32=1
49984             ;;
49985             msdos )
49986                 PLATFORM_MSDOS=1
49987             ;;
49988             os2 )
49989                 PLATFORM_OS2=1
49990             ;;
49991             darwin )
49992                 PLATFORM_MAC=1
49993                 PLATFORM_MACOSX=1
49994             ;;
49995             unix )
49996                 PLATFORM_UNIX=1
49997             ;;
49998             beos )
49999                 PLATFORM_BEOS=1
50000             ;;
50001             * )
50002                                             ;;
50003         esac
50004     fi
50005
50006
50007
50008
50009
50010
50011
50012
50013
50014
50015
50016     # Check whether --enable-omf was given.
50017 if test "${enable_omf+set}" = set; then
50018   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50019 fi
50020
50021
50022     case "${BAKEFILE_HOST}" in
50023       *-*-darwin* )
50024                         if test "x$GCC" = "xyes"; then
50025             CFLAGS="$CFLAGS -fno-common"
50026             CXXFLAGS="$CXXFLAGS -fno-common"
50027         fi
50028         if test "x$XLCC" = "xyes"; then
50029             CFLAGS="$CFLAGS -qnocommon"
50030             CXXFLAGS="$CXXFLAGS -qnocommon"
50031         fi
50032         ;;
50033
50034       *-pc-os2_emx | *-pc-os2-emx )
50035         if test "x$bk_os2_use_omf" = "xyes" ; then
50036             AR=emxomfar
50037             RANLIB=:
50038             LDFLAGS="-Zomf $LDFLAGS"
50039             CFLAGS="-Zomf $CFLAGS"
50040             CXXFLAGS="-Zomf $CXXFLAGS"
50041             OS2_LIBEXT="lib"
50042         else
50043             OS2_LIBEXT="a"
50044         fi
50045         ;;
50046
50047       i*86-*-beos* )
50048         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50049         ;;
50050     esac
50051
50052
50053     SO_SUFFIX="so"
50054     SO_SUFFIX_MODULE="so"
50055     EXEEXT=""
50056     LIBPREFIX="lib"
50057     LIBEXT=".a"
50058     DLLPREFIX="lib"
50059     DLLPREFIX_MODULE=""
50060     DLLIMP_SUFFIX=""
50061     dlldir="$libdir"
50062
50063     case "${BAKEFILE_HOST}" in
50064         *-hp-hpux* )
50065             SO_SUFFIX="sl"
50066             SO_SUFFIX_MODULE="sl"
50067         ;;
50068         *-*-aix* )
50069                                                                         SO_SUFFIX="a"
50070             SO_SUFFIX_MODULE="a"
50071         ;;
50072         *-*-cygwin* )
50073             SO_SUFFIX="dll"
50074             SO_SUFFIX_MODULE="dll"
50075             DLLIMP_SUFFIX="dll.a"
50076             EXEEXT=".exe"
50077             DLLPREFIX="cyg"
50078             dlldir="$bindir"
50079         ;;
50080         *-*-mingw32* )
50081             SO_SUFFIX="dll"
50082             SO_SUFFIX_MODULE="dll"
50083             DLLIMP_SUFFIX="dll.a"
50084             EXEEXT=".exe"
50085             DLLPREFIX=""
50086             dlldir="$bindir"
50087         ;;
50088         *-pc-msdosdjgpp )
50089             EXEEXT=".exe"
50090             DLLPREFIX=""
50091             dlldir="$bindir"
50092         ;;
50093         *-pc-os2_emx | *-pc-os2-emx )
50094             SO_SUFFIX="dll"
50095             SO_SUFFIX_MODULE="dll"
50096             DLLIMP_SUFFIX=$OS2_LIBEXT
50097             EXEEXT=".exe"
50098             DLLPREFIX=""
50099             LIBPREFIX=""
50100             LIBEXT=".$OS2_LIBEXT"
50101             dlldir="$bindir"
50102         ;;
50103         *-*-darwin* )
50104             SO_SUFFIX="dylib"
50105             SO_SUFFIX_MODULE="bundle"
50106         ;;
50107     esac
50108
50109     if test "x$DLLIMP_SUFFIX" = "x" ; then
50110         DLLIMP_SUFFIX="$SO_SUFFIX"
50111     fi
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124         PIC_FLAG=""
50125     if test "x$GCC" = "xyes"; then
50126                 PIC_FLAG="-fPIC"
50127     fi
50128
50129         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50130     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50131     WINDOWS_IMPLIB=0
50132
50133     case "${BAKEFILE_HOST}" in
50134       *-hp-hpux* )
50135                 if test "x$GCC" != "xyes"; then
50136                         LDFLAGS="$LDFLAGS -L/usr/lib"
50137
50138             SHARED_LD_CC="${CC} -b -o"
50139             SHARED_LD_CXX="${CXX} -b -o"
50140             PIC_FLAG="+Z"
50141         fi
50142       ;;
50143
50144       *-*-linux* )
50145         if test "$INTELCC" = "yes"; then
50146             PIC_FLAG="-KPIC"
50147         elif test "x$SUNCXX" = "xyes"; then
50148             SHARED_LD_CC="${CC} -G -o"
50149             SHARED_LD_CXX="${CXX} -G -o"
50150             PIC_FLAG="-KPIC"
50151         fi
50152       ;;
50153
50154       *-*-solaris2* )
50155         if test "x$SUNCXX" = xyes ; then
50156             SHARED_LD_CC="${CC} -G -o"
50157             SHARED_LD_CXX="${CXX} -G -o"
50158             PIC_FLAG="-KPIC"
50159         fi
50160       ;;
50161
50162       *-*-darwin* )
50163
50164 D='$'
50165 cat <<EOF >shared-ld-sh
50166 #!/bin/sh
50167 #-----------------------------------------------------------------------------
50168 #-- Name:        distrib/mac/shared-ld-sh
50169 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50170 #-- Author:      Gilles Depeyrot
50171 #-- Copyright:   (c) 2002 Gilles Depeyrot
50172 #-- Licence:     any use permitted
50173 #-----------------------------------------------------------------------------
50174
50175 verbose=0
50176 args=""
50177 objects=""
50178 linking_flag="-dynamiclib"
50179 ldargs="-r -keep_private_externs -nostdlib"
50180
50181 while test ${D}# -gt 0; do
50182     case ${D}1 in
50183
50184        -v)
50185         verbose=1
50186         ;;
50187
50188        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50189         # collect these options and values
50190         args="${D}{args} ${D}1 ${D}2"
50191         shift
50192         ;;
50193
50194        -s|-Wl,*)
50195         # collect these load args
50196         ldargs="${D}{ldargs} ${D}1"
50197         ;;
50198
50199        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50200         # collect these options
50201         args="${D}{args} ${D}1"
50202         ;;
50203
50204        -dynamiclib|-bundle)
50205         linking_flag="${D}1"
50206         ;;
50207
50208        -*)
50209         echo "shared-ld: unhandled option '${D}1'"
50210         exit 1
50211         ;;
50212
50213         *.o | *.a | *.dylib)
50214         # collect object files
50215         objects="${D}{objects} ${D}1"
50216         ;;
50217
50218         *)
50219         echo "shared-ld: unhandled argument '${D}1'"
50220         exit 1
50221         ;;
50222
50223     esac
50224     shift
50225 done
50226
50227 status=0
50228
50229 #
50230 # Link one module containing all the others
50231 #
50232 if test ${D}{verbose} = 1; then
50233     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50234 fi
50235 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
50236 status=${D}?
50237
50238 #
50239 # Link the shared library from the single module created, but only if the
50240 # previous command didn't fail:
50241 #
50242 if test ${D}{status} = 0; then
50243     if test ${D}{verbose} = 1; then
50244         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
50245     fi
50246     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
50247     status=${D}?
50248 fi
50249
50250 #
50251 # Remove intermediate module
50252 #
50253 rm -f master.${D}${D}.o
50254
50255 exit ${D}status
50256 EOF
50257
50258         chmod +x shared-ld-sh
50259
50260         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
50261         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
50262
50263
50264                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
50265 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
50266 if test "${bakefile_cv_gcc31+set}" = set; then
50267   echo $ECHO_N "(cached) $ECHO_C" >&6
50268 else
50269
50270            cat >conftest.$ac_ext <<_ACEOF
50271 /* confdefs.h.  */
50272 _ACEOF
50273 cat confdefs.h >>conftest.$ac_ext
50274 cat >>conftest.$ac_ext <<_ACEOF
50275 /* end confdefs.h.  */
50276
50277 int
50278 main ()
50279 {
50280
50281                    #if (__GNUC__ < 3) || \
50282                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
50283                        This is old gcc
50284                    #endif
50285
50286   ;
50287   return 0;
50288 }
50289 _ACEOF
50290 rm -f conftest.$ac_objext
50291 if { (ac_try="$ac_compile"
50292 case "(($ac_try" in
50293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50294   *) ac_try_echo=$ac_try;;
50295 esac
50296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
50297   (eval "$ac_compile") 2>conftest.er1
50298   ac_status=$?
50299   grep -v '^ *+' conftest.er1 >conftest.err
50300   rm -f conftest.er1
50301   cat conftest.err >&5
50302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
50303   (exit $ac_status); } && {
50304          test -z "$ac_c_werror_flag" ||
50305          test ! -s conftest.err
50306        } && test -s conftest.$ac_objext; then
50307
50308                    bakefile_cv_gcc31=yes
50309
50310 else
50311   echo "$as_me: failed program was:" >&5
50312 sed 's/^/| /' conftest.$ac_ext >&5
50313
50314
50315                    bakefile_cv_gcc31=no
50316
50317
50318 fi
50319
50320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50321
50322 fi
50323 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
50324 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
50325         if test "$bakefile_cv_gcc31" = "no"; then
50326                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
50327             SHARED_LD_CXX="$SHARED_LD_CC"
50328         else
50329                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
50330             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
50331         fi
50332
50333         if test "x$GCC" == "xyes"; then
50334             PIC_FLAG="-dynamic -fPIC"
50335         fi
50336         if test "x$XLCC" = "xyes"; then
50337             PIC_FLAG="-dynamic -DPIC"
50338         fi
50339       ;;
50340
50341       *-*-aix* )
50342         if test "x$GCC" = "xyes"; then
50343                                                             PIC_FLAG=""
50344
50345                                                                                     case "${BAKEFILE_HOST}" in
50346                 *-*-aix5* )
50347                     LD_EXPFULL="-Wl,-bexpfull"
50348                     ;;
50349             esac
50350
50351             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
50352             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
50353         else
50354                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
50355 set dummy makeC++SharedLib; ac_word=$2
50356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50358 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
50359   echo $ECHO_N "(cached) $ECHO_C" >&6
50360 else
50361   if test -n "$AIX_CXX_LD"; then
50362   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
50363 else
50364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50365 for as_dir in $PATH
50366 do
50367   IFS=$as_save_IFS
50368   test -z "$as_dir" && as_dir=.
50369   for ac_exec_ext in '' $ac_executable_extensions; do
50370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50371     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
50372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50373     break 2
50374   fi
50375 done
50376 done
50377 IFS=$as_save_IFS
50378
50379   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
50380 fi
50381 fi
50382 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
50383 if test -n "$AIX_CXX_LD"; then
50384   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
50385 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
50386 else
50387   { echo "$as_me:$LINENO: result: no" >&5
50388 echo "${ECHO_T}no" >&6; }
50389 fi
50390
50391
50392             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
50393             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
50394         fi
50395       ;;
50396
50397       *-*-beos* )
50398                         SHARED_LD_CC="${LD} -nostart -o"
50399         SHARED_LD_CXX="${LD} -nostart -o"
50400       ;;
50401
50402       *-*-irix* )
50403                 if test "x$GCC" != "xyes"; then
50404             PIC_FLAG="-KPIC"
50405         fi
50406       ;;
50407
50408       *-*-cygwin* | *-*-mingw32* )
50409         PIC_FLAG=""
50410         SHARED_LD_CC="\$(CC) -shared -o"
50411         SHARED_LD_CXX="\$(CXX) -shared -o"
50412         WINDOWS_IMPLIB=1
50413       ;;
50414
50415       *-pc-os2_emx | *-pc-os2-emx )
50416         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50417         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
50418         PIC_FLAG=""
50419
50420 D='$'
50421 cat <<EOF >dllar.sh
50422 #!/bin/sh
50423 #
50424 # dllar - a tool to build both a .dll and an .a file
50425 # from a set of object (.o) files for EMX/OS2.
50426 #
50427 #  Written by Andrew Zabolotny, bit@freya.etu.ru
50428 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
50429 #
50430 #  This script will accept a set of files on the command line.
50431 #  All the public symbols from the .o files will be exported into
50432 #  a .DEF file, then linker will be run (through gcc) against them to
50433 #  build a shared library consisting of all given .o files. All libraries
50434 #  (.a) will be first decompressed into component .o files then act as
50435 #  described above. You can optionally give a description (-d "description")
50436 #  which will be put into .DLL. To see the list of accepted options (as well
50437 #  as command-line format) simply run this program without options. The .DLL
50438 #  is built to be imported by name (there is no guarantee that new versions
50439 #  of the library you build will have same ordinals for same symbols).
50440 #
50441 #  dllar is free software; you can redistribute it and/or modify
50442 #  it under the terms of the GNU General Public License as published by
50443 #  the Free Software Foundation; either version 2, or (at your option)
50444 #  any later version.
50445 #
50446 #  dllar is distributed in the hope that it will be useful,
50447 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
50448 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
50449 #  GNU General Public License for more details.
50450 #
50451 #  You should have received a copy of the GNU General Public License
50452 #  along with dllar; see the file COPYING.  If not, write to the Free
50453 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
50454 #  02111-1307, USA.
50455
50456 # To successfuly run this program you will need:
50457 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
50458 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
50459 #  - gcc
50460 #    (used to build the .dll)
50461 #  - emxexp
50462 #    (used to create .def file from .o files)
50463 #  - emximp
50464 #    (used to create .a file from .def file)
50465 #  - GNU text utilites (cat, sort, uniq)
50466 #    used to process emxexp output
50467 #  - GNU file utilities (mv, rm)
50468 #  - GNU sed
50469 #  - lxlite (optional, see flag below)
50470 #    (used for general .dll cleanup)
50471 #
50472
50473 flag_USE_LXLITE=1;
50474
50475 #
50476 # helper functions
50477 # basnam, variant of basename, which does _not_ remove the path, _iff_
50478 #                              second argument (suffix to remove) is given
50479 basnam(){
50480     case ${D}# in
50481     1)
50482         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
50483         ;;
50484     2)
50485         echo ${D}1 | sed 's/'${D}2'${D}//'
50486         ;;
50487     *)
50488         echo "error in basnam ${D}*"
50489         exit 8
50490         ;;
50491     esac
50492 }
50493
50494 # Cleanup temporary files and output
50495 CleanUp() {
50496     cd ${D}curDir
50497     for i in ${D}inputFiles ; do
50498         case ${D}i in
50499         *!)
50500             rm -rf \`basnam ${D}i !\`
50501             ;;
50502         *)
50503             ;;
50504         esac
50505     done
50506
50507     # Kill result in case of failure as there is just to many stupid make/nmake
50508     # things out there which doesn't do this.
50509     if [ ${D}# -eq 0 ]; then
50510         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
50511     fi
50512 }
50513
50514 # Print usage and exit script with rc=1.
50515 PrintHelp() {
50516  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
50517  echo '       [-name-mangler-script script.sh]'
50518  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
50519  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
50520  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
50521  echo '       [*.o] [*.a]'
50522  echo '*> "output_file" should have no extension.'
50523  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
50524  echo '   The import library name is derived from this and is set to "name".a,'
50525  echo '   unless overridden by -import'
50526  echo '*> "importlib_name" should have no extension.'
50527  echo '   If it has the .o, or .a extension, it is automatically removed.'
50528  echo '   This name is used as the import library name and may be longer and'
50529  echo '   more descriptive than the DLL name which has to follow the old '
50530  echo '   8.3 convention of FAT.'
50531  echo '*> "script.sh may be given to override the output_file name by a'
50532  echo '   different name. It is mainly useful if the regular make process'
50533  echo '   of some package does not take into account OS/2 restriction of'
50534  echo '   DLL name lengths. It takes the importlib name as input and is'
50535  echo '   supposed to procude a shorter name as output. The script should'
50536  echo '   expect to get importlib_name without extension and should produce'
50537  echo '   a (max.) 8 letter name without extension.'
50538  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
50539  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
50540  echo '   These flags will be put at the start of GCC command line.'
50541  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
50542  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
50543  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
50544  echo '   If the last character of a symbol is "*", all symbols beginning'
50545  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
50546  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
50547  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
50548  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
50549  echo '   C runtime DLLs.'
50550  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
50551  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
50552  echo '   unchanged to GCC at the end of command line.'
50553  echo '*> If you create a DLL from a library and you do not specify -o,'
50554  echo '   the basename for DLL and import library will be set to library name,'
50555  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
50556  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
50557  echo '   library will be renamed into gcc_s.a.'
50558  echo '--------'
50559  echo 'Example:'
50560  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
50561  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
50562  CleanUp
50563  exit 1
50564 }
50565
50566 # Execute a command.
50567 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
50568 # @Uses    Whatever CleanUp() uses.
50569 doCommand() {
50570     echo "${D}*"
50571     eval ${D}*
50572     rcCmd=${D}?
50573
50574     if [ ${D}rcCmd -ne 0 ]; then
50575         echo "command failed, exit code="${D}rcCmd
50576         CleanUp
50577         exit ${D}rcCmd
50578     fi
50579 }
50580
50581 # main routine
50582 # setup globals
50583 cmdLine=${D}*
50584 outFile=""
50585 outimpFile=""
50586 inputFiles=""
50587 renameScript=""
50588 description=""
50589 CC=gcc.exe
50590 CFLAGS="-s -Zcrtdll"
50591 EXTRA_CFLAGS=""
50592 EXPORT_BY_ORDINALS=0
50593 exclude_symbols=""
50594 library_flags=""
50595 curDir=\`pwd\`
50596 curDirS=curDir
50597 case ${D}curDirS in
50598 */)
50599   ;;
50600 *)
50601   curDirS=${D}{curDirS}"/"
50602   ;;
50603 esac
50604 # Parse commandline
50605 libsToLink=0
50606 omfLinking=0
50607 while [ ${D}1 ]; do
50608     case ${D}1 in
50609     -ord*)
50610         EXPORT_BY_ORDINALS=1;
50611         ;;
50612     -o*)
50613         shift
50614         outFile=${D}1
50615         ;;
50616     -i*)
50617         shift
50618         outimpFile=${D}1
50619         ;;
50620     -name-mangler-script)
50621         shift
50622         renameScript=${D}1
50623         ;;
50624     -d*)
50625         shift
50626         description=${D}1
50627         ;;
50628     -f*)
50629         shift
50630         CFLAGS=${D}1
50631         ;;
50632     -c*)
50633         shift
50634         CC=${D}1
50635         ;;
50636     -h*)
50637         PrintHelp
50638         ;;
50639     -ex*)
50640         shift
50641         exclude_symbols=${D}{exclude_symbols}${D}1" "
50642         ;;
50643     -libf*)
50644         shift
50645         library_flags=${D}{library_flags}${D}1" "
50646         ;;
50647     -nocrt*)
50648         CFLAGS="-s"
50649         ;;
50650     -nolxl*)
50651         flag_USE_LXLITE=0
50652         ;;
50653     -* | /*)
50654         case ${D}1 in
50655         -L* | -l*)
50656             libsToLink=1
50657             ;;
50658         -Zomf)
50659             omfLinking=1
50660             ;;
50661         *)
50662             ;;
50663         esac
50664         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50665         ;;
50666     *.dll)
50667         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
50668         if [ ${D}omfLinking -eq 1 ]; then
50669             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
50670         else
50671             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
50672         fi
50673         ;;
50674     *)
50675         found=0;
50676         if [ ${D}libsToLink -ne 0 ]; then
50677             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
50678         else
50679             for file in ${D}1 ; do
50680                 if [ -f ${D}file ]; then
50681                     inputFiles="${D}{inputFiles} ${D}file"
50682                     found=1
50683                 fi
50684             done
50685             if [ ${D}found -eq 0 ]; then
50686                 echo "ERROR: No file(s) found: "${D}1
50687                 exit 8
50688             fi
50689         fi
50690       ;;
50691     esac
50692     shift
50693 done # iterate cmdline words
50694
50695 #
50696 if [ -z "${D}inputFiles" ]; then
50697     echo "dllar: no input files"
50698     PrintHelp
50699 fi
50700
50701 # Now extract all .o files from .a files
50702 newInputFiles=""
50703 for file in ${D}inputFiles ; do
50704     case ${D}file in
50705     *.a | *.lib)
50706         case ${D}file in
50707         *.a)
50708             suffix=".a"
50709             AR="ar"
50710             ;;
50711         *.lib)
50712             suffix=".lib"
50713             AR="emxomfar"
50714             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
50715             ;;
50716         *)
50717             ;;
50718         esac
50719         dirname=\`basnam ${D}file ${D}suffix\`"_%"
50720         mkdir ${D}dirname
50721         if [ ${D}? -ne 0 ]; then
50722             echo "Failed to create subdirectory ./${D}dirname"
50723             CleanUp
50724             exit 8;
50725         fi
50726         # Append '!' to indicate archive
50727         newInputFiles="${D}newInputFiles ${D}{dirname}!"
50728         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
50729         cd ${D}curDir
50730         found=0;
50731         for subfile in ${D}dirname/*.o* ; do
50732             if [ -f ${D}subfile ]; then
50733                 found=1
50734                 if [ -s ${D}subfile ]; then
50735                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
50736                     newInputFiles="${D}newInputFiles ${D}subfile"
50737                 fi
50738             fi
50739         done
50740         if [ ${D}found -eq 0 ]; then
50741             echo "WARNING: there are no files in archive \\'${D}file\\'"
50742         fi
50743         ;;
50744     *)
50745         newInputFiles="${D}{newInputFiles} ${D}file"
50746         ;;
50747     esac
50748 done
50749 inputFiles="${D}newInputFiles"
50750
50751 # Output filename(s).
50752 do_backup=0;
50753 if [ -z ${D}outFile ]; then
50754     do_backup=1;
50755     set outFile ${D}inputFiles; outFile=${D}2
50756 fi
50757
50758 # If it is an archive, remove the '!' and the '_%' suffixes
50759 case ${D}outFile in
50760 *_%!)
50761     outFile=\`basnam ${D}outFile _%!\`
50762     ;;
50763 *)
50764     ;;
50765 esac
50766 case ${D}outFile in
50767 *.dll)
50768     outFile=\`basnam ${D}outFile .dll\`
50769     ;;
50770 *.DLL)
50771     outFile=\`basnam ${D}outFile .DLL\`
50772     ;;
50773 *.o)
50774     outFile=\`basnam ${D}outFile .o\`
50775     ;;
50776 *.obj)
50777     outFile=\`basnam ${D}outFile .obj\`
50778     ;;
50779 *.a)
50780     outFile=\`basnam ${D}outFile .a\`
50781     ;;
50782 *.lib)
50783     outFile=\`basnam ${D}outFile .lib\`
50784     ;;
50785 *)
50786     ;;
50787 esac
50788 case ${D}outimpFile in
50789 *.a)
50790     outimpFile=\`basnam ${D}outimpFile .a\`
50791     ;;
50792 *.lib)
50793     outimpFile=\`basnam ${D}outimpFile .lib\`
50794     ;;
50795 *)
50796     ;;
50797 esac
50798 if [ -z ${D}outimpFile ]; then
50799     outimpFile=${D}outFile
50800 fi
50801 defFile="${D}{outFile}.def"
50802 arcFile="${D}{outimpFile}.a"
50803 arcFile2="${D}{outimpFile}.lib"
50804
50805 #create ${D}dllFile as something matching 8.3 restrictions,
50806 if [ -z ${D}renameScript ] ; then
50807     dllFile="${D}outFile"
50808 else
50809     dllFile=\`${D}renameScript ${D}outimpFile\`
50810 fi
50811
50812 if [ ${D}do_backup -ne 0 ] ; then
50813     if [ -f ${D}arcFile ] ; then
50814         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
50815     fi
50816     if [ -f ${D}arcFile2 ] ; then
50817         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
50818     fi
50819 fi
50820
50821 # Extract public symbols from all the object files.
50822 tmpdefFile=${D}{defFile}_%
50823 rm -f ${D}tmpdefFile
50824 for file in ${D}inputFiles ; do
50825     case ${D}file in
50826     *!)
50827         ;;
50828     *)
50829         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
50830         ;;
50831     esac
50832 done
50833
50834 # Create the def file.
50835 rm -f ${D}defFile
50836 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
50837 dllFile="${D}{dllFile}.dll"
50838 if [ ! -z ${D}description ]; then
50839     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
50840 fi
50841 echo "EXPORTS" >> ${D}defFile
50842
50843 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
50844 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
50845
50846 # Checks if the export is ok or not.
50847 for word in ${D}exclude_symbols; do
50848     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
50849     mv ${D}{tmpdefFile}% ${D}tmpdefFile
50850 done
50851
50852
50853 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50854     sed "=" < ${D}tmpdefFile | \\
50855     sed '
50856       N
50857       : loop
50858       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
50859       t loop
50860     ' > ${D}{tmpdefFile}%
50861     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
50862 else
50863     rm -f ${D}{tmpdefFile}%
50864 fi
50865 cat ${D}tmpdefFile >> ${D}defFile
50866 rm -f ${D}tmpdefFile
50867
50868 # Do linking, create implib, and apply lxlite.
50869 gccCmdl="";
50870 for file in ${D}inputFiles ; do
50871     case ${D}file in
50872     *!)
50873         ;;
50874     *)
50875         gccCmdl="${D}gccCmdl ${D}file"
50876         ;;
50877     esac
50878 done
50879 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
50880 touch "${D}{outFile}.dll"
50881
50882 doCommand "emximp -o ${D}arcFile ${D}defFile"
50883 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
50884     add_flags="";
50885     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
50886         add_flags="-ynd"
50887     fi
50888     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
50889 fi
50890 doCommand "emxomf -s -l ${D}arcFile"
50891
50892 # Successful exit.
50893 CleanUp 1
50894 exit 0
50895 EOF
50896
50897         chmod +x dllar.sh
50898       ;;
50899
50900       powerpc-apple-macos* | \
50901       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
50902       *-*-mirbsd* | \
50903       *-*-sunos4* | \
50904       *-*-osf* | \
50905       *-*-dgux5* | \
50906       *-*-sysv5* | \
50907       *-pc-msdosdjgpp )
50908               ;;
50909
50910       *)
50911         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
50912 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
50913    { (exit 1); exit 1; }; }
50914     esac
50915
50916     if test "x$PIC_FLAG" != "x" ; then
50917         PIC_FLAG="$PIC_FLAG -DPIC"
50918     fi
50919
50920     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
50921         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
50922     fi
50923     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
50924         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
50925     fi
50926
50927
50928
50929
50930
50931
50932
50933
50934
50935     USE_SOVERSION=0
50936     USE_SOVERLINUX=0
50937     USE_SOVERSOLARIS=0
50938     USE_SOVERCYGWIN=0
50939     USE_SOSYMLINKS=0
50940     USE_MACVERSION=0
50941     SONAME_FLAG=
50942
50943     case "${BAKEFILE_HOST}" in
50944       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
50945         if test "x$SUNCXX" = "xyes"; then
50946             SONAME_FLAG="-h "
50947         else
50948             SONAME_FLAG="-Wl,-soname,"
50949         fi
50950         USE_SOVERSION=1
50951         USE_SOVERLINUX=1
50952         USE_SOSYMLINKS=1
50953       ;;
50954
50955       *-*-solaris2* )
50956         SONAME_FLAG="-h "
50957         USE_SOVERSION=1
50958         USE_SOVERSOLARIS=1
50959         USE_SOSYMLINKS=1
50960       ;;
50961
50962       *-*-darwin* )
50963         USE_MACVERSION=1
50964         USE_SOVERSION=1
50965         USE_SOSYMLINKS=1
50966       ;;
50967
50968       *-*-cygwin* )
50969         USE_SOVERSION=1
50970         USE_SOVERCYGWIN=1
50971       ;;
50972     esac
50973
50974
50975
50976
50977
50978
50979
50980
50981
50982
50983     # Check whether --enable-dependency-tracking was given.
50984 if test "${enable_dependency_tracking+set}" = set; then
50985   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
50986 fi
50987
50988
50989     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
50990 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
50991
50992     BK_DEPS=""
50993     if test "x$bk_use_trackdeps" = "xno" ; then
50994         DEPS_TRACKING=0
50995         { echo "$as_me:$LINENO: result: disabled" >&5
50996 echo "${ECHO_T}disabled" >&6; }
50997     else
50998         DEPS_TRACKING=1
50999
51000         if test "x$GCC" = "xyes"; then
51001             DEPSMODE=gcc
51002             case "${BAKEFILE_HOST}" in
51003                 *-*-darwin* )
51004                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51005                 ;;
51006                 * )
51007                     DEPSFLAG="-MMD"
51008                 ;;
51009             esac
51010             { echo "$as_me:$LINENO: result: gcc" >&5
51011 echo "${ECHO_T}gcc" >&6; }
51012         elif test "x$MWCC" = "xyes"; then
51013             DEPSMODE=mwcc
51014             DEPSFLAG="-MM"
51015             { echo "$as_me:$LINENO: result: mwcc" >&5
51016 echo "${ECHO_T}mwcc" >&6; }
51017         elif test "x$SUNCC" = "xyes"; then
51018             DEPSMODE=unixcc
51019             DEPSFLAG="-xM1"
51020             { echo "$as_me:$LINENO: result: Sun cc" >&5
51021 echo "${ECHO_T}Sun cc" >&6; }
51022         elif test "x$SGICC" = "xyes"; then
51023             DEPSMODE=unixcc
51024             DEPSFLAG="-M"
51025             { echo "$as_me:$LINENO: result: SGI cc" >&5
51026 echo "${ECHO_T}SGI cc" >&6; }
51027         elif test "x$HPCC" = "xyes"; then
51028             DEPSMODE=unixcc
51029             DEPSFLAG="+make"
51030             { echo "$as_me:$LINENO: result: HP cc" >&5
51031 echo "${ECHO_T}HP cc" >&6; }
51032         elif test "x$COMPAQCC" = "xyes"; then
51033             DEPSMODE=gcc
51034             DEPSFLAG="-MD"
51035             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51036 echo "${ECHO_T}Compaq cc" >&6; }
51037         else
51038             DEPS_TRACKING=0
51039             { echo "$as_me:$LINENO: result: none" >&5
51040 echo "${ECHO_T}none" >&6; }
51041         fi
51042
51043         if test $DEPS_TRACKING = 1 ; then
51044
51045 D='$'
51046 cat <<EOF >bk-deps
51047 #!/bin/sh
51048
51049 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51050 # script. It is used to track C/C++ files dependencies in portable way.
51051 #
51052 # Permission is given to use this file in any way.
51053
51054 DEPSMODE=${DEPSMODE}
51055 DEPSDIR=.deps
51056 DEPSFLAG="${DEPSFLAG}"
51057
51058 mkdir -p ${D}DEPSDIR
51059
51060 if test ${D}DEPSMODE = gcc ; then
51061     ${D}* ${D}{DEPSFLAG}
51062     status=${D}?
51063     if test ${D}{status} != 0 ; then
51064         exit ${D}{status}
51065     fi
51066     # move created file to the location we want it in:
51067     while test ${D}# -gt 0; do
51068         case "${D}1" in
51069             -o )
51070                 shift
51071                 objfile=${D}1
51072             ;;
51073             -* )
51074             ;;
51075             * )
51076                 srcfile=${D}1
51077             ;;
51078         esac
51079         shift
51080     done
51081     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51082     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51083     if test -f ${D}depfile ; then
51084         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51085         rm -f ${D}depfile
51086     else
51087         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51088         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51089         if test ! -f ${D}depfile ; then
51090             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51091             depfile="${D}objfile.d"
51092         fi
51093         if test -f ${D}depfile ; then
51094             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51095             rm -f ${D}depfile
51096         fi
51097     fi
51098     exit 0
51099 elif test ${D}DEPSMODE = mwcc ; then
51100     ${D}* || exit ${D}?
51101     # Run mwcc again with -MM and redirect into the dep file we want
51102     # NOTE: We can't use shift here because we need ${D}* to be valid
51103     prevarg=
51104     for arg in ${D}* ; do
51105         if test "${D}prevarg" = "-o"; then
51106             objfile=${D}arg
51107         else
51108             case "${D}arg" in
51109                 -* )
51110                 ;;
51111                 * )
51112                     srcfile=${D}arg
51113                 ;;
51114             esac
51115         fi
51116         prevarg="${D}arg"
51117     done
51118     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51119     exit 0
51120 elif test ${D}DEPSMODE = unixcc; then
51121     ${D}* || exit ${D}?
51122     # Run compiler again with deps flag and redirect into the dep file.
51123     # It doesn't work if the '-o FILE' option is used, but without it the
51124     # dependency file will contain the wrong name for the object. So it is
51125     # removed from the command line, and the dep file is fixed with sed.
51126     cmd=""
51127     while test ${D}# -gt 0; do
51128         case "${D}1" in
51129             -o )
51130                 shift
51131                 objfile=${D}1
51132             ;;
51133             * )
51134                 eval arg${D}#=\\${D}1
51135                 cmd="${D}cmd \\${D}arg${D}#"
51136             ;;
51137         esac
51138         shift
51139     done
51140     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51141     exit 0
51142 else
51143     ${D}*
51144     exit ${D}?
51145 fi
51146 EOF
51147
51148             chmod +x bk-deps
51149                                     BK_DEPS="`pwd`/bk-deps"
51150         fi
51151     fi
51152
51153
51154
51155
51156
51157     case ${BAKEFILE_HOST} in
51158         *-*-cygwin* | *-*-mingw32* )
51159                         if test -n "$ac_tool_prefix"; then
51160   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51161 set dummy ${ac_tool_prefix}windres; ac_word=$2
51162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51164 if test "${ac_cv_prog_WINDRES+set}" = set; then
51165   echo $ECHO_N "(cached) $ECHO_C" >&6
51166 else
51167   if test -n "$WINDRES"; then
51168   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51169 else
51170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51171 for as_dir in $PATH
51172 do
51173   IFS=$as_save_IFS
51174   test -z "$as_dir" && as_dir=.
51175   for ac_exec_ext in '' $ac_executable_extensions; do
51176   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51177     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51179     break 2
51180   fi
51181 done
51182 done
51183 IFS=$as_save_IFS
51184
51185 fi
51186 fi
51187 WINDRES=$ac_cv_prog_WINDRES
51188 if test -n "$WINDRES"; then
51189   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51190 echo "${ECHO_T}$WINDRES" >&6; }
51191 else
51192   { echo "$as_me:$LINENO: result: no" >&5
51193 echo "${ECHO_T}no" >&6; }
51194 fi
51195
51196
51197 fi
51198 if test -z "$ac_cv_prog_WINDRES"; then
51199   ac_ct_WINDRES=$WINDRES
51200   # Extract the first word of "windres", so it can be a program name with args.
51201 set dummy windres; ac_word=$2
51202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51204 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51205   echo $ECHO_N "(cached) $ECHO_C" >&6
51206 else
51207   if test -n "$ac_ct_WINDRES"; then
51208   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51209 else
51210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51211 for as_dir in $PATH
51212 do
51213   IFS=$as_save_IFS
51214   test -z "$as_dir" && as_dir=.
51215   for ac_exec_ext in '' $ac_executable_extensions; do
51216   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51217     ac_cv_prog_ac_ct_WINDRES="windres"
51218     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51219     break 2
51220   fi
51221 done
51222 done
51223 IFS=$as_save_IFS
51224
51225 fi
51226 fi
51227 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51228 if test -n "$ac_ct_WINDRES"; then
51229   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51230 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51231 else
51232   { echo "$as_me:$LINENO: result: no" >&5
51233 echo "${ECHO_T}no" >&6; }
51234 fi
51235
51236   if test "x$ac_ct_WINDRES" = x; then
51237     WINDRES=""
51238   else
51239     case $cross_compiling:$ac_tool_warned in
51240 yes:)
51241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
51242 whose name does not start with the host triplet.  If you think this
51243 configuration is useful to you, please write to autoconf@gnu.org." >&5
51244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
51245 whose name does not start with the host triplet.  If you think this
51246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
51247 ac_tool_warned=yes ;;
51248 esac
51249     WINDRES=$ac_ct_WINDRES
51250   fi
51251 else
51252   WINDRES="$ac_cv_prog_WINDRES"
51253 fi
51254
51255          ;;
51256
51257       *-*-darwin* | powerpc-apple-macos* )
51258             # Extract the first word of "Rez", so it can be a program name with args.
51259 set dummy Rez; ac_word=$2
51260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51262 if test "${ac_cv_prog_REZ+set}" = set; then
51263   echo $ECHO_N "(cached) $ECHO_C" >&6
51264 else
51265   if test -n "$REZ"; then
51266   ac_cv_prog_REZ="$REZ" # Let the user override the test.
51267 else
51268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51269 for as_dir in $PATH
51270 do
51271   IFS=$as_save_IFS
51272   test -z "$as_dir" && as_dir=.
51273   for ac_exec_ext in '' $ac_executable_extensions; do
51274   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51275     ac_cv_prog_REZ="Rez"
51276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51277     break 2
51278   fi
51279 done
51280 done
51281 IFS=$as_save_IFS
51282
51283   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
51284 fi
51285 fi
51286 REZ=$ac_cv_prog_REZ
51287 if test -n "$REZ"; then
51288   { echo "$as_me:$LINENO: result: $REZ" >&5
51289 echo "${ECHO_T}$REZ" >&6; }
51290 else
51291   { echo "$as_me:$LINENO: result: no" >&5
51292 echo "${ECHO_T}no" >&6; }
51293 fi
51294
51295
51296             # Extract the first word of "SetFile", so it can be a program name with args.
51297 set dummy SetFile; ac_word=$2
51298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51300 if test "${ac_cv_prog_SETFILE+set}" = set; then
51301   echo $ECHO_N "(cached) $ECHO_C" >&6
51302 else
51303   if test -n "$SETFILE"; then
51304   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
51305 else
51306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51307 for as_dir in $PATH
51308 do
51309   IFS=$as_save_IFS
51310   test -z "$as_dir" && as_dir=.
51311   for ac_exec_ext in '' $ac_executable_extensions; do
51312   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51313     ac_cv_prog_SETFILE="SetFile"
51314     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51315     break 2
51316   fi
51317 done
51318 done
51319 IFS=$as_save_IFS
51320
51321   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
51322 fi
51323 fi
51324 SETFILE=$ac_cv_prog_SETFILE
51325 if test -n "$SETFILE"; then
51326   { echo "$as_me:$LINENO: result: $SETFILE" >&5
51327 echo "${ECHO_T}$SETFILE" >&6; }
51328 else
51329   { echo "$as_me:$LINENO: result: no" >&5
51330 echo "${ECHO_T}no" >&6; }
51331 fi
51332
51333
51334         ;;
51335     esac
51336
51337
51338
51339
51340
51341
51342     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
51343
51344
51345 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
51346
51347
51348
51349     # Check whether --enable-precomp-headers was given.
51350 if test "${enable_precomp_headers+set}" = set; then
51351   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
51352 fi
51353
51354
51355     GCC_PCH=0
51356     ICC_PCH=0
51357     USE_PCH=0
51358     BK_MAKE_PCH=""
51359
51360     case ${BAKEFILE_HOST} in
51361         *-*-cygwin* )
51362                                                 bk_use_pch="no"
51363             ;;
51364     esac
51365
51366     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
51367         if test "x$GCC" = "xyes"; then
51368                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
51369 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
51370             cat >conftest.$ac_ext <<_ACEOF
51371 /* confdefs.h.  */
51372 _ACEOF
51373 cat confdefs.h >>conftest.$ac_ext
51374 cat >>conftest.$ac_ext <<_ACEOF
51375 /* end confdefs.h.  */
51376
51377 int
51378 main ()
51379 {
51380
51381                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
51382                         There is no PCH support
51383                     #endif
51384                     #if (__GNUC__ < 3)
51385                         There is no PCH support
51386                     #endif
51387                     #if (__GNUC__ == 3) && \
51388                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
51389                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
51390                        ( defined(__INTEL_COMPILER) )
51391                         There is no PCH support
51392                     #endif
51393
51394   ;
51395   return 0;
51396 }
51397 _ACEOF
51398 rm -f conftest.$ac_objext
51399 if { (ac_try="$ac_compile"
51400 case "(($ac_try" in
51401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51402   *) ac_try_echo=$ac_try;;
51403 esac
51404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51405   (eval "$ac_compile") 2>conftest.er1
51406   ac_status=$?
51407   grep -v '^ *+' conftest.er1 >conftest.err
51408   rm -f conftest.er1
51409   cat conftest.err >&5
51410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51411   (exit $ac_status); } && {
51412          test -z "$ac_c_werror_flag" ||
51413          test ! -s conftest.err
51414        } && test -s conftest.$ac_objext; then
51415
51416                     { echo "$as_me:$LINENO: result: yes" >&5
51417 echo "${ECHO_T}yes" >&6; }
51418                     GCC_PCH=1
51419
51420 else
51421   echo "$as_me: failed program was:" >&5
51422 sed 's/^/| /' conftest.$ac_ext >&5
51423
51424
51425                     cat >conftest.$ac_ext <<_ACEOF
51426 /* confdefs.h.  */
51427 _ACEOF
51428 cat confdefs.h >>conftest.$ac_ext
51429 cat >>conftest.$ac_ext <<_ACEOF
51430 /* end confdefs.h.  */
51431
51432 int
51433 main ()
51434 {
51435
51436                             #if !defined(__INTEL_COMPILER) || \
51437                                 (__INTEL_COMPILER < 800)
51438                                 There is no PCH support
51439                             #endif
51440
51441   ;
51442   return 0;
51443 }
51444 _ACEOF
51445 rm -f conftest.$ac_objext
51446 if { (ac_try="$ac_compile"
51447 case "(($ac_try" in
51448   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51449   *) ac_try_echo=$ac_try;;
51450 esac
51451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51452   (eval "$ac_compile") 2>conftest.er1
51453   ac_status=$?
51454   grep -v '^ *+' conftest.er1 >conftest.err
51455   rm -f conftest.er1
51456   cat conftest.err >&5
51457   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51458   (exit $ac_status); } && {
51459          test -z "$ac_c_werror_flag" ||
51460          test ! -s conftest.err
51461        } && test -s conftest.$ac_objext; then
51462
51463                             { echo "$as_me:$LINENO: result: yes" >&5
51464 echo "${ECHO_T}yes" >&6; }
51465                             ICC_PCH=1
51466
51467 else
51468   echo "$as_me: failed program was:" >&5
51469 sed 's/^/| /' conftest.$ac_ext >&5
51470
51471
51472                             { echo "$as_me:$LINENO: result: no" >&5
51473 echo "${ECHO_T}no" >&6; }
51474
51475 fi
51476
51477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51478
51479 fi
51480
51481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51482             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
51483                 USE_PCH=1
51484
51485 D='$'
51486 cat <<EOF >bk-make-pch
51487 #!/bin/sh
51488
51489 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51490 # script. It is used to generated precompiled headers.
51491 #
51492 # Permission is given to use this file in any way.
51493
51494 outfile="${D}{1}"
51495 header="${D}{2}"
51496 shift
51497 shift
51498
51499 compiler=""
51500 headerfile=""
51501
51502 while test ${D}{#} -gt 0; do
51503     add_to_cmdline=1
51504     case "${D}{1}" in
51505         -I* )
51506             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
51507             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
51508                 headerfile="${D}{incdir}/${D}{header}"
51509             fi
51510         ;;
51511         -use-pch|-use_pch )
51512             shift
51513             add_to_cmdline=0
51514         ;;
51515     esac
51516     if test ${D}add_to_cmdline = 1 ; then
51517         compiler="${D}{compiler} ${D}{1}"
51518     fi
51519     shift
51520 done
51521
51522 if test "x${D}{headerfile}" = "x" ; then
51523     echo "error: can't find header ${D}{header} in include paths" >&2
51524 else
51525     if test -f ${D}{outfile} ; then
51526         rm -f ${D}{outfile}
51527     else
51528         mkdir -p \`dirname ${D}{outfile}\`
51529     fi
51530     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
51531     mkdir -p .deps
51532     if test "x${GCC_PCH}" = "x1" ; then
51533         # can do this because gcc is >= 3.4:
51534         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
51535     elif test "x${ICC_PCH}" = "x1" ; then
51536         filename=pch_gen-${D}${D}
51537         file=${D}{filename}.c
51538         dfile=${D}{filename}.d
51539         cat > ${D}file <<EOT
51540 #include "${D}header"
51541 EOT
51542         # using -MF icc complains about differing command lines in creation/use
51543         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
51544           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
51545           rm -f ${D}file ${D}dfile ${D}{filename}.o
51546     fi
51547     exit ${D}{?}
51548 fi
51549 EOF
51550
51551                 chmod +x bk-make-pch
51552                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
51553             fi
51554         fi
51555     fi
51556
51557
51558
51559
51560
51561     COND_BUILD_DEBUG="#"
51562     if test "x$BUILD" = "xdebug" ; then
51563         COND_BUILD_DEBUG=""
51564     fi
51565
51566     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
51567     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
51568         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
51569     fi
51570
51571     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
51572     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
51573         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
51574     fi
51575
51576     COND_BUILD_DEBUG_UNICODE_0="#"
51577     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
51578         COND_BUILD_DEBUG_UNICODE_0=""
51579     fi
51580
51581     COND_BUILD_DEBUG_UNICODE_1="#"
51582     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
51583         COND_BUILD_DEBUG_UNICODE_1=""
51584     fi
51585
51586     COND_BUILD_RELEASE="#"
51587     if test "x$BUILD" = "xrelease" ; then
51588         COND_BUILD_RELEASE=""
51589     fi
51590
51591     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
51592     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
51593         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
51594     fi
51595
51596     COND_BUILD_RELEASE_UNICODE_0="#"
51597     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
51598         COND_BUILD_RELEASE_UNICODE_0=""
51599     fi
51600
51601     COND_BUILD_RELEASE_UNICODE_1="#"
51602     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
51603         COND_BUILD_RELEASE_UNICODE_1=""
51604     fi
51605
51606     COND_DEBUG_FLAG_1="#"
51607     if test "x$DEBUG_FLAG" = "x1" ; then
51608         COND_DEBUG_FLAG_1=""
51609     fi
51610
51611     COND_DEBUG_INFO_0="#"
51612     if test "x$DEBUG_INFO" = "x0" ; then
51613         COND_DEBUG_INFO_0=""
51614     fi
51615
51616     COND_DEBUG_INFO_1="#"
51617     if test "x$DEBUG_INFO" = "x1" ; then
51618         COND_DEBUG_INFO_1=""
51619     fi
51620
51621     COND_DEPS_TRACKING_0="#"
51622     if test "x$DEPS_TRACKING" = "x0" ; then
51623         COND_DEPS_TRACKING_0=""
51624     fi
51625
51626     COND_DEPS_TRACKING_1="#"
51627     if test "x$DEPS_TRACKING" = "x1" ; then
51628         COND_DEPS_TRACKING_1=""
51629     fi
51630
51631     COND_GCC_PCH_1="#"
51632     if test "x$GCC_PCH" = "x1" ; then
51633         COND_GCC_PCH_1=""
51634     fi
51635
51636     COND_ICC_PCH_1="#"
51637     if test "x$ICC_PCH" = "x1" ; then
51638         COND_ICC_PCH_1=""
51639     fi
51640
51641     COND_MONOLITHIC_0="#"
51642     if test "x$MONOLITHIC" = "x0" ; then
51643         COND_MONOLITHIC_0=""
51644     fi
51645
51646     COND_MONOLITHIC_0_SHARED_0="#"
51647     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
51648         COND_MONOLITHIC_0_SHARED_0=""
51649     fi
51650
51651     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
51652     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
51653         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
51654     fi
51655
51656     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
51657     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
51658         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
51659     fi
51660
51661     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
51662     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51663         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
51664     fi
51665
51666     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
51667     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51668         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
51669     fi
51670
51671     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
51672     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51673         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
51674     fi
51675
51676     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
51677     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51678         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
51679     fi
51680
51681     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
51682     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51683         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
51684     fi
51685
51686     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
51687     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
51688         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
51689     fi
51690
51691     COND_MONOLITHIC_0_SHARED_1="#"
51692     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
51693         COND_MONOLITHIC_0_SHARED_1=""
51694     fi
51695
51696     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
51697     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
51698         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
51699     fi
51700
51701     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
51702     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
51703         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
51704     fi
51705
51706     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
51707     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
51708         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
51709     fi
51710
51711     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
51712     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51713         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
51714     fi
51715
51716     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
51717     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
51718         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
51719     fi
51720
51721     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
51722     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
51723         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
51724     fi
51725
51726     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
51727     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
51728         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
51729     fi
51730
51731     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
51732     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
51733         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
51734     fi
51735
51736     COND_MONOLITHIC_0_USE_AUI_1="#"
51737     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
51738         COND_MONOLITHIC_0_USE_AUI_1=""
51739     fi
51740
51741     COND_MONOLITHIC_0_USE_GUI_1="#"
51742     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
51743         COND_MONOLITHIC_0_USE_GUI_1=""
51744     fi
51745
51746     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
51747     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
51748         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
51749     fi
51750
51751     COND_MONOLITHIC_0_USE_HTML_1="#"
51752     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
51753         COND_MONOLITHIC_0_USE_HTML_1=""
51754     fi
51755
51756     COND_MONOLITHIC_0_USE_MEDIA_1="#"
51757     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
51758         COND_MONOLITHIC_0_USE_MEDIA_1=""
51759     fi
51760
51761     COND_MONOLITHIC_0_USE_QA_1="#"
51762     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
51763         COND_MONOLITHIC_0_USE_QA_1=""
51764     fi
51765
51766     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
51767     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
51768         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
51769     fi
51770
51771     COND_MONOLITHIC_0_USE_STC_1="#"
51772     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
51773         COND_MONOLITHIC_0_USE_STC_1=""
51774     fi
51775
51776     COND_MONOLITHIC_0_USE_XRC_1="#"
51777     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
51778         COND_MONOLITHIC_0_USE_XRC_1=""
51779     fi
51780
51781     COND_MONOLITHIC_1="#"
51782     if test "x$MONOLITHIC" = "x1" ; then
51783         COND_MONOLITHIC_1=""
51784     fi
51785
51786     COND_MONOLITHIC_1_SHARED_0="#"
51787     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
51788         COND_MONOLITHIC_1_SHARED_0=""
51789     fi
51790
51791     COND_MONOLITHIC_1_SHARED_1="#"
51792     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
51793         COND_MONOLITHIC_1_SHARED_1=""
51794     fi
51795
51796     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
51797     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
51798         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
51799     fi
51800
51801     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
51802     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
51803         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
51804     fi
51805
51806     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
51807     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51808         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
51809     fi
51810
51811     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
51812     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
51813         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
51814     fi
51815
51816     COND_PLATFORM_MACOSX_1="#"
51817     if test "x$PLATFORM_MACOSX" = "x1" ; then
51818         COND_PLATFORM_MACOSX_1=""
51819     fi
51820
51821     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
51822     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
51823         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
51824     fi
51825
51826     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
51827     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
51828         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
51829     fi
51830
51831     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
51832     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
51833         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
51834     fi
51835
51836     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
51837     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
51838         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
51839     fi
51840
51841     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
51842     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
51843         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
51844     fi
51845
51846     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
51847     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
51848         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
51849     fi
51850
51851     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
51852     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
51853         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
51854     fi
51855
51856     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
51857     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
51858         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
51859     fi
51860
51861     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
51862     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
51863         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
51864     fi
51865
51866     COND_PLATFORM_MACOS_1="#"
51867     if test "x$PLATFORM_MACOS" = "x1" ; then
51868         COND_PLATFORM_MACOS_1=""
51869     fi
51870
51871     COND_PLATFORM_MAC_1="#"
51872     if test "x$PLATFORM_MAC" = "x1" ; then
51873         COND_PLATFORM_MAC_1=""
51874     fi
51875
51876     COND_PLATFORM_MSDOS_1="#"
51877     if test "x$PLATFORM_MSDOS" = "x1" ; then
51878         COND_PLATFORM_MSDOS_1=""
51879     fi
51880
51881     COND_PLATFORM_OS2_1="#"
51882     if test "x$PLATFORM_OS2" = "x1" ; then
51883         COND_PLATFORM_OS2_1=""
51884     fi
51885
51886     COND_PLATFORM_UNIX_0="#"
51887     if test "x$PLATFORM_UNIX" = "x0" ; then
51888         COND_PLATFORM_UNIX_0=""
51889     fi
51890
51891     COND_PLATFORM_UNIX_1="#"
51892     if test "x$PLATFORM_UNIX" = "x1" ; then
51893         COND_PLATFORM_UNIX_1=""
51894     fi
51895
51896     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
51897     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
51898         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
51899     fi
51900
51901     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
51902     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
51903         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
51904     fi
51905
51906     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
51907     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
51908         COND_PLATFORM_UNIX_1_USE_GUI_1=""
51909     fi
51910
51911     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
51912     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
51913         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
51914     fi
51915
51916     COND_PLATFORM_WIN32_0="#"
51917     if test "x$PLATFORM_WIN32" = "x0" ; then
51918         COND_PLATFORM_WIN32_0=""
51919     fi
51920
51921     COND_PLATFORM_WIN32_1="#"
51922     if test "x$PLATFORM_WIN32" = "x1" ; then
51923         COND_PLATFORM_WIN32_1=""
51924     fi
51925
51926     COND_SHARED_0="#"
51927     if test "x$SHARED" = "x0" ; then
51928         COND_SHARED_0=""
51929     fi
51930
51931     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
51932     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
51933         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
51934     fi
51935
51936     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
51937     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
51938         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
51939     fi
51940
51941     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
51942     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
51943         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
51944     fi
51945
51946     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
51947     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51948         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
51949     fi
51950
51951     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
51952     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
51953         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
51954     fi
51955
51956     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
51957     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
51958         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
51959     fi
51960
51961     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
51962     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
51963         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
51964     fi
51965
51966     COND_SHARED_0_USE_STC_1="#"
51967     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
51968         COND_SHARED_0_USE_STC_1=""
51969     fi
51970
51971     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
51972     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
51973         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
51974     fi
51975
51976     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
51977     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
51978         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
51979     fi
51980
51981     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
51982     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
51983         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
51984     fi
51985
51986     COND_SHARED_1="#"
51987     if test "x$SHARED" = "x1" ; then
51988         COND_SHARED_1=""
51989     fi
51990
51991     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
51992     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
51993         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
51994     fi
51995
51996     COND_TOOLKIT_="#"
51997     if test "x$TOOLKIT" = "x" ; then
51998         COND_TOOLKIT_=""
51999     fi
52000
52001     COND_TOOLKIT_COCOA="#"
52002     if test "x$TOOLKIT" = "xCOCOA" ; then
52003         COND_TOOLKIT_COCOA=""
52004     fi
52005
52006     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52007     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52008         COND_TOOLKIT_COCOA_USE_GUI_1=""
52009     fi
52010
52011     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52012     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52013         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52014     fi
52015
52016     COND_TOOLKIT_DFB="#"
52017     if test "x$TOOLKIT" = "xDFB" ; then
52018         COND_TOOLKIT_DFB=""
52019     fi
52020
52021     COND_TOOLKIT_DFB_USE_GUI_1="#"
52022     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52023         COND_TOOLKIT_DFB_USE_GUI_1=""
52024     fi
52025
52026     COND_TOOLKIT_GTK="#"
52027     if test "x$TOOLKIT" = "xGTK" ; then
52028         COND_TOOLKIT_GTK=""
52029     fi
52030
52031     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52032     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52033         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52034     fi
52035
52036     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52037     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52038         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52039     fi
52040
52041     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52042     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52043         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52044     fi
52045
52046     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52047     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52048         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52049     fi
52050
52051     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52052     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52053         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52054     fi
52055
52056     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52057     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52058         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52059     fi
52060
52061     COND_TOOLKIT_GTK_USE_GUI_1="#"
52062     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52063         COND_TOOLKIT_GTK_USE_GUI_1=""
52064     fi
52065
52066     COND_TOOLKIT_MAC="#"
52067     if test "x$TOOLKIT" = "xMAC" ; then
52068         COND_TOOLKIT_MAC=""
52069     fi
52070
52071     COND_TOOLKIT_MAC_USE_GUI_1="#"
52072     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52073         COND_TOOLKIT_MAC_USE_GUI_1=""
52074     fi
52075
52076     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52077     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52078         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52079     fi
52080
52081     COND_TOOLKIT_MGL="#"
52082     if test "x$TOOLKIT" = "xMGL" ; then
52083         COND_TOOLKIT_MGL=""
52084     fi
52085
52086     COND_TOOLKIT_MGL_USE_GUI_1="#"
52087     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52088         COND_TOOLKIT_MGL_USE_GUI_1=""
52089     fi
52090
52091     COND_TOOLKIT_MOTIF="#"
52092     if test "x$TOOLKIT" = "xMOTIF" ; then
52093         COND_TOOLKIT_MOTIF=""
52094     fi
52095
52096     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52097     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52098         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52099     fi
52100
52101     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52102     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52103         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52104     fi
52105
52106     COND_TOOLKIT_MSW="#"
52107     if test "x$TOOLKIT" = "xMSW" ; then
52108         COND_TOOLKIT_MSW=""
52109     fi
52110
52111     COND_TOOLKIT_MSW_USE_GUI_1="#"
52112     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52113         COND_TOOLKIT_MSW_USE_GUI_1=""
52114     fi
52115
52116     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52117     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52118         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52119     fi
52120
52121     COND_TOOLKIT_MSW_WXUNIV_0="#"
52122     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52123         COND_TOOLKIT_MSW_WXUNIV_0=""
52124     fi
52125
52126     COND_TOOLKIT_PM="#"
52127     if test "x$TOOLKIT" = "xPM" ; then
52128         COND_TOOLKIT_PM=""
52129     fi
52130
52131     COND_TOOLKIT_PM_USE_GUI_1="#"
52132     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52133         COND_TOOLKIT_PM_USE_GUI_1=""
52134     fi
52135
52136     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52137     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52138         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52139     fi
52140
52141     COND_TOOLKIT_WINCE="#"
52142     if test "x$TOOLKIT" = "xWINCE" ; then
52143         COND_TOOLKIT_WINCE=""
52144     fi
52145
52146     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52147     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52148         COND_TOOLKIT_WINCE_USE_GUI_1=""
52149     fi
52150
52151     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52152     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52153         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52154     fi
52155
52156     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52157     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52158         COND_TOOLKIT_WINCE_WXUNIV_0=""
52159     fi
52160
52161     COND_TOOLKIT_X11="#"
52162     if test "x$TOOLKIT" = "xX11" ; then
52163         COND_TOOLKIT_X11=""
52164     fi
52165
52166     COND_TOOLKIT_X11_USE_GUI_1="#"
52167     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52168         COND_TOOLKIT_X11_USE_GUI_1=""
52169     fi
52170
52171     COND_UNICODE_1="#"
52172     if test "x$UNICODE" = "x1" ; then
52173         COND_UNICODE_1=""
52174     fi
52175
52176     COND_USE_EXCEPTIONS_0="#"
52177     if test "x$USE_EXCEPTIONS" = "x0" ; then
52178         COND_USE_EXCEPTIONS_0=""
52179     fi
52180
52181     COND_USE_EXCEPTIONS_1="#"
52182     if test "x$USE_EXCEPTIONS" = "x1" ; then
52183         COND_USE_EXCEPTIONS_1=""
52184     fi
52185
52186     COND_USE_GUI_0="#"
52187     if test "x$USE_GUI" = "x0" ; then
52188         COND_USE_GUI_0=""
52189     fi
52190
52191     COND_USE_GUI_1="#"
52192     if test "x$USE_GUI" = "x1" ; then
52193         COND_USE_GUI_1=""
52194     fi
52195
52196     COND_USE_GUI_1_USE_OPENGL_1="#"
52197     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52198         COND_USE_GUI_1_USE_OPENGL_1=""
52199     fi
52200
52201     COND_USE_GUI_1_WXUNIV_0="#"
52202     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52203         COND_USE_GUI_1_WXUNIV_0=""
52204     fi
52205
52206     COND_USE_GUI_1_WXUNIV_1="#"
52207     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
52208         COND_USE_GUI_1_WXUNIV_1=""
52209     fi
52210
52211     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52212     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52213         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52214     fi
52215
52216     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52217     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52218         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52219     fi
52220
52221     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52222     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52223         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52224     fi
52225
52226     COND_USE_PCH_1="#"
52227     if test "x$USE_PCH" = "x1" ; then
52228         COND_USE_PCH_1=""
52229     fi
52230
52231     COND_USE_PLUGINS_0="#"
52232     if test "x$USE_PLUGINS" = "x0" ; then
52233         COND_USE_PLUGINS_0=""
52234     fi
52235
52236     COND_USE_RTTI_0="#"
52237     if test "x$USE_RTTI" = "x0" ; then
52238         COND_USE_RTTI_0=""
52239     fi
52240
52241     COND_USE_RTTI_1="#"
52242     if test "x$USE_RTTI" = "x1" ; then
52243         COND_USE_RTTI_1=""
52244     fi
52245
52246     COND_USE_SOSYMLINKS_1="#"
52247     if test "x$USE_SOSYMLINKS" = "x1" ; then
52248         COND_USE_SOSYMLINKS_1=""
52249     fi
52250
52251     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
52252     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52253         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
52254     fi
52255
52256     COND_USE_SOVERLINUX_1="#"
52257     if test "x$USE_SOVERLINUX" = "x1" ; then
52258         COND_USE_SOVERLINUX_1=""
52259     fi
52260
52261     COND_USE_SOVERSION_0="#"
52262     if test "x$USE_SOVERSION" = "x0" ; then
52263         COND_USE_SOVERSION_0=""
52264     fi
52265
52266     COND_USE_SOVERSOLARIS_1="#"
52267     if test "x$USE_SOVERSOLARIS" = "x1" ; then
52268         COND_USE_SOVERSOLARIS_1=""
52269     fi
52270
52271     COND_USE_STC_1="#"
52272     if test "x$USE_STC" = "x1" ; then
52273         COND_USE_STC_1=""
52274     fi
52275
52276     COND_USE_THREADS_0="#"
52277     if test "x$USE_THREADS" = "x0" ; then
52278         COND_USE_THREADS_0=""
52279     fi
52280
52281     COND_USE_THREADS_1="#"
52282     if test "x$USE_THREADS" = "x1" ; then
52283         COND_USE_THREADS_1=""
52284     fi
52285
52286     COND_USE_XRC_1="#"
52287     if test "x$USE_XRC" = "x1" ; then
52288         COND_USE_XRC_1=""
52289     fi
52290
52291     COND_WINDOWS_IMPLIB_1="#"
52292     if test "x$WINDOWS_IMPLIB" = "x1" ; then
52293         COND_WINDOWS_IMPLIB_1=""
52294     fi
52295
52296     COND_WITH_PLUGIN_SDL_1="#"
52297     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
52298         COND_WITH_PLUGIN_SDL_1=""
52299     fi
52300
52301     COND_WXUNIV_0="#"
52302     if test "x$WXUNIV" = "x0" ; then
52303         COND_WXUNIV_0=""
52304     fi
52305
52306     COND_WXUNIV_1="#"
52307     if test "x$WXUNIV" = "x1" ; then
52308         COND_WXUNIV_1=""
52309     fi
52310
52311     COND_WXUSE_EXPAT_BUILTIN="#"
52312     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
52313         COND_WXUSE_EXPAT_BUILTIN=""
52314     fi
52315
52316     COND_WXUSE_LIBJPEG_BUILTIN="#"
52317     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52318         COND_WXUSE_LIBJPEG_BUILTIN=""
52319     fi
52320
52321     COND_WXUSE_LIBPNG_BUILTIN="#"
52322     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52323         COND_WXUSE_LIBPNG_BUILTIN=""
52324     fi
52325
52326     COND_WXUSE_LIBTIFF_BUILTIN="#"
52327     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52328         COND_WXUSE_LIBTIFF_BUILTIN=""
52329     fi
52330
52331     COND_WXUSE_REGEX_BUILTIN="#"
52332     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
52333         COND_WXUSE_REGEX_BUILTIN=""
52334     fi
52335
52336     COND_WXUSE_ZLIB_BUILTIN="#"
52337     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
52338         COND_WXUSE_ZLIB_BUILTIN=""
52339     fi
52340
52341
52342
52343     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
52344         { { 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
52345 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;}
52346    { (exit 1); exit 1; }; }
52347     fi
52348
52349     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
52350         { { 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
52351 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;}
52352    { (exit 1); exit 1; }; }
52353     fi
52354
52355
52356 case ${INSTALL} in
52357   /* ) # Absolute
52358      ;;
52359   ?:* ) # Drive letter, considered as absolute.
52360      ;;
52361   *)
52362      INSTALL=`pwd`/${INSTALL} ;;
52363 esac
52364
52365 if test "$wxUSE_GUI" = "yes"; then
52366
52367 if test "$wxUSE_MSW" = 1 ; then
52368     if test "x$WINDRES" = "x"; then
52369         { { echo "$as_me:$LINENO: error: Required windres program not found" >&5
52370 echo "$as_me: error: Required windres program not found" >&2;}
52371    { (exit 1); exit 1; }; }
52372     fi
52373
52374     RESCOMP="$WINDRES"
52375 fi
52376
52377 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
52378             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
52379     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
52380
52381         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
52382
52383     # Extract the first word of "DeRez", so it can be a program name with args.
52384 set dummy DeRez; ac_word=$2
52385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52387 if test "${ac_cv_prog_DEREZ+set}" = set; then
52388   echo $ECHO_N "(cached) $ECHO_C" >&6
52389 else
52390   if test -n "$DEREZ"; then
52391   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
52392 else
52393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52394 for as_dir in $PATH
52395 do
52396   IFS=$as_save_IFS
52397   test -z "$as_dir" && as_dir=.
52398   for ac_exec_ext in '' $ac_executable_extensions; do
52399   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52400     ac_cv_prog_DEREZ="DeRez"
52401     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52402     break 2
52403   fi
52404 done
52405 done
52406 IFS=$as_save_IFS
52407
52408   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
52409 fi
52410 fi
52411 DEREZ=$ac_cv_prog_DEREZ
52412 if test -n "$DEREZ"; then
52413   { echo "$as_me:$LINENO: result: $DEREZ" >&5
52414 echo "${ECHO_T}$DEREZ" >&6; }
52415 else
52416   { echo "$as_me:$LINENO: result: no" >&5
52417 echo "${ECHO_T}no" >&6; }
52418 fi
52419
52420
52421
52422     MACSETFILE="\$(SETFILE)"
52423
52424             if test "$wxUSE_MAC" = 1; then
52425         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
52426         RESCOMP="$REZ"
52427         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
52428     else
52429         POSTLINK_COMMAND="cat /dev/null | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
52430         RESCOMP="cat /dev/null \| $REZ"
52431         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
52432     fi
52433
52434 else
52435         MACSETFILE="@true"
52436
52437     if test "$wxUSE_PM" = 1; then
52438         RESCOMP="emxbind"
52439         WXCONFIG_RESFLAGS="-ep"
52440
52441                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
52442     else
52443         POSTLINK_COMMAND="@true"
52444     fi
52445 fi
52446
52447 fi
52448
52449
52450 if test $GCC_PCH = 1
52451 then
52452     if test "$wx_cv_gcc_pch_bug" = yes; then
52453         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
52454 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
52455         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
52456 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
52457         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
52458 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
52459     fi
52460
52461     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
52462 fi
52463
52464
52465 if test "$wxUSE_MAC" = 1 ; then
52466     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
52467         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
52468         mv temp bk-deps
52469         chmod +x bk-deps
52470     fi
52471 fi
52472
52473 if test "$wxUSE_SHARED" = "yes"; then
52474                 case "${host}" in
52475       *-pc-os2_emx | *-pc-os2-emx )
52476         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52477         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
52478         cp -p ${srcdir}/src/os2/dllnames.sh .
52479         cp -p ${srcdir}/src/os2/dllar.sh .
52480       ;;
52481     esac
52482 fi
52483 if test "$wxUSE_OMF" = "yes"; then
52484     case "${host}" in
52485       *-pc-os2_emx | *-pc-os2-emx )
52486         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
52487         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52488         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
52489       ;;
52490     esac
52491 fi
52492
52493 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
52494
52495
52496 case "${host}" in
52497     *-*-solaris2* )
52498                         if test "$GCC" = yes; then
52499             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
52500             LIBS=`echo $LIBS | sed 's/-mt//'`
52501             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
52502         fi
52503         ;;
52504
52505     *-*-linux* )
52506                         if test "x$SUNCXX" = xyes; then
52507             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
52508             LIBS=`echo $LIBS | sed 's/-pthread//'`
52509             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
52510         fi
52511         ;;
52512 esac
52513
52514 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
52515 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
52516
52517 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
52518
52519
52520
52521
52522
52523
52524
52525
52526
52527
52528
52529
52530
52531
52532
52533
52534
52535
52536
52537
52538
52539
52540
52541
52542
52543
52544
52545
52546
52547
52548
52549
52550
52551
52552
52553
52554
52555
52556
52557
52558
52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575
52576
52577
52578 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
52579 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
52580 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
52581 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
52582   echo $ECHO_N "(cached) $ECHO_C" >&6
52583 else
52584   cat >conftest.make <<\_ACEOF
52585 SHELL = /bin/sh
52586 all:
52587         @echo '@@@%%%=$(MAKE)=@@@%%%'
52588 _ACEOF
52589 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
52590 case `${MAKE-make} -f conftest.make 2>/dev/null` in
52591   *@@@%%%=?*=@@@%%%*)
52592     eval ac_cv_prog_make_${ac_make}_set=yes;;
52593   *)
52594     eval ac_cv_prog_make_${ac_make}_set=no;;
52595 esac
52596 rm -f conftest.make
52597 fi
52598 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
52599   { echo "$as_me:$LINENO: result: yes" >&5
52600 echo "${ECHO_T}yes" >&6; }
52601   SET_MAKE=
52602 else
52603   { echo "$as_me:$LINENO: result: no" >&5
52604 echo "${ECHO_T}no" >&6; }
52605   SET_MAKE="MAKE=${MAKE-make}"
52606 fi
52607
52608
52609
52610 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
52611
52612
52613 if test "$USE_WIN32" = 1; then
52614     ac_config_commands="$ac_config_commands
52615             rcdefs.h
52616         "
52617
52618 fi
52619
52620 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
52621
52622
52623 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
52624
52625
52626 if test "$wx_cv_version_script" = "yes"; then
52627     ac_config_files="$ac_config_files version-script"
52628
52629 fi
52630 ac_config_files="$ac_config_files Makefile"
52631
52632
52633 ac_config_commands="$ac_config_commands wx-config"
52634
52635
52636
52637 if test "$wxWITH_SUBDIRS" != "no"; then
52638 if test "$wxUSE_GUI" = "yes"; then
52639     SUBDIRS="samples demos utils"
52640 else
52641             SUBDIRS="samples utils"
52642 fi
52643
52644
52645
52646 # Check whether --with-cppunit-prefix was given.
52647 if test "${with_cppunit_prefix+set}" = set; then
52648   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
52649 else
52650   cppunit_config_prefix=""
52651 fi
52652
52653
52654 # Check whether --with-cppunit-exec-prefix was given.
52655 if test "${with_cppunit_exec_prefix+set}" = set; then
52656   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
52657 else
52658   cppunit_config_exec_prefix=""
52659 fi
52660
52661
52662   if test x$cppunit_config_exec_prefix != x ; then
52663      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
52664      if test x${CPPUNIT_CONFIG+set} != xset ; then
52665         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
52666      fi
52667   fi
52668   if test x$cppunit_config_prefix != x ; then
52669      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
52670      if test x${CPPUNIT_CONFIG+set} != xset ; then
52671         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
52672      fi
52673   fi
52674
52675   # Extract the first word of "cppunit-config", so it can be a program name with args.
52676 set dummy cppunit-config; ac_word=$2
52677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52679 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
52680   echo $ECHO_N "(cached) $ECHO_C" >&6
52681 else
52682   case $CPPUNIT_CONFIG in
52683   [\\/]* | ?:[\\/]*)
52684   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
52685   ;;
52686   *)
52687   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52688 for as_dir in $PATH
52689 do
52690   IFS=$as_save_IFS
52691   test -z "$as_dir" && as_dir=.
52692   for ac_exec_ext in '' $ac_executable_extensions; do
52693   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52694     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
52695     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52696     break 2
52697   fi
52698 done
52699 done
52700 IFS=$as_save_IFS
52701
52702   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
52703   ;;
52704 esac
52705 fi
52706 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
52707 if test -n "$CPPUNIT_CONFIG"; then
52708   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
52709 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
52710 else
52711   { echo "$as_me:$LINENO: result: no" >&5
52712 echo "${ECHO_T}no" >&6; }
52713 fi
52714
52715
52716   cppunit_version_min=1.8.0
52717
52718   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
52719 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
52720   no_cppunit=""
52721   if test "$CPPUNIT_CONFIG" = "no" ; then
52722     { echo "$as_me:$LINENO: result: no" >&5
52723 echo "${ECHO_T}no" >&6; }
52724     no_cppunit=yes
52725   else
52726     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
52727     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
52728     cppunit_version=`$CPPUNIT_CONFIG --version`
52729
52730     cppunit_major_version=`echo $cppunit_version | \
52731            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52732     cppunit_minor_version=`echo $cppunit_version | \
52733            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52734     cppunit_micro_version=`echo $cppunit_version | \
52735            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52736
52737     cppunit_major_min=`echo $cppunit_version_min | \
52738            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
52739     cppunit_minor_min=`echo $cppunit_version_min | \
52740            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
52741     cppunit_micro_min=`echo $cppunit_version_min | \
52742            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
52743
52744     cppunit_version_proper=`expr \
52745         $cppunit_major_version \> $cppunit_major_min \| \
52746         $cppunit_major_version \= $cppunit_major_min \& \
52747         $cppunit_minor_version \> $cppunit_minor_min \| \
52748         $cppunit_major_version \= $cppunit_major_min \& \
52749         $cppunit_minor_version \= $cppunit_minor_min \& \
52750         $cppunit_micro_version \>= $cppunit_micro_min `
52751
52752     if test "$cppunit_version_proper" = "1" ; then
52753       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
52754 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
52755     else
52756       { echo "$as_me:$LINENO: result: no" >&5
52757 echo "${ECHO_T}no" >&6; }
52758       no_cppunit=yes
52759     fi
52760   fi
52761
52762   if test "x$no_cppunit" = x ; then
52763      SUBDIRS="$SUBDIRS tests"
52764   else
52765      CPPUNIT_CFLAGS=""
52766      CPPUNIT_LIBS=""
52767      :
52768   fi
52769
52770
52771
52772
52773
52774 for subdir in $SUBDIRS; do
52775     if test -d ${srcdir}/${subdir} ; then
52776         if test "$wxUSE_GUI" = "yes"; then
52777             if test ${subdir} = "samples"; then
52778                                                 makefiles="samples/Makefile.in $makefiles"
52779                 for sample in $SAMPLES_SUBDIRS; do
52780                     if test -d $srcdir/samples/$sample; then
52781                         makefiles="samples/$sample/Makefile.in $makefiles"
52782                     fi
52783                 done
52784             else
52785                                                                 disabled_var=DISABLED_`echo $subdir | tr a-z A-Z`
52786                 eval "disabled=\$$disabled_var"
52787                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
52788                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
52789             fi
52790         else
52791                                                 if test ${subdir} = "samples"; then
52792                 makefiles="samples/Makefile.in samples/console/Makefile.in"
52793             elif test ${subdir} = "utils"; then
52794                 makefiles=""
52795                 for util in HelpGen tex2rtf ; do
52796                     if test -d $srcdir/utils/$util ; then
52797                         makefiles="utils/$util/Makefile.in \
52798                                    utils/$util/src/Makefile.in \
52799                                    $makefiles"
52800                     fi
52801                 done
52802             else
52803                                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
52804             fi
52805         fi
52806
52807         for mkin in $makefiles ; do
52808             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
52809             ac_config_files="$ac_config_files $mk"
52810
52811         done
52812     fi
52813 done
52814 fi
52815 cat >confcache <<\_ACEOF
52816 # This file is a shell script that caches the results of configure
52817 # tests run on this system so they can be shared between configure
52818 # scripts and configure runs, see configure's option --config-cache.
52819 # It is not useful on other systems.  If it contains results you don't
52820 # want to keep, you may remove or edit it.
52821 #
52822 # config.status only pays attention to the cache file if you give it
52823 # the --recheck option to rerun configure.
52824 #
52825 # `ac_cv_env_foo' variables (set or unset) will be overridden when
52826 # loading this file, other *unset* `ac_cv_foo' will be assigned the
52827 # following values.
52828
52829 _ACEOF
52830
52831 # The following way of writing the cache mishandles newlines in values,
52832 # but we know of no workaround that is simple, portable, and efficient.
52833 # So, we kill variables containing newlines.
52834 # Ultrix sh set writes to stderr and can't be redirected directly,
52835 # and sets the high bit in the cache file unless we assign to the vars.
52836 (
52837   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
52838     eval ac_val=\$$ac_var
52839     case $ac_val in #(
52840     *${as_nl}*)
52841       case $ac_var in #(
52842       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
52843 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
52844       esac
52845       case $ac_var in #(
52846       _ | IFS | as_nl) ;; #(
52847       *) $as_unset $ac_var ;;
52848       esac ;;
52849     esac
52850   done
52851
52852   (set) 2>&1 |
52853     case $as_nl`(ac_space=' '; set) 2>&1` in #(
52854     *${as_nl}ac_space=\ *)
52855       # `set' does not quote correctly, so add quotes (double-quote
52856       # substitution turns \\\\ into \\, and sed turns \\ into \).
52857       sed -n \
52858         "s/'/'\\\\''/g;
52859           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
52860       ;; #(
52861     *)
52862       # `set' quotes correctly as required by POSIX, so do not add quotes.
52863       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
52864       ;;
52865     esac |
52866     sort
52867 ) |
52868   sed '
52869      /^ac_cv_env_/b end
52870      t clear
52871      :clear
52872      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
52873      t end
52874      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
52875      :end' >>confcache
52876 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
52877   if test -w "$cache_file"; then
52878     test "x$cache_file" != "x/dev/null" &&
52879       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
52880 echo "$as_me: updating cache $cache_file" >&6;}
52881     cat confcache >$cache_file
52882   else
52883     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
52884 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
52885   fi
52886 fi
52887 rm -f confcache
52888
52889 test "x$prefix" = xNONE && prefix=$ac_default_prefix
52890 # Let make expand exec_prefix.
52891 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
52892
52893 DEFS=-DHAVE_CONFIG_H
52894
52895 ac_libobjs=
52896 ac_ltlibobjs=
52897 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
52898   # 1. Remove the extension, and $U if already installed.
52899   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
52900   ac_i=`echo "$ac_i" | sed "$ac_script"`
52901   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
52902   #    will be set to the directory where LIBOBJS objects are built.
52903   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
52904   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
52905 done
52906 LIBOBJS=$ac_libobjs
52907
52908 LTLIBOBJS=$ac_ltlibobjs
52909
52910
52911
52912 : ${CONFIG_STATUS=./config.status}
52913 ac_clean_files_save=$ac_clean_files
52914 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
52915 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
52916 echo "$as_me: creating $CONFIG_STATUS" >&6;}
52917 cat >$CONFIG_STATUS <<_ACEOF
52918 #! $SHELL
52919 # Generated by $as_me.
52920 # Run this file to recreate the current configuration.
52921 # Compiler output produced by configure, useful for debugging
52922 # configure, is in config.log if it exists.
52923
52924 debug=false
52925 ac_cs_recheck=false
52926 ac_cs_silent=false
52927 SHELL=\${CONFIG_SHELL-$SHELL}
52928 _ACEOF
52929
52930 cat >>$CONFIG_STATUS <<\_ACEOF
52931 ## --------------------- ##
52932 ## M4sh Initialization.  ##
52933 ## --------------------- ##
52934
52935 # Be more Bourne compatible
52936 DUALCASE=1; export DUALCASE # for MKS sh
52937 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
52938   emulate sh
52939   NULLCMD=:
52940   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
52941   # is contrary to our usage.  Disable this feature.
52942   alias -g '${1+"$@"}'='"$@"'
52943   setopt NO_GLOB_SUBST
52944 else
52945   case `(set -o) 2>/dev/null` in
52946   *posix*) set -o posix ;;
52947 esac
52948
52949 fi
52950
52951
52952
52953
52954 # PATH needs CR
52955 # Avoid depending upon Character Ranges.
52956 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
52957 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
52958 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
52959 as_cr_digits='0123456789'
52960 as_cr_alnum=$as_cr_Letters$as_cr_digits
52961
52962 # The user is always right.
52963 if test "${PATH_SEPARATOR+set}" != set; then
52964   echo "#! /bin/sh" >conf$$.sh
52965   echo  "exit 0"   >>conf$$.sh
52966   chmod +x conf$$.sh
52967   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
52968     PATH_SEPARATOR=';'
52969   else
52970     PATH_SEPARATOR=:
52971   fi
52972   rm -f conf$$.sh
52973 fi
52974
52975 # Support unset when possible.
52976 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
52977   as_unset=unset
52978 else
52979   as_unset=false
52980 fi
52981
52982
52983 # IFS
52984 # We need space, tab and new line, in precisely that order.  Quoting is
52985 # there to prevent editors from complaining about space-tab.
52986 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
52987 # splitting by setting IFS to empty value.)
52988 as_nl='
52989 '
52990 IFS=" ""        $as_nl"
52991
52992 # Find who we are.  Look in the path if we contain no directory separator.
52993 case $0 in
52994   *[\\/]* ) as_myself=$0 ;;
52995   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52996 for as_dir in $PATH
52997 do
52998   IFS=$as_save_IFS
52999   test -z "$as_dir" && as_dir=.
53000   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53001 done
53002 IFS=$as_save_IFS
53003
53004      ;;
53005 esac
53006 # We did not find ourselves, most probably we were run as `sh COMMAND'
53007 # in which case we are not to be found in the path.
53008 if test "x$as_myself" = x; then
53009   as_myself=$0
53010 fi
53011 if test ! -f "$as_myself"; then
53012   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53013   { (exit 1); exit 1; }
53014 fi
53015
53016 # Work around bugs in pre-3.0 UWIN ksh.
53017 for as_var in ENV MAIL MAILPATH
53018 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53019 done
53020 PS1='$ '
53021 PS2='> '
53022 PS4='+ '
53023
53024 # NLS nuisances.
53025 for as_var in \
53026   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53027   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53028   LC_TELEPHONE LC_TIME
53029 do
53030   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53031     eval $as_var=C; export $as_var
53032   else
53033     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53034   fi
53035 done
53036
53037 # Required to use basename.
53038 if expr a : '\(a\)' >/dev/null 2>&1 &&
53039    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53040   as_expr=expr
53041 else
53042   as_expr=false
53043 fi
53044
53045 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53046   as_basename=basename
53047 else
53048   as_basename=false
53049 fi
53050
53051
53052 # Name of the executable.
53053 as_me=`$as_basename -- "$0" ||
53054 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53055          X"$0" : 'X\(//\)$' \| \
53056          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53057 echo X/"$0" |
53058     sed '/^.*\/\([^/][^/]*\)\/*$/{
53059             s//\1/
53060             q
53061           }
53062           /^X\/\(\/\/\)$/{
53063             s//\1/
53064             q
53065           }
53066           /^X\/\(\/\).*/{
53067             s//\1/
53068             q
53069           }
53070           s/.*/./; q'`
53071
53072 # CDPATH.
53073 $as_unset CDPATH
53074
53075
53076
53077   as_lineno_1=$LINENO
53078   as_lineno_2=$LINENO
53079   test "x$as_lineno_1" != "x$as_lineno_2" &&
53080   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53081
53082   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53083   # uniformly replaced by the line number.  The first 'sed' inserts a
53084   # line-number line after each line using $LINENO; the second 'sed'
53085   # does the real work.  The second script uses 'N' to pair each
53086   # line-number line with the line containing $LINENO, and appends
53087   # trailing '-' during substitution so that $LINENO is not a special
53088   # case at line end.
53089   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53090   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53091   # E. McMahon (1931-1989) for sed's syntax.  :-)
53092   sed -n '
53093     p
53094     /[$]LINENO/=
53095   ' <$as_myself |
53096     sed '
53097       s/[$]LINENO.*/&-/
53098       t lineno
53099       b
53100       :lineno
53101       N
53102       :loop
53103       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53104       t loop
53105       s/-\n.*//
53106     ' >$as_me.lineno &&
53107   chmod +x "$as_me.lineno" ||
53108     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53109    { (exit 1); exit 1; }; }
53110
53111   # Don't try to exec as it changes $[0], causing all sort of problems
53112   # (the dirname of $[0] is not the place where we might find the
53113   # original and so on.  Autoconf is especially sensitive to this).
53114   . "./$as_me.lineno"
53115   # Exit status is that of the last command.
53116   exit
53117 }
53118
53119
53120 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53121   as_dirname=dirname
53122 else
53123   as_dirname=false
53124 fi
53125
53126 ECHO_C= ECHO_N= ECHO_T=
53127 case `echo -n x` in
53128 -n*)
53129   case `echo 'x\c'` in
53130   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53131   *)   ECHO_C='\c';;
53132   esac;;
53133 *)
53134   ECHO_N='-n';;
53135 esac
53136
53137 if expr a : '\(a\)' >/dev/null 2>&1 &&
53138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53139   as_expr=expr
53140 else
53141   as_expr=false
53142 fi
53143
53144 rm -f conf$$ conf$$.exe conf$$.file
53145 if test -d conf$$.dir; then
53146   rm -f conf$$.dir/conf$$.file
53147 else
53148   rm -f conf$$.dir
53149   mkdir conf$$.dir
53150 fi
53151 echo >conf$$.file
53152 if ln -s conf$$.file conf$$ 2>/dev/null; then
53153   as_ln_s='ln -s'
53154   # ... but there are two gotchas:
53155   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53156   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53157   # In both cases, we have to default to `cp -p'.
53158   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53159     as_ln_s='cp -p'
53160 elif ln conf$$.file conf$$ 2>/dev/null; then
53161   as_ln_s=ln
53162 else
53163   as_ln_s='cp -p'
53164 fi
53165 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53166 rmdir conf$$.dir 2>/dev/null
53167
53168 if mkdir -p . 2>/dev/null; then
53169   as_mkdir_p=:
53170 else
53171   test -d ./-p && rmdir ./-p
53172   as_mkdir_p=false
53173 fi
53174
53175 if test -x / >/dev/null 2>&1; then
53176   as_test_x='test -x'
53177 else
53178   if ls -dL / >/dev/null 2>&1; then
53179     as_ls_L_option=L
53180   else
53181     as_ls_L_option=
53182   fi
53183   as_test_x='
53184     eval sh -c '\''
53185       if test -d "$1"; then
53186         test -d "$1/.";
53187       else
53188         case $1 in
53189         -*)set "./$1";;
53190         esac;
53191         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53192         ???[sx]*):;;*)false;;esac;fi
53193     '\'' sh
53194   '
53195 fi
53196 as_executable_p=$as_test_x
53197
53198 # Sed expression to map a string onto a valid CPP name.
53199 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53200
53201 # Sed expression to map a string onto a valid variable name.
53202 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53203
53204
53205 exec 6>&1
53206
53207 # Save the log message, to keep $[0] and so on meaningful, and to
53208 # report actual input values of CONFIG_FILES etc. instead of their
53209 # values after options handling.
53210 ac_log="
53211 This file was extended by wxWidgets $as_me 2.9.0, which was
53212 generated by GNU Autoconf 2.61.  Invocation command line was
53213
53214   CONFIG_FILES    = $CONFIG_FILES
53215   CONFIG_HEADERS  = $CONFIG_HEADERS
53216   CONFIG_LINKS    = $CONFIG_LINKS
53217   CONFIG_COMMANDS = $CONFIG_COMMANDS
53218   $ $0 $@
53219
53220 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53221 "
53222
53223 _ACEOF
53224
53225 cat >>$CONFIG_STATUS <<_ACEOF
53226 # Files that config.status was made for.
53227 config_files="$ac_config_files"
53228 config_headers="$ac_config_headers"
53229 config_commands="$ac_config_commands"
53230
53231 _ACEOF
53232
53233 cat >>$CONFIG_STATUS <<\_ACEOF
53234 ac_cs_usage="\
53235 \`$as_me' instantiates files from templates according to the
53236 current configuration.
53237
53238 Usage: $0 [OPTIONS] [FILE]...
53239
53240   -h, --help       print this help, then exit
53241   -V, --version    print version number and configuration settings, then exit
53242   -q, --quiet      do not print progress messages
53243   -d, --debug      don't remove temporary files
53244       --recheck    update $as_me by reconfiguring in the same conditions
53245   --file=FILE[:TEMPLATE]
53246                    instantiate the configuration file FILE
53247   --header=FILE[:TEMPLATE]
53248                    instantiate the configuration header FILE
53249
53250 Configuration files:
53251 $config_files
53252
53253 Configuration headers:
53254 $config_headers
53255
53256 Configuration commands:
53257 $config_commands
53258
53259 Report bugs to <bug-autoconf@gnu.org>."
53260
53261 _ACEOF
53262 cat >>$CONFIG_STATUS <<_ACEOF
53263 ac_cs_version="\\
53264 wxWidgets config.status 2.9.0
53265 configured by $0, generated by GNU Autoconf 2.61,
53266   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
53267
53268 Copyright (C) 2006 Free Software Foundation, Inc.
53269 This config.status script is free software; the Free Software Foundation
53270 gives unlimited permission to copy, distribute and modify it."
53271
53272 ac_pwd='$ac_pwd'
53273 srcdir='$srcdir'
53274 INSTALL='$INSTALL'
53275 _ACEOF
53276
53277 cat >>$CONFIG_STATUS <<\_ACEOF
53278 # If no file are specified by the user, then we need to provide default
53279 # value.  By we need to know if files were specified by the user.
53280 ac_need_defaults=:
53281 while test $# != 0
53282 do
53283   case $1 in
53284   --*=*)
53285     ac_option=`expr "X$1" : 'X\([^=]*\)='`
53286     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
53287     ac_shift=:
53288     ;;
53289   *)
53290     ac_option=$1
53291     ac_optarg=$2
53292     ac_shift=shift
53293     ;;
53294   esac
53295
53296   case $ac_option in
53297   # Handling of the options.
53298   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
53299     ac_cs_recheck=: ;;
53300   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
53301     echo "$ac_cs_version"; exit ;;
53302   --debug | --debu | --deb | --de | --d | -d )
53303     debug=: ;;
53304   --file | --fil | --fi | --f )
53305     $ac_shift
53306     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
53307     ac_need_defaults=false;;
53308   --header | --heade | --head | --hea )
53309     $ac_shift
53310     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
53311     ac_need_defaults=false;;
53312   --he | --h)
53313     # Conflict between --help and --header
53314     { echo "$as_me: error: ambiguous option: $1
53315 Try \`$0 --help' for more information." >&2
53316    { (exit 1); exit 1; }; };;
53317   --help | --hel | -h )
53318     echo "$ac_cs_usage"; exit ;;
53319   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
53320   | -silent | --silent | --silen | --sile | --sil | --si | --s)
53321     ac_cs_silent=: ;;
53322
53323   # This is an error.
53324   -*) { echo "$as_me: error: unrecognized option: $1
53325 Try \`$0 --help' for more information." >&2
53326    { (exit 1); exit 1; }; } ;;
53327
53328   *) ac_config_targets="$ac_config_targets $1"
53329      ac_need_defaults=false ;;
53330
53331   esac
53332   shift
53333 done
53334
53335 ac_configure_extra_args=
53336
53337 if $ac_cs_silent; then
53338   exec 6>/dev/null
53339   ac_configure_extra_args="$ac_configure_extra_args --silent"
53340 fi
53341
53342 _ACEOF
53343 cat >>$CONFIG_STATUS <<_ACEOF
53344 if \$ac_cs_recheck; then
53345   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
53346   CONFIG_SHELL=$SHELL
53347   export CONFIG_SHELL
53348   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
53349 fi
53350
53351 _ACEOF
53352 cat >>$CONFIG_STATUS <<\_ACEOF
53353 exec 5>>config.log
53354 {
53355   echo
53356   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
53357 ## Running $as_me. ##
53358 _ASBOX
53359   echo "$ac_log"
53360 } >&5
53361
53362 _ACEOF
53363 cat >>$CONFIG_STATUS <<_ACEOF
53364 #
53365 # INIT-COMMANDS
53366 #
53367
53368             CPP="$CPP"
53369             infile="$srcdir/include/wx/msw/genrcdefs.h"
53370             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
53371
53372
53373  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53374  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53375  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
53376                      LN_S="${LN_S}"
53377
53378
53379 _ACEOF
53380
53381 cat >>$CONFIG_STATUS <<\_ACEOF
53382
53383 # Handling of arguments.
53384 for ac_config_target in $ac_config_targets
53385 do
53386   case $ac_config_target in
53387     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
53388     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
53389     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
53390     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
53391     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
53392     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
53393     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
53394     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
53395
53396   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
53397 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
53398    { (exit 1); exit 1; }; };;
53399   esac
53400 done
53401
53402
53403 # If the user did not use the arguments to specify the items to instantiate,
53404 # then the envvar interface is used.  Set only those that are not.
53405 # We use the long form for the default assignment because of an extremely
53406 # bizarre bug on SunOS 4.1.3.
53407 if $ac_need_defaults; then
53408   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
53409   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
53410   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
53411 fi
53412
53413 # Have a temporary directory for convenience.  Make it in the build tree
53414 # simply because there is no reason against having it here, and in addition,
53415 # creating and moving files from /tmp can sometimes cause problems.
53416 # Hook for its removal unless debugging.
53417 # Note that there is a small window in which the directory will not be cleaned:
53418 # after its creation but before its name has been assigned to `$tmp'.
53419 $debug ||
53420 {
53421   tmp=
53422   trap 'exit_status=$?
53423   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
53424 ' 0
53425   trap '{ (exit 1); exit 1; }' 1 2 13 15
53426 }
53427 # Create a (secure) tmp directory for tmp files.
53428
53429 {
53430   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
53431   test -n "$tmp" && test -d "$tmp"
53432 }  ||
53433 {
53434   tmp=./conf$$-$RANDOM
53435   (umask 077 && mkdir "$tmp")
53436 } ||
53437 {
53438    echo "$me: cannot create a temporary directory in ." >&2
53439    { (exit 1); exit 1; }
53440 }
53441
53442 #
53443 # Set up the sed scripts for CONFIG_FILES section.
53444 #
53445
53446 # No need to generate the scripts if there are no CONFIG_FILES.
53447 # This happens for instance when ./config.status config.h
53448 if test -n "$CONFIG_FILES"; then
53449
53450 _ACEOF
53451
53452
53453
53454 ac_delim='%!_!# '
53455 for ac_last_try in false false false false false :; do
53456   cat >conf$$subs.sed <<_ACEOF
53457 SHELL!$SHELL$ac_delim
53458 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
53459 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
53460 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
53461 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
53462 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
53463 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
53464 exec_prefix!$exec_prefix$ac_delim
53465 prefix!$prefix$ac_delim
53466 program_transform_name!$program_transform_name$ac_delim
53467 bindir!$bindir$ac_delim
53468 sbindir!$sbindir$ac_delim
53469 libexecdir!$libexecdir$ac_delim
53470 datarootdir!$datarootdir$ac_delim
53471 datadir!$datadir$ac_delim
53472 sysconfdir!$sysconfdir$ac_delim
53473 sharedstatedir!$sharedstatedir$ac_delim
53474 localstatedir!$localstatedir$ac_delim
53475 includedir!$includedir$ac_delim
53476 oldincludedir!$oldincludedir$ac_delim
53477 docdir!$docdir$ac_delim
53478 infodir!$infodir$ac_delim
53479 htmldir!$htmldir$ac_delim
53480 dvidir!$dvidir$ac_delim
53481 pdfdir!$pdfdir$ac_delim
53482 psdir!$psdir$ac_delim
53483 libdir!$libdir$ac_delim
53484 localedir!$localedir$ac_delim
53485 mandir!$mandir$ac_delim
53486 DEFS!$DEFS$ac_delim
53487 ECHO_C!$ECHO_C$ac_delim
53488 ECHO_N!$ECHO_N$ac_delim
53489 ECHO_T!$ECHO_T$ac_delim
53490 LIBS!$LIBS$ac_delim
53491 build_alias!$build_alias$ac_delim
53492 host_alias!$host_alias$ac_delim
53493 target_alias!$target_alias$ac_delim
53494 build!$build$ac_delim
53495 build_cpu!$build_cpu$ac_delim
53496 build_vendor!$build_vendor$ac_delim
53497 build_os!$build_os$ac_delim
53498 host!$host$ac_delim
53499 host_cpu!$host_cpu$ac_delim
53500 host_vendor!$host_vendor$ac_delim
53501 host_os!$host_os$ac_delim
53502 target!$target$ac_delim
53503 target_cpu!$target_cpu$ac_delim
53504 target_vendor!$target_vendor$ac_delim
53505 target_os!$target_os$ac_delim
53506 wx_top_builddir!$wx_top_builddir$ac_delim
53507 CC!$CC$ac_delim
53508 CFLAGS!$CFLAGS$ac_delim
53509 LDFLAGS!$LDFLAGS$ac_delim
53510 CPPFLAGS!$CPPFLAGS$ac_delim
53511 ac_ct_CC!$ac_ct_CC$ac_delim
53512 EXEEXT!$EXEEXT$ac_delim
53513 OBJEXT!$OBJEXT$ac_delim
53514 CPP!$CPP$ac_delim
53515 GREP!$GREP$ac_delim
53516 EGREP!$EGREP$ac_delim
53517 CXX!$CXX$ac_delim
53518 CXXFLAGS!$CXXFLAGS$ac_delim
53519 ac_ct_CXX!$ac_ct_CXX$ac_delim
53520 AR!$AR$ac_delim
53521 subdirs!$subdirs$ac_delim
53522 PKG_CONFIG!$PKG_CONFIG$ac_delim
53523 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
53524 GTK_LIBS!$GTK_LIBS$ac_delim
53525 GTK_CONFIG!$GTK_CONFIG$ac_delim
53526 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
53527 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
53528 XMKMF!$XMKMF$ac_delim
53529 X_CFLAGS!$X_CFLAGS$ac_delim
53530 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
53531 X_LIBS!$X_LIBS$ac_delim
53532 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
53533 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
53534 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
53535 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
53536 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
53537 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
53538 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
53539 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
53540 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
53541 LIBICONV!$LIBICONV$ac_delim
53542 SDL_CONFIG!$SDL_CONFIG$ac_delim
53543 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
53544 SDL_LIBS!$SDL_LIBS$ac_delim
53545 GTKPRINT_CFLAGS!$GTKPRINT_CFLAGS$ac_delim
53546 GTKPRINT_LIBS!$GTKPRINT_LIBS$ac_delim
53547 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
53548 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
53549 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
53550 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
53551 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
53552 HILDON_LIBS!$HILDON_LIBS$ac_delim
53553 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
53554 _ACEOF
53555
53556   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53557     break
53558   elif $ac_last_try; then
53559     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53560 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53561    { (exit 1); exit 1; }; }
53562   else
53563     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53564   fi
53565 done
53566
53567 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53568 if test -n "$ac_eof"; then
53569   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53570   ac_eof=`expr $ac_eof + 1`
53571 fi
53572
53573 cat >>$CONFIG_STATUS <<_ACEOF
53574 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
53575 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53576 _ACEOF
53577 sed '
53578 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53579 s/^/s,@/; s/!/@,|#_!!_#|/
53580 :n
53581 t n
53582 s/'"$ac_delim"'$/,g/; t
53583 s/$/\\/; p
53584 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53585 ' >>$CONFIG_STATUS <conf$$subs.sed
53586 rm -f conf$$subs.sed
53587 cat >>$CONFIG_STATUS <<_ACEOF
53588 CEOF$ac_eof
53589 _ACEOF
53590
53591
53592 ac_delim='%!_!# '
53593 for ac_last_try in false false false false false :; do
53594   cat >conf$$subs.sed <<_ACEOF
53595 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
53596 GST_CFLAGS!$GST_CFLAGS$ac_delim
53597 GST_LIBS!$GST_LIBS$ac_delim
53598 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
53599 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
53600 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
53601 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
53602 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
53603 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
53604 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
53605 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
53606 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
53607 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
53608 VENDOR!$VENDOR$ac_delim
53609 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
53610 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
53611 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
53612 WXUNIV!$WXUNIV$ac_delim
53613 MONOLITHIC!$MONOLITHIC$ac_delim
53614 USE_PLUGINS!$USE_PLUGINS$ac_delim
53615 CXXWARNINGS!$CXXWARNINGS$ac_delim
53616 EXTRALIBS!$EXTRALIBS$ac_delim
53617 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
53618 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
53619 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
53620 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
53621 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
53622 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
53623 EXTRALIBS_GTKPRINT!$EXTRALIBS_GTKPRINT$ac_delim
53624 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
53625 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
53626 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
53627 UNICODE!$UNICODE$ac_delim
53628 BUILD!$BUILD$ac_delim
53629 DEBUG_INFO!$DEBUG_INFO$ac_delim
53630 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
53631 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
53632 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
53633 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
53634 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
53635 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
53636 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
53637 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
53638 RANLIB!$RANLIB$ac_delim
53639 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
53640 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
53641 INSTALL_DATA!$INSTALL_DATA$ac_delim
53642 LN_S!$LN_S$ac_delim
53643 SET_MAKE!$SET_MAKE$ac_delim
53644 MAKE_SET!$MAKE_SET$ac_delim
53645 AROPTIONS!$AROPTIONS$ac_delim
53646 STRIP!$STRIP$ac_delim
53647 NM!$NM$ac_delim
53648 INSTALL_DIR!$INSTALL_DIR$ac_delim
53649 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
53650 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
53651 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
53652 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
53653 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
53654 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
53655 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
53656 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
53657 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
53658 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
53659 SO_SUFFIX!$SO_SUFFIX$ac_delim
53660 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
53661 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
53662 LIBPREFIX!$LIBPREFIX$ac_delim
53663 LIBEXT!$LIBEXT$ac_delim
53664 DLLPREFIX!$DLLPREFIX$ac_delim
53665 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
53666 dlldir!$dlldir$ac_delim
53667 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
53668 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
53669 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
53670 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
53671 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
53672 PIC_FLAG!$PIC_FLAG$ac_delim
53673 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
53674 USE_SOVERSION!$USE_SOVERSION$ac_delim
53675 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
53676 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
53677 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
53678 USE_MACVERSION!$USE_MACVERSION$ac_delim
53679 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
53680 SONAME_FLAG!$SONAME_FLAG$ac_delim
53681 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
53682 BK_DEPS!$BK_DEPS$ac_delim
53683 WINDRES!$WINDRES$ac_delim
53684 REZ!$REZ$ac_delim
53685 SETFILE!$SETFILE$ac_delim
53686 GCC_PCH!$GCC_PCH$ac_delim
53687 ICC_PCH!$ICC_PCH$ac_delim
53688 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
53689 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
53690 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
53691 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
53692 _ACEOF
53693
53694   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53695     break
53696   elif $ac_last_try; then
53697     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53698 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53699    { (exit 1); exit 1; }; }
53700   else
53701     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53702   fi
53703 done
53704
53705 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53706 if test -n "$ac_eof"; then
53707   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53708   ac_eof=`expr $ac_eof + 1`
53709 fi
53710
53711 cat >>$CONFIG_STATUS <<_ACEOF
53712 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
53713 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53714 _ACEOF
53715 sed '
53716 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53717 s/^/s,@/; s/!/@,|#_!!_#|/
53718 :n
53719 t n
53720 s/'"$ac_delim"'$/,g/; t
53721 s/$/\\/; p
53722 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53723 ' >>$CONFIG_STATUS <conf$$subs.sed
53724 rm -f conf$$subs.sed
53725 cat >>$CONFIG_STATUS <<_ACEOF
53726 CEOF$ac_eof
53727 _ACEOF
53728
53729
53730 ac_delim='%!_!# '
53731 for ac_last_try in false false false false false :; do
53732   cat >conf$$subs.sed <<_ACEOF
53733 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
53734 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
53735 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
53736 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
53737 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
53738 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
53739 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
53740 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
53741 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
53742 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
53743 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
53744 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
53745 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
53746 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
53747 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
53748 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
53749 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
53750 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
53751 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53752 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
53753 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
53754 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
53755 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
53756 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
53757 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
53758 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
53759 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
53760 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
53761 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
53762 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
53763 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
53764 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
53765 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
53766 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
53767 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
53768 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
53769 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
53770 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
53771 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
53772 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
53773 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
53774 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
53775 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
53776 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
53777 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
53778 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
53779 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
53780 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
53781 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
53782 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
53783 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
53784 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
53785 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
53786 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
53787 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
53788 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
53789 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
53790 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
53791 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
53792 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
53793 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
53794 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
53795 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
53796 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
53797 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
53798 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
53799 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
53800 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
53801 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
53802 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
53803 COND_SHARED_0!$COND_SHARED_0$ac_delim
53804 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
53805 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
53806 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
53807 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
53808 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53809 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53810 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53811 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
53812 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
53813 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
53814 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
53815 COND_SHARED_1!$COND_SHARED_1$ac_delim
53816 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
53817 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
53818 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
53819 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
53820 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
53821 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
53822 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
53823 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
53824 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
53825 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
53826 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
53827 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
53828 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
53829 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
53830 _ACEOF
53831
53832   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53833     break
53834   elif $ac_last_try; then
53835     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53836 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53837    { (exit 1); exit 1; }; }
53838   else
53839     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53840   fi
53841 done
53842
53843 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53844 if test -n "$ac_eof"; then
53845   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53846   ac_eof=`expr $ac_eof + 1`
53847 fi
53848
53849 cat >>$CONFIG_STATUS <<_ACEOF
53850 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
53851 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53852 _ACEOF
53853 sed '
53854 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53855 s/^/s,@/; s/!/@,|#_!!_#|/
53856 :n
53857 t n
53858 s/'"$ac_delim"'$/,g/; t
53859 s/$/\\/; p
53860 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53861 ' >>$CONFIG_STATUS <conf$$subs.sed
53862 rm -f conf$$subs.sed
53863 cat >>$CONFIG_STATUS <<_ACEOF
53864 CEOF$ac_eof
53865 _ACEOF
53866
53867
53868 ac_delim='%!_!# '
53869 for ac_last_try in false false false false false :; do
53870   cat >conf$$subs.sed <<_ACEOF
53871 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
53872 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
53873 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
53874 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
53875 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
53876 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
53877 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
53878 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
53879 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
53880 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
53881 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
53882 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
53883 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
53884 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
53885 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
53886 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
53887 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
53888 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
53889 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
53890 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
53891 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
53892 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
53893 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
53894 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
53895 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
53896 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
53897 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
53898 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
53899 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
53900 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
53901 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
53902 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
53903 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
53904 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
53905 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
53906 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
53907 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
53908 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
53909 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
53910 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
53911 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
53912 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
53913 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
53914 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
53915 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
53916 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
53917 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
53918 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
53919 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
53920 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
53921 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
53922 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
53923 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
53924 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
53925 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
53926 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
53927 DEREZ!$DEREZ$ac_delim
53928 SHARED!$SHARED$ac_delim
53929 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
53930 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
53931 USE_GUI!$USE_GUI$ac_delim
53932 AFMINSTALL!$AFMINSTALL$ac_delim
53933 WIN32INSTALL!$WIN32INSTALL$ac_delim
53934 TOOLKIT!$TOOLKIT$ac_delim
53935 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
53936 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
53937 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
53938 cross_compiling!$cross_compiling$ac_delim
53939 WIDGET_SET!$WIDGET_SET$ac_delim
53940 WX_RELEASE!$WX_RELEASE$ac_delim
53941 WX_VERSION!$WX_VERSION$ac_delim
53942 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
53943 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
53944 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
53945 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
53946 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
53947 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
53948 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
53949 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
53950 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
53951 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
53952 GUIDIST!$GUIDIST$ac_delim
53953 DISTDIR!$DISTDIR$ac_delim
53954 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
53955 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
53956 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
53957 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
53958 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
53959 RESCOMP!$RESCOMP$ac_delim
53960 RESFLAGS!$RESFLAGS$ac_delim
53961 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
53962 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
53963 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
53964 LIBWXMACRES!$LIBWXMACRES$ac_delim
53965 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
53966 MACSETFILE!$MACSETFILE$ac_delim
53967 GCC!$GCC$ac_delim
53968 _ACEOF
53969
53970   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
53971     break
53972   elif $ac_last_try; then
53973     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
53974 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
53975    { (exit 1); exit 1; }; }
53976   else
53977     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
53978   fi
53979 done
53980
53981 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
53982 if test -n "$ac_eof"; then
53983   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
53984   ac_eof=`expr $ac_eof + 1`
53985 fi
53986
53987 cat >>$CONFIG_STATUS <<_ACEOF
53988 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
53989 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
53990 _ACEOF
53991 sed '
53992 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
53993 s/^/s,@/; s/!/@,|#_!!_#|/
53994 :n
53995 t n
53996 s/'"$ac_delim"'$/,g/; t
53997 s/$/\\/; p
53998 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
53999 ' >>$CONFIG_STATUS <conf$$subs.sed
54000 rm -f conf$$subs.sed
54001 cat >>$CONFIG_STATUS <<_ACEOF
54002 CEOF$ac_eof
54003 _ACEOF
54004
54005
54006 ac_delim='%!_!# '
54007 for ac_last_try in false false false false false :; do
54008   cat >conf$$subs.sed <<_ACEOF
54009 DLLTOOL!$DLLTOOL$ac_delim
54010 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54011 LIBOBJS!$LIBOBJS$ac_delim
54012 LTLIBOBJS!$LTLIBOBJS$ac_delim
54013 _ACEOF
54014
54015   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 4; then
54016     break
54017   elif $ac_last_try; then
54018     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54020    { (exit 1); exit 1; }; }
54021   else
54022     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54023   fi
54024 done
54025
54026 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54027 if test -n "$ac_eof"; then
54028   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54029   ac_eof=`expr $ac_eof + 1`
54030 fi
54031
54032 cat >>$CONFIG_STATUS <<_ACEOF
54033 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54035 _ACEOF
54036 sed '
54037 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54038 s/^/s,@/; s/!/@,|#_!!_#|/
54039 :n
54040 t n
54041 s/'"$ac_delim"'$/,g/; t
54042 s/$/\\/; p
54043 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54044 ' >>$CONFIG_STATUS <conf$$subs.sed
54045 rm -f conf$$subs.sed
54046 cat >>$CONFIG_STATUS <<_ACEOF
54047 :end
54048 s/|#_!!_#|//g
54049 CEOF$ac_eof
54050 _ACEOF
54051
54052
54053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54055 # trailing colons and then remove the whole line if VPATH becomes empty
54056 # (actually we leave an empty line to preserve line numbers).
54057 if test "x$srcdir" = x.; then
54058   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54059 s/:*\$(srcdir):*/:/
54060 s/:*\${srcdir}:*/:/
54061 s/:*@srcdir@:*/:/
54062 s/^\([^=]*=[     ]*\):*/\1/
54063 s/:*$//
54064 s/^[^=]*=[       ]*$//
54065 }'
54066 fi
54067
54068 cat >>$CONFIG_STATUS <<\_ACEOF
54069 fi # test -n "$CONFIG_FILES"
54070
54071
54072 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54073 do
54074   case $ac_tag in
54075   :[FHLC]) ac_mode=$ac_tag; continue;;
54076   esac
54077   case $ac_mode$ac_tag in
54078   :[FHL]*:*);;
54079   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54080 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54081    { (exit 1); exit 1; }; };;
54082   :[FH]-) ac_tag=-:-;;
54083   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54084   esac
54085   ac_save_IFS=$IFS
54086   IFS=:
54087   set x $ac_tag
54088   IFS=$ac_save_IFS
54089   shift
54090   ac_file=$1
54091   shift
54092
54093   case $ac_mode in
54094   :L) ac_source=$1;;
54095   :[FH])
54096     ac_file_inputs=
54097     for ac_f
54098     do
54099       case $ac_f in
54100       -) ac_f="$tmp/stdin";;
54101       *) # Look for the file first in the build tree, then in the source tree
54102          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54103          # because $ac_f cannot contain `:'.
54104          test -f "$ac_f" ||
54105            case $ac_f in
54106            [\\/$]*) false;;
54107            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54108            esac ||
54109            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54110 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54111    { (exit 1); exit 1; }; };;
54112       esac
54113       ac_file_inputs="$ac_file_inputs $ac_f"
54114     done
54115
54116     # Let's still pretend it is `configure' which instantiates (i.e., don't
54117     # use $as_me), people would be surprised to read:
54118     #    /* config.h.  Generated by config.status.  */
54119     configure_input="Generated from "`IFS=:
54120           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54121     if test x"$ac_file" != x-; then
54122       configure_input="$ac_file.  $configure_input"
54123       { echo "$as_me:$LINENO: creating $ac_file" >&5
54124 echo "$as_me: creating $ac_file" >&6;}
54125     fi
54126
54127     case $ac_tag in
54128     *:-:* | *:-) cat >"$tmp/stdin";;
54129     esac
54130     ;;
54131   esac
54132
54133   ac_dir=`$as_dirname -- "$ac_file" ||
54134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54135          X"$ac_file" : 'X\(//\)[^/]' \| \
54136          X"$ac_file" : 'X\(//\)$' \| \
54137          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54138 echo X"$ac_file" |
54139     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54140             s//\1/
54141             q
54142           }
54143           /^X\(\/\/\)[^/].*/{
54144             s//\1/
54145             q
54146           }
54147           /^X\(\/\/\)$/{
54148             s//\1/
54149             q
54150           }
54151           /^X\(\/\).*/{
54152             s//\1/
54153             q
54154           }
54155           s/.*/./; q'`
54156   { as_dir="$ac_dir"
54157   case $as_dir in #(
54158   -*) as_dir=./$as_dir;;
54159   esac
54160   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54161     as_dirs=
54162     while :; do
54163       case $as_dir in #(
54164       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54165       *) as_qdir=$as_dir;;
54166       esac
54167       as_dirs="'$as_qdir' $as_dirs"
54168       as_dir=`$as_dirname -- "$as_dir" ||
54169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54170          X"$as_dir" : 'X\(//\)[^/]' \| \
54171          X"$as_dir" : 'X\(//\)$' \| \
54172          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54173 echo X"$as_dir" |
54174     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54175             s//\1/
54176             q
54177           }
54178           /^X\(\/\/\)[^/].*/{
54179             s//\1/
54180             q
54181           }
54182           /^X\(\/\/\)$/{
54183             s//\1/
54184             q
54185           }
54186           /^X\(\/\).*/{
54187             s//\1/
54188             q
54189           }
54190           s/.*/./; q'`
54191       test -d "$as_dir" && break
54192     done
54193     test -z "$as_dirs" || eval "mkdir $as_dirs"
54194   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54195 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54196    { (exit 1); exit 1; }; }; }
54197   ac_builddir=.
54198
54199 case "$ac_dir" in
54200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54201 *)
54202   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54203   # A ".." for each directory in $ac_dir_suffix.
54204   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54205   case $ac_top_builddir_sub in
54206   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54207   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54208   esac ;;
54209 esac
54210 ac_abs_top_builddir=$ac_pwd
54211 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54212 # for backward compatibility:
54213 ac_top_builddir=$ac_top_build_prefix
54214
54215 case $srcdir in
54216   .)  # We are building in place.
54217     ac_srcdir=.
54218     ac_top_srcdir=$ac_top_builddir_sub
54219     ac_abs_top_srcdir=$ac_pwd ;;
54220   [\\/]* | ?:[\\/]* )  # Absolute name.
54221     ac_srcdir=$srcdir$ac_dir_suffix;
54222     ac_top_srcdir=$srcdir
54223     ac_abs_top_srcdir=$srcdir ;;
54224   *) # Relative name.
54225     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54226     ac_top_srcdir=$ac_top_build_prefix$srcdir
54227     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54228 esac
54229 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54230
54231
54232   case $ac_mode in
54233   :F)
54234   #
54235   # CONFIG_FILE
54236   #
54237
54238   case $INSTALL in
54239   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54240   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54241   esac
54242 _ACEOF
54243
54244 cat >>$CONFIG_STATUS <<\_ACEOF
54245 # If the template does not know about datarootdir, expand it.
54246 # FIXME: This hack should be removed a few years after 2.60.
54247 ac_datarootdir_hack=; ac_datarootdir_seen=
54248
54249 case `sed -n '/datarootdir/ {
54250   p
54251   q
54252 }
54253 /@datadir@/p
54254 /@docdir@/p
54255 /@infodir@/p
54256 /@localedir@/p
54257 /@mandir@/p
54258 ' $ac_file_inputs` in
54259 *datarootdir*) ac_datarootdir_seen=yes;;
54260 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
54261   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
54262 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
54263 _ACEOF
54264 cat >>$CONFIG_STATUS <<_ACEOF
54265   ac_datarootdir_hack='
54266   s&@datadir@&$datadir&g
54267   s&@docdir@&$docdir&g
54268   s&@infodir@&$infodir&g
54269   s&@localedir@&$localedir&g
54270   s&@mandir@&$mandir&g
54271     s&\\\${datarootdir}&$datarootdir&g' ;;
54272 esac
54273 _ACEOF
54274
54275 # Neutralize VPATH when `$srcdir' = `.'.
54276 # Shell code in configure.ac might set extrasub.
54277 # FIXME: do we really want to maintain this feature?
54278 cat >>$CONFIG_STATUS <<_ACEOF
54279   sed "$ac_vpsub
54280 $extrasub
54281 _ACEOF
54282 cat >>$CONFIG_STATUS <<\_ACEOF
54283 :t
54284 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54285 s&@configure_input@&$configure_input&;t t
54286 s&@top_builddir@&$ac_top_builddir_sub&;t t
54287 s&@srcdir@&$ac_srcdir&;t t
54288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
54289 s&@top_srcdir@&$ac_top_srcdir&;t t
54290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
54291 s&@builddir@&$ac_builddir&;t t
54292 s&@abs_builddir@&$ac_abs_builddir&;t t
54293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
54294 s&@INSTALL@&$ac_INSTALL&;t t
54295 $ac_datarootdir_hack
54296 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" | sed -f "$tmp/subs-3.sed" | sed -f "$tmp/subs-4.sed" | sed -f "$tmp/subs-5.sed" >$tmp/out
54297
54298 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
54299   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
54300   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
54301   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54302 which seems to be undefined.  Please make sure it is defined." >&5
54303 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
54304 which seems to be undefined.  Please make sure it is defined." >&2;}
54305
54306   rm -f "$tmp/stdin"
54307   case $ac_file in
54308   -) cat "$tmp/out"; rm -f "$tmp/out";;
54309   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
54310   esac
54311  ;;
54312   :H)
54313   #
54314   # CONFIG_HEADER
54315   #
54316 _ACEOF
54317
54318 # Transform confdefs.h into a sed script `conftest.defines', that
54319 # substitutes the proper values into config.h.in to produce config.h.
54320 rm -f conftest.defines conftest.tail
54321 # First, append a space to every undef/define line, to ease matching.
54322 echo 's/$/ /' >conftest.defines
54323 # Then, protect against being on the right side of a sed subst, or in
54324 # an unquoted here document, in config.status.  If some macros were
54325 # called several times there might be several #defines for the same
54326 # symbol, which is useless.  But do not sort them, since the last
54327 # AC_DEFINE must be honored.
54328 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
54329 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
54330 # NAME is the cpp macro being defined, VALUE is the value it is being given.
54331 # PARAMS is the parameter list in the macro definition--in most cases, it's
54332 # just an empty string.
54333 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
54334 ac_dB='\\)[      (].*,\\1define\\2'
54335 ac_dC=' '
54336 ac_dD=' ,'
54337
54338 uniq confdefs.h |
54339   sed -n '
54340         t rset
54341         :rset
54342         s/^[     ]*#[    ]*define[       ][      ]*//
54343         t ok
54344         d
54345         :ok
54346         s/[\\&,]/\\&/g
54347         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
54348         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
54349   ' >>conftest.defines
54350
54351 # Remove the space that was appended to ease matching.
54352 # Then replace #undef with comments.  This is necessary, for
54353 # example, in the case of _POSIX_SOURCE, which is predefined and required
54354 # on some systems where configure will not decide to define it.
54355 # (The regexp can be short, since the line contains either #define or #undef.)
54356 echo 's/ $//
54357 s,^[     #]*u.*,/* & */,' >>conftest.defines
54358
54359 # Break up conftest.defines:
54360 ac_max_sed_lines=50
54361
54362 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
54363 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
54364 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
54365 # et cetera.
54366 ac_in='$ac_file_inputs'
54367 ac_out='"$tmp/out1"'
54368 ac_nxt='"$tmp/out2"'
54369
54370 while :
54371 do
54372   # Write a here document:
54373     cat >>$CONFIG_STATUS <<_ACEOF
54374     # First, check the format of the line:
54375     cat >"\$tmp/defines.sed" <<\\CEOF
54376 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
54377 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
54378 b
54379 :def
54380 _ACEOF
54381   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
54382   echo 'CEOF
54383     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
54384   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
54385   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
54386   grep . conftest.tail >/dev/null || break
54387   rm -f conftest.defines
54388   mv conftest.tail conftest.defines
54389 done
54390 rm -f conftest.defines conftest.tail
54391
54392 echo "ac_result=$ac_in" >>$CONFIG_STATUS
54393 cat >>$CONFIG_STATUS <<\_ACEOF
54394   if test x"$ac_file" != x-; then
54395     echo "/* $configure_input  */" >"$tmp/config.h"
54396     cat "$ac_result" >>"$tmp/config.h"
54397     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
54398       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
54399 echo "$as_me: $ac_file is unchanged" >&6;}
54400     else
54401       rm -f $ac_file
54402       mv "$tmp/config.h" $ac_file
54403     fi
54404   else
54405     echo "/* $configure_input  */"
54406     cat "$ac_result"
54407   fi
54408   rm -f "$tmp/out12"
54409  ;;
54410
54411   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
54412 echo "$as_me: executing $ac_file commands" >&6;}
54413  ;;
54414   esac
54415
54416
54417   case $ac_file$ac_mode in
54418     "rcdefs.h":C)
54419             mkdir -p $outdir &&
54420             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
54421          ;;
54422     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
54423     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
54424     "wx-config":C)  rm -f wx-config
54425                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
54426                     ;;
54427
54428   esac
54429 done # for ac_tag
54430
54431
54432 { (exit 0); exit 0; }
54433 _ACEOF
54434 chmod +x $CONFIG_STATUS
54435 ac_clean_files=$ac_clean_files_save
54436
54437
54438 # configure is writing to config.log, and then calls config.status.
54439 # config.status does its own redirection, appending to config.log.
54440 # Unfortunately, on DOS this fails, as config.log is still kept open
54441 # by configure, so config.status won't be able to write to it; its
54442 # output is simply discarded.  So we exec the FD to /dev/null,
54443 # effectively closing config.log, so it can be properly (re)opened and
54444 # appended to by config.status.  When coming back to configure, we
54445 # need to make the FD available again.
54446 if test "$no_create" != yes; then
54447   ac_cs_success=:
54448   ac_config_status_args=
54449   test "$silent" = yes &&
54450     ac_config_status_args="$ac_config_status_args --quiet"
54451   exec 5>/dev/null
54452   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
54453   exec 5>>config.log
54454   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
54455   # would make configure fail if this is the last instruction.
54456   $ac_cs_success || { (exit 1); exit 1; }
54457 fi
54458
54459 #
54460 # CONFIG_SUBDIRS section.
54461 #
54462 if test "$no_recursion" != yes; then
54463
54464   # Remove --cache-file and --srcdir arguments so they do not pile up.
54465   ac_sub_configure_args=
54466   ac_prev=
54467   eval "set x $ac_configure_args"
54468   shift
54469   for ac_arg
54470   do
54471     if test -n "$ac_prev"; then
54472       ac_prev=
54473       continue
54474     fi
54475     case $ac_arg in
54476     -cache-file | --cache-file | --cache-fil | --cache-fi \
54477     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
54478       ac_prev=cache_file ;;
54479     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
54480     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
54481     | --c=*)
54482       ;;
54483     --config-cache | -C)
54484       ;;
54485     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
54486       ac_prev=srcdir ;;
54487     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
54488       ;;
54489     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
54490       ac_prev=prefix ;;
54491     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
54492       ;;
54493     *)
54494       case $ac_arg in
54495       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54496       esac
54497       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
54498     esac
54499   done
54500
54501   # Always prepend --prefix to ensure using the same prefix
54502   # in subdir configurations.
54503   ac_arg="--prefix=$prefix"
54504   case $ac_arg in
54505   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
54506   esac
54507   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
54508
54509   # Pass --silent
54510   if test "$silent" = yes; then
54511     ac_sub_configure_args="--silent $ac_sub_configure_args"
54512   fi
54513
54514   ac_popdir=`pwd`
54515   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
54516
54517     # Do not complain, so a configure script can configure whichever
54518     # parts of a large source tree are present.
54519     test -d "$srcdir/$ac_dir" || continue
54520
54521     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
54522     echo "$as_me:$LINENO: $ac_msg" >&5
54523     echo "$ac_msg" >&6
54524     { as_dir="$ac_dir"
54525   case $as_dir in #(
54526   -*) as_dir=./$as_dir;;
54527   esac
54528   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54529     as_dirs=
54530     while :; do
54531       case $as_dir in #(
54532       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54533       *) as_qdir=$as_dir;;
54534       esac
54535       as_dirs="'$as_qdir' $as_dirs"
54536       as_dir=`$as_dirname -- "$as_dir" ||
54537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54538          X"$as_dir" : 'X\(//\)[^/]' \| \
54539          X"$as_dir" : 'X\(//\)$' \| \
54540          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54541 echo X"$as_dir" |
54542     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54543             s//\1/
54544             q
54545           }
54546           /^X\(\/\/\)[^/].*/{
54547             s//\1/
54548             q
54549           }
54550           /^X\(\/\/\)$/{
54551             s//\1/
54552             q
54553           }
54554           /^X\(\/\).*/{
54555             s//\1/
54556             q
54557           }
54558           s/.*/./; q'`
54559       test -d "$as_dir" && break
54560     done
54561     test -z "$as_dirs" || eval "mkdir $as_dirs"
54562   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54563 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54564    { (exit 1); exit 1; }; }; }
54565     ac_builddir=.
54566
54567 case "$ac_dir" in
54568 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54569 *)
54570   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54571   # A ".." for each directory in $ac_dir_suffix.
54572   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54573   case $ac_top_builddir_sub in
54574   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54575   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54576   esac ;;
54577 esac
54578 ac_abs_top_builddir=$ac_pwd
54579 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54580 # for backward compatibility:
54581 ac_top_builddir=$ac_top_build_prefix
54582
54583 case $srcdir in
54584   .)  # We are building in place.
54585     ac_srcdir=.
54586     ac_top_srcdir=$ac_top_builddir_sub
54587     ac_abs_top_srcdir=$ac_pwd ;;
54588   [\\/]* | ?:[\\/]* )  # Absolute name.
54589     ac_srcdir=$srcdir$ac_dir_suffix;
54590     ac_top_srcdir=$srcdir
54591     ac_abs_top_srcdir=$srcdir ;;
54592   *) # Relative name.
54593     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54594     ac_top_srcdir=$ac_top_build_prefix$srcdir
54595     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54596 esac
54597 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54598
54599
54600     cd "$ac_dir"
54601
54602     # Check for guested configure; otherwise get Cygnus style configure.
54603     if test -f "$ac_srcdir/configure.gnu"; then
54604       ac_sub_configure=$ac_srcdir/configure.gnu
54605     elif test -f "$ac_srcdir/configure"; then
54606       ac_sub_configure=$ac_srcdir/configure
54607     elif test -f "$ac_srcdir/configure.in"; then
54608       # This should be Cygnus configure.
54609       ac_sub_configure=$ac_aux_dir/configure
54610     else
54611       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
54612 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
54613       ac_sub_configure=
54614     fi
54615
54616     # The recursion is here.
54617     if test -n "$ac_sub_configure"; then
54618       # Make the cache file name correct relative to the subdirectory.
54619       case $cache_file in
54620       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
54621       *) # Relative name.
54622         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
54623       esac
54624
54625       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
54626 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
54627       # The eval makes quoting arguments work.
54628       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
54629            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
54630         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
54631 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
54632    { (exit 1); exit 1; }; }
54633     fi
54634
54635     cd "$ac_popdir"
54636   done
54637 fi
54638
54639
54640 echo
54641 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
54642 echo ""
54643 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
54644 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
54645
54646 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
54647 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
54648 echo $ECHO_N "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}$ECHO_C"
54649 if test "$wxUSE_UNICODE" = "yes"; then
54650     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
54651         echo " (using UTF-8)"
54652     else
54653         echo " (using wchar_t)"
54654     fi
54655 else
54656     echo
54657 fi
54658
54659 echo "  What level of wxWidgets compatibility should be enabled?"
54660 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
54661 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
54662
54663 echo "  Which libraries should wxWidgets use?"
54664 echo "                                       STL                ${wxUSE_STL}"
54665 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
54666 echo "                                       png                ${wxUSE_LIBPNG-none}"
54667 echo "                                       regex              ${wxUSE_REGEX}"
54668 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
54669 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
54670 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
54671 fi
54672 echo "                                       zlib               ${wxUSE_ZLIB}"
54673 echo "                                       expat              ${wxUSE_EXPAT}"
54674 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
54675 echo "                                       sdl                ${wxUSE_LIBSDL}"
54676
54677 echo ""
54678