fix last commit, it seems spaces are not allowed between macro and paren
[wxWidgets.git] / configure
1 #! /bin/sh
2 # From configure.in Id: configure.in 47747 2007-07-27 14:57:31Z VZ .
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 RANLIB
683 AR
684 INSTALL_PROGRAM
685 INSTALL_SCRIPT
686 INSTALL_DATA
687 STRIP
688 WINDRES
689 DLLTOOL
690 IF_GNU_MAKE
691 LN_S
692 subdirs
693 PKG_CONFIG
694 GTK_CFLAGS
695 GTK_LIBS
696 GTK_CONFIG
697 DIRECTFB_CFLAGS
698 DIRECTFB_LIBS
699 XMKMF
700 X_CFLAGS
701 X_PRE_LIBS
702 X_LIBS
703 X_EXTRA_LIBS
704 PANGOX_CFLAGS
705 PANGOX_LIBS
706 PANGOFT2_CFLAGS
707 PANGOFT2_LIBS
708 PANGOXFT_CFLAGS
709 PANGOXFT_LIBS
710 CFLAGS_VISIBILITY
711 CXXFLAGS_VISIBILITY
712 REZ
713 DEREZ
714 SETFILE
715 LIBICONV
716 SDL_CONFIG
717 SDL_CFLAGS
718 SDL_LIBS
719 LIBGNOMEPRINTUI_CFLAGS
720 LIBGNOMEPRINTUI_LIBS
721 GNOMEVFS_CFLAGS
722 GNOMEVFS_LIBS
723 HILDON_CFLAGS
724 HILDON_LIBS
725 CAIRO_CFLAGS
726 CAIRO_LIBS
727 GST_CFLAGS
728 GST_LIBS
729 ALL_WX_LIBS
730 BUILT_WX_LIBS
731 STD_BASE_LIBS
732 STD_GUI_LIBS
733 wxUSE_ZLIB
734 wxUSE_REGEX
735 wxUSE_EXPAT
736 wxUSE_ODBC
737 wxUSE_LIBJPEG
738 wxUSE_LIBPNG
739 wxUSE_LIBTIFF
740 VENDOR
741 OFFICIAL_BUILD
742 WX_FLAVOUR
743 WX_LIB_FLAVOUR
744 WXUNIV
745 MONOLITHIC
746 USE_PLUGINS
747 CXXWARNINGS
748 EXTRALIBS
749 EXTRALIBS_XML
750 EXTRALIBS_HTML
751 EXTRALIBS_ODBC
752 EXTRALIBS_GUI
753 EXTRALIBS_OPENGL
754 EXTRALIBS_SDL
755 WITH_PLUGIN_SDL
756 EXTRALIBS_GNOMEPRINT
757 EXTRALIBS_GNOMEVFS
758 EXTRALIBS_HILDON
759 UNICODE
760 BUILD
761 DEBUG_INFO
762 DEBUG_FLAG
763 TOOLKIT_LOWERCASE
764 TOOLKIT_VERSION
765 SAMPLES_RPATH_FLAG
766 SAMPLES_RPATH_POSTLINK
767 HOST_SUFFIX
768 CPPUNIT_CFLAGS
769 CPPUNIT_LIBS
770 SET_MAKE
771 MAKE_SET
772 AROPTIONS
773 NM
774 INSTALL_DIR
775 LDFLAGS_GUI
776 PLATFORM_UNIX
777 PLATFORM_WIN32
778 PLATFORM_MSDOS
779 PLATFORM_MAC
780 PLATFORM_MACOS
781 PLATFORM_MACOSX
782 PLATFORM_OS2
783 PLATFORM_BEOS
784 SO_SUFFIX
785 SO_SUFFIX_MODULE
786 DLLIMP_SUFFIX
787 LIBPREFIX
788 LIBEXT
789 DLLPREFIX
790 DLLPREFIX_MODULE
791 dlldir
792 AIX_CXX_LD
793 SHARED_LD_CC
794 SHARED_LD_CXX
795 SHARED_LD_MODULE_CC
796 SHARED_LD_MODULE_CXX
797 PIC_FLAG
798 WINDOWS_IMPLIB
799 USE_SOVERSION
800 USE_SOVERLINUX
801 USE_SOVERSOLARIS
802 USE_SOVERCYGWIN
803 USE_MACVERSION
804 USE_SOSYMLINKS
805 SONAME_FLAG
806 DEPS_TRACKING
807 BK_DEPS
808 GCC_PCH
809 ICC_PCH
810 BK_MAKE_PCH
811 COND_BUILD_DEBUG
812 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT
813 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT
814 COND_BUILD_DEBUG_UNICODE_0
815 COND_BUILD_DEBUG_UNICODE_1
816 COND_BUILD_RELEASE
817 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT
818 COND_BUILD_RELEASE_UNICODE_0
819 COND_BUILD_RELEASE_UNICODE_1
820 COND_DEBUG_FLAG_1
821 COND_DEBUG_INFO_0
822 COND_DEBUG_INFO_1
823 COND_DEPS_TRACKING_0
824 COND_DEPS_TRACKING_1
825 COND_GCC_PCH_1
826 COND_ICC_PCH_1
827 COND_MONOLITHIC_0
828 COND_MONOLITHIC_0_SHARED_0
829 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1
830 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1
831 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1
832 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1
833 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1
834 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1
835 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1
836 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1
837 COND_MONOLITHIC_0_SHARED_0_USE_STC_1
838 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1
839 COND_MONOLITHIC_0_SHARED_1
840 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1
841 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1
842 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1
843 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1
844 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1
845 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1
846 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1
847 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1
848 COND_MONOLITHIC_0_SHARED_1_USE_STC_1
849 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1
850 COND_MONOLITHIC_0_USE_AUI_1
851 COND_MONOLITHIC_0_USE_GUI_1
852 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1
853 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1
854 COND_MONOLITHIC_0_USE_HTML_1
855 COND_MONOLITHIC_0_USE_MEDIA_1
856 COND_MONOLITHIC_0_USE_ODBC_1
857 COND_MONOLITHIC_0_USE_QA_1
858 COND_MONOLITHIC_0_USE_RICHTEXT_1
859 COND_MONOLITHIC_0_USE_STC_1
860 COND_MONOLITHIC_0_USE_XRC_1
861 COND_MONOLITHIC_1
862 COND_MONOLITHIC_1_SHARED_0
863 COND_MONOLITHIC_1_SHARED_1
864 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1
865 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1
866 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1
867 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1
868 COND_PLATFORM_MACOSX_1
869 COND_PLATFORM_MACOSX_1_TOOLKIT_
870 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA
871 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK
872 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC
873 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1
874 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF
875 COND_PLATFORM_MACOSX_1_TOOLKIT_X11
876 COND_PLATFORM_MACOSX_1_USE_GUI_1
877 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1
878 COND_PLATFORM_MACOS_1
879 COND_PLATFORM_MAC_1
880 COND_PLATFORM_MSDOS_0
881 COND_PLATFORM_MSDOS_1
882 COND_PLATFORM_OS2_1
883 COND_PLATFORM_UNIX_0
884 COND_PLATFORM_UNIX_1
885 COND_PLATFORM_UNIX_1_TOOLKIT_MGL
886 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1
887 COND_PLATFORM_UNIX_1_USE_GUI_1
888 COND_PLATFORM_UNIX_1_USE_PLUGINS_0
889 COND_PLATFORM_WIN32_0
890 COND_PLATFORM_WIN32_1
891 COND_SHARED_0
892 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0
893 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0
894 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0
895 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1
896 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
897 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
898 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
899 COND_SHARED_0_USE_STC_1
900 COND_SHARED_0_USE_XRC_1
901 COND_SHARED_0_WXUSE_EXPAT_BUILTIN
902 COND_SHARED_0_WXUSE_ODBC_BUILTIN
903 COND_SHARED_0_WXUSE_REGEX_BUILTIN
904 COND_SHARED_0_WXUSE_ZLIB_BUILTIN
905 COND_SHARED_1
906 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1
907 COND_SHARED_1_USE_XRC_1
908 COND_TOOLKIT_
909 COND_TOOLKIT_COCOA
910 COND_TOOLKIT_COCOA_USE_GUI_1
911 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0
912 COND_TOOLKIT_DFB
913 COND_TOOLKIT_DFB_USE_GUI_1
914 COND_TOOLKIT_GTK
915 COND_TOOLKIT_GTK_TOOLKIT_VERSION_
916 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2
917 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1
918 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0
919 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1
920 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0
921 COND_TOOLKIT_GTK_USE_GUI_1
922 COND_TOOLKIT_MAC
923 COND_TOOLKIT_MAC_USE_GUI_1
924 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0
925 COND_TOOLKIT_MGL
926 COND_TOOLKIT_MGL_USE_GUI_1
927 COND_TOOLKIT_MOTIF
928 COND_TOOLKIT_MOTIF_USE_GUI_1
929 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0
930 COND_TOOLKIT_MSW
931 COND_TOOLKIT_MSW_USE_GUI_1
932 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0
933 COND_TOOLKIT_MSW_WXUNIV_0
934 COND_TOOLKIT_PM
935 COND_TOOLKIT_PM_USE_GUI_1
936 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0
937 COND_TOOLKIT_WINCE
938 COND_TOOLKIT_WINCE_USE_GUI_1
939 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0
940 COND_TOOLKIT_WINCE_WXUNIV_0
941 COND_TOOLKIT_X11
942 COND_TOOLKIT_X11_USE_GUI_1
943 COND_UNICODE_1
944 COND_USE_EXCEPTIONS_0
945 COND_USE_EXCEPTIONS_1
946 COND_USE_GUI_0
947 COND_USE_GUI_1
948 COND_USE_GUI_1_USE_OPENGL_1
949 COND_USE_GUI_1_WXUNIV_0
950 COND_USE_GUI_1_WXUNIV_1
951 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN
952 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN
953 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN
954 COND_USE_ODBC_1
955 COND_USE_OPENGL_1
956 COND_USE_PCH_1
957 COND_USE_PLUGINS_0
958 COND_USE_RTTI_0
959 COND_USE_RTTI_1
960 COND_USE_SOSYMLINKS_1
961 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1
962 COND_USE_SOVERLINUX_1
963 COND_USE_SOVERSION_0
964 COND_USE_SOVERSOLARIS_1
965 COND_USE_STC_1
966 COND_USE_THREADS_0
967 COND_USE_THREADS_1
968 COND_USE_XRC_1
969 COND_WINDOWS_IMPLIB_1
970 COND_WITH_PLUGIN_SDL_1
971 COND_WXUNIV_0
972 COND_WXUNIV_1
973 COND_WXUSE_EXPAT_BUILTIN
974 COND_WXUSE_LIBJPEG_BUILTIN
975 COND_WXUSE_LIBPNG_BUILTIN
976 COND_WXUSE_LIBTIFF_BUILTIN
977 COND_WXUSE_ODBC_BUILTIN
978 COND_WXUSE_REGEX_BUILTIN
979 COND_WXUSE_ZLIB_BUILTIN
980 SHARED
981 WX_LIBRARY_BASENAME_NOGUI
982 WX_LIBRARY_BASENAME_GUI
983 USE_GUI
984 AFMINSTALL
985 WIN32INSTALL
986 TOOLKIT
987 TOOLKIT_DIR
988 TOOLCHAIN_NAME
989 TOOLCHAIN_FULLNAME
990 cross_compiling
991 WIDGET_SET
992 WX_RELEASE
993 WX_VERSION
994 WX_SUBVERSION
995 WX_CHARTYPE
996 WX_DEBUGTYPE
997 WXCONFIG_CPPFLAGS
998 WXCONFIG_CFLAGS
999 WXCONFIG_CXXFLAGS
1000 WXCONFIG_LIBS
1001 WXCONFIG_RPATH
1002 WXCONFIG_LDFLAGS_GUI
1003 WXCONFIG_RESFLAGS
1004 EXE_LINKER
1005 GUIDIST
1006 DISTDIR
1007 SAMPLES_SUBDIRS
1008 LDFLAGS_GL
1009 OPENGL_LIBS
1010 DMALLOC_LIBS
1011 WX_VERSION_TAG
1012 RESCOMP
1013 RESFLAGS
1014 RESPROGRAMOBJ
1015 WX_RESOURCES_MACOSX_ASCII
1016 WX_RESOURCES_MACOSX_DATA
1017 LIBWXMACRES
1018 POSTLINK_COMMAND
1019 MACSETFILE
1020 GCC
1021 CPPUNIT_CONFIG
1022 LIBOBJS
1023 LTLIBOBJS'
1024 ac_subst_files=''
1025       ac_precious_vars='build_alias
1026 host_alias
1027 target_alias
1028 CC
1029 CFLAGS
1030 LDFLAGS
1031 LIBS
1032 CPPFLAGS
1033 CPP
1034 CXX
1035 CXXFLAGS
1036 CCC
1037 PKG_CONFIG
1038 DIRECTFB_CFLAGS
1039 DIRECTFB_LIBS
1040 XMKMF
1041 PANGOX_CFLAGS
1042 PANGOX_LIBS
1043 PANGOFT2_CFLAGS
1044 PANGOFT2_LIBS
1045 PANGOXFT_CFLAGS
1046 PANGOXFT_LIBS
1047 LIBGNOMEPRINTUI_CFLAGS
1048 LIBGNOMEPRINTUI_LIBS
1049 GNOMEVFS_CFLAGS
1050 GNOMEVFS_LIBS
1051 HILDON_CFLAGS
1052 HILDON_LIBS
1053 CAIRO_CFLAGS
1054 CAIRO_LIBS
1055 GST_CFLAGS
1056 GST_LIBS'
1057 ac_subdirs_all='src/expat'
1058
1059 # Initialize some variables set by options.
1060 ac_init_help=
1061 ac_init_version=false
1062 # The variables have the same names as the options, with
1063 # dashes changed to underlines.
1064 cache_file=/dev/null
1065 exec_prefix=NONE
1066 no_create=
1067 no_recursion=
1068 prefix=NONE
1069 program_prefix=NONE
1070 program_suffix=NONE
1071 program_transform_name=s,x,x,
1072 silent=
1073 site=
1074 srcdir=
1075 verbose=
1076 x_includes=NONE
1077 x_libraries=NONE
1078
1079 # Installation directory options.
1080 # These are left unexpanded so users can "make install exec_prefix=/foo"
1081 # and all the variables that are supposed to be based on exec_prefix
1082 # by default will actually change.
1083 # Use braces instead of parens because sh, perl, etc. also accept them.
1084 # (The list follows the same order as the GNU Coding Standards.)
1085 bindir='${exec_prefix}/bin'
1086 sbindir='${exec_prefix}/sbin'
1087 libexecdir='${exec_prefix}/libexec'
1088 datarootdir='${prefix}/share'
1089 datadir='${datarootdir}'
1090 sysconfdir='${prefix}/etc'
1091 sharedstatedir='${prefix}/com'
1092 localstatedir='${prefix}/var'
1093 includedir='${prefix}/include'
1094 oldincludedir='/usr/include'
1095 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1096 infodir='${datarootdir}/info'
1097 htmldir='${docdir}'
1098 dvidir='${docdir}'
1099 pdfdir='${docdir}'
1100 psdir='${docdir}'
1101 libdir='${exec_prefix}/lib'
1102 localedir='${datarootdir}/locale'
1103 mandir='${datarootdir}/man'
1104
1105 ac_prev=
1106 ac_dashdash=
1107 for ac_option
1108 do
1109   # If the previous option needs an argument, assign it.
1110   if test -n "$ac_prev"; then
1111     eval $ac_prev=\$ac_option
1112     ac_prev=
1113     continue
1114   fi
1115
1116   case $ac_option in
1117   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1118   *)    ac_optarg=yes ;;
1119   esac
1120
1121   # Accept the important Cygnus configure options, so we can diagnose typos.
1122
1123   case $ac_dashdash$ac_option in
1124   --)
1125     ac_dashdash=yes ;;
1126
1127   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1128     ac_prev=bindir ;;
1129   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1130     bindir=$ac_optarg ;;
1131
1132   -build | --build | --buil | --bui | --bu)
1133     ac_prev=build_alias ;;
1134   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1135     build_alias=$ac_optarg ;;
1136
1137   -cache-file | --cache-file | --cache-fil | --cache-fi \
1138   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1139     ac_prev=cache_file ;;
1140   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1141   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1142     cache_file=$ac_optarg ;;
1143
1144   --config-cache | -C)
1145     cache_file=config.cache ;;
1146
1147   -datadir | --datadir | --datadi | --datad)
1148     ac_prev=datadir ;;
1149   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1150     datadir=$ac_optarg ;;
1151
1152   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1153   | --dataroo | --dataro | --datar)
1154     ac_prev=datarootdir ;;
1155   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1156   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1157     datarootdir=$ac_optarg ;;
1158
1159   -disable-* | --disable-*)
1160     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1161     # Reject names that are not valid shell variable names.
1162     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1163       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1164    { (exit 1); exit 1; }; }
1165     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1166     eval enable_$ac_feature=no ;;
1167
1168   -docdir | --docdir | --docdi | --doc | --do)
1169     ac_prev=docdir ;;
1170   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1171     docdir=$ac_optarg ;;
1172
1173   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1174     ac_prev=dvidir ;;
1175   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1176     dvidir=$ac_optarg ;;
1177
1178   -enable-* | --enable-*)
1179     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1182       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1183    { (exit 1); exit 1; }; }
1184     ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1185     eval enable_$ac_feature=\$ac_optarg ;;
1186
1187   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1188   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1189   | --exec | --exe | --ex)
1190     ac_prev=exec_prefix ;;
1191   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1192   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1193   | --exec=* | --exe=* | --ex=*)
1194     exec_prefix=$ac_optarg ;;
1195
1196   -gas | --gas | --ga | --g)
1197     # Obsolete; use --with-gas.
1198     with_gas=yes ;;
1199
1200   -help | --help | --hel | --he | -h)
1201     ac_init_help=long ;;
1202   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1203     ac_init_help=recursive ;;
1204   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1205     ac_init_help=short ;;
1206
1207   -host | --host | --hos | --ho)
1208     ac_prev=host_alias ;;
1209   -host=* | --host=* | --hos=* | --ho=*)
1210     host_alias=$ac_optarg ;;
1211
1212   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1213     ac_prev=htmldir ;;
1214   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1215   | --ht=*)
1216     htmldir=$ac_optarg ;;
1217
1218   -includedir | --includedir | --includedi | --included | --include \
1219   | --includ | --inclu | --incl | --inc)
1220     ac_prev=includedir ;;
1221   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1222   | --includ=* | --inclu=* | --incl=* | --inc=*)
1223     includedir=$ac_optarg ;;
1224
1225   -infodir | --infodir | --infodi | --infod | --info | --inf)
1226     ac_prev=infodir ;;
1227   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1228     infodir=$ac_optarg ;;
1229
1230   -libdir | --libdir | --libdi | --libd)
1231     ac_prev=libdir ;;
1232   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1233     libdir=$ac_optarg ;;
1234
1235   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1236   | --libexe | --libex | --libe)
1237     ac_prev=libexecdir ;;
1238   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1239   | --libexe=* | --libex=* | --libe=*)
1240     libexecdir=$ac_optarg ;;
1241
1242   -localedir | --localedir | --localedi | --localed | --locale)
1243     ac_prev=localedir ;;
1244   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1245     localedir=$ac_optarg ;;
1246
1247   -localstatedir | --localstatedir | --localstatedi | --localstated \
1248   | --localstate | --localstat | --localsta | --localst | --locals)
1249     ac_prev=localstatedir ;;
1250   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1251   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1252     localstatedir=$ac_optarg ;;
1253
1254   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1255     ac_prev=mandir ;;
1256   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1257     mandir=$ac_optarg ;;
1258
1259   -nfp | --nfp | --nf)
1260     # Obsolete; use --without-fp.
1261     with_fp=no ;;
1262
1263   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1264   | --no-cr | --no-c | -n)
1265     no_create=yes ;;
1266
1267   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1268   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1269     no_recursion=yes ;;
1270
1271   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1272   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1273   | --oldin | --oldi | --old | --ol | --o)
1274     ac_prev=oldincludedir ;;
1275   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1276   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1277   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1278     oldincludedir=$ac_optarg ;;
1279
1280   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1281     ac_prev=prefix ;;
1282   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1283     prefix=$ac_optarg ;;
1284
1285   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1286   | --program-pre | --program-pr | --program-p)
1287     ac_prev=program_prefix ;;
1288   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1289   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1290     program_prefix=$ac_optarg ;;
1291
1292   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1293   | --program-suf | --program-su | --program-s)
1294     ac_prev=program_suffix ;;
1295   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1296   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1297     program_suffix=$ac_optarg ;;
1298
1299   -program-transform-name | --program-transform-name \
1300   | --program-transform-nam | --program-transform-na \
1301   | --program-transform-n | --program-transform- \
1302   | --program-transform | --program-transfor \
1303   | --program-transfo | --program-transf \
1304   | --program-trans | --program-tran \
1305   | --progr-tra | --program-tr | --program-t)
1306     ac_prev=program_transform_name ;;
1307   -program-transform-name=* | --program-transform-name=* \
1308   | --program-transform-nam=* | --program-transform-na=* \
1309   | --program-transform-n=* | --program-transform-=* \
1310   | --program-transform=* | --program-transfor=* \
1311   | --program-transfo=* | --program-transf=* \
1312   | --program-trans=* | --program-tran=* \
1313   | --progr-tra=* | --program-tr=* | --program-t=*)
1314     program_transform_name=$ac_optarg ;;
1315
1316   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1317     ac_prev=pdfdir ;;
1318   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1319     pdfdir=$ac_optarg ;;
1320
1321   -psdir | --psdir | --psdi | --psd | --ps)
1322     ac_prev=psdir ;;
1323   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1324     psdir=$ac_optarg ;;
1325
1326   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1327   | -silent | --silent | --silen | --sile | --sil)
1328     silent=yes ;;
1329
1330   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1331     ac_prev=sbindir ;;
1332   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1333   | --sbi=* | --sb=*)
1334     sbindir=$ac_optarg ;;
1335
1336   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1337   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1338   | --sharedst | --shareds | --shared | --share | --shar \
1339   | --sha | --sh)
1340     ac_prev=sharedstatedir ;;
1341   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1342   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1343   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1344   | --sha=* | --sh=*)
1345     sharedstatedir=$ac_optarg ;;
1346
1347   -site | --site | --sit)
1348     ac_prev=site ;;
1349   -site=* | --site=* | --sit=*)
1350     site=$ac_optarg ;;
1351
1352   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1353     ac_prev=srcdir ;;
1354   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1355     srcdir=$ac_optarg ;;
1356
1357   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1358   | --syscon | --sysco | --sysc | --sys | --sy)
1359     ac_prev=sysconfdir ;;
1360   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1361   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1362     sysconfdir=$ac_optarg ;;
1363
1364   -target | --target | --targe | --targ | --tar | --ta | --t)
1365     ac_prev=target_alias ;;
1366   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1367     target_alias=$ac_optarg ;;
1368
1369   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1370     verbose=yes ;;
1371
1372   -version | --version | --versio | --versi | --vers | -V)
1373     ac_init_version=: ;;
1374
1375   -with-* | --with-*)
1376     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1377     # Reject names that are not valid shell variable names.
1378     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1379       { echo "$as_me: error: invalid package name: $ac_package" >&2
1380    { (exit 1); exit 1; }; }
1381     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1382     eval with_$ac_package=\$ac_optarg ;;
1383
1384   -without-* | --without-*)
1385     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1386     # Reject names that are not valid shell variable names.
1387     expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1388       { echo "$as_me: error: invalid package name: $ac_package" >&2
1389    { (exit 1); exit 1; }; }
1390     ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1391     eval with_$ac_package=no ;;
1392
1393   --x)
1394     # Obsolete; use --with-x.
1395     with_x=yes ;;
1396
1397   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1398   | --x-incl | --x-inc | --x-in | --x-i)
1399     ac_prev=x_includes ;;
1400   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1401   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1402     x_includes=$ac_optarg ;;
1403
1404   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1405   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1406     ac_prev=x_libraries ;;
1407   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1408   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1409     x_libraries=$ac_optarg ;;
1410
1411   -*) { echo "$as_me: error: unrecognized option: $ac_option
1412 Try \`$0 --help' for more information." >&2
1413    { (exit 1); exit 1; }; }
1414     ;;
1415
1416   *=*)
1417     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1418     # Reject names that are not valid shell variable names.
1419     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1420       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1421    { (exit 1); exit 1; }; }
1422     eval $ac_envvar=\$ac_optarg
1423     export $ac_envvar ;;
1424
1425   *)
1426     # FIXME: should be removed in autoconf 3.0.
1427     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1428     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1429       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1430     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1431     ;;
1432
1433   esac
1434 done
1435
1436 if test -n "$ac_prev"; then
1437   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1438   { echo "$as_me: error: missing argument to $ac_option" >&2
1439    { (exit 1); exit 1; }; }
1440 fi
1441
1442 # Be sure to have absolute directory names.
1443 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444                 datadir sysconfdir sharedstatedir localstatedir includedir \
1445                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446                 libdir localedir mandir
1447 do
1448   eval ac_val=\$$ac_var
1449   case $ac_val in
1450     [\\/$]* | ?:[\\/]* )  continue;;
1451     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1452   esac
1453   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1454    { (exit 1); exit 1; }; }
1455 done
1456
1457 # There might be people who depend on the old broken behavior: `$host'
1458 # used to hold the argument of --host etc.
1459 # FIXME: To remove some day.
1460 build=$build_alias
1461 host=$host_alias
1462 target=$target_alias
1463
1464 # FIXME: To remove some day.
1465 if test "x$host_alias" != x; then
1466   if test "x$build_alias" = x; then
1467     cross_compiling=maybe
1468     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1469     If a cross compiler is detected then cross compile mode will be used." >&2
1470   elif test "x$build_alias" != "x$host_alias"; then
1471     cross_compiling=yes
1472   fi
1473 fi
1474
1475 ac_tool_prefix=
1476 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1477
1478 test "$silent" = yes && exec 6>/dev/null
1479
1480
1481 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1482 ac_ls_di=`ls -di .` &&
1483 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1484   { echo "$as_me: error: Working directory cannot be determined" >&2
1485    { (exit 1); exit 1; }; }
1486 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487   { echo "$as_me: error: pwd does not report name of working directory" >&2
1488    { (exit 1); exit 1; }; }
1489
1490
1491 # Find the source files, if location was not specified.
1492 if test -z "$srcdir"; then
1493   ac_srcdir_defaulted=yes
1494   # Try the directory containing this script, then the parent directory.
1495   ac_confdir=`$as_dirname -- "$0" ||
1496 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1497          X"$0" : 'X\(//\)[^/]' \| \
1498          X"$0" : 'X\(//\)$' \| \
1499          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1500 echo X"$0" |
1501     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1502             s//\1/
1503             q
1504           }
1505           /^X\(\/\/\)[^/].*/{
1506             s//\1/
1507             q
1508           }
1509           /^X\(\/\/\)$/{
1510             s//\1/
1511             q
1512           }
1513           /^X\(\/\).*/{
1514             s//\1/
1515             q
1516           }
1517           s/.*/./; q'`
1518   srcdir=$ac_confdir
1519   if test ! -r "$srcdir/$ac_unique_file"; then
1520     srcdir=..
1521   fi
1522 else
1523   ac_srcdir_defaulted=no
1524 fi
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1527   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1528    { (exit 1); exit 1; }; }
1529 fi
1530 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1531 ac_abs_confdir=`(
1532         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1533    { (exit 1); exit 1; }; }
1534         pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537   srcdir=.
1538 fi
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547   eval ac_env_${ac_var}_value=\$${ac_var}
1548   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1551
1552 #
1553 # Report the --help message.
1554 #
1555 if test "$ac_init_help" = "long"; then
1556   # Omit some internal or obsolete options to make the list less imposing.
1557   # This message is too long to be a string in the A/UX 3.1 sh.
1558   cat <<_ACEOF
1559 \`configure' configures wxWidgets 2.9.0 to adapt to many kinds of systems.
1560
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1562
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE.  See below for descriptions of some of the useful variables.
1565
1566 Defaults for the options are specified in brackets.
1567
1568 Configuration:
1569   -h, --help              display this help and exit
1570       --help=short        display options specific to this package
1571       --help=recursive    display the short help of all the included packages
1572   -V, --version           display version information and exit
1573   -q, --quiet, --silent   do not print \`checking...' messages
1574       --cache-file=FILE   cache test results in FILE [disabled]
1575   -C, --config-cache      alias for \`--cache-file=config.cache'
1576   -n, --no-create         do not create output files
1577       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1578
1579 Installation directories:
1580   --prefix=PREFIX         install architecture-independent files in PREFIX
1581                           [$ac_default_prefix]
1582   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1583                           [PREFIX]
1584
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1589
1590 For better control, use the options below.
1591
1592 Fine tuning of the installation directories:
1593   --bindir=DIR           user executables [EPREFIX/bin]
1594   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1595   --libexecdir=DIR       program executables [EPREFIX/libexec]
1596   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1597   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1598   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1599   --libdir=DIR           object code libraries [EPREFIX/lib]
1600   --includedir=DIR       C header files [PREFIX/include]
1601   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1602   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1603   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1604   --infodir=DIR          info documentation [DATAROOTDIR/info]
1605   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1606   --mandir=DIR           man documentation [DATAROOTDIR/man]
1607   --docdir=DIR           documentation root [DATAROOTDIR/doc/wxwidgets]
1608   --htmldir=DIR          html documentation [DOCDIR]
1609   --dvidir=DIR           dvi documentation [DOCDIR]
1610   --pdfdir=DIR           pdf documentation [DOCDIR]
1611   --psdir=DIR            ps documentation [DOCDIR]
1612 _ACEOF
1613
1614   cat <<\_ACEOF
1615
1616 X features:
1617   --x-includes=DIR    X include files are in DIR
1618   --x-libraries=DIR   X library files are in DIR
1619
1620 System types:
1621   --build=BUILD     configure for building on BUILD [guessed]
1622   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1623   --target=TARGET   configure for building compilers for TARGET [HOST]
1624 _ACEOF
1625 fi
1626
1627 if test -n "$ac_init_help"; then
1628   case $ac_init_help in
1629      short | recursive ) echo "Configuration of wxWidgets 2.9.0:";;
1630    esac
1631   cat <<\_ACEOF
1632
1633 Optional Features:
1634   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1635   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1636   --disable-gui           don't build GUI parts of the library
1637   --enable-monolithic     build wxWidgets as single library
1638   --enable-plugins        build parts of wxWidgets as loadable components
1639   --enable-official_build official build of wxWidgets (win32 DLL only)
1640   --enable-vendor=VENDOR  vendor name (win32 DLL only)
1641   --disable-all-features  disable all optional features to build minimal library
1642   --enable-universal      use wxWidgets GUI controls instead of native ones
1643   --enable-nanox          use NanoX
1644   --disable-gtk2          use GTK+ 1.2 instead of 2.0
1645   --enable-gpe            use GNOME PDA Environment features if possible
1646   --disable-shared        create static library instead of shared
1647   --disable-optimise      create optimised code
1648   --enable-debug          same as debug_flag and debug_info
1649   --enable-stl            use STL for containers
1650   --enable-std_iostreams  use standard C++ stream classes
1651   --enable-std_string     use standard C++ string classes
1652   --disable-unicode       compile without Unicode support
1653   --enable-mslu           use MS Layer for Unicode on Windows 9x (Win32 only)
1654   --enable-utf8           use UTF-8 representation for strings (Unix only)
1655   --enable-utf8only      only support UTF-8 locales in UTF-8 build (Unix only)
1656   --enable-extended_rtti  use extended RTTI (XTI)
1657   --enable-omf            use OMF object format
1658   --enable-debug_flag     set __WXDEBUG__ flag (recommended for developers!)
1659   --enable-debug_info     create code with debugging information
1660   --enable-debug_gdb      create code with extra GDB debugging information
1661   --enable-debug_cntxt    use wxDebugContext
1662   --enable-mem_tracing    create code with memory tracing
1663   --enable-profile        create code with profiling information
1664   --enable-no_rtti        create code without RTTI information
1665   --enable-no_exceptions  create code without C++ exceptions handling
1666   --enable-permissive     compile code disregarding strict ANSI
1667   --enable-no_deps        create code without dependency information
1668   --disable-vararg_macros don't use vararg macros, even if they are supported
1669   --enable-universal_binary  create Mac PowerPC and Intel Universal binary (not yet working)
1670   --enable-compat26       enable wxWidgets 2.6 compatibility
1671   --disable-compat28      disable wxWidgets 2.8 compatibility
1672   --disable-rpath         disable use of rpath for uninstalled builds
1673   --enable-objc_uniquifying enable Objective-C class name uniquifying
1674   --disable-visibility    disable use of ELF symbols visibility even if supported
1675   --enable-intl           use internationalization system
1676   --enable-config         use wxConfig (and derived) classes
1677   --enable-protocols      use wxProtocol and derived classes
1678   --enable-ftp            use wxFTP (requires wxProtocol
1679   --enable-http           use wxHTTP (requires wxProtocol
1680   --enable-fileproto      use wxFileProto class (requires wxProtocol
1681   --enable-sockets        use socket/network classes
1682   --enable-ole            use OLE classes (Win32 only)
1683   --enable-dataobj        use data object classes
1684   --enable-ipc            use interprocess communication (wxSocket etc.)
1685   --enable-baseevtloop    use event loop in console programs too
1686   --enable-epoolloop      use wxEpollDispatcher class (Linux only)
1687   --enable-selectloop     use wxSelectDispatcher class
1688   --enable-apple_ieee     use the Apple IEEE codec
1689   --enable-arcstream      use wxArchive streams
1690   --enable-base64         use base64 encoding/decoding functions
1691   --enable-backtrace      use wxStackWalker class for getting backtraces
1692   --enable-catch_segvs    catch signals in wxApp::OnFatalException (Unix only)
1693   --enable-cmdline        use wxCmdLineParser class
1694   --enable-datetime       use wxDateTime class
1695   --enable-debugreport    use wxDebugReport class
1696   --enable-dialupman      use dialup network classes
1697   --enable-dynlib         use wxLibrary class for DLL loading
1698   --enable-dynamicloader  use (new) wxDynamicLibrary class
1699   --enable-exceptions     build exception-safe library
1700   --enable-ffile          use wxFFile class
1701   --enable-file           use wxFile class
1702   --enable-filesystem     use virtual file systems classes
1703   --enable-fontenum       use wxFontEnumerator class
1704   --enable-fontmap        use font encodings conversion classes
1705   --enable-fs_archive     use virtual archive filesystems
1706   --enable-fs_inet        use virtual HTTP/FTP filesystems
1707   --enable-fs_zip         now replaced by fs_archive
1708   --enable-geometry       use geometry class
1709   --enable-log            use logging system
1710   --enable-longlong       use wxLongLong class
1711   --enable-mimetype       use wxMimeTypesManager
1712   --enable-snglinst       use wxSingleInstanceChecker class
1713   --enable-stdpaths       use wxStandardPaths class
1714   --enable-stopwatch      use wxStopWatch class
1715   --enable-streams        use wxStream etc classes
1716   --enable-sysoptions     use wxSystemOptions
1717   --enable-tarstream      use wxTar streams
1718   --enable-textbuf        use wxTextBuffer class
1719   --enable-textfile       use wxTextFile class
1720   --enable-timer          use wxTimer class
1721   --enable-sound          use wxSound class
1722   --enable-mediactrl      use wxMediaCtrl class
1723   --enable-gstreamer8     force GStreamer 0.8 instead of 0.10 with the wxMediaCtrl class on unix
1724   --enable-printfposparam use wxVsnprintf() which supports positional parameters
1725   --enable-zipstream      use wxZip streams
1726   --enable-url            use wxURL class
1727   --enable-variant        use wxVariant class
1728   --enable-protocol       use wxProtocol class
1729   --enable-protocol-http  HTTP support in wxProtocol
1730   --enable-protocol-ftp   FTP support in wxProtocol
1731   --enable-protocol-file  FILE support in wxProtocol
1732   --enable-threads        use threads
1733   --enable-docview        use document view architecture
1734   --enable-help           use help subsystem
1735   --enable-mshtmlhelp     use MS HTML Help (win32)
1736   --enable-html           use wxHTML sub-library
1737   --enable-htmlhelp       use wxHTML-based help
1738   --enable-xrc            use XRC resources sub-library
1739   --enable-aui            use AUI docking library
1740   --enable-stc            use wxStyledTextCtrl library
1741   --enable-constraints    use layout-constraints system
1742   --enable-printarch      use printing architecture
1743   --enable-mdi            use multiple document interface architecture
1744   --enable-mdidoc         use docview architecture with MDI
1745   --enable-loggui         use standard GUI logger
1746   --enable-logwin         use wxLogWindow
1747   --enable-logdialog      use wxLogDialog
1748   --enable-webkit         use wxWebKitCtrl (Mac)
1749   --enable-richtext       use wxRichTextCtrl
1750   --enable-graphics_ctx   use graphics context 2D drawing API
1751   --enable-postscript     use wxPostscriptDC device context (default for gtk+)
1752   --enable-svg            use wxSVGFileDC device context
1753   --enable-clipboard      use wxClipboard class
1754   --enable-dnd            use Drag'n'Drop classes
1755   --enable-metafile       use win32 metafiles
1756   --disable-controls      disable compilation of all standard controls
1757   --enable-accel          use accelerators
1758   --enable-animatectrl    use wxAnimationCtrl class
1759   --enable-button         use wxButton class
1760   --enable-bmpbutton      use wxBitmapButton class
1761   --enable-bmpcombobox    use wxBitmapComboBox class
1762   --enable-calendar       use wxCalendarCtrl class
1763   --enable-caret          use wxCaret class
1764   --enable-checkbox       use wxCheckBox class
1765   --enable-checklst       use wxCheckListBox (listbox with checkboxes) class
1766   --enable-choice         use wxChoice class
1767   --enable-choicebook     use wxChoicebook class
1768   --enable-collpane       use wxCollapsiblePane class
1769   --enable-colourpicker   use wxColourPickerCtrl class
1770   --enable-combobox       use wxComboBox class
1771   --enable-comboctrl      use wxComboCtrl class
1772   --enable-datepick       use wxDatePickerCtrl class
1773   --enable-dirpicker      use wxDirPickerCtrl class
1774   --enable-display        use wxDisplay class
1775   --enable-detect_sm      use code to detect X11 session manager
1776   --enable-editablebox    use wxEditableListBox class
1777   --enable-filepicker     use wxFilePickerCtrl class
1778   --enable-fontpicker     use wxFontPickerCtrl class
1779   --enable-gauge          use wxGauge class
1780   --enable-grid           use wxGrid class
1781   --enable-dataviewctrl   use wxDataViewCtrl class
1782   --enable-hyperlink      use wxHyperlinkCtrl class
1783   --enable-imaglist       use wxImageList class
1784   --enable-listbook       use wxListbook class
1785   --enable-listbox        use wxListBox class
1786   --enable-listctrl       use wxListCtrl class
1787   --enable-notebook       use wxNotebook class
1788   --enable-odcombobox     use wxOwnerDrawnComboBox class
1789   --enable-radiobox       use wxRadioBox class
1790   --enable-radiobtn       use wxRadioButton class
1791   --enable-sash           use wxSashWindow class
1792   --enable-scrollbar      use wxScrollBar class and scrollable windows
1793   --enable-searchctrl     use wxSearchCtrl class
1794   --enable-slider         use wxSlider class
1795   --enable-spinbtn        use wxSpinButton class
1796   --enable-spinctrl       use wxSpinCtrl class
1797   --enable-splitter       use wxSplitterWindow class
1798   --enable-statbmp        use wxStaticBitmap class
1799   --enable-statbox        use wxStaticBox class
1800   --enable-statline       use wxStaticLine class
1801   --enable-stattext       use wxStaticText class
1802   --enable-statusbar      use wxStatusBar class
1803   --enable-tabdialog      use wxTabControl class
1804   --enable-taskbaricon    use wxTaskBarIcon class
1805   --enable-textctrl       use wxTextCtrl class
1806   --enable-togglebtn      use wxToggleButton class
1807   --enable-toolbar        use wxToolBar class
1808   --enable-tbarnative     use native wxToolBar class
1809   --enable-treebook       use wxTreebook class
1810   --enable-toolbook       use wxToolbook class
1811   --enable-treectrl       use wxTreeCtrl class
1812   --enable-tipwindow      use wxTipWindow class
1813   --enable-popupwin       use wxPopUpWindow class
1814   --enable-commondlg      use all common dialogs
1815   --enable-aboutdlg       use wxAboutBox
1816   --enable-choicedlg      use wxChoiceDialog
1817   --enable-coldlg         use wxColourDialog
1818   --enable-filedlg        use wxFileDialog
1819   --enable-finddlg        use wxFindReplaceDialog
1820   --enable-fontdlg        use wxFontDialog
1821   --enable-dirdlg         use wxDirDialog
1822   --enable-msgdlg         use wxMessageDialog
1823   --enable-numberdlg      use wxNumberEntryDialog
1824   --enable-splash         use wxSplashScreen
1825   --enable-textdlg        use wxTextDialog
1826   --enable-tipdlg         use startup tips
1827   --enable-progressdlg    use wxProgressDialog
1828   --enable-wizarddlg      use wxWizard
1829   --enable-menus          use wxMenu/wxMenuBar/wxMenuItem classes
1830   --enable-miniframe      use wxMiniFrame class
1831   --enable-tooltips       use wxToolTip class
1832   --enable-splines        use spline drawing code
1833   --enable-mousewheel     use mousewheel
1834   --enable-validators     use wxValidator and derived classes
1835   --enable-busyinfo       use wxBusyInfo
1836   --enable-joystick       use wxJoystick
1837   --enable-metafiles      use wxMetaFile (Win32 only)
1838   --enable-dragimage      use wxDragImage
1839   --enable-accessibility  enable accessibility support
1840   --enable-palette        use wxPalette class
1841   --enable-image          use wxImage class
1842   --enable-gif            use gif images (GIF file format)
1843   --enable-pcx            use pcx images (PCX file format)
1844   --enable-tga            use tga images (TGA file format)
1845   --enable-iff            use iff images (IFF file format)
1846   --enable-pnm            use pnm images (PNM file format)
1847   --enable-xpm            use xpm images (XPM file format)
1848   --enable-icocur         use Windows ICO and CUR formats
1849   --enable-dccache        cache temporary wxDC objects (Win32 only)
1850   --enable-iniconf        use wxIniConfig (Win32 only)
1851   --enable-ps-in-msw      use PS printing in wxMSW (Win32 only)
1852   --enable-ownerdrawn     use owner drawn controls (Win32 only)
1853   --enable-regkey         use wxRegKey class (Win32 only)
1854   --enable-uxtheme        enable support for Windows XP themed look (Win32 only)
1855   --enable-wxdib          use wxDIB class (Win32 only)
1856   --disable-largefile     omit support for large files
1857   --disable-gtktest       do not try to compile and run a test GTK+ program
1858   --disable-gtktest       Do not try to compile and run a test GTK program
1859   --disable-sdltest       Do not try to compile and run a test SDL program
1860   --enable-omf            use OMF object format (OS/2)
1861   --disable-dependency-tracking
1862                           don't use dependency tracking even if the compiler
1863                           can
1864   --disable-precomp-headers
1865                           don't use precompiled headers even if compiler can
1866
1867 Optional Packages:
1868   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1869   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1870   --without-subdirs       don't generate makefiles for samples/demos/...
1871   --with-flavour=NAME     specify a name to identify this build
1872   --with-themes=all|list  use only the specified comma-separated list of wxUniversal themes
1873   --with-gtk[=VERSION]    use GTK+, VERSION can be 2 (default), 1 or "any"
1874   --with-motif            use Motif/Lesstif
1875   --with-mac              use Mac OS X
1876   --with-cocoa            use Cocoa
1877   --with-wine             use Wine
1878   --with-msw              use MS-Windows
1879   --with-pm               use OS/2 Presentation Manager
1880   --with-mgl              use SciTech MGL
1881   --with-directfb         use DirectFB
1882   --with-microwin         use MicroWindows
1883   --with-x11              use X11
1884   --with-libpng           use libpng (PNG image format)
1885   --with-libjpeg          use libjpeg (JPEG file format)
1886   --with-libtiff          use libtiff (TIFF file format)
1887   --with-libxpm           use libxpm (XPM file format)
1888   --with-libmspack        use libmspack (CHM help files loading)
1889   --without-gnomeprint    don't use GNOME printing libraries
1890   --with-gnomevfs         use GNOME VFS for associating MIME types
1891   --with-hildon           use Hildon framework for Nokia 770
1892   --with-opengl           use OpenGL (or Mesa)
1893   --with-dmalloc          use dmalloc library (http://dmalloc.com/)
1894   --with-sdl              use SDL for audio on Unix
1895   --with-regex            enable support for wxRegEx class
1896   --with-zlib             use zlib for LZW compression
1897   --with-odbc             use the IODBC and wxODBC classes
1898   --with-expat            enable XML support using expat parser
1899   --with-macosx-sdk=PATH  use an OS X SDK at PATH
1900   --with-macosx-version-min=VER   build binaries which require at least this OS X version
1901   --with-gtk-prefix=PFX   Prefix where GTK is installed (optional)
1902   --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)
1903   --with-x                use the X Window System
1904   --with-libiconv-prefix=DIR  search for libiconv in DIR/include and DIR/lib
1905   --with-sdl-prefix=PFX   Prefix where SDL is installed (optional)
1906   --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1907   --with-cppunit-prefix=PFX   Prefix where CppUnit is installed (optional)
1908   --with-cppunit-exec-prefix=PFX  Exec prefix where CppUnit is installed (optional)
1909
1910 Some influential environment variables:
1911   CC          C compiler command
1912   CFLAGS      C compiler flags
1913   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1914               nonstandard directory <lib dir>
1915   LIBS        libraries to pass to the linker, e.g. -l<library>
1916   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1917               you have headers in a nonstandard directory <include dir>
1918   CPP         C preprocessor
1919   CXX         C++ compiler command
1920   CXXFLAGS    C++ compiler flags
1921   PKG_CONFIG  path to pkg-config utility
1922   DIRECTFB_CFLAGS
1923               C compiler flags for DIRECTFB, overriding pkg-config
1924   DIRECTFB_LIBS
1925               linker flags for DIRECTFB, overriding pkg-config
1926   XMKMF       Path to xmkmf, Makefile generator for X Window System
1927   PANGOX_CFLAGS
1928               C compiler flags for PANGOX, overriding pkg-config
1929   PANGOX_LIBS linker flags for PANGOX, overriding pkg-config
1930   PANGOFT2_CFLAGS
1931               C compiler flags for PANGOFT2, overriding pkg-config
1932   PANGOFT2_LIBS
1933               linker flags for PANGOFT2, overriding pkg-config
1934   PANGOXFT_CFLAGS
1935               C compiler flags for PANGOXFT, overriding pkg-config
1936   PANGOXFT_LIBS
1937               linker flags for PANGOXFT, overriding pkg-config
1938   LIBGNOMEPRINTUI_CFLAGS
1939               C compiler flags for LIBGNOMEPRINTUI, overriding pkg-config
1940   LIBGNOMEPRINTUI_LIBS
1941               linker flags for LIBGNOMEPRINTUI, overriding pkg-config
1942   GNOMEVFS_CFLAGS
1943               C compiler flags for GNOMEVFS, overriding pkg-config
1944   GNOMEVFS_LIBS
1945               linker flags for GNOMEVFS, overriding pkg-config
1946   HILDON_CFLAGS
1947               C compiler flags for HILDON, overriding pkg-config
1948   HILDON_LIBS linker flags for HILDON, overriding pkg-config
1949   CAIRO_CFLAGS
1950               C compiler flags for CAIRO, overriding pkg-config
1951   CAIRO_LIBS  linker flags for CAIRO, overriding pkg-config
1952   GST_CFLAGS  C compiler flags for GST, overriding pkg-config
1953   GST_LIBS    linker flags for GST, overriding pkg-config
1954
1955 Use these variables to override the choices made by `configure' or to help
1956 it to find libraries and programs with nonstandard names/locations.
1957
1958 Report bugs to <wx-dev@lists.wxwidgets.org>.
1959 _ACEOF
1960 ac_status=$?
1961 fi
1962
1963 if test "$ac_init_help" = "recursive"; then
1964   # If there are subdirs, report their specific --help.
1965   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1966     test -d "$ac_dir" || continue
1967     ac_builddir=.
1968
1969 case "$ac_dir" in
1970 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1971 *)
1972   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1973   # A ".." for each directory in $ac_dir_suffix.
1974   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1975   case $ac_top_builddir_sub in
1976   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1977   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1978   esac ;;
1979 esac
1980 ac_abs_top_builddir=$ac_pwd
1981 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1982 # for backward compatibility:
1983 ac_top_builddir=$ac_top_build_prefix
1984
1985 case $srcdir in
1986   .)  # We are building in place.
1987     ac_srcdir=.
1988     ac_top_srcdir=$ac_top_builddir_sub
1989     ac_abs_top_srcdir=$ac_pwd ;;
1990   [\\/]* | ?:[\\/]* )  # Absolute name.
1991     ac_srcdir=$srcdir$ac_dir_suffix;
1992     ac_top_srcdir=$srcdir
1993     ac_abs_top_srcdir=$srcdir ;;
1994   *) # Relative name.
1995     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1996     ac_top_srcdir=$ac_top_build_prefix$srcdir
1997     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1998 esac
1999 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2000
2001     cd "$ac_dir" || { ac_status=$?; continue; }
2002     # Check for guested configure.
2003     if test -f "$ac_srcdir/configure.gnu"; then
2004       echo &&
2005       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2006     elif test -f "$ac_srcdir/configure"; then
2007       echo &&
2008       $SHELL "$ac_srcdir/configure" --help=recursive
2009     else
2010       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2011     fi || ac_status=$?
2012     cd "$ac_pwd" || { ac_status=$?; break; }
2013   done
2014 fi
2015
2016 test -n "$ac_init_help" && exit $ac_status
2017 if $ac_init_version; then
2018   cat <<\_ACEOF
2019 wxWidgets configure 2.9.0
2020 generated by GNU Autoconf 2.61
2021
2022 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2023 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
2024 This configure script is free software; the Free Software Foundation
2025 gives unlimited permission to copy, distribute and modify it.
2026 _ACEOF
2027   exit
2028 fi
2029 cat >config.log <<_ACEOF
2030 This file contains any messages produced by compilers while
2031 running configure, to aid debugging if configure makes a mistake.
2032
2033 It was created by wxWidgets $as_me 2.9.0, which was
2034 generated by GNU Autoconf 2.61.  Invocation command line was
2035
2036   $ $0 $@
2037
2038 _ACEOF
2039 exec 5>>config.log
2040 {
2041 cat <<_ASUNAME
2042 ## --------- ##
2043 ## Platform. ##
2044 ## --------- ##
2045
2046 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2047 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2048 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2049 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2050 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2051
2052 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2053 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2054
2055 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2056 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2057 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2058 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2059 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2060 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2061 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2062
2063 _ASUNAME
2064
2065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2066 for as_dir in $PATH
2067 do
2068   IFS=$as_save_IFS
2069   test -z "$as_dir" && as_dir=.
2070   echo "PATH: $as_dir"
2071 done
2072 IFS=$as_save_IFS
2073
2074 } >&5
2075
2076 cat >&5 <<_ACEOF
2077
2078
2079 ## ----------- ##
2080 ## Core tests. ##
2081 ## ----------- ##
2082
2083 _ACEOF
2084
2085
2086 # Keep a trace of the command line.
2087 # Strip out --no-create and --no-recursion so they do not pile up.
2088 # Strip out --silent because we don't want to record it for future runs.
2089 # Also quote any args containing shell meta-characters.
2090 # Make two passes to allow for proper duplicate-argument suppression.
2091 ac_configure_args=
2092 ac_configure_args0=
2093 ac_configure_args1=
2094 ac_must_keep_next=false
2095 for ac_pass in 1 2
2096 do
2097   for ac_arg
2098   do
2099     case $ac_arg in
2100     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2101     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2102     | -silent | --silent | --silen | --sile | --sil)
2103       continue ;;
2104     *\'*)
2105       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2106     esac
2107     case $ac_pass in
2108     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2109     2)
2110       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2111       if test $ac_must_keep_next = true; then
2112         ac_must_keep_next=false # Got value, back to normal.
2113       else
2114         case $ac_arg in
2115           *=* | --config-cache | -C | -disable-* | --disable-* \
2116           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2117           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2118           | -with-* | --with-* | -without-* | --without-* | --x)
2119             case "$ac_configure_args0 " in
2120               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2121             esac
2122             ;;
2123           -* ) ac_must_keep_next=true ;;
2124         esac
2125       fi
2126       ac_configure_args="$ac_configure_args '$ac_arg'"
2127       ;;
2128     esac
2129   done
2130 done
2131 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2132 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2133
2134 # When interrupted or exit'd, cleanup temporary files, and complete
2135 # config.log.  We remove comments because anyway the quotes in there
2136 # would cause problems or look ugly.
2137 # WARNING: Use '\'' to represent an apostrophe within the trap.
2138 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2139 trap 'exit_status=$?
2140   # Save into config.log some information that might help in debugging.
2141   {
2142     echo
2143
2144     cat <<\_ASBOX
2145 ## ---------------- ##
2146 ## Cache variables. ##
2147 ## ---------------- ##
2148 _ASBOX
2149     echo
2150     # The following way of writing the cache mishandles newlines in values,
2151 (
2152   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2153     eval ac_val=\$$ac_var
2154     case $ac_val in #(
2155     *${as_nl}*)
2156       case $ac_var in #(
2157       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2158 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2159       esac
2160       case $ac_var in #(
2161       _ | IFS | as_nl) ;; #(
2162       *) $as_unset $ac_var ;;
2163       esac ;;
2164     esac
2165   done
2166   (set) 2>&1 |
2167     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2168     *${as_nl}ac_space=\ *)
2169       sed -n \
2170         "s/'\''/'\''\\\\'\'''\''/g;
2171           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2172       ;; #(
2173     *)
2174       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2175       ;;
2176     esac |
2177     sort
2178 )
2179     echo
2180
2181     cat <<\_ASBOX
2182 ## ----------------- ##
2183 ## Output variables. ##
2184 ## ----------------- ##
2185 _ASBOX
2186     echo
2187     for ac_var in $ac_subst_vars
2188     do
2189       eval ac_val=\$$ac_var
2190       case $ac_val in
2191       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2192       esac
2193       echo "$ac_var='\''$ac_val'\''"
2194     done | sort
2195     echo
2196
2197     if test -n "$ac_subst_files"; then
2198       cat <<\_ASBOX
2199 ## ------------------- ##
2200 ## File substitutions. ##
2201 ## ------------------- ##
2202 _ASBOX
2203       echo
2204       for ac_var in $ac_subst_files
2205       do
2206         eval ac_val=\$$ac_var
2207         case $ac_val in
2208         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2209         esac
2210         echo "$ac_var='\''$ac_val'\''"
2211       done | sort
2212       echo
2213     fi
2214
2215     if test -s confdefs.h; then
2216       cat <<\_ASBOX
2217 ## ----------- ##
2218 ## confdefs.h. ##
2219 ## ----------- ##
2220 _ASBOX
2221       echo
2222       cat confdefs.h
2223       echo
2224     fi
2225     test "$ac_signal" != 0 &&
2226       echo "$as_me: caught signal $ac_signal"
2227     echo "$as_me: exit $exit_status"
2228   } >&5
2229   rm -f core *.core core.conftest.* &&
2230     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2231     exit $exit_status
2232 ' 0
2233 for ac_signal in 1 2 13 15; do
2234   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2235 done
2236 ac_signal=0
2237
2238 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2239 rm -f -r conftest* confdefs.h
2240
2241 # Predefined preprocessor variables.
2242
2243 cat >>confdefs.h <<_ACEOF
2244 #define PACKAGE_NAME "$PACKAGE_NAME"
2245 _ACEOF
2246
2247
2248 cat >>confdefs.h <<_ACEOF
2249 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2250 _ACEOF
2251
2252
2253 cat >>confdefs.h <<_ACEOF
2254 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2255 _ACEOF
2256
2257
2258 cat >>confdefs.h <<_ACEOF
2259 #define PACKAGE_STRING "$PACKAGE_STRING"
2260 _ACEOF
2261
2262
2263 cat >>confdefs.h <<_ACEOF
2264 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2265 _ACEOF
2266
2267
2268 # Let the site file select an alternate cache file if it wants to.
2269 # Prefer explicitly selected file to automatically selected ones.
2270 if test -n "$CONFIG_SITE"; then
2271   set x "$CONFIG_SITE"
2272 elif test "x$prefix" != xNONE; then
2273   set x "$prefix/share/config.site" "$prefix/etc/config.site"
2274 else
2275   set x "$ac_default_prefix/share/config.site" \
2276         "$ac_default_prefix/etc/config.site"
2277 fi
2278 shift
2279 for ac_site_file
2280 do
2281   if test -r "$ac_site_file"; then
2282     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2283 echo "$as_me: loading site script $ac_site_file" >&6;}
2284     sed 's/^/| /' "$ac_site_file" >&5
2285     . "$ac_site_file"
2286   fi
2287 done
2288
2289 if test -r "$cache_file"; then
2290   # Some versions of bash will fail to source /dev/null (special
2291   # files actually), so we avoid doing that.
2292   if test -f "$cache_file"; then
2293     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
2294 echo "$as_me: loading cache $cache_file" >&6;}
2295     case $cache_file in
2296       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2297       *)                      . "./$cache_file";;
2298     esac
2299   fi
2300 else
2301   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
2302 echo "$as_me: creating cache $cache_file" >&6;}
2303   >$cache_file
2304 fi
2305
2306 # Check that the precious variables saved in the cache have kept the same
2307 # value.
2308 ac_cache_corrupted=false
2309 for ac_var in $ac_precious_vars; do
2310   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2311   eval ac_new_set=\$ac_env_${ac_var}_set
2312   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2313   eval ac_new_val=\$ac_env_${ac_var}_value
2314   case $ac_old_set,$ac_new_set in
2315     set,)
2316       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2317 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2318       ac_cache_corrupted=: ;;
2319     ,set)
2320       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2321 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2322       ac_cache_corrupted=: ;;
2323     ,);;
2324     *)
2325       if test "x$ac_old_val" != "x$ac_new_val"; then
2326         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2327 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2328         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
2329 echo "$as_me:   former value:  $ac_old_val" >&2;}
2330         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
2331 echo "$as_me:   current value: $ac_new_val" >&2;}
2332         ac_cache_corrupted=:
2333       fi;;
2334   esac
2335   # Pass precious variables to config.status.
2336   if test "$ac_new_set" = set; then
2337     case $ac_new_val in
2338     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2339     *) ac_arg=$ac_var=$ac_new_val ;;
2340     esac
2341     case " $ac_configure_args " in
2342       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2343       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2344     esac
2345   fi
2346 done
2347 if $ac_cache_corrupted; then
2348   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2349 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2350   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2351 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2352    { (exit 1); exit 1; }; }
2353 fi
2354
2355
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379 ac_ext=c
2380 ac_cpp='$CPP $CPPFLAGS'
2381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2384
2385
2386
2387
2388
2389 ac_aux_dir=
2390 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2391   if test -f "$ac_dir/install-sh"; then
2392     ac_aux_dir=$ac_dir
2393     ac_install_sh="$ac_aux_dir/install-sh -c"
2394     break
2395   elif test -f "$ac_dir/install.sh"; then
2396     ac_aux_dir=$ac_dir
2397     ac_install_sh="$ac_aux_dir/install.sh -c"
2398     break
2399   elif test -f "$ac_dir/shtool"; then
2400     ac_aux_dir=$ac_dir
2401     ac_install_sh="$ac_aux_dir/shtool install -c"
2402     break
2403   fi
2404 done
2405 if test -z "$ac_aux_dir"; then
2406   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2407 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2408    { (exit 1); exit 1; }; }
2409 fi
2410
2411 # These three variables are undocumented and unsupported,
2412 # and are intended to be withdrawn in a future Autoconf release.
2413 # They can cause serious problems if a builder's source tree is in a directory
2414 # whose full name contains unusual characters.
2415 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2416 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2417 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2418
2419
2420 # Make sure we can run config.sub.
2421 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2422   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2423 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2424    { (exit 1); exit 1; }; }
2425
2426 { echo "$as_me:$LINENO: checking build system type" >&5
2427 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2428 if test "${ac_cv_build+set}" = set; then
2429   echo $ECHO_N "(cached) $ECHO_C" >&6
2430 else
2431   ac_build_alias=$build_alias
2432 test "x$ac_build_alias" = x &&
2433   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2434 test "x$ac_build_alias" = x &&
2435   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2436 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2437    { (exit 1); exit 1; }; }
2438 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2439   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2440 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2441    { (exit 1); exit 1; }; }
2442
2443 fi
2444 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2445 echo "${ECHO_T}$ac_cv_build" >&6; }
2446 case $ac_cv_build in
2447 *-*-*) ;;
2448 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2449 echo "$as_me: error: invalid value of canonical build" >&2;}
2450    { (exit 1); exit 1; }; };;
2451 esac
2452 build=$ac_cv_build
2453 ac_save_IFS=$IFS; IFS='-'
2454 set x $ac_cv_build
2455 shift
2456 build_cpu=$1
2457 build_vendor=$2
2458 shift; shift
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2461 build_os=$*
2462 IFS=$ac_save_IFS
2463 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2464
2465
2466 { echo "$as_me:$LINENO: checking host system type" >&5
2467 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2468 if test "${ac_cv_host+set}" = set; then
2469   echo $ECHO_N "(cached) $ECHO_C" >&6
2470 else
2471   if test "x$host_alias" = x; then
2472   ac_cv_host=$ac_cv_build
2473 else
2474   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2475     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2476 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2477    { (exit 1); exit 1; }; }
2478 fi
2479
2480 fi
2481 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2482 echo "${ECHO_T}$ac_cv_host" >&6; }
2483 case $ac_cv_host in
2484 *-*-*) ;;
2485 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2486 echo "$as_me: error: invalid value of canonical host" >&2;}
2487    { (exit 1); exit 1; }; };;
2488 esac
2489 host=$ac_cv_host
2490 ac_save_IFS=$IFS; IFS='-'
2491 set x $ac_cv_host
2492 shift
2493 host_cpu=$1
2494 host_vendor=$2
2495 shift; shift
2496 # Remember, the first character of IFS is used to create $*,
2497 # except with old shells:
2498 host_os=$*
2499 IFS=$ac_save_IFS
2500 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2501
2502
2503 { echo "$as_me:$LINENO: checking target system type" >&5
2504 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2505 if test "${ac_cv_target+set}" = set; then
2506   echo $ECHO_N "(cached) $ECHO_C" >&6
2507 else
2508   if test "x$target_alias" = x; then
2509   ac_cv_target=$ac_cv_host
2510 else
2511   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2512     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2513 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2514    { (exit 1); exit 1; }; }
2515 fi
2516
2517 fi
2518 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2519 echo "${ECHO_T}$ac_cv_target" >&6; }
2520 case $ac_cv_target in
2521 *-*-*) ;;
2522 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2523 echo "$as_me: error: invalid value of canonical target" >&2;}
2524    { (exit 1); exit 1; }; };;
2525 esac
2526 target=$ac_cv_target
2527 ac_save_IFS=$IFS; IFS='-'
2528 set x $ac_cv_target
2529 shift
2530 target_cpu=$1
2531 target_vendor=$2
2532 shift; shift
2533 # Remember, the first character of IFS is used to create $*,
2534 # except with old shells:
2535 target_os=$*
2536 IFS=$ac_save_IFS
2537 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2538
2539
2540 # The aliases save the names the user supplied, while $host etc.
2541 # will get canonicalized.
2542 test -n "$target_alias" &&
2543   test "$program_prefix$program_suffix$program_transform_name" = \
2544     NONENONEs,x,x, &&
2545   program_prefix=${target_alias}-
2546
2547
2548
2549 wx_major_version_number=2
2550 wx_minor_version_number=9
2551 wx_release_number=0
2552 wx_subrelease_number=0
2553
2554 WX_RELEASE=$wx_major_version_number.$wx_minor_version_number
2555 WX_VERSION=$WX_RELEASE.$wx_release_number
2556 WX_SUBVERSION=$WX_VERSION.$wx_subrelease_number
2557
2558 WX_MSW_VERSION=$wx_major_version_number$wx_minor_version_number$wx_release_number
2559
2560
2561 wx_top_builddir="`pwd`"
2562
2563
2564
2565
2566 USE_UNIX=1
2567 USE_OS2=0
2568 USE_WIN32=0
2569 USE_DOS=0
2570 USE_BEOS=0
2571 USE_MAC=0
2572
2573 USE_AIX=
2574 USE_BSD=                            USE_DARWIN=                         USE_FREEBSD=
2575 USE_GNU=                            USE_HPUX=
2576 USE_LINUX=
2577 USE_NETBSD=
2578 USE_OPENBSD=
2579 USE_OSF=                            USE_SGI=
2580 USE_SOLARIS=                        USE_SUN=                            USE_SUNOS=                          USE_SVR4=                           USE_SYSV=                           USE_VMS=
2581 USE_ULTRIX=
2582 USE_UNIXWARE=
2583
2584 USE_ALPHA=
2585
2586 NEEDS_D_REENTRANT_FOR_R_FUNCS=0
2587
2588 ALL_TOOLKITS="COCOA GTK MAC MGL MICROWIN MOTIF MSW PM X11 DFB"
2589
2590 DEFAULT_wxUSE_COCOA=0
2591 DEFAULT_wxUSE_GTK=0
2592 DEFAULT_wxUSE_MAC=0
2593 DEFAULT_wxUSE_MGL=0
2594 DEFAULT_wxUSE_MICROWIN=0
2595 DEFAULT_wxUSE_MOTIF=0
2596 DEFAULT_wxUSE_MSW=0
2597 DEFAULT_wxUSE_PM=0
2598 DEFAULT_wxUSE_X11=0
2599 DEFAULT_wxUSE_DFB=0
2600
2601 DEFAULT_DEFAULT_wxUSE_COCOA=0
2602 DEFAULT_DEFAULT_wxUSE_GTK=0
2603 DEFAULT_DEFAULT_wxUSE_MAC=0
2604 DEFAULT_DEFAULT_wxUSE_MGL=0
2605 DEFAULT_DEFAULT_wxUSE_MICROWIN=0
2606 DEFAULT_DEFAULT_wxUSE_MOTIF=0
2607 DEFAULT_DEFAULT_wxUSE_MSW=0
2608 DEFAULT_DEFAULT_wxUSE_PM=0
2609 DEFAULT_DEFAULT_wxUSE_X11=0
2610 DEFAULT_DEFAULT_wxUSE_DFB=0
2611
2612 PROGRAM_EXT=
2613 SO_SUFFIX=so
2614 SAMPLES_RPATH_FLAG=
2615 SAMPLES_RPATH_POSTLINK=
2616
2617 DEFAULT_STD_FLAG=yes
2618
2619 case "${host}" in
2620   *-hp-hpux* )
2621     USE_HPUX=1
2622     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2623     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2624     SO_SUFFIX=sl
2625     cat >>confdefs.h <<\_ACEOF
2626 #define __HPUX__ 1
2627 _ACEOF
2628
2629
2630             CPPFLAGS="-D_HPUX_SOURCE $CPPFLAGS"
2631   ;;
2632   *-*-linux* )
2633     USE_LINUX=1
2634     cat >>confdefs.h <<\_ACEOF
2635 #define __LINUX__ 1
2636 _ACEOF
2637
2638     TMP=`uname -m`
2639     if test "x$TMP" = "xalpha"; then
2640       USE_ALPHA=1
2641       cat >>confdefs.h <<\_ACEOF
2642 #define __ALPHA__ 1
2643 _ACEOF
2644
2645     fi
2646     DEFAULT_DEFAULT_wxUSE_GTK=1
2647   ;;
2648   *-*-gnu* | *-*-k*bsd*-gnu )
2649     USE_GNU=1
2650     TMP=`uname -m`
2651     if test "x$TMP" = "xalpha"; then
2652       USE_ALPHA=1
2653       cat >>confdefs.h <<\_ACEOF
2654 #define __ALPHA__ 1
2655 _ACEOF
2656
2657     fi
2658     DEFAULT_DEFAULT_wxUSE_GTK=1
2659   ;;
2660   *-*-irix5* | *-*-irix6* )
2661     USE_SGI=1
2662     USE_SVR4=1
2663     cat >>confdefs.h <<\_ACEOF
2664 #define __SGI__ 1
2665 _ACEOF
2666
2667     cat >>confdefs.h <<\_ACEOF
2668 #define __SVR4__ 1
2669 _ACEOF
2670
2671     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2672   ;;
2673   *-*-solaris2* )
2674     USE_SUN=1
2675     USE_SOLARIS=1
2676     USE_SVR4=1
2677     cat >>confdefs.h <<\_ACEOF
2678 #define __SUN__ 1
2679 _ACEOF
2680
2681     cat >>confdefs.h <<\_ACEOF
2682 #define __SOLARIS__ 1
2683 _ACEOF
2684
2685     cat >>confdefs.h <<\_ACEOF
2686 #define __SVR4__ 1
2687 _ACEOF
2688
2689     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2690     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2691   ;;
2692   *-*-sunos4* )
2693     USE_SUN=1
2694     USE_SUNOS=1
2695     USE_BSD=1
2696     cat >>confdefs.h <<\_ACEOF
2697 #define __SUN__ 1
2698 _ACEOF
2699
2700     cat >>confdefs.h <<\_ACEOF
2701 #define __SUNOS__ 1
2702 _ACEOF
2703
2704     cat >>confdefs.h <<\_ACEOF
2705 #define __BSD__ 1
2706 _ACEOF
2707
2708     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2709   ;;
2710   *-*-freebsd*)
2711     USE_BSD=1
2712     USE_FREEBSD=1
2713     cat >>confdefs.h <<\_ACEOF
2714 #define __FREEBSD__ 1
2715 _ACEOF
2716
2717     cat >>confdefs.h <<\_ACEOF
2718 #define __BSD__ 1
2719 _ACEOF
2720
2721     DEFAULT_DEFAULT_wxUSE_GTK=1
2722   ;;
2723   *-*-openbsd*|*-*-mirbsd*)
2724     USE_BSD=1
2725     USE_OPENBSD=1
2726     cat >>confdefs.h <<\_ACEOF
2727 #define __OPENBSD__ 1
2728 _ACEOF
2729
2730     cat >>confdefs.h <<\_ACEOF
2731 #define __BSD__ 1
2732 _ACEOF
2733
2734     DEFAULT_DEFAULT_wxUSE_GTK=1
2735   ;;
2736   *-*-netbsd*)
2737     USE_BSD=1
2738     USE_NETBSD=1
2739     cat >>confdefs.h <<\_ACEOF
2740 #define __NETBSD__ 1
2741 _ACEOF
2742
2743     cat >>confdefs.h <<\_ACEOF
2744 #define __BSD__ 1
2745 _ACEOF
2746
2747     DEFAULT_DEFAULT_wxUSE_GTK=1
2748     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2749
2750             CPPFLAGS="-D_NETBSD_SOURCE -D_LIBC $CPPFLAGS"
2751   ;;
2752   *-*-osf* )
2753     USE_ALPHA=1
2754     USE_OSF=1
2755     cat >>confdefs.h <<\_ACEOF
2756 #define __ALPHA__ 1
2757 _ACEOF
2758
2759     cat >>confdefs.h <<\_ACEOF
2760 #define __OSF__ 1
2761 _ACEOF
2762
2763     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2764     NEEDS_D_REENTRANT_FOR_R_FUNCS=1
2765   ;;
2766   *-*-dgux5* )
2767     USE_ALPHA=1
2768     USE_SVR4=1
2769     cat >>confdefs.h <<\_ACEOF
2770 #define __ALPHA__ 1
2771 _ACEOF
2772
2773     cat >>confdefs.h <<\_ACEOF
2774 #define __SVR4__ 1
2775 _ACEOF
2776
2777     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2778   ;;
2779   *-*-sysv5* )
2780     USE_SYSV=1
2781     USE_SVR4=1
2782     cat >>confdefs.h <<\_ACEOF
2783 #define __SYSV__ 1
2784 _ACEOF
2785
2786     cat >>confdefs.h <<\_ACEOF
2787 #define __SVR4__ 1
2788 _ACEOF
2789
2790     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2791   ;;
2792   *-*-aix* )
2793     USE_AIX=1
2794     USE_SYSV=1
2795     USE_SVR4=1
2796                         SO_SUFFIX=a
2797     cat >>confdefs.h <<\_ACEOF
2798 #define __AIX__ 1
2799 _ACEOF
2800
2801     cat >>confdefs.h <<\_ACEOF
2802 #define __SYSV__ 1
2803 _ACEOF
2804
2805     cat >>confdefs.h <<\_ACEOF
2806 #define __SVR4__ 1
2807 _ACEOF
2808
2809     DEFAULT_DEFAULT_wxUSE_MOTIF=1
2810   ;;
2811
2812   *-*-*UnixWare*)
2813     USE_SYSV=1
2814     USE_SVR4=1
2815     USE_UNIXWARE=1
2816     cat >>confdefs.h <<\_ACEOF
2817 #define __UNIXWARE__ 1
2818 _ACEOF
2819
2820   ;;
2821
2822   *-*-cygwin* | *-*-mingw32* )
2823                 SO_SUFFIX=dll
2824     PROGRAM_EXT=".exe"
2825     DEFAULT_DEFAULT_wxUSE_MSW=1
2826   ;;
2827
2828   *-pc-msdosdjgpp )
2829     USE_UNIX=0
2830     USE_DOS=1
2831     cat >>confdefs.h <<\_ACEOF
2832 #define __DOS__ 1
2833 _ACEOF
2834
2835     PROGRAM_EXT=".exe"
2836     DEFAULT_DEFAULT_wxUSE_MGL=1
2837   ;;
2838
2839   *-pc-os2_emx | *-pc-os2-emx )
2840     cat >>confdefs.h <<\_ACEOF
2841 #define __EMX__ 1
2842 _ACEOF
2843
2844     USE_OS2=1
2845     cat >>confdefs.h <<\_ACEOF
2846 #define __OS2__ 1
2847 _ACEOF
2848
2849     PROGRAM_EXT=".exe"
2850     DEFAULT_DEFAULT_wxUSE_PM=1
2851         CXX=gcc
2852     LDFLAGS="$LDFLAGS -Zcrtdll"
2853                         ac_executable_extensions=".exe"
2854     export ac_executable_extensions
2855             ac_save_IFS="$IFS"
2856     IFS='\\'
2857     ac_TEMP_PATH=
2858     for ac_dir in $PATH; do
2859       IFS=$ac_save_IFS
2860       if test -z "$ac_TEMP_PATH"; then
2861         ac_TEMP_PATH="$ac_dir"
2862       else
2863         ac_TEMP_PATH="$ac_TEMP_PATH/$ac_dir"
2864       fi
2865     done
2866     export PATH="$ac_TEMP_PATH"
2867     unset ac_TEMP_PATH
2868     DEFAULT_STD_FLAG=no
2869   ;;
2870
2871   *-*-darwin* )
2872         USE_BSD=1
2873     USE_DARWIN=1
2874     SO_SUFFIX=dylib
2875     cat >>confdefs.h <<\_ACEOF
2876 #define __BSD__ 1
2877 _ACEOF
2878
2879     cat >>confdefs.h <<\_ACEOF
2880 #define __DARWIN__ 1
2881 _ACEOF
2882
2883     cat >>confdefs.h <<\_ACEOF
2884 #define TARGET_CARBON 1
2885 _ACEOF
2886
2887     DEFAULT_DEFAULT_wxUSE_MAC=1
2888     DEFAULT_STD_FLAG=no
2889   ;;
2890   powerpc-apple-macos* )
2891         USE_UNIX=0
2892             ac_cv_c_bigendian=yes
2893     SO_SUFFIX=shlib
2894             DEFAULT_DEFAULT_wxUSE_MAC=1
2895     DEFAULT_STD_FLAG=no
2896   ;;
2897
2898   *-*-beos* )
2899         USE_BEOS=1
2900     cat >>confdefs.h <<\_ACEOF
2901 #define __BEOS__ 1
2902 _ACEOF
2903
2904   ;;
2905
2906   *)
2907     { echo "$as_me:$LINENO: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&5
2908 echo "$as_me: WARNING: *** System type ${host} is unknown, assuming generic Unix and continuing nevertheless." >&2;}
2909     { echo "$as_me:$LINENO: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&5
2910 echo "$as_me: WARNING: *** Please report the build results to wx-dev@lists.wxwidgets.org." >&2;}
2911
2912     DEFAULT_DEFAULT_wxUSE_X11=1
2913     DEFAULT_wxUSE_SHARED=no
2914 esac
2915
2916
2917
2918
2919           wx_arg_cache_file="configarg.cache"
2920           echo "loading argument cache $wx_arg_cache_file"
2921           rm -f ${wx_arg_cache_file}.tmp
2922           touch ${wx_arg_cache_file}.tmp
2923           touch ${wx_arg_cache_file}
2924
2925
2926 DEFAULT_wxUSE_ALL_FEATURES=yes
2927
2928 DEFAULT_wxUSE_STD_IOSTREAM=$DEFAULT_STD_FLAG
2929 DEFAULT_wxUSE_STD_STRING=$DEFAULT_STD_FLAG
2930
2931 DEFAULT_wxUSE_DMALLOC=no
2932 DEFAULT_wxUSE_LIBGNOMEVFS=no
2933 DEFAULT_wxUSE_LIBHILDON=no
2934 DEFAULT_wxUSE_LIBMSPACK=no
2935 DEFAULT_wxUSE_LIBSDL=no
2936 DEFAULT_wxUSE_ODBC=no
2937 DEFAULT_wxUSE_OPENGL=no
2938
2939 DEFAULT_wxUSE_ACCESSIBILITY=no
2940 DEFAULT_wxUSE_DATAVIEWCTRL=no
2941 DEFAULT_wxUSE_GRAPHICS_CONTEXT=no
2942 DEFAULT_wxUSE_MEDIACTRL=no
2943 DEFAULT_wxUSE_TAB_DIALOG=no
2944
2945 DEFAULT_wxUSE_UNICODE_UTF8=auto
2946 DEFAULT_wxUSE_UNICODE_UTF8_LOCALE=no
2947
2948 DEFAULT_wxUSE_UNIVERSAL_BINARY=no
2949
2950 DEFAULT_wxUSE_OFFICIAL_BUILD=no
2951
2952 DEFAULT_wxUSE_GTK2=yes
2953
2954 DEFAULT_wxUSE_OBJC_UNIQUIFYING=no
2955
2956
2957 for toolkit in `echo $ALL_TOOLKITS`; do
2958   LINE=`grep "wxUSE_$toolkit=" ${wx_arg_cache_file}`
2959   if test "x$LINE" != "x" ; then
2960     has_toolkit_in_cache=1
2961     eval "DEFAULT_$LINE"
2962     eval "CACHE_$toolkit=1"
2963
2964     LINE=`grep "wx${toolkit}_VERSION=" ${wx_arg_cache_file}`
2965     if test "x$LINE" != "x" ; then
2966         eval "DEFAULT_$LINE"
2967     fi
2968   fi
2969 done
2970
2971
2972
2973
2974
2975           enablestring=disable
2976           defaultval=
2977           if test -z "$defaultval"; then
2978               if test x"$enablestring" = xdisable; then
2979                   defaultval=yes
2980               else
2981                   defaultval=no
2982               fi
2983           fi
2984
2985           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gui" >&5
2986 echo $ECHO_N "checking for --${enablestring:-enable}-gui... $ECHO_C" >&6; }
2987           # Check whether --enable-gui was given.
2988 if test "${enable_gui+set}" = set; then
2989   enableval=$enable_gui;
2990                           if test "$enableval" = yes; then
2991                             wx_cv_use_gui='wxUSE_GUI=yes'
2992                           else
2993                             wx_cv_use_gui='wxUSE_GUI=no'
2994                           fi
2995                           cache=yes
2996
2997 else
2998
2999                           cache=no
3000                           LINE=`grep "^wxUSE_GUI=" ${wx_arg_cache_file}`
3001                           if test "x$LINE" != x ; then
3002                             eval "DEFAULT_$LINE"
3003                           fi
3004
3005                           wx_cv_use_gui='wxUSE_GUI=${'DEFAULT_wxUSE_GUI":-$defaultval}"
3006
3007 fi
3008
3009
3010           eval "$wx_cv_use_gui"
3011           if test "x$cache" = xyes; then
3012             echo "wxUSE_GUI=$wxUSE_GUI" >> ${wx_arg_cache_file}.tmp
3013           fi
3014
3015           if test x"$enablestring" = xdisable; then
3016             if test $wxUSE_GUI = yes; then
3017               result=no
3018             else
3019               result=yes
3020             fi
3021           else
3022             result=$wxUSE_GUI
3023           fi
3024
3025           { echo "$as_me:$LINENO: result: $result" >&5
3026 echo "${ECHO_T}$result" >&6; }
3027
3028
3029           enablestring=
3030           defaultval=
3031           if test -z "$defaultval"; then
3032               if test x"$enablestring" = xdisable; then
3033                   defaultval=yes
3034               else
3035                   defaultval=no
3036               fi
3037           fi
3038
3039           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-monolithic" >&5
3040 echo $ECHO_N "checking for --${enablestring:-enable}-monolithic... $ECHO_C" >&6; }
3041           # Check whether --enable-monolithic was given.
3042 if test "${enable_monolithic+set}" = set; then
3043   enableval=$enable_monolithic;
3044                           if test "$enableval" = yes; then
3045                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=yes'
3046                           else
3047                             wx_cv_use_monolithic='wxUSE_MONOLITHIC=no'
3048                           fi
3049                           cache=yes
3050
3051 else
3052
3053                           cache=no
3054                           LINE=`grep "^wxUSE_MONOLITHIC=" ${wx_arg_cache_file}`
3055                           if test "x$LINE" != x ; then
3056                             eval "DEFAULT_$LINE"
3057                           fi
3058
3059                           wx_cv_use_monolithic='wxUSE_MONOLITHIC=${'DEFAULT_wxUSE_MONOLITHIC":-$defaultval}"
3060
3061 fi
3062
3063
3064           eval "$wx_cv_use_monolithic"
3065           if test "x$cache" = xyes; then
3066             echo "wxUSE_MONOLITHIC=$wxUSE_MONOLITHIC" >> ${wx_arg_cache_file}.tmp
3067           fi
3068
3069           if test x"$enablestring" = xdisable; then
3070             if test $wxUSE_MONOLITHIC = yes; then
3071               result=no
3072             else
3073               result=yes
3074             fi
3075           else
3076             result=$wxUSE_MONOLITHIC
3077           fi
3078
3079           { echo "$as_me:$LINENO: result: $result" >&5
3080 echo "${ECHO_T}$result" >&6; }
3081
3082
3083           enablestring=
3084           defaultval=
3085           if test -z "$defaultval"; then
3086               if test x"$enablestring" = xdisable; then
3087                   defaultval=yes
3088               else
3089                   defaultval=no
3090               fi
3091           fi
3092
3093           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-plugins" >&5
3094 echo $ECHO_N "checking for --${enablestring:-enable}-plugins... $ECHO_C" >&6; }
3095           # Check whether --enable-plugins was given.
3096 if test "${enable_plugins+set}" = set; then
3097   enableval=$enable_plugins;
3098                           if test "$enableval" = yes; then
3099                             wx_cv_use_plugins='wxUSE_PLUGINS=yes'
3100                           else
3101                             wx_cv_use_plugins='wxUSE_PLUGINS=no'
3102                           fi
3103                           cache=yes
3104
3105 else
3106
3107                           cache=no
3108                           LINE=`grep "^wxUSE_PLUGINS=" ${wx_arg_cache_file}`
3109                           if test "x$LINE" != x ; then
3110                             eval "DEFAULT_$LINE"
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                         cache=no
3162                         LINE=`grep "^wxWITH_SUBDIRS=" ${wx_arg_cache_file}`
3163                         if test "x$LINE" != x ; then
3164                           eval "DEFAULT_$LINE"
3165                         fi
3166
3167                         wx_cv_use_subdirs='wxWITH_SUBDIRS=${'DEFAULT_wxWITH_SUBDIRS":-$defaultval}"
3168
3169 fi
3170
3171
3172           eval "$wx_cv_use_subdirs"
3173           if test "x$cache" = xyes; then
3174             echo "wxWITH_SUBDIRS=$wxWITH_SUBDIRS" >> ${wx_arg_cache_file}.tmp
3175           fi
3176
3177           if test x"$withstring" = xwithout; then
3178             if test $wxWITH_SUBDIRS = yes; then
3179               result=no
3180             else
3181               result=yes
3182             fi
3183           else
3184             result=$wxWITH_SUBDIRS
3185           fi
3186
3187           { echo "$as_me:$LINENO: result: $result" >&5
3188 echo "${ECHO_T}$result" >&6; }
3189
3190
3191 # Check whether --with-flavour was given.
3192 if test "${with_flavour+set}" = set; then
3193   withval=$with_flavour; WX_FLAVOUR="$withval"
3194 fi
3195
3196
3197           enablestring=
3198           defaultval=
3199           if test -z "$defaultval"; then
3200               if test x"$enablestring" = xdisable; then
3201                   defaultval=yes
3202               else
3203                   defaultval=no
3204               fi
3205           fi
3206
3207           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-official_build" >&5
3208 echo $ECHO_N "checking for --${enablestring:-enable}-official_build... $ECHO_C" >&6; }
3209           # Check whether --enable-official_build was given.
3210 if test "${enable_official_build+set}" = set; then
3211   enableval=$enable_official_build;
3212                           if test "$enableval" = yes; then
3213                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=yes'
3214                           else
3215                             wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=no'
3216                           fi
3217                           cache=yes
3218
3219 else
3220
3221                           cache=no
3222                           LINE=`grep "^wxUSE_OFFICIAL_BUILD=" ${wx_arg_cache_file}`
3223                           if test "x$LINE" != x ; then
3224                             eval "DEFAULT_$LINE"
3225                           fi
3226
3227                           wx_cv_use_official_build='wxUSE_OFFICIAL_BUILD=${'DEFAULT_wxUSE_OFFICIAL_BUILD":-$defaultval}"
3228
3229 fi
3230
3231
3232           eval "$wx_cv_use_official_build"
3233           if test "x$cache" = xyes; then
3234             echo "wxUSE_OFFICIAL_BUILD=$wxUSE_OFFICIAL_BUILD" >> ${wx_arg_cache_file}.tmp
3235           fi
3236
3237           if test x"$enablestring" = xdisable; then
3238             if test $wxUSE_OFFICIAL_BUILD = yes; then
3239               result=no
3240             else
3241               result=yes
3242             fi
3243           else
3244             result=$wxUSE_OFFICIAL_BUILD
3245           fi
3246
3247           { echo "$as_me:$LINENO: result: $result" >&5
3248 echo "${ECHO_T}$result" >&6; }
3249
3250 # Check whether --enable-vendor was given.
3251 if test "${enable_vendor+set}" = set; then
3252   enableval=$enable_vendor; VENDOR="$enableval"
3253 fi
3254
3255 if test "x$VENDOR" = "x"; then
3256     VENDOR="custom"
3257 fi
3258
3259
3260           enablestring=disable
3261           defaultval=
3262           if test -z "$defaultval"; then
3263               if test x"$enablestring" = xdisable; then
3264                   defaultval=yes
3265               else
3266                   defaultval=no
3267               fi
3268           fi
3269
3270           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-all-features" >&5
3271 echo $ECHO_N "checking for --${enablestring:-enable}-all-features... $ECHO_C" >&6; }
3272           # Check whether --enable-all-features was given.
3273 if test "${enable_all_features+set}" = set; then
3274   enableval=$enable_all_features;
3275                           if test "$enableval" = yes; then
3276                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=yes'
3277                           else
3278                             wx_cv_use_all_features='wxUSE_ALL_FEATURES=no'
3279                           fi
3280                           cache=yes
3281
3282 else
3283
3284                           cache=no
3285                           LINE=`grep "^wxUSE_ALL_FEATURES=" ${wx_arg_cache_file}`
3286                           if test "x$LINE" != x ; then
3287                             eval "DEFAULT_$LINE"
3288                           fi
3289
3290                           wx_cv_use_all_features='wxUSE_ALL_FEATURES=${'DEFAULT_wxUSE_ALL_FEATURES":-$defaultval}"
3291
3292 fi
3293
3294
3295           eval "$wx_cv_use_all_features"
3296           if test "x$cache" = xyes; then
3297             echo "wxUSE_ALL_FEATURES=$wxUSE_ALL_FEATURES" >> ${wx_arg_cache_file}.tmp
3298           fi
3299
3300           if test x"$enablestring" = xdisable; then
3301             if test $wxUSE_ALL_FEATURES = yes; then
3302               result=no
3303             else
3304               result=yes
3305             fi
3306           else
3307             result=$wxUSE_ALL_FEATURES
3308           fi
3309
3310           { echo "$as_me:$LINENO: result: $result" >&5
3311 echo "${ECHO_T}$result" >&6; }
3312
3313
3314
3315 if test "$wxUSE_GUI" = "yes"; then
3316
3317
3318           enablestring=
3319           defaultval=
3320           if test -z "$defaultval"; then
3321               if test x"$enablestring" = xdisable; then
3322                   defaultval=yes
3323               else
3324                   defaultval=no
3325               fi
3326           fi
3327
3328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal" >&5
3329 echo $ECHO_N "checking for --${enablestring:-enable}-universal... $ECHO_C" >&6; }
3330           # Check whether --enable-universal was given.
3331 if test "${enable_universal+set}" = set; then
3332   enableval=$enable_universal;
3333                           if test "$enableval" = yes; then
3334                             wx_cv_use_universal='wxUSE_UNIVERSAL=yes'
3335                           else
3336                             wx_cv_use_universal='wxUSE_UNIVERSAL=no'
3337                           fi
3338                           cache=yes
3339
3340 else
3341
3342                           cache=no
3343                           LINE=`grep "^wxUSE_UNIVERSAL=" ${wx_arg_cache_file}`
3344                           if test "x$LINE" != x ; then
3345                             eval "DEFAULT_$LINE"
3346                           fi
3347
3348                           wx_cv_use_universal='wxUSE_UNIVERSAL=${'DEFAULT_wxUSE_UNIVERSAL":-$defaultval}"
3349
3350 fi
3351
3352
3353           eval "$wx_cv_use_universal"
3354           if test "x$cache" = xyes; then
3355             echo "wxUSE_UNIVERSAL=$wxUSE_UNIVERSAL" >> ${wx_arg_cache_file}.tmp
3356           fi
3357
3358           if test x"$enablestring" = xdisable; then
3359             if test $wxUSE_UNIVERSAL = yes; then
3360               result=no
3361             else
3362               result=yes
3363             fi
3364           else
3365             result=$wxUSE_UNIVERSAL
3366           fi
3367
3368           { echo "$as_me:$LINENO: result: $result" >&5
3369 echo "${ECHO_T}$result" >&6; }
3370
3371 if test "$wxUSE_UNIVERSAL" = "yes"; then
3372
3373 # Check whether --with-themes was given.
3374 if test "${with_themes+set}" = set; then
3375   withval=$with_themes; wxUNIV_THEMES="$withval"
3376 fi
3377
3378 fi
3379
3380
3381 # Check whether --with-gtk was given.
3382 if test "${with_gtk+set}" = set; then
3383   withval=$with_gtk; wxUSE_GTK="$withval" CACHE_GTK=1 TOOLKIT_GIVEN=1
3384 fi
3385
3386
3387 # Check whether --with-motif was given.
3388 if test "${with_motif+set}" = set; then
3389   withval=$with_motif; wxUSE_MOTIF="$withval" CACHE_MOTIF=1 TOOLKIT_GIVEN=1
3390 fi
3391
3392
3393 # Check whether --with-mac was given.
3394 if test "${with_mac+set}" = set; then
3395   withval=$with_mac; wxUSE_MAC="$withval" CACHE_MAC=1 TOOLKIT_GIVEN=1
3396 fi
3397
3398
3399 # Check whether --with-cocoa was given.
3400 if test "${with_cocoa+set}" = set; then
3401   withval=$with_cocoa; wxUSE_COCOA="$withval" CACHE_COCOA=1 TOOLKIT_GIVEN=1
3402 fi
3403
3404
3405 # Check whether --with-wine was given.
3406 if test "${with_wine+set}" = set; then
3407   withval=$with_wine; wxUSE_WINE="$withval" CACHE_WINE=1
3408 fi
3409
3410
3411 # Check whether --with-msw was given.
3412 if test "${with_msw+set}" = set; then
3413   withval=$with_msw; wxUSE_MSW="$withval" CACHE_MSW=1 TOOLKIT_GIVEN=1
3414 fi
3415
3416
3417 # Check whether --with-pm was given.
3418 if test "${with_pm+set}" = set; then
3419   withval=$with_pm; wxUSE_PM="$withval" CACHE_PM=1 TOOLKIT_GIVEN=1
3420 fi
3421
3422
3423 # Check whether --with-mgl was given.
3424 if test "${with_mgl+set}" = set; then
3425   withval=$with_mgl; wxUSE_MGL="$withval" wxUSE_UNIVERSAL="yes" CACHE_MGL=1 TOOLKIT_GIVEN=1
3426 fi
3427
3428
3429 # Check whether --with-directfb was given.
3430 if test "${with_directfb+set}" = set; then
3431   withval=$with_directfb; wxUSE_DFB="$withval" wxUSE_UNIVERSAL="yes" CACHE_DFB=1 TOOLKIT_GIVEN=1
3432 fi
3433
3434
3435 # Check whether --with-microwin was given.
3436 if test "${with_microwin+set}" = set; then
3437   withval=$with_microwin; wxUSE_MICROWIN="$withval" CACHE_MICROWIN=1 TOOLKIT_GIVEN=1
3438 fi
3439
3440
3441 # Check whether --with-x11 was given.
3442 if test "${with_x11+set}" = set; then
3443   withval=$with_x11; wxUSE_X11="$withval" wxUSE_UNIVERSAL="yes" CACHE_X11=1 TOOLKIT_GIVEN=1
3444 fi
3445
3446
3447           enablestring=
3448           defaultval=
3449           if test -z "$defaultval"; then
3450               if test x"$enablestring" = xdisable; then
3451                   defaultval=yes
3452               else
3453                   defaultval=no
3454               fi
3455           fi
3456
3457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-nanox" >&5
3458 echo $ECHO_N "checking for --${enablestring:-enable}-nanox... $ECHO_C" >&6; }
3459           # Check whether --enable-nanox was given.
3460 if test "${enable_nanox+set}" = set; then
3461   enableval=$enable_nanox;
3462                           if test "$enableval" = yes; then
3463                             wx_cv_use_nanox='wxUSE_NANOX=yes'
3464                           else
3465                             wx_cv_use_nanox='wxUSE_NANOX=no'
3466                           fi
3467                           cache=yes
3468
3469 else
3470
3471                           cache=no
3472                           LINE=`grep "^wxUSE_NANOX=" ${wx_arg_cache_file}`
3473                           if test "x$LINE" != x ; then
3474                             eval "DEFAULT_$LINE"
3475                           fi
3476
3477                           wx_cv_use_nanox='wxUSE_NANOX=${'DEFAULT_wxUSE_NANOX":-$defaultval}"
3478
3479 fi
3480
3481
3482           eval "$wx_cv_use_nanox"
3483           if test "x$cache" = xyes; then
3484             echo "wxUSE_NANOX=$wxUSE_NANOX" >> ${wx_arg_cache_file}.tmp
3485           fi
3486
3487           if test x"$enablestring" = xdisable; then
3488             if test $wxUSE_NANOX = yes; then
3489               result=no
3490             else
3491               result=yes
3492             fi
3493           else
3494             result=$wxUSE_NANOX
3495           fi
3496
3497           { echo "$as_me:$LINENO: result: $result" >&5
3498 echo "${ECHO_T}$result" >&6; }
3499
3500
3501 # Check whether --enable-gtk2 was given.
3502 if test "${enable_gtk2+set}" = set; then
3503   enableval=$enable_gtk2; wxUSE_GTK2="$enableval"
3504 fi
3505
3506
3507           enablestring=
3508           defaultval=
3509           if test -z "$defaultval"; then
3510               if test x"$enablestring" = xdisable; then
3511                   defaultval=yes
3512               else
3513                   defaultval=no
3514               fi
3515           fi
3516
3517           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gpe" >&5
3518 echo $ECHO_N "checking for --${enablestring:-enable}-gpe... $ECHO_C" >&6; }
3519           # Check whether --enable-gpe was given.
3520 if test "${enable_gpe+set}" = set; then
3521   enableval=$enable_gpe;
3522                           if test "$enableval" = yes; then
3523                             wx_cv_use_gpe='wxUSE_GPE=yes'
3524                           else
3525                             wx_cv_use_gpe='wxUSE_GPE=no'
3526                           fi
3527                           cache=yes
3528
3529 else
3530
3531                           cache=no
3532                           LINE=`grep "^wxUSE_GPE=" ${wx_arg_cache_file}`
3533                           if test "x$LINE" != x ; then
3534                             eval "DEFAULT_$LINE"
3535                           fi
3536
3537                           wx_cv_use_gpe='wxUSE_GPE=${'DEFAULT_wxUSE_GPE":-$defaultval}"
3538
3539 fi
3540
3541
3542           eval "$wx_cv_use_gpe"
3543           if test "x$cache" = xyes; then
3544             echo "wxUSE_GPE=$wxUSE_GPE" >> ${wx_arg_cache_file}.tmp
3545           fi
3546
3547           if test x"$enablestring" = xdisable; then
3548             if test $wxUSE_GPE = yes; then
3549               result=no
3550             else
3551               result=yes
3552             fi
3553           else
3554             result=$wxUSE_GPE
3555           fi
3556
3557           { echo "$as_me:$LINENO: result: $result" >&5
3558 echo "${ECHO_T}$result" >&6; }
3559
3560
3561
3562
3563           { echo "$as_me:$LINENO: checking for --with-libpng" >&5
3564 echo $ECHO_N "checking for --with-libpng... $ECHO_C" >&6; }
3565
3566 # Check whether --with-libpng was given.
3567 if test "${with_libpng+set}" = set; then
3568   withval=$with_libpng;
3569                         if test "$withval" = yes; then
3570                           wx_cv_use_libpng='wxUSE_LIBPNG=yes'
3571                         elif test "$withval" = no; then
3572                           wx_cv_use_libpng='wxUSE_LIBPNG=no'
3573                         elif test "$withval" = sys; then
3574                           wx_cv_use_libpng='wxUSE_LIBPNG=sys'
3575                         elif test "$withval" = builtin; then
3576                           wx_cv_use_libpng='wxUSE_LIBPNG=builtin'
3577                         else
3578                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3579 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3580    { (exit 1); exit 1; }; }
3581                         fi
3582                         cache=yes
3583
3584 else
3585
3586                         cache=no
3587                         LINE=`grep "^wxUSE_LIBPNG=" ${wx_arg_cache_file}`
3588                         if test "x$LINE" != x ; then
3589                           eval "DEFAULT_$LINE"
3590                         fi
3591
3592                         wx_cv_use_libpng='wxUSE_LIBPNG=${'DEFAULT_wxUSE_LIBPNG":-$wxUSE_ALL_FEATURES}"
3593
3594 fi
3595
3596
3597           eval "$wx_cv_use_libpng"
3598           if test "x$cache" = xyes; then
3599             echo "wxUSE_LIBPNG=$wxUSE_LIBPNG" >> ${wx_arg_cache_file}.tmp
3600           fi
3601
3602           if test "$wxUSE_LIBPNG" = yes; then
3603             { echo "$as_me:$LINENO: result: yes" >&5
3604 echo "${ECHO_T}yes" >&6; }
3605           elif test "$wxUSE_LIBPNG" = no; then
3606             { echo "$as_me:$LINENO: result: no" >&5
3607 echo "${ECHO_T}no" >&6; }
3608           elif test "$wxUSE_LIBPNG" = sys; then
3609             { echo "$as_me:$LINENO: result: system version" >&5
3610 echo "${ECHO_T}system version" >&6; }
3611           elif test "$wxUSE_LIBPNG" = builtin; then
3612             { echo "$as_me:$LINENO: result: builtin version" >&5
3613 echo "${ECHO_T}builtin version" >&6; }
3614           else
3615             { { echo "$as_me:$LINENO: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&5
3616 echo "$as_me: error: Invalid value for --with-libpng: should be yes, no, sys, or builtin" >&2;}
3617    { (exit 1); exit 1; }; }
3618           fi
3619
3620
3621           { echo "$as_me:$LINENO: checking for --with-libjpeg" >&5
3622 echo $ECHO_N "checking for --with-libjpeg... $ECHO_C" >&6; }
3623
3624 # Check whether --with-libjpeg was given.
3625 if test "${with_libjpeg+set}" = set; then
3626   withval=$with_libjpeg;
3627                         if test "$withval" = yes; then
3628                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=yes'
3629                         elif test "$withval" = no; then
3630                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=no'
3631                         elif test "$withval" = sys; then
3632                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=sys'
3633                         elif test "$withval" = builtin; then
3634                           wx_cv_use_libjpeg='wxUSE_LIBJPEG=builtin'
3635                         else
3636                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3637 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3638    { (exit 1); exit 1; }; }
3639                         fi
3640                         cache=yes
3641
3642 else
3643
3644                         cache=no
3645                         LINE=`grep "^wxUSE_LIBJPEG=" ${wx_arg_cache_file}`
3646                         if test "x$LINE" != x ; then
3647                           eval "DEFAULT_$LINE"
3648                         fi
3649
3650                         wx_cv_use_libjpeg='wxUSE_LIBJPEG=${'DEFAULT_wxUSE_LIBJPEG":-$wxUSE_ALL_FEATURES}"
3651
3652 fi
3653
3654
3655           eval "$wx_cv_use_libjpeg"
3656           if test "x$cache" = xyes; then
3657             echo "wxUSE_LIBJPEG=$wxUSE_LIBJPEG" >> ${wx_arg_cache_file}.tmp
3658           fi
3659
3660           if test "$wxUSE_LIBJPEG" = yes; then
3661             { echo "$as_me:$LINENO: result: yes" >&5
3662 echo "${ECHO_T}yes" >&6; }
3663           elif test "$wxUSE_LIBJPEG" = no; then
3664             { echo "$as_me:$LINENO: result: no" >&5
3665 echo "${ECHO_T}no" >&6; }
3666           elif test "$wxUSE_LIBJPEG" = sys; then
3667             { echo "$as_me:$LINENO: result: system version" >&5
3668 echo "${ECHO_T}system version" >&6; }
3669           elif test "$wxUSE_LIBJPEG" = builtin; then
3670             { echo "$as_me:$LINENO: result: builtin version" >&5
3671 echo "${ECHO_T}builtin version" >&6; }
3672           else
3673             { { echo "$as_me:$LINENO: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&5
3674 echo "$as_me: error: Invalid value for --with-libjpeg: should be yes, no, sys, or builtin" >&2;}
3675    { (exit 1); exit 1; }; }
3676           fi
3677
3678
3679           { echo "$as_me:$LINENO: checking for --with-libtiff" >&5
3680 echo $ECHO_N "checking for --with-libtiff... $ECHO_C" >&6; }
3681
3682 # Check whether --with-libtiff was given.
3683 if test "${with_libtiff+set}" = set; then
3684   withval=$with_libtiff;
3685                         if test "$withval" = yes; then
3686                           wx_cv_use_libtiff='wxUSE_LIBTIFF=yes'
3687                         elif test "$withval" = no; then
3688                           wx_cv_use_libtiff='wxUSE_LIBTIFF=no'
3689                         elif test "$withval" = sys; then
3690                           wx_cv_use_libtiff='wxUSE_LIBTIFF=sys'
3691                         elif test "$withval" = builtin; then
3692                           wx_cv_use_libtiff='wxUSE_LIBTIFF=builtin'
3693                         else
3694                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3695 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3696    { (exit 1); exit 1; }; }
3697                         fi
3698                         cache=yes
3699
3700 else
3701
3702                         cache=no
3703                         LINE=`grep "^wxUSE_LIBTIFF=" ${wx_arg_cache_file}`
3704                         if test "x$LINE" != x ; then
3705                           eval "DEFAULT_$LINE"
3706                         fi
3707
3708                         wx_cv_use_libtiff='wxUSE_LIBTIFF=${'DEFAULT_wxUSE_LIBTIFF":-$wxUSE_ALL_FEATURES}"
3709
3710 fi
3711
3712
3713           eval "$wx_cv_use_libtiff"
3714           if test "x$cache" = xyes; then
3715             echo "wxUSE_LIBTIFF=$wxUSE_LIBTIFF" >> ${wx_arg_cache_file}.tmp
3716           fi
3717
3718           if test "$wxUSE_LIBTIFF" = yes; then
3719             { echo "$as_me:$LINENO: result: yes" >&5
3720 echo "${ECHO_T}yes" >&6; }
3721           elif test "$wxUSE_LIBTIFF" = no; then
3722             { echo "$as_me:$LINENO: result: no" >&5
3723 echo "${ECHO_T}no" >&6; }
3724           elif test "$wxUSE_LIBTIFF" = sys; then
3725             { echo "$as_me:$LINENO: result: system version" >&5
3726 echo "${ECHO_T}system version" >&6; }
3727           elif test "$wxUSE_LIBTIFF" = builtin; then
3728             { echo "$as_me:$LINENO: result: builtin version" >&5
3729 echo "${ECHO_T}builtin version" >&6; }
3730           else
3731             { { echo "$as_me:$LINENO: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&5
3732 echo "$as_me: error: Invalid value for --with-libtiff: should be yes, no, sys, or builtin" >&2;}
3733    { (exit 1); exit 1; }; }
3734           fi
3735
3736
3737           { echo "$as_me:$LINENO: checking for --with-libxpm" >&5
3738 echo $ECHO_N "checking for --with-libxpm... $ECHO_C" >&6; }
3739
3740 # Check whether --with-libxpm was given.
3741 if test "${with_libxpm+set}" = set; then
3742   withval=$with_libxpm;
3743                         if test "$withval" = yes; then
3744                           wx_cv_use_libxpm='wxUSE_LIBXPM=yes'
3745                         elif test "$withval" = no; then
3746                           wx_cv_use_libxpm='wxUSE_LIBXPM=no'
3747                         elif test "$withval" = sys; then
3748                           wx_cv_use_libxpm='wxUSE_LIBXPM=sys'
3749                         elif test "$withval" = builtin; then
3750                           wx_cv_use_libxpm='wxUSE_LIBXPM=builtin'
3751                         else
3752                           { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3753 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3754    { (exit 1); exit 1; }; }
3755                         fi
3756                         cache=yes
3757
3758 else
3759
3760                         cache=no
3761                         LINE=`grep "^wxUSE_LIBXPM=" ${wx_arg_cache_file}`
3762                         if test "x$LINE" != x ; then
3763                           eval "DEFAULT_$LINE"
3764                         fi
3765
3766                         wx_cv_use_libxpm='wxUSE_LIBXPM=${'DEFAULT_wxUSE_LIBXPM":-$wxUSE_ALL_FEATURES}"
3767
3768 fi
3769
3770
3771           eval "$wx_cv_use_libxpm"
3772           if test "x$cache" = xyes; then
3773             echo "wxUSE_LIBXPM=$wxUSE_LIBXPM" >> ${wx_arg_cache_file}.tmp
3774           fi
3775
3776           if test "$wxUSE_LIBXPM" = yes; then
3777             { echo "$as_me:$LINENO: result: yes" >&5
3778 echo "${ECHO_T}yes" >&6; }
3779           elif test "$wxUSE_LIBXPM" = no; then
3780             { echo "$as_me:$LINENO: result: no" >&5
3781 echo "${ECHO_T}no" >&6; }
3782           elif test "$wxUSE_LIBXPM" = sys; then
3783             { echo "$as_me:$LINENO: result: system version" >&5
3784 echo "${ECHO_T}system version" >&6; }
3785           elif test "$wxUSE_LIBXPM" = builtin; then
3786             { echo "$as_me:$LINENO: result: builtin version" >&5
3787 echo "${ECHO_T}builtin version" >&6; }
3788           else
3789             { { echo "$as_me:$LINENO: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&5
3790 echo "$as_me: error: Invalid value for --with-libxpm: should be yes, no, sys, or builtin" >&2;}
3791    { (exit 1); exit 1; }; }
3792           fi
3793
3794
3795           withstring=
3796           defaultval=$wxUSE_ALL_FEATURES
3797           if test -z "$defaultval"; then
3798               if test x"$withstring" = xwithout; then
3799                   defaultval=yes
3800               else
3801                   defaultval=no
3802               fi
3803           fi
3804           { echo "$as_me:$LINENO: checking for --${withstring:-with}-libmspack" >&5
3805 echo $ECHO_N "checking for --${withstring:-with}-libmspack... $ECHO_C" >&6; }
3806
3807 # Check whether --with-libmspack was given.
3808 if test "${with_libmspack+set}" = set; then
3809   withval=$with_libmspack;
3810                         if test "$withval" = yes; then
3811                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=yes'
3812                         else
3813                           wx_cv_use_libmspack='wxUSE_LIBMSPACK=no'
3814                         fi
3815                         cache=yes
3816
3817 else
3818
3819                         cache=no
3820                         LINE=`grep "^wxUSE_LIBMSPACK=" ${wx_arg_cache_file}`
3821                         if test "x$LINE" != x ; then
3822                           eval "DEFAULT_$LINE"
3823                         fi
3824
3825                         wx_cv_use_libmspack='wxUSE_LIBMSPACK=${'DEFAULT_wxUSE_LIBMSPACK":-$defaultval}"
3826
3827 fi
3828
3829
3830           eval "$wx_cv_use_libmspack"
3831           if test "x$cache" = xyes; then
3832             echo "wxUSE_LIBMSPACK=$wxUSE_LIBMSPACK" >> ${wx_arg_cache_file}.tmp
3833           fi
3834
3835           if test x"$withstring" = xwithout; then
3836             if test $wxUSE_LIBMSPACK = yes; then
3837               result=no
3838             else
3839               result=yes
3840             fi
3841           else
3842             result=$wxUSE_LIBMSPACK
3843           fi
3844
3845           { echo "$as_me:$LINENO: result: $result" >&5
3846 echo "${ECHO_T}$result" >&6; }
3847
3848
3849           withstring=without
3850           defaultval=$wxUSE_ALL_FEATURES
3851           if test -z "$defaultval"; then
3852               if test x"$withstring" = xwithout; then
3853                   defaultval=yes
3854               else
3855                   defaultval=no
3856               fi
3857           fi
3858           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomeprint" >&5
3859 echo $ECHO_N "checking for --${withstring:-with}-gnomeprint... $ECHO_C" >&6; }
3860
3861 # Check whether --with-gnomeprint was given.
3862 if test "${with_gnomeprint+set}" = set; then
3863   withval=$with_gnomeprint;
3864                         if test "$withval" = yes; then
3865                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=yes'
3866                         else
3867                           wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=no'
3868                         fi
3869                         cache=yes
3870
3871 else
3872
3873                         cache=no
3874                         LINE=`grep "^wxUSE_LIBGNOMEPRINT=" ${wx_arg_cache_file}`
3875                         if test "x$LINE" != x ; then
3876                           eval "DEFAULT_$LINE"
3877                         fi
3878
3879                         wx_cv_use_gnomeprint='wxUSE_LIBGNOMEPRINT=${'DEFAULT_wxUSE_LIBGNOMEPRINT":-$defaultval}"
3880
3881 fi
3882
3883
3884           eval "$wx_cv_use_gnomeprint"
3885           if test "x$cache" = xyes; then
3886             echo "wxUSE_LIBGNOMEPRINT=$wxUSE_LIBGNOMEPRINT" >> ${wx_arg_cache_file}.tmp
3887           fi
3888
3889           if test x"$withstring" = xwithout; then
3890             if test $wxUSE_LIBGNOMEPRINT = yes; then
3891               result=no
3892             else
3893               result=yes
3894             fi
3895           else
3896             result=$wxUSE_LIBGNOMEPRINT
3897           fi
3898
3899           { echo "$as_me:$LINENO: result: $result" >&5
3900 echo "${ECHO_T}$result" >&6; }
3901
3902
3903           withstring=
3904           defaultval=$wxUSE_ALL_FEATURES
3905           if test -z "$defaultval"; then
3906               if test x"$withstring" = xwithout; then
3907                   defaultval=yes
3908               else
3909                   defaultval=no
3910               fi
3911           fi
3912           { echo "$as_me:$LINENO: checking for --${withstring:-with}-gnomevfs" >&5
3913 echo $ECHO_N "checking for --${withstring:-with}-gnomevfs... $ECHO_C" >&6; }
3914
3915 # Check whether --with-gnomevfs was given.
3916 if test "${with_gnomevfs+set}" = set; then
3917   withval=$with_gnomevfs;
3918                         if test "$withval" = yes; then
3919                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=yes'
3920                         else
3921                           wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=no'
3922                         fi
3923                         cache=yes
3924
3925 else
3926
3927                         cache=no
3928                         LINE=`grep "^wxUSE_LIBGNOMEVFS=" ${wx_arg_cache_file}`
3929                         if test "x$LINE" != x ; then
3930                           eval "DEFAULT_$LINE"
3931                         fi
3932
3933                         wx_cv_use_gnomevfs='wxUSE_LIBGNOMEVFS=${'DEFAULT_wxUSE_LIBGNOMEVFS":-$defaultval}"
3934
3935 fi
3936
3937
3938           eval "$wx_cv_use_gnomevfs"
3939           if test "x$cache" = xyes; then
3940             echo "wxUSE_LIBGNOMEVFS=$wxUSE_LIBGNOMEVFS" >> ${wx_arg_cache_file}.tmp
3941           fi
3942
3943           if test x"$withstring" = xwithout; then
3944             if test $wxUSE_LIBGNOMEVFS = yes; then
3945               result=no
3946             else
3947               result=yes
3948             fi
3949           else
3950             result=$wxUSE_LIBGNOMEVFS
3951           fi
3952
3953           { echo "$as_me:$LINENO: result: $result" >&5
3954 echo "${ECHO_T}$result" >&6; }
3955
3956
3957           withstring=
3958           defaultval=$wxUSE_ALL_FEATURES
3959           if test -z "$defaultval"; then
3960               if test x"$withstring" = xwithout; then
3961                   defaultval=yes
3962               else
3963                   defaultval=no
3964               fi
3965           fi
3966           { echo "$as_me:$LINENO: checking for --${withstring:-with}-hildon" >&5
3967 echo $ECHO_N "checking for --${withstring:-with}-hildon... $ECHO_C" >&6; }
3968
3969 # Check whether --with-hildon was given.
3970 if test "${with_hildon+set}" = set; then
3971   withval=$with_hildon;
3972                         if test "$withval" = yes; then
3973                           wx_cv_use_hildon='wxUSE_LIBHILDON=yes'
3974                         else
3975                           wx_cv_use_hildon='wxUSE_LIBHILDON=no'
3976                         fi
3977                         cache=yes
3978
3979 else
3980
3981                         cache=no
3982                         LINE=`grep "^wxUSE_LIBHILDON=" ${wx_arg_cache_file}`
3983                         if test "x$LINE" != x ; then
3984                           eval "DEFAULT_$LINE"
3985                         fi
3986
3987                         wx_cv_use_hildon='wxUSE_LIBHILDON=${'DEFAULT_wxUSE_LIBHILDON":-$defaultval}"
3988
3989 fi
3990
3991
3992           eval "$wx_cv_use_hildon"
3993           if test "x$cache" = xyes; then
3994             echo "wxUSE_LIBHILDON=$wxUSE_LIBHILDON" >> ${wx_arg_cache_file}.tmp
3995           fi
3996
3997           if test x"$withstring" = xwithout; then
3998             if test $wxUSE_LIBHILDON = yes; then
3999               result=no
4000             else
4001               result=yes
4002             fi
4003           else
4004             result=$wxUSE_LIBHILDON
4005           fi
4006
4007           { echo "$as_me:$LINENO: result: $result" >&5
4008 echo "${ECHO_T}$result" >&6; }
4009
4010
4011           withstring=
4012           defaultval=$wxUSE_ALL_FEATURES
4013           if test -z "$defaultval"; then
4014               if test x"$withstring" = xwithout; then
4015                   defaultval=yes
4016               else
4017                   defaultval=no
4018               fi
4019           fi
4020           { echo "$as_me:$LINENO: checking for --${withstring:-with}-opengl" >&5
4021 echo $ECHO_N "checking for --${withstring:-with}-opengl... $ECHO_C" >&6; }
4022
4023 # Check whether --with-opengl was given.
4024 if test "${with_opengl+set}" = set; then
4025   withval=$with_opengl;
4026                         if test "$withval" = yes; then
4027                           wx_cv_use_opengl='wxUSE_OPENGL=yes'
4028                         else
4029                           wx_cv_use_opengl='wxUSE_OPENGL=no'
4030                         fi
4031                         cache=yes
4032
4033 else
4034
4035                         cache=no
4036                         LINE=`grep "^wxUSE_OPENGL=" ${wx_arg_cache_file}`
4037                         if test "x$LINE" != x ; then
4038                           eval "DEFAULT_$LINE"
4039                         fi
4040
4041                         wx_cv_use_opengl='wxUSE_OPENGL=${'DEFAULT_wxUSE_OPENGL":-$defaultval}"
4042
4043 fi
4044
4045
4046           eval "$wx_cv_use_opengl"
4047           if test "x$cache" = xyes; then
4048             echo "wxUSE_OPENGL=$wxUSE_OPENGL" >> ${wx_arg_cache_file}.tmp
4049           fi
4050
4051           if test x"$withstring" = xwithout; then
4052             if test $wxUSE_OPENGL = yes; then
4053               result=no
4054             else
4055               result=yes
4056             fi
4057           else
4058             result=$wxUSE_OPENGL
4059           fi
4060
4061           { echo "$as_me:$LINENO: result: $result" >&5
4062 echo "${ECHO_T}$result" >&6; }
4063
4064
4065 fi
4066
4067
4068           withstring=
4069           defaultval=$wxUSE_ALL_FEATURES
4070           if test -z "$defaultval"; then
4071               if test x"$withstring" = xwithout; then
4072                   defaultval=yes
4073               else
4074                   defaultval=no
4075               fi
4076           fi
4077           { echo "$as_me:$LINENO: checking for --${withstring:-with}-dmalloc" >&5
4078 echo $ECHO_N "checking for --${withstring:-with}-dmalloc... $ECHO_C" >&6; }
4079
4080 # Check whether --with-dmalloc was given.
4081 if test "${with_dmalloc+set}" = set; then
4082   withval=$with_dmalloc;
4083                         if test "$withval" = yes; then
4084                           wx_cv_use_dmalloc='wxUSE_DMALLOC=yes'
4085                         else
4086                           wx_cv_use_dmalloc='wxUSE_DMALLOC=no'
4087                         fi
4088                         cache=yes
4089
4090 else
4091
4092                         cache=no
4093                         LINE=`grep "^wxUSE_DMALLOC=" ${wx_arg_cache_file}`
4094                         if test "x$LINE" != x ; then
4095                           eval "DEFAULT_$LINE"
4096                         fi
4097
4098                         wx_cv_use_dmalloc='wxUSE_DMALLOC=${'DEFAULT_wxUSE_DMALLOC":-$defaultval}"
4099
4100 fi
4101
4102
4103           eval "$wx_cv_use_dmalloc"
4104           if test "x$cache" = xyes; then
4105             echo "wxUSE_DMALLOC=$wxUSE_DMALLOC" >> ${wx_arg_cache_file}.tmp
4106           fi
4107
4108           if test x"$withstring" = xwithout; then
4109             if test $wxUSE_DMALLOC = yes; then
4110               result=no
4111             else
4112               result=yes
4113             fi
4114           else
4115             result=$wxUSE_DMALLOC
4116           fi
4117
4118           { echo "$as_me:$LINENO: result: $result" >&5
4119 echo "${ECHO_T}$result" >&6; }
4120
4121
4122           withstring=
4123           defaultval=$wxUSE_ALL_FEATURES
4124           if test -z "$defaultval"; then
4125               if test x"$withstring" = xwithout; then
4126                   defaultval=yes
4127               else
4128                   defaultval=no
4129               fi
4130           fi
4131           { echo "$as_me:$LINENO: checking for --${withstring:-with}-sdl" >&5
4132 echo $ECHO_N "checking for --${withstring:-with}-sdl... $ECHO_C" >&6; }
4133
4134 # Check whether --with-sdl was given.
4135 if test "${with_sdl+set}" = set; then
4136   withval=$with_sdl;
4137                         if test "$withval" = yes; then
4138                           wx_cv_use_sdl='wxUSE_LIBSDL=yes'
4139                         else
4140                           wx_cv_use_sdl='wxUSE_LIBSDL=no'
4141                         fi
4142                         cache=yes
4143
4144 else
4145
4146                         cache=no
4147                         LINE=`grep "^wxUSE_LIBSDL=" ${wx_arg_cache_file}`
4148                         if test "x$LINE" != x ; then
4149                           eval "DEFAULT_$LINE"
4150                         fi
4151
4152                         wx_cv_use_sdl='wxUSE_LIBSDL=${'DEFAULT_wxUSE_LIBSDL":-$defaultval}"
4153
4154 fi
4155
4156
4157           eval "$wx_cv_use_sdl"
4158           if test "x$cache" = xyes; then
4159             echo "wxUSE_LIBSDL=$wxUSE_LIBSDL" >> ${wx_arg_cache_file}.tmp
4160           fi
4161
4162           if test x"$withstring" = xwithout; then
4163             if test $wxUSE_LIBSDL = yes; then
4164               result=no
4165             else
4166               result=yes
4167             fi
4168           else
4169             result=$wxUSE_LIBSDL
4170           fi
4171
4172           { echo "$as_me:$LINENO: result: $result" >&5
4173 echo "${ECHO_T}$result" >&6; }
4174
4175
4176           { echo "$as_me:$LINENO: checking for --with-regex" >&5
4177 echo $ECHO_N "checking for --with-regex... $ECHO_C" >&6; }
4178
4179 # Check whether --with-regex was given.
4180 if test "${with_regex+set}" = set; then
4181   withval=$with_regex;
4182                         if test "$withval" = yes; then
4183                           wx_cv_use_regex='wxUSE_REGEX=yes'
4184                         elif test "$withval" = no; then
4185                           wx_cv_use_regex='wxUSE_REGEX=no'
4186                         elif test "$withval" = sys; then
4187                           wx_cv_use_regex='wxUSE_REGEX=sys'
4188                         elif test "$withval" = builtin; then
4189                           wx_cv_use_regex='wxUSE_REGEX=builtin'
4190                         else
4191                           { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4192 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4193    { (exit 1); exit 1; }; }
4194                         fi
4195                         cache=yes
4196
4197 else
4198
4199                         cache=no
4200                         LINE=`grep "^wxUSE_REGEX=" ${wx_arg_cache_file}`
4201                         if test "x$LINE" != x ; then
4202                           eval "DEFAULT_$LINE"
4203                         fi
4204
4205                         wx_cv_use_regex='wxUSE_REGEX=${'DEFAULT_wxUSE_REGEX":-$wxUSE_ALL_FEATURES}"
4206
4207 fi
4208
4209
4210           eval "$wx_cv_use_regex"
4211           if test "x$cache" = xyes; then
4212             echo "wxUSE_REGEX=$wxUSE_REGEX" >> ${wx_arg_cache_file}.tmp
4213           fi
4214
4215           if test "$wxUSE_REGEX" = yes; then
4216             { echo "$as_me:$LINENO: result: yes" >&5
4217 echo "${ECHO_T}yes" >&6; }
4218           elif test "$wxUSE_REGEX" = no; then
4219             { echo "$as_me:$LINENO: result: no" >&5
4220 echo "${ECHO_T}no" >&6; }
4221           elif test "$wxUSE_REGEX" = sys; then
4222             { echo "$as_me:$LINENO: result: system version" >&5
4223 echo "${ECHO_T}system version" >&6; }
4224           elif test "$wxUSE_REGEX" = builtin; then
4225             { echo "$as_me:$LINENO: result: builtin version" >&5
4226 echo "${ECHO_T}builtin version" >&6; }
4227           else
4228             { { echo "$as_me:$LINENO: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&5
4229 echo "$as_me: error: Invalid value for --with-regex: should be yes, no, sys, or builtin" >&2;}
4230    { (exit 1); exit 1; }; }
4231           fi
4232
4233
4234           { echo "$as_me:$LINENO: checking for --with-zlib" >&5
4235 echo $ECHO_N "checking for --with-zlib... $ECHO_C" >&6; }
4236
4237 # Check whether --with-zlib was given.
4238 if test "${with_zlib+set}" = set; then
4239   withval=$with_zlib;
4240                         if test "$withval" = yes; then
4241                           wx_cv_use_zlib='wxUSE_ZLIB=yes'
4242                         elif test "$withval" = no; then
4243                           wx_cv_use_zlib='wxUSE_ZLIB=no'
4244                         elif test "$withval" = sys; then
4245                           wx_cv_use_zlib='wxUSE_ZLIB=sys'
4246                         elif test "$withval" = builtin; then
4247                           wx_cv_use_zlib='wxUSE_ZLIB=builtin'
4248                         else
4249                           { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4250 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4251    { (exit 1); exit 1; }; }
4252                         fi
4253                         cache=yes
4254
4255 else
4256
4257                         cache=no
4258                         LINE=`grep "^wxUSE_ZLIB=" ${wx_arg_cache_file}`
4259                         if test "x$LINE" != x ; then
4260                           eval "DEFAULT_$LINE"
4261                         fi
4262
4263                         wx_cv_use_zlib='wxUSE_ZLIB=${'DEFAULT_wxUSE_ZLIB":-$wxUSE_ALL_FEATURES}"
4264
4265 fi
4266
4267
4268           eval "$wx_cv_use_zlib"
4269           if test "x$cache" = xyes; then
4270             echo "wxUSE_ZLIB=$wxUSE_ZLIB" >> ${wx_arg_cache_file}.tmp
4271           fi
4272
4273           if test "$wxUSE_ZLIB" = yes; then
4274             { echo "$as_me:$LINENO: result: yes" >&5
4275 echo "${ECHO_T}yes" >&6; }
4276           elif test "$wxUSE_ZLIB" = no; then
4277             { echo "$as_me:$LINENO: result: no" >&5
4278 echo "${ECHO_T}no" >&6; }
4279           elif test "$wxUSE_ZLIB" = sys; then
4280             { echo "$as_me:$LINENO: result: system version" >&5
4281 echo "${ECHO_T}system version" >&6; }
4282           elif test "$wxUSE_ZLIB" = builtin; then
4283             { echo "$as_me:$LINENO: result: builtin version" >&5
4284 echo "${ECHO_T}builtin version" >&6; }
4285           else
4286             { { echo "$as_me:$LINENO: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&5
4287 echo "$as_me: error: Invalid value for --with-zlib: should be yes, no, sys, or builtin" >&2;}
4288    { (exit 1); exit 1; }; }
4289           fi
4290
4291
4292           { echo "$as_me:$LINENO: checking for --with-odbc" >&5
4293 echo $ECHO_N "checking for --with-odbc... $ECHO_C" >&6; }
4294
4295 # Check whether --with-odbc was given.
4296 if test "${with_odbc+set}" = set; then
4297   withval=$with_odbc;
4298                         if test "$withval" = yes; then
4299                           wx_cv_use_odbc='wxUSE_ODBC=yes'
4300                         elif test "$withval" = no; then
4301                           wx_cv_use_odbc='wxUSE_ODBC=no'
4302                         elif test "$withval" = sys; then
4303                           wx_cv_use_odbc='wxUSE_ODBC=sys'
4304                         elif test "$withval" = builtin; then
4305                           wx_cv_use_odbc='wxUSE_ODBC=builtin'
4306                         else
4307                           { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4308 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4309    { (exit 1); exit 1; }; }
4310                         fi
4311                         cache=yes
4312
4313 else
4314
4315                         cache=no
4316                         LINE=`grep "^wxUSE_ODBC=" ${wx_arg_cache_file}`
4317                         if test "x$LINE" != x ; then
4318                           eval "DEFAULT_$LINE"
4319                         fi
4320
4321                         wx_cv_use_odbc='wxUSE_ODBC=${'DEFAULT_wxUSE_ODBC":-$wxUSE_ALL_FEATURES}"
4322
4323 fi
4324
4325
4326           eval "$wx_cv_use_odbc"
4327           if test "x$cache" = xyes; then
4328             echo "wxUSE_ODBC=$wxUSE_ODBC" >> ${wx_arg_cache_file}.tmp
4329           fi
4330
4331           if test "$wxUSE_ODBC" = yes; then
4332             { echo "$as_me:$LINENO: result: yes" >&5
4333 echo "${ECHO_T}yes" >&6; }
4334           elif test "$wxUSE_ODBC" = no; then
4335             { echo "$as_me:$LINENO: result: no" >&5
4336 echo "${ECHO_T}no" >&6; }
4337           elif test "$wxUSE_ODBC" = sys; then
4338             { echo "$as_me:$LINENO: result: system version" >&5
4339 echo "${ECHO_T}system version" >&6; }
4340           elif test "$wxUSE_ODBC" = builtin; then
4341             { echo "$as_me:$LINENO: result: builtin version" >&5
4342 echo "${ECHO_T}builtin version" >&6; }
4343           else
4344             { { echo "$as_me:$LINENO: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&5
4345 echo "$as_me: error: Invalid value for --with-odbc: should be yes, no, sys, or builtin" >&2;}
4346    { (exit 1); exit 1; }; }
4347           fi
4348
4349
4350           { echo "$as_me:$LINENO: checking for --with-expat" >&5
4351 echo $ECHO_N "checking for --with-expat... $ECHO_C" >&6; }
4352
4353 # Check whether --with-expat was given.
4354 if test "${with_expat+set}" = set; then
4355   withval=$with_expat;
4356                         if test "$withval" = yes; then
4357                           wx_cv_use_expat='wxUSE_EXPAT=yes'
4358                         elif test "$withval" = no; then
4359                           wx_cv_use_expat='wxUSE_EXPAT=no'
4360                         elif test "$withval" = sys; then
4361                           wx_cv_use_expat='wxUSE_EXPAT=sys'
4362                         elif test "$withval" = builtin; then
4363                           wx_cv_use_expat='wxUSE_EXPAT=builtin'
4364                         else
4365                           { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4366 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4367    { (exit 1); exit 1; }; }
4368                         fi
4369                         cache=yes
4370
4371 else
4372
4373                         cache=no
4374                         LINE=`grep "^wxUSE_EXPAT=" ${wx_arg_cache_file}`
4375                         if test "x$LINE" != x ; then
4376                           eval "DEFAULT_$LINE"
4377                         fi
4378
4379                         wx_cv_use_expat='wxUSE_EXPAT=${'DEFAULT_wxUSE_EXPAT":-$wxUSE_ALL_FEATURES}"
4380
4381 fi
4382
4383
4384           eval "$wx_cv_use_expat"
4385           if test "x$cache" = xyes; then
4386             echo "wxUSE_EXPAT=$wxUSE_EXPAT" >> ${wx_arg_cache_file}.tmp
4387           fi
4388
4389           if test "$wxUSE_EXPAT" = yes; then
4390             { echo "$as_me:$LINENO: result: yes" >&5
4391 echo "${ECHO_T}yes" >&6; }
4392           elif test "$wxUSE_EXPAT" = no; then
4393             { echo "$as_me:$LINENO: result: no" >&5
4394 echo "${ECHO_T}no" >&6; }
4395           elif test "$wxUSE_EXPAT" = sys; then
4396             { echo "$as_me:$LINENO: result: system version" >&5
4397 echo "${ECHO_T}system version" >&6; }
4398           elif test "$wxUSE_EXPAT" = builtin; then
4399             { echo "$as_me:$LINENO: result: builtin version" >&5
4400 echo "${ECHO_T}builtin version" >&6; }
4401           else
4402             { { echo "$as_me:$LINENO: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&5
4403 echo "$as_me: error: Invalid value for --with-expat: should be yes, no, sys, or builtin" >&2;}
4404    { (exit 1); exit 1; }; }
4405           fi
4406
4407
4408 { echo "$as_me:$LINENO: checking for --with-macosx-sdk" >&5
4409 echo $ECHO_N "checking for --with-macosx-sdk... $ECHO_C" >&6; }
4410
4411 # Check whether --with-macosx-sdk was given.
4412 if test "${with_macosx_sdk+set}" = set; then
4413   withval=$with_macosx_sdk;
4414         wxUSE_MACOSX_SDK=$withval
4415         wx_cv_use_macosx_sdk="wxUSE_MACOSX_SDK=$withval"
4416         echo "wxUSE_MACOSX_SDK=$wxUSE_MACOSX_SDK" >> ${wx_arg_cache_file}.tmp
4417
4418 else
4419
4420         # NOTE: Empty string on purpose so that --without-macosx-sdk (thus no)
4421         # will override --enable-universal_binary's automatic SDK usage.
4422         wxUSE_MACOSX_SDK=
4423         LINE=`grep "^wxUSE_MACOSX_SDK=" ${wx_arg_cache_file}`
4424         if test "x$LINE" != x ; then
4425             eval "$LINE"
4426             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4427         fi
4428
4429 fi
4430
4431 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_SDK" >&5
4432 echo "${ECHO_T}$wxUSE_MACOSX_SDK" >&6; }
4433
4434 { echo "$as_me:$LINENO: checking for --with-macosx-version-min" >&5
4435 echo $ECHO_N "checking for --with-macosx-version-min... $ECHO_C" >&6; }
4436
4437 # Check whether --with-macosx-version-min was given.
4438 if test "${with_macosx_version_min+set}" = set; then
4439   withval=$with_macosx_version_min;
4440         wxUSE_MACOSX_VERSION_MIN=$withval
4441         wx_cv_use_macosx_version_min="wxUSE_MACOSX_VERSION_MIN=$withval"
4442         echo "wxUSE_MACOSX_VERSION_MIN=$wxUSE_MACOSX_VERSION_MIN" >> ${wx_arg_cache_file}.tmp
4443
4444 else
4445
4446         # default "yes" because when not using an SDK it means the same as no
4447         # but when using an SDK it means to use the SDK version
4448         wxUSE_MACOSX_VERSION_MIN=yes
4449         # See if there is a value in the cache
4450         LINE=`grep "^wxUSE_MACOSX_VERSION_MIN=" ${wx_arg_cache_file}`
4451         if test "x$LINE" != x ; then
4452             eval "$LINE"
4453             echo "$LINE" >> ${wx_arg_cache_file}.tmp
4454         fi
4455
4456 fi
4457
4458 { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
4459 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
4460
4461
4462
4463           enablestring=disable
4464           defaultval=
4465           if test -z "$defaultval"; then
4466               if test x"$enablestring" = xdisable; then
4467                   defaultval=yes
4468               else
4469                   defaultval=no
4470               fi
4471           fi
4472
4473           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-shared" >&5
4474 echo $ECHO_N "checking for --${enablestring:-enable}-shared... $ECHO_C" >&6; }
4475           # Check whether --enable-shared was given.
4476 if test "${enable_shared+set}" = set; then
4477   enableval=$enable_shared;
4478                           if test "$enableval" = yes; then
4479                             wx_cv_use_shared='wxUSE_SHARED=yes'
4480                           else
4481                             wx_cv_use_shared='wxUSE_SHARED=no'
4482                           fi
4483                           cache=yes
4484
4485 else
4486
4487                           cache=no
4488                           LINE=`grep "^wxUSE_SHARED=" ${wx_arg_cache_file}`
4489                           if test "x$LINE" != x ; then
4490                             eval "DEFAULT_$LINE"
4491                           fi
4492
4493                           wx_cv_use_shared='wxUSE_SHARED=${'DEFAULT_wxUSE_SHARED":-$defaultval}"
4494
4495 fi
4496
4497
4498           eval "$wx_cv_use_shared"
4499           if test "x$cache" = xyes; then
4500             echo "wxUSE_SHARED=$wxUSE_SHARED" >> ${wx_arg_cache_file}.tmp
4501           fi
4502
4503           if test x"$enablestring" = xdisable; then
4504             if test $wxUSE_SHARED = yes; then
4505               result=no
4506             else
4507               result=yes
4508             fi
4509           else
4510             result=$wxUSE_SHARED
4511           fi
4512
4513           { echo "$as_me:$LINENO: result: $result" >&5
4514 echo "${ECHO_T}$result" >&6; }
4515
4516
4517           enablestring=disable
4518           defaultval=
4519           if test -z "$defaultval"; then
4520               if test x"$enablestring" = xdisable; then
4521                   defaultval=yes
4522               else
4523                   defaultval=no
4524               fi
4525           fi
4526
4527           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-optimise" >&5
4528 echo $ECHO_N "checking for --${enablestring:-enable}-optimise... $ECHO_C" >&6; }
4529           # Check whether --enable-optimise was given.
4530 if test "${enable_optimise+set}" = set; then
4531   enableval=$enable_optimise;
4532                           if test "$enableval" = yes; then
4533                             wx_cv_use_optimise='wxUSE_OPTIMISE=yes'
4534                           else
4535                             wx_cv_use_optimise='wxUSE_OPTIMISE=no'
4536                           fi
4537                           cache=yes
4538
4539 else
4540
4541                           cache=no
4542                           LINE=`grep "^wxUSE_OPTIMISE=" ${wx_arg_cache_file}`
4543                           if test "x$LINE" != x ; then
4544                             eval "DEFAULT_$LINE"
4545                           fi
4546
4547                           wx_cv_use_optimise='wxUSE_OPTIMISE=${'DEFAULT_wxUSE_OPTIMISE":-$defaultval}"
4548
4549 fi
4550
4551
4552           eval "$wx_cv_use_optimise"
4553           if test "x$cache" = xyes; then
4554             echo "wxUSE_OPTIMISE=$wxUSE_OPTIMISE" >> ${wx_arg_cache_file}.tmp
4555           fi
4556
4557           if test x"$enablestring" = xdisable; then
4558             if test $wxUSE_OPTIMISE = yes; then
4559               result=no
4560             else
4561               result=yes
4562             fi
4563           else
4564             result=$wxUSE_OPTIMISE
4565           fi
4566
4567           { echo "$as_me:$LINENO: result: $result" >&5
4568 echo "${ECHO_T}$result" >&6; }
4569
4570
4571           enablestring=
4572           defaultval=
4573           if test -z "$defaultval"; then
4574               if test x"$enablestring" = xdisable; then
4575                   defaultval=yes
4576               else
4577                   defaultval=no
4578               fi
4579           fi
4580
4581           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug" >&5
4582 echo $ECHO_N "checking for --${enablestring:-enable}-debug... $ECHO_C" >&6; }
4583           # Check whether --enable-debug was given.
4584 if test "${enable_debug+set}" = set; then
4585   enableval=$enable_debug;
4586                           if test "$enableval" = yes; then
4587                             wx_cv_use_debug='wxUSE_DEBUG=yes'
4588                           else
4589                             wx_cv_use_debug='wxUSE_DEBUG=no'
4590                           fi
4591                           cache=yes
4592
4593 else
4594
4595                           cache=no
4596                           LINE=`grep "^wxUSE_DEBUG=" ${wx_arg_cache_file}`
4597                           if test "x$LINE" != x ; then
4598                             eval "DEFAULT_$LINE"
4599                           fi
4600
4601                           wx_cv_use_debug='wxUSE_DEBUG=${'DEFAULT_wxUSE_DEBUG":-$defaultval}"
4602
4603 fi
4604
4605
4606           eval "$wx_cv_use_debug"
4607           if test "x$cache" = xyes; then
4608             echo "wxUSE_DEBUG=$wxUSE_DEBUG" >> ${wx_arg_cache_file}.tmp
4609           fi
4610
4611           if test x"$enablestring" = xdisable; then
4612             if test $wxUSE_DEBUG = yes; then
4613               result=no
4614             else
4615               result=yes
4616             fi
4617           else
4618             result=$wxUSE_DEBUG
4619           fi
4620
4621           { echo "$as_me:$LINENO: result: $result" >&5
4622 echo "${ECHO_T}$result" >&6; }
4623
4624
4625           enablestring=
4626           defaultval=
4627           if test -z "$defaultval"; then
4628               if test x"$enablestring" = xdisable; then
4629                   defaultval=yes
4630               else
4631                   defaultval=no
4632               fi
4633           fi
4634
4635           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stl" >&5
4636 echo $ECHO_N "checking for --${enablestring:-enable}-stl... $ECHO_C" >&6; }
4637           # Check whether --enable-stl was given.
4638 if test "${enable_stl+set}" = set; then
4639   enableval=$enable_stl;
4640                           if test "$enableval" = yes; then
4641                             wx_cv_use_stl='wxUSE_STL=yes'
4642                           else
4643                             wx_cv_use_stl='wxUSE_STL=no'
4644                           fi
4645                           cache=yes
4646
4647 else
4648
4649                           cache=no
4650                           LINE=`grep "^wxUSE_STL=" ${wx_arg_cache_file}`
4651                           if test "x$LINE" != x ; then
4652                             eval "DEFAULT_$LINE"
4653                           fi
4654
4655                           wx_cv_use_stl='wxUSE_STL=${'DEFAULT_wxUSE_STL":-$defaultval}"
4656
4657 fi
4658
4659
4660           eval "$wx_cv_use_stl"
4661           if test "x$cache" = xyes; then
4662             echo "wxUSE_STL=$wxUSE_STL" >> ${wx_arg_cache_file}.tmp
4663           fi
4664
4665           if test x"$enablestring" = xdisable; then
4666             if test $wxUSE_STL = yes; then
4667               result=no
4668             else
4669               result=yes
4670             fi
4671           else
4672             result=$wxUSE_STL
4673           fi
4674
4675           { echo "$as_me:$LINENO: result: $result" >&5
4676 echo "${ECHO_T}$result" >&6; }
4677
4678
4679           enablestring=
4680           defaultval=
4681           if test -z "$defaultval"; then
4682               if test x"$enablestring" = xdisable; then
4683                   defaultval=yes
4684               else
4685                   defaultval=no
4686               fi
4687           fi
4688
4689           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_iostreams" >&5
4690 echo $ECHO_N "checking for --${enablestring:-enable}-std_iostreams... $ECHO_C" >&6; }
4691           # Check whether --enable-std_iostreams was given.
4692 if test "${enable_std_iostreams+set}" = set; then
4693   enableval=$enable_std_iostreams;
4694                           if test "$enableval" = yes; then
4695                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=yes'
4696                           else
4697                             wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=no'
4698                           fi
4699                           cache=yes
4700
4701 else
4702
4703                           cache=no
4704                           LINE=`grep "^wxUSE_STD_IOSTREAM=" ${wx_arg_cache_file}`
4705                           if test "x$LINE" != x ; then
4706                             eval "DEFAULT_$LINE"
4707                           fi
4708
4709                           wx_cv_use_std_iostreams='wxUSE_STD_IOSTREAM=${'DEFAULT_wxUSE_STD_IOSTREAM":-$defaultval}"
4710
4711 fi
4712
4713
4714           eval "$wx_cv_use_std_iostreams"
4715           if test "x$cache" = xyes; then
4716             echo "wxUSE_STD_IOSTREAM=$wxUSE_STD_IOSTREAM" >> ${wx_arg_cache_file}.tmp
4717           fi
4718
4719           if test x"$enablestring" = xdisable; then
4720             if test $wxUSE_STD_IOSTREAM = yes; then
4721               result=no
4722             else
4723               result=yes
4724             fi
4725           else
4726             result=$wxUSE_STD_IOSTREAM
4727           fi
4728
4729           { echo "$as_me:$LINENO: result: $result" >&5
4730 echo "${ECHO_T}$result" >&6; }
4731
4732
4733           enablestring=
4734           defaultval=
4735           if test -z "$defaultval"; then
4736               if test x"$enablestring" = xdisable; then
4737                   defaultval=yes
4738               else
4739                   defaultval=no
4740               fi
4741           fi
4742
4743           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-std_string" >&5
4744 echo $ECHO_N "checking for --${enablestring:-enable}-std_string... $ECHO_C" >&6; }
4745           # Check whether --enable-std_string was given.
4746 if test "${enable_std_string+set}" = set; then
4747   enableval=$enable_std_string;
4748                           if test "$enableval" = yes; then
4749                             wx_cv_use_std_string='wxUSE_STD_STRING=yes'
4750                           else
4751                             wx_cv_use_std_string='wxUSE_STD_STRING=no'
4752                           fi
4753                           cache=yes
4754
4755 else
4756
4757                           cache=no
4758                           LINE=`grep "^wxUSE_STD_STRING=" ${wx_arg_cache_file}`
4759                           if test "x$LINE" != x ; then
4760                             eval "DEFAULT_$LINE"
4761                           fi
4762
4763                           wx_cv_use_std_string='wxUSE_STD_STRING=${'DEFAULT_wxUSE_STD_STRING":-$defaultval}"
4764
4765 fi
4766
4767
4768           eval "$wx_cv_use_std_string"
4769           if test "x$cache" = xyes; then
4770             echo "wxUSE_STD_STRING=$wxUSE_STD_STRING" >> ${wx_arg_cache_file}.tmp
4771           fi
4772
4773           if test x"$enablestring" = xdisable; then
4774             if test $wxUSE_STD_STRING = yes; then
4775               result=no
4776             else
4777               result=yes
4778             fi
4779           else
4780             result=$wxUSE_STD_STRING
4781           fi
4782
4783           { echo "$as_me:$LINENO: result: $result" >&5
4784 echo "${ECHO_T}$result" >&6; }
4785
4786
4787           enablestring=disable
4788           defaultval=
4789           if test -z "$defaultval"; then
4790               if test x"$enablestring" = xdisable; then
4791                   defaultval=yes
4792               else
4793                   defaultval=no
4794               fi
4795           fi
4796
4797           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-unicode" >&5
4798 echo $ECHO_N "checking for --${enablestring:-enable}-unicode... $ECHO_C" >&6; }
4799           # Check whether --enable-unicode was given.
4800 if test "${enable_unicode+set}" = set; then
4801   enableval=$enable_unicode;
4802                           if test "$enableval" = yes; then
4803                             wx_cv_use_unicode='wxUSE_UNICODE=yes'
4804                           else
4805                             wx_cv_use_unicode='wxUSE_UNICODE=no'
4806                           fi
4807                           cache=yes
4808
4809 else
4810
4811                           cache=no
4812                           LINE=`grep "^wxUSE_UNICODE=" ${wx_arg_cache_file}`
4813                           if test "x$LINE" != x ; then
4814                             eval "DEFAULT_$LINE"
4815                           fi
4816
4817                           wx_cv_use_unicode='wxUSE_UNICODE=${'DEFAULT_wxUSE_UNICODE":-$defaultval}"
4818
4819 fi
4820
4821
4822           eval "$wx_cv_use_unicode"
4823           if test "x$cache" = xyes; then
4824             echo "wxUSE_UNICODE=$wxUSE_UNICODE" >> ${wx_arg_cache_file}.tmp
4825           fi
4826
4827           if test x"$enablestring" = xdisable; then
4828             if test $wxUSE_UNICODE = yes; then
4829               result=no
4830             else
4831               result=yes
4832             fi
4833           else
4834             result=$wxUSE_UNICODE
4835           fi
4836
4837           { echo "$as_me:$LINENO: result: $result" >&5
4838 echo "${ECHO_T}$result" >&6; }
4839
4840
4841           enablestring=
4842           defaultval=
4843           if test -z "$defaultval"; then
4844               if test x"$enablestring" = xdisable; then
4845                   defaultval=yes
4846               else
4847                   defaultval=no
4848               fi
4849           fi
4850
4851           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mslu" >&5
4852 echo $ECHO_N "checking for --${enablestring:-enable}-mslu... $ECHO_C" >&6; }
4853           # Check whether --enable-mslu was given.
4854 if test "${enable_mslu+set}" = set; then
4855   enableval=$enable_mslu;
4856                           if test "$enableval" = yes; then
4857                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=yes'
4858                           else
4859                             wx_cv_use_mslu='wxUSE_UNICODE_MSLU=no'
4860                           fi
4861                           cache=yes
4862
4863 else
4864
4865                           cache=no
4866                           LINE=`grep "^wxUSE_UNICODE_MSLU=" ${wx_arg_cache_file}`
4867                           if test "x$LINE" != x ; then
4868                             eval "DEFAULT_$LINE"
4869                           fi
4870
4871                           wx_cv_use_mslu='wxUSE_UNICODE_MSLU=${'DEFAULT_wxUSE_UNICODE_MSLU":-$defaultval}"
4872
4873 fi
4874
4875
4876           eval "$wx_cv_use_mslu"
4877           if test "x$cache" = xyes; then
4878             echo "wxUSE_UNICODE_MSLU=$wxUSE_UNICODE_MSLU" >> ${wx_arg_cache_file}.tmp
4879           fi
4880
4881           if test x"$enablestring" = xdisable; then
4882             if test $wxUSE_UNICODE_MSLU = yes; then
4883               result=no
4884             else
4885               result=yes
4886             fi
4887           else
4888             result=$wxUSE_UNICODE_MSLU
4889           fi
4890
4891           { echo "$as_me:$LINENO: result: $result" >&5
4892 echo "${ECHO_T}$result" >&6; }
4893
4894
4895           enablestring=
4896           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8" >&5
4897 echo $ECHO_N "checking for --${enablestring:-enable}-utf8... $ECHO_C" >&6; }
4898           # Check whether --enable-utf8 was given.
4899 if test "${enable_utf8+set}" = set; then
4900   enableval=$enable_utf8;
4901                           wx_cv_use_utf8="wxUSE_UNICODE_UTF8='$enableval'"
4902                           cache=yes
4903
4904 else
4905
4906                           cache=no
4907                           LINE=`grep "^wxUSE_UNICODE_UTF8=" ${wx_arg_cache_file}`
4908                           if test "x$LINE" != x ; then
4909                             eval "DEFAULT_$LINE"
4910                           fi
4911
4912                           wx_cv_use_utf8='wxUSE_UNICODE_UTF8='$DEFAULT_wxUSE_UNICODE_UTF8
4913
4914 fi
4915
4916
4917           eval "$wx_cv_use_utf8"
4918           if test "x$cache" = xyes; then
4919             echo "wxUSE_UNICODE_UTF8=$wxUSE_UNICODE_UTF8" >> ${wx_arg_cache_file}.tmp
4920           fi
4921
4922           { echo "$as_me:$LINENO: result: $wxUSE_UNICODE_UTF8" >&5
4923 echo "${ECHO_T}$wxUSE_UNICODE_UTF8" >&6; }
4924
4925
4926           enablestring=
4927           defaultval=
4928           if test -z "$defaultval"; then
4929               if test x"$enablestring" = xdisable; then
4930                   defaultval=yes
4931               else
4932                   defaultval=no
4933               fi
4934           fi
4935
4936           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-utf8only" >&5
4937 echo $ECHO_N "checking for --${enablestring:-enable}-utf8only... $ECHO_C" >&6; }
4938           # Check whether --enable-utf8only was given.
4939 if test "${enable_utf8only+set}" = set; then
4940   enableval=$enable_utf8only;
4941                           if test "$enableval" = yes; then
4942                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=yes'
4943                           else
4944                             wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=no'
4945                           fi
4946                           cache=yes
4947
4948 else
4949
4950                           cache=no
4951                           LINE=`grep "^wxUSE_UNICODE_UTF8_LOCALE=" ${wx_arg_cache_file}`
4952                           if test "x$LINE" != x ; then
4953                             eval "DEFAULT_$LINE"
4954                           fi
4955
4956                           wx_cv_use_utf8only='wxUSE_UNICODE_UTF8_LOCALE=${'DEFAULT_wxUSE_UNICODE_UTF8_LOCALE":-$defaultval}"
4957
4958 fi
4959
4960
4961           eval "$wx_cv_use_utf8only"
4962           if test "x$cache" = xyes; then
4963             echo "wxUSE_UNICODE_UTF8_LOCALE=$wxUSE_UNICODE_UTF8_LOCALE" >> ${wx_arg_cache_file}.tmp
4964           fi
4965
4966           if test x"$enablestring" = xdisable; then
4967             if test $wxUSE_UNICODE_UTF8_LOCALE = yes; then
4968               result=no
4969             else
4970               result=yes
4971             fi
4972           else
4973             result=$wxUSE_UNICODE_UTF8_LOCALE
4974           fi
4975
4976           { echo "$as_me:$LINENO: result: $result" >&5
4977 echo "${ECHO_T}$result" >&6; }
4978
4979
4980           enablestring=
4981           defaultval=
4982           if test -z "$defaultval"; then
4983               if test x"$enablestring" = xdisable; then
4984                   defaultval=yes
4985               else
4986                   defaultval=no
4987               fi
4988           fi
4989
4990           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-extended_rtti" >&5
4991 echo $ECHO_N "checking for --${enablestring:-enable}-extended_rtti... $ECHO_C" >&6; }
4992           # Check whether --enable-extended_rtti was given.
4993 if test "${enable_extended_rtti+set}" = set; then
4994   enableval=$enable_extended_rtti;
4995                           if test "$enableval" = yes; then
4996                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=yes'
4997                           else
4998                             wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=no'
4999                           fi
5000                           cache=yes
5001
5002 else
5003
5004                           cache=no
5005                           LINE=`grep "^wxUSE_EXTENDED_RTTI=" ${wx_arg_cache_file}`
5006                           if test "x$LINE" != x ; then
5007                             eval "DEFAULT_$LINE"
5008                           fi
5009
5010                           wx_cv_use_extended_rtti='wxUSE_EXTENDED_RTTI=${'DEFAULT_wxUSE_EXTENDED_RTTI":-$defaultval}"
5011
5012 fi
5013
5014
5015           eval "$wx_cv_use_extended_rtti"
5016           if test "x$cache" = xyes; then
5017             echo "wxUSE_EXTENDED_RTTI=$wxUSE_EXTENDED_RTTI" >> ${wx_arg_cache_file}.tmp
5018           fi
5019
5020           if test x"$enablestring" = xdisable; then
5021             if test $wxUSE_EXTENDED_RTTI = yes; then
5022               result=no
5023             else
5024               result=yes
5025             fi
5026           else
5027             result=$wxUSE_EXTENDED_RTTI
5028           fi
5029
5030           { echo "$as_me:$LINENO: result: $result" >&5
5031 echo "${ECHO_T}$result" >&6; }
5032
5033 if test "$USE_OS2" = "1"; then
5034     DEFAULT_wxUSE_OMF=no
5035
5036           enablestring=
5037           defaultval=
5038           if test -z "$defaultval"; then
5039               if test x"$enablestring" = xdisable; then
5040                   defaultval=yes
5041               else
5042                   defaultval=no
5043               fi
5044           fi
5045
5046           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-omf" >&5
5047 echo $ECHO_N "checking for --${enablestring:-enable}-omf... $ECHO_C" >&6; }
5048           # Check whether --enable-omf was given.
5049 if test "${enable_omf+set}" = set; then
5050   enableval=$enable_omf;
5051                           if test "$enableval" = yes; then
5052                             wx_cv_use_omf='wxUSE_OMF=yes'
5053                           else
5054                             wx_cv_use_omf='wxUSE_OMF=no'
5055                           fi
5056                           cache=yes
5057
5058 else
5059
5060                           cache=no
5061                           LINE=`grep "^wxUSE_OMF=" ${wx_arg_cache_file}`
5062                           if test "x$LINE" != x ; then
5063                             eval "DEFAULT_$LINE"
5064                           fi
5065
5066                           wx_cv_use_omf='wxUSE_OMF=${'DEFAULT_wxUSE_OMF":-$defaultval}"
5067
5068 fi
5069
5070
5071           eval "$wx_cv_use_omf"
5072           if test "x$cache" = xyes; then
5073             echo "wxUSE_OMF=$wxUSE_OMF" >> ${wx_arg_cache_file}.tmp
5074           fi
5075
5076           if test x"$enablestring" = xdisable; then
5077             if test $wxUSE_OMF = yes; then
5078               result=no
5079             else
5080               result=yes
5081             fi
5082           else
5083             result=$wxUSE_OMF
5084           fi
5085
5086           { echo "$as_me:$LINENO: result: $result" >&5
5087 echo "${ECHO_T}$result" >&6; }
5088
5089 fi
5090
5091 if test "$wxUSE_DEBUG" = "yes"; then
5092   DEFAULT_wxUSE_DEBUG_FLAG=yes
5093   DEFAULT_wxUSE_DEBUG_INFO=yes
5094   BUILD=debug
5095 elif test "$wxUSE_DEBUG" = "no"; then
5096   DEFAULT_wxUSE_DEBUG_FLAG=no
5097   DEFAULT_wxUSE_DEBUG_INFO=no
5098   BUILD=release
5099 fi
5100
5101
5102           enablestring=
5103           defaultval=
5104           if test -z "$defaultval"; then
5105               if test x"$enablestring" = xdisable; then
5106                   defaultval=yes
5107               else
5108                   defaultval=no
5109               fi
5110           fi
5111
5112           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_flag" >&5
5113 echo $ECHO_N "checking for --${enablestring:-enable}-debug_flag... $ECHO_C" >&6; }
5114           # Check whether --enable-debug_flag was given.
5115 if test "${enable_debug_flag+set}" = set; then
5116   enableval=$enable_debug_flag;
5117                           if test "$enableval" = yes; then
5118                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=yes'
5119                           else
5120                             wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=no'
5121                           fi
5122                           cache=yes
5123
5124 else
5125
5126                           cache=no
5127                           LINE=`grep "^wxUSE_DEBUG_FLAG=" ${wx_arg_cache_file}`
5128                           if test "x$LINE" != x ; then
5129                             eval "DEFAULT_$LINE"
5130                           fi
5131
5132                           wx_cv_use_debug_flag='wxUSE_DEBUG_FLAG=${'DEFAULT_wxUSE_DEBUG_FLAG":-$defaultval}"
5133
5134 fi
5135
5136
5137           eval "$wx_cv_use_debug_flag"
5138           if test "x$cache" = xyes; then
5139             echo "wxUSE_DEBUG_FLAG=$wxUSE_DEBUG_FLAG" >> ${wx_arg_cache_file}.tmp
5140           fi
5141
5142           if test x"$enablestring" = xdisable; then
5143             if test $wxUSE_DEBUG_FLAG = yes; then
5144               result=no
5145             else
5146               result=yes
5147             fi
5148           else
5149             result=$wxUSE_DEBUG_FLAG
5150           fi
5151
5152           { echo "$as_me:$LINENO: result: $result" >&5
5153 echo "${ECHO_T}$result" >&6; }
5154
5155
5156           enablestring=
5157           defaultval=
5158           if test -z "$defaultval"; then
5159               if test x"$enablestring" = xdisable; then
5160                   defaultval=yes
5161               else
5162                   defaultval=no
5163               fi
5164           fi
5165
5166           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_info" >&5
5167 echo $ECHO_N "checking for --${enablestring:-enable}-debug_info... $ECHO_C" >&6; }
5168           # Check whether --enable-debug_info was given.
5169 if test "${enable_debug_info+set}" = set; then
5170   enableval=$enable_debug_info;
5171                           if test "$enableval" = yes; then
5172                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=yes'
5173                           else
5174                             wx_cv_use_debug_info='wxUSE_DEBUG_INFO=no'
5175                           fi
5176                           cache=yes
5177
5178 else
5179
5180                           cache=no
5181                           LINE=`grep "^wxUSE_DEBUG_INFO=" ${wx_arg_cache_file}`
5182                           if test "x$LINE" != x ; then
5183                             eval "DEFAULT_$LINE"
5184                           fi
5185
5186                           wx_cv_use_debug_info='wxUSE_DEBUG_INFO=${'DEFAULT_wxUSE_DEBUG_INFO":-$defaultval}"
5187
5188 fi
5189
5190
5191           eval "$wx_cv_use_debug_info"
5192           if test "x$cache" = xyes; then
5193             echo "wxUSE_DEBUG_INFO=$wxUSE_DEBUG_INFO" >> ${wx_arg_cache_file}.tmp
5194           fi
5195
5196           if test x"$enablestring" = xdisable; then
5197             if test $wxUSE_DEBUG_INFO = yes; then
5198               result=no
5199             else
5200               result=yes
5201             fi
5202           else
5203             result=$wxUSE_DEBUG_INFO
5204           fi
5205
5206           { echo "$as_me:$LINENO: result: $result" >&5
5207 echo "${ECHO_T}$result" >&6; }
5208
5209
5210           enablestring=
5211           defaultval=
5212           if test -z "$defaultval"; then
5213               if test x"$enablestring" = xdisable; then
5214                   defaultval=yes
5215               else
5216                   defaultval=no
5217               fi
5218           fi
5219
5220           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_gdb" >&5
5221 echo $ECHO_N "checking for --${enablestring:-enable}-debug_gdb... $ECHO_C" >&6; }
5222           # Check whether --enable-debug_gdb was given.
5223 if test "${enable_debug_gdb+set}" = set; then
5224   enableval=$enable_debug_gdb;
5225                           if test "$enableval" = yes; then
5226                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=yes'
5227                           else
5228                             wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=no'
5229                           fi
5230                           cache=yes
5231
5232 else
5233
5234                           cache=no
5235                           LINE=`grep "^wxUSE_DEBUG_GDB=" ${wx_arg_cache_file}`
5236                           if test "x$LINE" != x ; then
5237                             eval "DEFAULT_$LINE"
5238                           fi
5239
5240                           wx_cv_use_debug_gdb='wxUSE_DEBUG_GDB=${'DEFAULT_wxUSE_DEBUG_GDB":-$defaultval}"
5241
5242 fi
5243
5244
5245           eval "$wx_cv_use_debug_gdb"
5246           if test "x$cache" = xyes; then
5247             echo "wxUSE_DEBUG_GDB=$wxUSE_DEBUG_GDB" >> ${wx_arg_cache_file}.tmp
5248           fi
5249
5250           if test x"$enablestring" = xdisable; then
5251             if test $wxUSE_DEBUG_GDB = yes; then
5252               result=no
5253             else
5254               result=yes
5255             fi
5256           else
5257             result=$wxUSE_DEBUG_GDB
5258           fi
5259
5260           { echo "$as_me:$LINENO: result: $result" >&5
5261 echo "${ECHO_T}$result" >&6; }
5262
5263
5264           enablestring=
5265           defaultval=
5266           if test -z "$defaultval"; then
5267               if test x"$enablestring" = xdisable; then
5268                   defaultval=yes
5269               else
5270                   defaultval=no
5271               fi
5272           fi
5273
5274           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debug_cntxt" >&5
5275 echo $ECHO_N "checking for --${enablestring:-enable}-debug_cntxt... $ECHO_C" >&6; }
5276           # Check whether --enable-debug_cntxt was given.
5277 if test "${enable_debug_cntxt+set}" = set; then
5278   enableval=$enable_debug_cntxt;
5279                           if test "$enableval" = yes; then
5280                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=yes'
5281                           else
5282                             wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=no'
5283                           fi
5284                           cache=yes
5285
5286 else
5287
5288                           cache=no
5289                           LINE=`grep "^wxUSE_DEBUG_CONTEXT=" ${wx_arg_cache_file}`
5290                           if test "x$LINE" != x ; then
5291                             eval "DEFAULT_$LINE"
5292                           fi
5293
5294                           wx_cv_use_debug_cntxt='wxUSE_DEBUG_CONTEXT=${'DEFAULT_wxUSE_DEBUG_CONTEXT":-$defaultval}"
5295
5296 fi
5297
5298
5299           eval "$wx_cv_use_debug_cntxt"
5300           if test "x$cache" = xyes; then
5301             echo "wxUSE_DEBUG_CONTEXT=$wxUSE_DEBUG_CONTEXT" >> ${wx_arg_cache_file}.tmp
5302           fi
5303
5304           if test x"$enablestring" = xdisable; then
5305             if test $wxUSE_DEBUG_CONTEXT = yes; then
5306               result=no
5307             else
5308               result=yes
5309             fi
5310           else
5311             result=$wxUSE_DEBUG_CONTEXT
5312           fi
5313
5314           { echo "$as_me:$LINENO: result: $result" >&5
5315 echo "${ECHO_T}$result" >&6; }
5316
5317
5318           enablestring=
5319           defaultval=
5320           if test -z "$defaultval"; then
5321               if test x"$enablestring" = xdisable; then
5322                   defaultval=yes
5323               else
5324                   defaultval=no
5325               fi
5326           fi
5327
5328           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mem_tracing" >&5
5329 echo $ECHO_N "checking for --${enablestring:-enable}-mem_tracing... $ECHO_C" >&6; }
5330           # Check whether --enable-mem_tracing was given.
5331 if test "${enable_mem_tracing+set}" = set; then
5332   enableval=$enable_mem_tracing;
5333                           if test "$enableval" = yes; then
5334                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=yes'
5335                           else
5336                             wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=no'
5337                           fi
5338                           cache=yes
5339
5340 else
5341
5342                           cache=no
5343                           LINE=`grep "^wxUSE_MEM_TRACING=" ${wx_arg_cache_file}`
5344                           if test "x$LINE" != x ; then
5345                             eval "DEFAULT_$LINE"
5346                           fi
5347
5348                           wx_cv_use_mem_tracing='wxUSE_MEM_TRACING=${'DEFAULT_wxUSE_MEM_TRACING":-$defaultval}"
5349
5350 fi
5351
5352
5353           eval "$wx_cv_use_mem_tracing"
5354           if test "x$cache" = xyes; then
5355             echo "wxUSE_MEM_TRACING=$wxUSE_MEM_TRACING" >> ${wx_arg_cache_file}.tmp
5356           fi
5357
5358           if test x"$enablestring" = xdisable; then
5359             if test $wxUSE_MEM_TRACING = yes; then
5360               result=no
5361             else
5362               result=yes
5363             fi
5364           else
5365             result=$wxUSE_MEM_TRACING
5366           fi
5367
5368           { echo "$as_me:$LINENO: result: $result" >&5
5369 echo "${ECHO_T}$result" >&6; }
5370
5371
5372           enablestring=
5373           defaultval=
5374           if test -z "$defaultval"; then
5375               if test x"$enablestring" = xdisable; then
5376                   defaultval=yes
5377               else
5378                   defaultval=no
5379               fi
5380           fi
5381
5382           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-profile" >&5
5383 echo $ECHO_N "checking for --${enablestring:-enable}-profile... $ECHO_C" >&6; }
5384           # Check whether --enable-profile was given.
5385 if test "${enable_profile+set}" = set; then
5386   enableval=$enable_profile;
5387                           if test "$enableval" = yes; then
5388                             wx_cv_use_profile='wxUSE_PROFILE=yes'
5389                           else
5390                             wx_cv_use_profile='wxUSE_PROFILE=no'
5391                           fi
5392                           cache=yes
5393
5394 else
5395
5396                           cache=no
5397                           LINE=`grep "^wxUSE_PROFILE=" ${wx_arg_cache_file}`
5398                           if test "x$LINE" != x ; then
5399                             eval "DEFAULT_$LINE"
5400                           fi
5401
5402                           wx_cv_use_profile='wxUSE_PROFILE=${'DEFAULT_wxUSE_PROFILE":-$defaultval}"
5403
5404 fi
5405
5406
5407           eval "$wx_cv_use_profile"
5408           if test "x$cache" = xyes; then
5409             echo "wxUSE_PROFILE=$wxUSE_PROFILE" >> ${wx_arg_cache_file}.tmp
5410           fi
5411
5412           if test x"$enablestring" = xdisable; then
5413             if test $wxUSE_PROFILE = yes; then
5414               result=no
5415             else
5416               result=yes
5417             fi
5418           else
5419             result=$wxUSE_PROFILE
5420           fi
5421
5422           { echo "$as_me:$LINENO: result: $result" >&5
5423 echo "${ECHO_T}$result" >&6; }
5424
5425
5426           enablestring=
5427           defaultval=
5428           if test -z "$defaultval"; then
5429               if test x"$enablestring" = xdisable; then
5430                   defaultval=yes
5431               else
5432                   defaultval=no
5433               fi
5434           fi
5435
5436           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_rtti" >&5
5437 echo $ECHO_N "checking for --${enablestring:-enable}-no_rtti... $ECHO_C" >&6; }
5438           # Check whether --enable-no_rtti was given.
5439 if test "${enable_no_rtti+set}" = set; then
5440   enableval=$enable_no_rtti;
5441                           if test "$enableval" = yes; then
5442                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=yes'
5443                           else
5444                             wx_cv_use_no_rtti='wxUSE_NO_RTTI=no'
5445                           fi
5446                           cache=yes
5447
5448 else
5449
5450                           cache=no
5451                           LINE=`grep "^wxUSE_NO_RTTI=" ${wx_arg_cache_file}`
5452                           if test "x$LINE" != x ; then
5453                             eval "DEFAULT_$LINE"
5454                           fi
5455
5456                           wx_cv_use_no_rtti='wxUSE_NO_RTTI=${'DEFAULT_wxUSE_NO_RTTI":-$defaultval}"
5457
5458 fi
5459
5460
5461           eval "$wx_cv_use_no_rtti"
5462           if test "x$cache" = xyes; then
5463             echo "wxUSE_NO_RTTI=$wxUSE_NO_RTTI" >> ${wx_arg_cache_file}.tmp
5464           fi
5465
5466           if test x"$enablestring" = xdisable; then
5467             if test $wxUSE_NO_RTTI = yes; then
5468               result=no
5469             else
5470               result=yes
5471             fi
5472           else
5473             result=$wxUSE_NO_RTTI
5474           fi
5475
5476           { echo "$as_me:$LINENO: result: $result" >&5
5477 echo "${ECHO_T}$result" >&6; }
5478
5479
5480           enablestring=
5481           defaultval=
5482           if test -z "$defaultval"; then
5483               if test x"$enablestring" = xdisable; then
5484                   defaultval=yes
5485               else
5486                   defaultval=no
5487               fi
5488           fi
5489
5490           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_exceptions" >&5
5491 echo $ECHO_N "checking for --${enablestring:-enable}-no_exceptions... $ECHO_C" >&6; }
5492           # Check whether --enable-no_exceptions was given.
5493 if test "${enable_no_exceptions+set}" = set; then
5494   enableval=$enable_no_exceptions;
5495                           if test "$enableval" = yes; then
5496                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=yes'
5497                           else
5498                             wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=no'
5499                           fi
5500                           cache=yes
5501
5502 else
5503
5504                           cache=no
5505                           LINE=`grep "^wxUSE_NO_EXCEPTIONS=" ${wx_arg_cache_file}`
5506                           if test "x$LINE" != x ; then
5507                             eval "DEFAULT_$LINE"
5508                           fi
5509
5510                           wx_cv_use_no_exceptions='wxUSE_NO_EXCEPTIONS=${'DEFAULT_wxUSE_NO_EXCEPTIONS":-$defaultval}"
5511
5512 fi
5513
5514
5515           eval "$wx_cv_use_no_exceptions"
5516           if test "x$cache" = xyes; then
5517             echo "wxUSE_NO_EXCEPTIONS=$wxUSE_NO_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
5518           fi
5519
5520           if test x"$enablestring" = xdisable; then
5521             if test $wxUSE_NO_EXCEPTIONS = yes; then
5522               result=no
5523             else
5524               result=yes
5525             fi
5526           else
5527             result=$wxUSE_NO_EXCEPTIONS
5528           fi
5529
5530           { echo "$as_me:$LINENO: result: $result" >&5
5531 echo "${ECHO_T}$result" >&6; }
5532
5533
5534           enablestring=
5535           defaultval=
5536           if test -z "$defaultval"; then
5537               if test x"$enablestring" = xdisable; then
5538                   defaultval=yes
5539               else
5540                   defaultval=no
5541               fi
5542           fi
5543
5544           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-permissive" >&5
5545 echo $ECHO_N "checking for --${enablestring:-enable}-permissive... $ECHO_C" >&6; }
5546           # Check whether --enable-permissive was given.
5547 if test "${enable_permissive+set}" = set; then
5548   enableval=$enable_permissive;
5549                           if test "$enableval" = yes; then
5550                             wx_cv_use_permissive='wxUSE_PERMISSIVE=yes'
5551                           else
5552                             wx_cv_use_permissive='wxUSE_PERMISSIVE=no'
5553                           fi
5554                           cache=yes
5555
5556 else
5557
5558                           cache=no
5559                           LINE=`grep "^wxUSE_PERMISSIVE=" ${wx_arg_cache_file}`
5560                           if test "x$LINE" != x ; then
5561                             eval "DEFAULT_$LINE"
5562                           fi
5563
5564                           wx_cv_use_permissive='wxUSE_PERMISSIVE=${'DEFAULT_wxUSE_PERMISSIVE":-$defaultval}"
5565
5566 fi
5567
5568
5569           eval "$wx_cv_use_permissive"
5570           if test "x$cache" = xyes; then
5571             echo "wxUSE_PERMISSIVE=$wxUSE_PERMISSIVE" >> ${wx_arg_cache_file}.tmp
5572           fi
5573
5574           if test x"$enablestring" = xdisable; then
5575             if test $wxUSE_PERMISSIVE = yes; then
5576               result=no
5577             else
5578               result=yes
5579             fi
5580           else
5581             result=$wxUSE_PERMISSIVE
5582           fi
5583
5584           { echo "$as_me:$LINENO: result: $result" >&5
5585 echo "${ECHO_T}$result" >&6; }
5586
5587
5588           enablestring=
5589           defaultval=
5590           if test -z "$defaultval"; then
5591               if test x"$enablestring" = xdisable; then
5592                   defaultval=yes
5593               else
5594                   defaultval=no
5595               fi
5596           fi
5597
5598           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-no_deps" >&5
5599 echo $ECHO_N "checking for --${enablestring:-enable}-no_deps... $ECHO_C" >&6; }
5600           # Check whether --enable-no_deps was given.
5601 if test "${enable_no_deps+set}" = set; then
5602   enableval=$enable_no_deps;
5603                           if test "$enableval" = yes; then
5604                             wx_cv_use_no_deps='wxUSE_NO_DEPS=yes'
5605                           else
5606                             wx_cv_use_no_deps='wxUSE_NO_DEPS=no'
5607                           fi
5608                           cache=yes
5609
5610 else
5611
5612                           cache=no
5613                           LINE=`grep "^wxUSE_NO_DEPS=" ${wx_arg_cache_file}`
5614                           if test "x$LINE" != x ; then
5615                             eval "DEFAULT_$LINE"
5616                           fi
5617
5618                           wx_cv_use_no_deps='wxUSE_NO_DEPS=${'DEFAULT_wxUSE_NO_DEPS":-$defaultval}"
5619
5620 fi
5621
5622
5623           eval "$wx_cv_use_no_deps"
5624           if test "x$cache" = xyes; then
5625             echo "wxUSE_NO_DEPS=$wxUSE_NO_DEPS" >> ${wx_arg_cache_file}.tmp
5626           fi
5627
5628           if test x"$enablestring" = xdisable; then
5629             if test $wxUSE_NO_DEPS = yes; then
5630               result=no
5631             else
5632               result=yes
5633             fi
5634           else
5635             result=$wxUSE_NO_DEPS
5636           fi
5637
5638           { echo "$as_me:$LINENO: result: $result" >&5
5639 echo "${ECHO_T}$result" >&6; }
5640
5641
5642           enablestring=disable
5643           defaultval=
5644           if test -z "$defaultval"; then
5645               if test x"$enablestring" = xdisable; then
5646                   defaultval=yes
5647               else
5648                   defaultval=no
5649               fi
5650           fi
5651
5652           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-vararg_macros" >&5
5653 echo $ECHO_N "checking for --${enablestring:-enable}-vararg_macros... $ECHO_C" >&6; }
5654           # Check whether --enable-vararg_macros was given.
5655 if test "${enable_vararg_macros+set}" = set; then
5656   enableval=$enable_vararg_macros;
5657                           if test "$enableval" = yes; then
5658                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=yes'
5659                           else
5660                             wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=no'
5661                           fi
5662                           cache=yes
5663
5664 else
5665
5666                           cache=no
5667                           LINE=`grep "^wxUSE_VARARG_MACROS=" ${wx_arg_cache_file}`
5668                           if test "x$LINE" != x ; then
5669                             eval "DEFAULT_$LINE"
5670                           fi
5671
5672                           wx_cv_use_vararg_macros='wxUSE_VARARG_MACROS=${'DEFAULT_wxUSE_VARARG_MACROS":-$defaultval}"
5673
5674 fi
5675
5676
5677           eval "$wx_cv_use_vararg_macros"
5678           if test "x$cache" = xyes; then
5679             echo "wxUSE_VARARG_MACROS=$wxUSE_VARARG_MACROS" >> ${wx_arg_cache_file}.tmp
5680           fi
5681
5682           if test x"$enablestring" = xdisable; then
5683             if test $wxUSE_VARARG_MACROS = yes; then
5684               result=no
5685             else
5686               result=yes
5687             fi
5688           else
5689             result=$wxUSE_VARARG_MACROS
5690           fi
5691
5692           { echo "$as_me:$LINENO: result: $result" >&5
5693 echo "${ECHO_T}$result" >&6; }
5694
5695
5696           enablestring=
5697           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-universal_binary" >&5
5698 echo $ECHO_N "checking for --${enablestring:-enable}-universal_binary... $ECHO_C" >&6; }
5699           # Check whether --enable-universal_binary was given.
5700 if test "${enable_universal_binary+set}" = set; then
5701   enableval=$enable_universal_binary;
5702                           wx_cv_use_universal_binary="wxUSE_UNIVERSAL_BINARY='$enableval'"
5703                           cache=yes
5704
5705 else
5706
5707                           cache=no
5708                           LINE=`grep "^wxUSE_UNIVERSAL_BINARY=" ${wx_arg_cache_file}`
5709                           if test "x$LINE" != x ; then
5710                             eval "DEFAULT_$LINE"
5711                           fi
5712
5713                           wx_cv_use_universal_binary='wxUSE_UNIVERSAL_BINARY='$DEFAULT_wxUSE_UNIVERSAL_BINARY
5714
5715 fi
5716
5717
5718           eval "$wx_cv_use_universal_binary"
5719           if test "x$cache" = xyes; then
5720             echo "wxUSE_UNIVERSAL_BINARY=$wxUSE_UNIVERSAL_BINARY" >> ${wx_arg_cache_file}.tmp
5721           fi
5722
5723           { echo "$as_me:$LINENO: result: $wxUSE_UNIVERSAL_BINARY" >&5
5724 echo "${ECHO_T}$wxUSE_UNIVERSAL_BINARY" >&6; }
5725
5726
5727
5728           enablestring=
5729           defaultval=
5730           if test -z "$defaultval"; then
5731               if test x"$enablestring" = xdisable; then
5732                   defaultval=yes
5733               else
5734                   defaultval=no
5735               fi
5736           fi
5737
5738           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat26" >&5
5739 echo $ECHO_N "checking for --${enablestring:-enable}-compat26... $ECHO_C" >&6; }
5740           # Check whether --enable-compat26 was given.
5741 if test "${enable_compat26+set}" = set; then
5742   enableval=$enable_compat26;
5743                           if test "$enableval" = yes; then
5744                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=yes'
5745                           else
5746                             wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=no'
5747                           fi
5748                           cache=yes
5749
5750 else
5751
5752                           cache=no
5753                           LINE=`grep "^WXWIN_COMPATIBILITY_2_6=" ${wx_arg_cache_file}`
5754                           if test "x$LINE" != x ; then
5755                             eval "DEFAULT_$LINE"
5756                           fi
5757
5758                           wx_cv_use_compat26='WXWIN_COMPATIBILITY_2_6=${'DEFAULT_WXWIN_COMPATIBILITY_2_6":-$defaultval}"
5759
5760 fi
5761
5762
5763           eval "$wx_cv_use_compat26"
5764           if test "x$cache" = xyes; then
5765             echo "WXWIN_COMPATIBILITY_2_6=$WXWIN_COMPATIBILITY_2_6" >> ${wx_arg_cache_file}.tmp
5766           fi
5767
5768           if test x"$enablestring" = xdisable; then
5769             if test $WXWIN_COMPATIBILITY_2_6 = yes; then
5770               result=no
5771             else
5772               result=yes
5773             fi
5774           else
5775             result=$WXWIN_COMPATIBILITY_2_6
5776           fi
5777
5778           { echo "$as_me:$LINENO: result: $result" >&5
5779 echo "${ECHO_T}$result" >&6; }
5780
5781
5782           enablestring=disable
5783           defaultval=
5784           if test -z "$defaultval"; then
5785               if test x"$enablestring" = xdisable; then
5786                   defaultval=yes
5787               else
5788                   defaultval=no
5789               fi
5790           fi
5791
5792           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-compat28" >&5
5793 echo $ECHO_N "checking for --${enablestring:-enable}-compat28... $ECHO_C" >&6; }
5794           # Check whether --enable-compat28 was given.
5795 if test "${enable_compat28+set}" = set; then
5796   enableval=$enable_compat28;
5797                           if test "$enableval" = yes; then
5798                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=yes'
5799                           else
5800                             wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=no'
5801                           fi
5802                           cache=yes
5803
5804 else
5805
5806                           cache=no
5807                           LINE=`grep "^WXWIN_COMPATIBILITY_2_8=" ${wx_arg_cache_file}`
5808                           if test "x$LINE" != x ; then
5809                             eval "DEFAULT_$LINE"
5810                           fi
5811
5812                           wx_cv_use_compat28='WXWIN_COMPATIBILITY_2_8=${'DEFAULT_WXWIN_COMPATIBILITY_2_8":-$defaultval}"
5813
5814 fi
5815
5816
5817           eval "$wx_cv_use_compat28"
5818           if test "x$cache" = xyes; then
5819             echo "WXWIN_COMPATIBILITY_2_8=$WXWIN_COMPATIBILITY_2_8" >> ${wx_arg_cache_file}.tmp
5820           fi
5821
5822           if test x"$enablestring" = xdisable; then
5823             if test $WXWIN_COMPATIBILITY_2_8 = yes; then
5824               result=no
5825             else
5826               result=yes
5827             fi
5828           else
5829             result=$WXWIN_COMPATIBILITY_2_8
5830           fi
5831
5832           { echo "$as_me:$LINENO: result: $result" >&5
5833 echo "${ECHO_T}$result" >&6; }
5834
5835
5836
5837           enablestring=disable
5838           defaultval=
5839           if test -z "$defaultval"; then
5840               if test x"$enablestring" = xdisable; then
5841                   defaultval=yes
5842               else
5843                   defaultval=no
5844               fi
5845           fi
5846
5847           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-rpath" >&5
5848 echo $ECHO_N "checking for --${enablestring:-enable}-rpath... $ECHO_C" >&6; }
5849           # Check whether --enable-rpath was given.
5850 if test "${enable_rpath+set}" = set; then
5851   enableval=$enable_rpath;
5852                           if test "$enableval" = yes; then
5853                             wx_cv_use_rpath='wxUSE_RPATH=yes'
5854                           else
5855                             wx_cv_use_rpath='wxUSE_RPATH=no'
5856                           fi
5857                           cache=yes
5858
5859 else
5860
5861                           cache=no
5862                           LINE=`grep "^wxUSE_RPATH=" ${wx_arg_cache_file}`
5863                           if test "x$LINE" != x ; then
5864                             eval "DEFAULT_$LINE"
5865                           fi
5866
5867                           wx_cv_use_rpath='wxUSE_RPATH=${'DEFAULT_wxUSE_RPATH":-$defaultval}"
5868
5869 fi
5870
5871
5872           eval "$wx_cv_use_rpath"
5873           if test "x$cache" = xyes; then
5874             echo "wxUSE_RPATH=$wxUSE_RPATH" >> ${wx_arg_cache_file}.tmp
5875           fi
5876
5877           if test x"$enablestring" = xdisable; then
5878             if test $wxUSE_RPATH = yes; then
5879               result=no
5880             else
5881               result=yes
5882             fi
5883           else
5884             result=$wxUSE_RPATH
5885           fi
5886
5887           { echo "$as_me:$LINENO: result: $result" >&5
5888 echo "${ECHO_T}$result" >&6; }
5889
5890
5891
5892           enablestring=
5893           defaultval=
5894           if test -z "$defaultval"; then
5895               if test x"$enablestring" = xdisable; then
5896                   defaultval=yes
5897               else
5898                   defaultval=no
5899               fi
5900           fi
5901
5902           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-objc_uniquifying" >&5
5903 echo $ECHO_N "checking for --${enablestring:-enable}-objc_uniquifying... $ECHO_C" >&6; }
5904           # Check whether --enable-objc_uniquifying was given.
5905 if test "${enable_objc_uniquifying+set}" = set; then
5906   enableval=$enable_objc_uniquifying;
5907                           if test "$enableval" = yes; then
5908                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=yes'
5909                           else
5910                             wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=no'
5911                           fi
5912                           cache=yes
5913
5914 else
5915
5916                           cache=no
5917                           LINE=`grep "^wxUSE_OBJC_UNIQUIFYING=" ${wx_arg_cache_file}`
5918                           if test "x$LINE" != x ; then
5919                             eval "DEFAULT_$LINE"
5920                           fi
5921
5922                           wx_cv_use_objc_uniquifying='wxUSE_OBJC_UNIQUIFYING=${'DEFAULT_wxUSE_OBJC_UNIQUIFYING":-$defaultval}"
5923
5924 fi
5925
5926
5927           eval "$wx_cv_use_objc_uniquifying"
5928           if test "x$cache" = xyes; then
5929             echo "wxUSE_OBJC_UNIQUIFYING=$wxUSE_OBJC_UNIQUIFYING" >> ${wx_arg_cache_file}.tmp
5930           fi
5931
5932           if test x"$enablestring" = xdisable; then
5933             if test $wxUSE_OBJC_UNIQUIFYING = yes; then
5934               result=no
5935             else
5936               result=yes
5937             fi
5938           else
5939             result=$wxUSE_OBJC_UNIQUIFYING
5940           fi
5941
5942           { echo "$as_me:$LINENO: result: $result" >&5
5943 echo "${ECHO_T}$result" >&6; }
5944
5945
5946
5947           enablestring=disable
5948           defaultval=
5949           if test -z "$defaultval"; then
5950               if test x"$enablestring" = xdisable; then
5951                   defaultval=yes
5952               else
5953                   defaultval=no
5954               fi
5955           fi
5956
5957           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-visibility" >&5
5958 echo $ECHO_N "checking for --${enablestring:-enable}-visibility... $ECHO_C" >&6; }
5959           # Check whether --enable-visibility was given.
5960 if test "${enable_visibility+set}" = set; then
5961   enableval=$enable_visibility;
5962                           if test "$enableval" = yes; then
5963                             wx_cv_use_visibility='wxUSE_VISIBILITY=yes'
5964                           else
5965                             wx_cv_use_visibility='wxUSE_VISIBILITY=no'
5966                           fi
5967                           cache=yes
5968
5969 else
5970
5971                           cache=no
5972                           LINE=`grep "^wxUSE_VISIBILITY=" ${wx_arg_cache_file}`
5973                           if test "x$LINE" != x ; then
5974                             eval "DEFAULT_$LINE"
5975                           fi
5976
5977                           wx_cv_use_visibility='wxUSE_VISIBILITY=${'DEFAULT_wxUSE_VISIBILITY":-$defaultval}"
5978
5979 fi
5980
5981
5982           eval "$wx_cv_use_visibility"
5983           if test "x$cache" = xyes; then
5984             echo "wxUSE_VISIBILITY=$wxUSE_VISIBILITY" >> ${wx_arg_cache_file}.tmp
5985           fi
5986
5987           if test x"$enablestring" = xdisable; then
5988             if test $wxUSE_VISIBILITY = yes; then
5989               result=no
5990             else
5991               result=yes
5992             fi
5993           else
5994             result=$wxUSE_VISIBILITY
5995           fi
5996
5997           { echo "$as_me:$LINENO: result: $result" >&5
5998 echo "${ECHO_T}$result" >&6; }
5999
6000
6001
6002
6003           enablestring=
6004           defaultval=$wxUSE_ALL_FEATURES
6005           if test -z "$defaultval"; then
6006               if test x"$enablestring" = xdisable; then
6007                   defaultval=yes
6008               else
6009                   defaultval=no
6010               fi
6011           fi
6012
6013           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-intl" >&5
6014 echo $ECHO_N "checking for --${enablestring:-enable}-intl... $ECHO_C" >&6; }
6015           # Check whether --enable-intl was given.
6016 if test "${enable_intl+set}" = set; then
6017   enableval=$enable_intl;
6018                           if test "$enableval" = yes; then
6019                             wx_cv_use_intl='wxUSE_INTL=yes'
6020                           else
6021                             wx_cv_use_intl='wxUSE_INTL=no'
6022                           fi
6023                           cache=yes
6024
6025 else
6026
6027                           cache=no
6028                           LINE=`grep "^wxUSE_INTL=" ${wx_arg_cache_file}`
6029                           if test "x$LINE" != x ; then
6030                             eval "DEFAULT_$LINE"
6031                           fi
6032
6033                           wx_cv_use_intl='wxUSE_INTL=${'DEFAULT_wxUSE_INTL":-$defaultval}"
6034
6035 fi
6036
6037
6038           eval "$wx_cv_use_intl"
6039           if test "x$cache" = xyes; then
6040             echo "wxUSE_INTL=$wxUSE_INTL" >> ${wx_arg_cache_file}.tmp
6041           fi
6042
6043           if test x"$enablestring" = xdisable; then
6044             if test $wxUSE_INTL = yes; then
6045               result=no
6046             else
6047               result=yes
6048             fi
6049           else
6050             result=$wxUSE_INTL
6051           fi
6052
6053           { echo "$as_me:$LINENO: result: $result" >&5
6054 echo "${ECHO_T}$result" >&6; }
6055
6056
6057           enablestring=
6058           defaultval=$wxUSE_ALL_FEATURES
6059           if test -z "$defaultval"; then
6060               if test x"$enablestring" = xdisable; then
6061                   defaultval=yes
6062               else
6063                   defaultval=no
6064               fi
6065           fi
6066
6067           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-config" >&5
6068 echo $ECHO_N "checking for --${enablestring:-enable}-config... $ECHO_C" >&6; }
6069           # Check whether --enable-config was given.
6070 if test "${enable_config+set}" = set; then
6071   enableval=$enable_config;
6072                           if test "$enableval" = yes; then
6073                             wx_cv_use_config='wxUSE_CONFIG=yes'
6074                           else
6075                             wx_cv_use_config='wxUSE_CONFIG=no'
6076                           fi
6077                           cache=yes
6078
6079 else
6080
6081                           cache=no
6082                           LINE=`grep "^wxUSE_CONFIG=" ${wx_arg_cache_file}`
6083                           if test "x$LINE" != x ; then
6084                             eval "DEFAULT_$LINE"
6085                           fi
6086
6087                           wx_cv_use_config='wxUSE_CONFIG=${'DEFAULT_wxUSE_CONFIG":-$defaultval}"
6088
6089 fi
6090
6091
6092           eval "$wx_cv_use_config"
6093           if test "x$cache" = xyes; then
6094             echo "wxUSE_CONFIG=$wxUSE_CONFIG" >> ${wx_arg_cache_file}.tmp
6095           fi
6096
6097           if test x"$enablestring" = xdisable; then
6098             if test $wxUSE_CONFIG = yes; then
6099               result=no
6100             else
6101               result=yes
6102             fi
6103           else
6104             result=$wxUSE_CONFIG
6105           fi
6106
6107           { echo "$as_me:$LINENO: result: $result" >&5
6108 echo "${ECHO_T}$result" >&6; }
6109
6110
6111
6112           enablestring=
6113           defaultval=$wxUSE_ALL_FEATURES
6114           if test -z "$defaultval"; then
6115               if test x"$enablestring" = xdisable; then
6116                   defaultval=yes
6117               else
6118                   defaultval=no
6119               fi
6120           fi
6121
6122           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocols" >&5
6123 echo $ECHO_N "checking for --${enablestring:-enable}-protocols... $ECHO_C" >&6; }
6124           # Check whether --enable-protocols was given.
6125 if test "${enable_protocols+set}" = set; then
6126   enableval=$enable_protocols;
6127                           if test "$enableval" = yes; then
6128                             wx_cv_use_protocols='wxUSE_PROTOCOL=yes'
6129                           else
6130                             wx_cv_use_protocols='wxUSE_PROTOCOL=no'
6131                           fi
6132                           cache=yes
6133
6134 else
6135
6136                           cache=no
6137                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
6138                           if test "x$LINE" != x ; then
6139                             eval "DEFAULT_$LINE"
6140                           fi
6141
6142                           wx_cv_use_protocols='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
6143
6144 fi
6145
6146
6147           eval "$wx_cv_use_protocols"
6148           if test "x$cache" = xyes; then
6149             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
6150           fi
6151
6152           if test x"$enablestring" = xdisable; then
6153             if test $wxUSE_PROTOCOL = yes; then
6154               result=no
6155             else
6156               result=yes
6157             fi
6158           else
6159             result=$wxUSE_PROTOCOL
6160           fi
6161
6162           { echo "$as_me:$LINENO: result: $result" >&5
6163 echo "${ECHO_T}$result" >&6; }
6164
6165
6166           enablestring=
6167           defaultval=$wxUSE_ALL_FEATURES
6168           if test -z "$defaultval"; then
6169               if test x"$enablestring" = xdisable; then
6170                   defaultval=yes
6171               else
6172                   defaultval=no
6173               fi
6174           fi
6175
6176           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ftp" >&5
6177 echo $ECHO_N "checking for --${enablestring:-enable}-ftp... $ECHO_C" >&6; }
6178           # Check whether --enable-ftp was given.
6179 if test "${enable_ftp+set}" = set; then
6180   enableval=$enable_ftp;
6181                           if test "$enableval" = yes; then
6182                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=yes'
6183                           else
6184                             wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=no'
6185                           fi
6186                           cache=yes
6187
6188 else
6189
6190                           cache=no
6191                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
6192                           if test "x$LINE" != x ; then
6193                             eval "DEFAULT_$LINE"
6194                           fi
6195
6196                           wx_cv_use_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
6197
6198 fi
6199
6200
6201           eval "$wx_cv_use_ftp"
6202           if test "x$cache" = xyes; then
6203             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
6204           fi
6205
6206           if test x"$enablestring" = xdisable; then
6207             if test $wxUSE_PROTOCOL_FTP = yes; then
6208               result=no
6209             else
6210               result=yes
6211             fi
6212           else
6213             result=$wxUSE_PROTOCOL_FTP
6214           fi
6215
6216           { echo "$as_me:$LINENO: result: $result" >&5
6217 echo "${ECHO_T}$result" >&6; }
6218
6219
6220           enablestring=
6221           defaultval=$wxUSE_ALL_FEATURES
6222           if test -z "$defaultval"; then
6223               if test x"$enablestring" = xdisable; then
6224                   defaultval=yes
6225               else
6226                   defaultval=no
6227               fi
6228           fi
6229
6230           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-http" >&5
6231 echo $ECHO_N "checking for --${enablestring:-enable}-http... $ECHO_C" >&6; }
6232           # Check whether --enable-http was given.
6233 if test "${enable_http+set}" = set; then
6234   enableval=$enable_http;
6235                           if test "$enableval" = yes; then
6236                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=yes'
6237                           else
6238                             wx_cv_use_http='wxUSE_PROTOCOL_HTTP=no'
6239                           fi
6240                           cache=yes
6241
6242 else
6243
6244                           cache=no
6245                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
6246                           if test "x$LINE" != x ; then
6247                             eval "DEFAULT_$LINE"
6248                           fi
6249
6250                           wx_cv_use_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
6251
6252 fi
6253
6254
6255           eval "$wx_cv_use_http"
6256           if test "x$cache" = xyes; then
6257             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
6258           fi
6259
6260           if test x"$enablestring" = xdisable; then
6261             if test $wxUSE_PROTOCOL_HTTP = yes; then
6262               result=no
6263             else
6264               result=yes
6265             fi
6266           else
6267             result=$wxUSE_PROTOCOL_HTTP
6268           fi
6269
6270           { echo "$as_me:$LINENO: result: $result" >&5
6271 echo "${ECHO_T}$result" >&6; }
6272
6273
6274           enablestring=
6275           defaultval=$wxUSE_ALL_FEATURES
6276           if test -z "$defaultval"; then
6277               if test x"$enablestring" = xdisable; then
6278                   defaultval=yes
6279               else
6280                   defaultval=no
6281               fi
6282           fi
6283
6284           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fileproto" >&5
6285 echo $ECHO_N "checking for --${enablestring:-enable}-fileproto... $ECHO_C" >&6; }
6286           # Check whether --enable-fileproto was given.
6287 if test "${enable_fileproto+set}" = set; then
6288   enableval=$enable_fileproto;
6289                           if test "$enableval" = yes; then
6290                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=yes'
6291                           else
6292                             wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=no'
6293                           fi
6294                           cache=yes
6295
6296 else
6297
6298                           cache=no
6299                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
6300                           if test "x$LINE" != x ; then
6301                             eval "DEFAULT_$LINE"
6302                           fi
6303
6304                           wx_cv_use_fileproto='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
6305
6306 fi
6307
6308
6309           eval "$wx_cv_use_fileproto"
6310           if test "x$cache" = xyes; then
6311             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
6312           fi
6313
6314           if test x"$enablestring" = xdisable; then
6315             if test $wxUSE_PROTOCOL_FILE = yes; then
6316               result=no
6317             else
6318               result=yes
6319             fi
6320           else
6321             result=$wxUSE_PROTOCOL_FILE
6322           fi
6323
6324           { echo "$as_me:$LINENO: result: $result" >&5
6325 echo "${ECHO_T}$result" >&6; }
6326
6327
6328           enablestring=
6329           defaultval=$wxUSE_ALL_FEATURES
6330           if test -z "$defaultval"; then
6331               if test x"$enablestring" = xdisable; then
6332                   defaultval=yes
6333               else
6334                   defaultval=no
6335               fi
6336           fi
6337
6338           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sockets" >&5
6339 echo $ECHO_N "checking for --${enablestring:-enable}-sockets... $ECHO_C" >&6; }
6340           # Check whether --enable-sockets was given.
6341 if test "${enable_sockets+set}" = set; then
6342   enableval=$enable_sockets;
6343                           if test "$enableval" = yes; then
6344                             wx_cv_use_sockets='wxUSE_SOCKETS=yes'
6345                           else
6346                             wx_cv_use_sockets='wxUSE_SOCKETS=no'
6347                           fi
6348                           cache=yes
6349
6350 else
6351
6352                           cache=no
6353                           LINE=`grep "^wxUSE_SOCKETS=" ${wx_arg_cache_file}`
6354                           if test "x$LINE" != x ; then
6355                             eval "DEFAULT_$LINE"
6356                           fi
6357
6358                           wx_cv_use_sockets='wxUSE_SOCKETS=${'DEFAULT_wxUSE_SOCKETS":-$defaultval}"
6359
6360 fi
6361
6362
6363           eval "$wx_cv_use_sockets"
6364           if test "x$cache" = xyes; then
6365             echo "wxUSE_SOCKETS=$wxUSE_SOCKETS" >> ${wx_arg_cache_file}.tmp
6366           fi
6367
6368           if test x"$enablestring" = xdisable; then
6369             if test $wxUSE_SOCKETS = yes; then
6370               result=no
6371             else
6372               result=yes
6373             fi
6374           else
6375             result=$wxUSE_SOCKETS
6376           fi
6377
6378           { echo "$as_me:$LINENO: result: $result" >&5
6379 echo "${ECHO_T}$result" >&6; }
6380
6381
6382           enablestring=
6383           defaultval=$wxUSE_ALL_FEATURES
6384           if test -z "$defaultval"; then
6385               if test x"$enablestring" = xdisable; then
6386                   defaultval=yes
6387               else
6388                   defaultval=no
6389               fi
6390           fi
6391
6392           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ole" >&5
6393 echo $ECHO_N "checking for --${enablestring:-enable}-ole... $ECHO_C" >&6; }
6394           # Check whether --enable-ole was given.
6395 if test "${enable_ole+set}" = set; then
6396   enableval=$enable_ole;
6397                           if test "$enableval" = yes; then
6398                             wx_cv_use_ole='wxUSE_OLE=yes'
6399                           else
6400                             wx_cv_use_ole='wxUSE_OLE=no'
6401                           fi
6402                           cache=yes
6403
6404 else
6405
6406                           cache=no
6407                           LINE=`grep "^wxUSE_OLE=" ${wx_arg_cache_file}`
6408                           if test "x$LINE" != x ; then
6409                             eval "DEFAULT_$LINE"
6410                           fi
6411
6412                           wx_cv_use_ole='wxUSE_OLE=${'DEFAULT_wxUSE_OLE":-$defaultval}"
6413
6414 fi
6415
6416
6417           eval "$wx_cv_use_ole"
6418           if test "x$cache" = xyes; then
6419             echo "wxUSE_OLE=$wxUSE_OLE" >> ${wx_arg_cache_file}.tmp
6420           fi
6421
6422           if test x"$enablestring" = xdisable; then
6423             if test $wxUSE_OLE = yes; then
6424               result=no
6425             else
6426               result=yes
6427             fi
6428           else
6429             result=$wxUSE_OLE
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}-dataobj" >&5
6447 echo $ECHO_N "checking for --${enablestring:-enable}-dataobj... $ECHO_C" >&6; }
6448           # Check whether --enable-dataobj was given.
6449 if test "${enable_dataobj+set}" = set; then
6450   enableval=$enable_dataobj;
6451                           if test "$enableval" = yes; then
6452                             wx_cv_use_dataobj='wxUSE_DATAOBJ=yes'
6453                           else
6454                             wx_cv_use_dataobj='wxUSE_DATAOBJ=no'
6455                           fi
6456                           cache=yes
6457
6458 else
6459
6460                           cache=no
6461                           LINE=`grep "^wxUSE_DATAOBJ=" ${wx_arg_cache_file}`
6462                           if test "x$LINE" != x ; then
6463                             eval "DEFAULT_$LINE"
6464                           fi
6465
6466                           wx_cv_use_dataobj='wxUSE_DATAOBJ=${'DEFAULT_wxUSE_DATAOBJ":-$defaultval}"
6467
6468 fi
6469
6470
6471           eval "$wx_cv_use_dataobj"
6472           if test "x$cache" = xyes; then
6473             echo "wxUSE_DATAOBJ=$wxUSE_DATAOBJ" >> ${wx_arg_cache_file}.tmp
6474           fi
6475
6476           if test x"$enablestring" = xdisable; then
6477             if test $wxUSE_DATAOBJ = yes; then
6478               result=no
6479             else
6480               result=yes
6481             fi
6482           else
6483             result=$wxUSE_DATAOBJ
6484           fi
6485
6486           { echo "$as_me:$LINENO: result: $result" >&5
6487 echo "${ECHO_T}$result" >&6; }
6488
6489
6490
6491           enablestring=
6492           defaultval=$wxUSE_ALL_FEATURES
6493           if test -z "$defaultval"; then
6494               if test x"$enablestring" = xdisable; then
6495                   defaultval=yes
6496               else
6497                   defaultval=no
6498               fi
6499           fi
6500
6501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ipc" >&5
6502 echo $ECHO_N "checking for --${enablestring:-enable}-ipc... $ECHO_C" >&6; }
6503           # Check whether --enable-ipc was given.
6504 if test "${enable_ipc+set}" = set; then
6505   enableval=$enable_ipc;
6506                           if test "$enableval" = yes; then
6507                             wx_cv_use_ipc='wxUSE_IPC=yes'
6508                           else
6509                             wx_cv_use_ipc='wxUSE_IPC=no'
6510                           fi
6511                           cache=yes
6512
6513 else
6514
6515                           cache=no
6516                           LINE=`grep "^wxUSE_IPC=" ${wx_arg_cache_file}`
6517                           if test "x$LINE" != x ; then
6518                             eval "DEFAULT_$LINE"
6519                           fi
6520
6521                           wx_cv_use_ipc='wxUSE_IPC=${'DEFAULT_wxUSE_IPC":-$defaultval}"
6522
6523 fi
6524
6525
6526           eval "$wx_cv_use_ipc"
6527           if test "x$cache" = xyes; then
6528             echo "wxUSE_IPC=$wxUSE_IPC" >> ${wx_arg_cache_file}.tmp
6529           fi
6530
6531           if test x"$enablestring" = xdisable; then
6532             if test $wxUSE_IPC = yes; then
6533               result=no
6534             else
6535               result=yes
6536             fi
6537           else
6538             result=$wxUSE_IPC
6539           fi
6540
6541           { echo "$as_me:$LINENO: result: $result" >&5
6542 echo "${ECHO_T}$result" >&6; }
6543
6544
6545
6546           enablestring=
6547           defaultval=$wxUSE_ALL_FEATURES
6548           if test -z "$defaultval"; then
6549               if test x"$enablestring" = xdisable; then
6550                   defaultval=yes
6551               else
6552                   defaultval=no
6553               fi
6554           fi
6555
6556           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-baseevtloop" >&5
6557 echo $ECHO_N "checking for --${enablestring:-enable}-baseevtloop... $ECHO_C" >&6; }
6558           # Check whether --enable-baseevtloop was given.
6559 if test "${enable_baseevtloop+set}" = set; then
6560   enableval=$enable_baseevtloop;
6561                           if test "$enableval" = yes; then
6562                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=yes'
6563                           else
6564                             wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=no'
6565                           fi
6566                           cache=yes
6567
6568 else
6569
6570                           cache=no
6571                           LINE=`grep "^wxUSE_CONSOLE_EVENTLOOP=" ${wx_arg_cache_file}`
6572                           if test "x$LINE" != x ; then
6573                             eval "DEFAULT_$LINE"
6574                           fi
6575
6576                           wx_cv_use_baseevtloop='wxUSE_CONSOLE_EVENTLOOP=${'DEFAULT_wxUSE_CONSOLE_EVENTLOOP":-$defaultval}"
6577
6578 fi
6579
6580
6581           eval "$wx_cv_use_baseevtloop"
6582           if test "x$cache" = xyes; then
6583             echo "wxUSE_CONSOLE_EVENTLOOP=$wxUSE_CONSOLE_EVENTLOOP" >> ${wx_arg_cache_file}.tmp
6584           fi
6585
6586           if test x"$enablestring" = xdisable; then
6587             if test $wxUSE_CONSOLE_EVENTLOOP = yes; then
6588               result=no
6589             else
6590               result=yes
6591             fi
6592           else
6593             result=$wxUSE_CONSOLE_EVENTLOOP
6594           fi
6595
6596           { echo "$as_me:$LINENO: result: $result" >&5
6597 echo "${ECHO_T}$result" >&6; }
6598
6599
6600           enablestring=
6601           defaultval=$wxUSE_ALL_FEATURES
6602           if test -z "$defaultval"; then
6603               if test x"$enablestring" = xdisable; then
6604                   defaultval=yes
6605               else
6606                   defaultval=no
6607               fi
6608           fi
6609
6610           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-epoolloop" >&5
6611 echo $ECHO_N "checking for --${enablestring:-enable}-epoolloop... $ECHO_C" >&6; }
6612           # Check whether --enable-epoolloop was given.
6613 if test "${enable_epoolloop+set}" = set; then
6614   enableval=$enable_epoolloop;
6615                           if test "$enableval" = yes; then
6616                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=yes'
6617                           else
6618                             wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=no'
6619                           fi
6620                           cache=yes
6621
6622 else
6623
6624                           cache=no
6625                           LINE=`grep "^wxUSE_EPOLL_DISPATCHER=" ${wx_arg_cache_file}`
6626                           if test "x$LINE" != x ; then
6627                             eval "DEFAULT_$LINE"
6628                           fi
6629
6630                           wx_cv_use_epoolloop='wxUSE_EPOLL_DISPATCHER=${'DEFAULT_wxUSE_EPOLL_DISPATCHER":-$defaultval}"
6631
6632 fi
6633
6634
6635           eval "$wx_cv_use_epoolloop"
6636           if test "x$cache" = xyes; then
6637             echo "wxUSE_EPOLL_DISPATCHER=$wxUSE_EPOLL_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6638           fi
6639
6640           if test x"$enablestring" = xdisable; then
6641             if test $wxUSE_EPOLL_DISPATCHER = yes; then
6642               result=no
6643             else
6644               result=yes
6645             fi
6646           else
6647             result=$wxUSE_EPOLL_DISPATCHER
6648           fi
6649
6650           { echo "$as_me:$LINENO: result: $result" >&5
6651 echo "${ECHO_T}$result" >&6; }
6652
6653
6654           enablestring=
6655           defaultval=$wxUSE_ALL_FEATURES
6656           if test -z "$defaultval"; then
6657               if test x"$enablestring" = xdisable; then
6658                   defaultval=yes
6659               else
6660                   defaultval=no
6661               fi
6662           fi
6663
6664           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-selectloop" >&5
6665 echo $ECHO_N "checking for --${enablestring:-enable}-selectloop... $ECHO_C" >&6; }
6666           # Check whether --enable-selectloop was given.
6667 if test "${enable_selectloop+set}" = set; then
6668   enableval=$enable_selectloop;
6669                           if test "$enableval" = yes; then
6670                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=yes'
6671                           else
6672                             wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=no'
6673                           fi
6674                           cache=yes
6675
6676 else
6677
6678                           cache=no
6679                           LINE=`grep "^wxUSE_SELECT_DISPATCHER=" ${wx_arg_cache_file}`
6680                           if test "x$LINE" != x ; then
6681                             eval "DEFAULT_$LINE"
6682                           fi
6683
6684                           wx_cv_use_selectloop='wxUSE_SELECT_DISPATCHER=${'DEFAULT_wxUSE_SELECT_DISPATCHER":-$defaultval}"
6685
6686 fi
6687
6688
6689           eval "$wx_cv_use_selectloop"
6690           if test "x$cache" = xyes; then
6691             echo "wxUSE_SELECT_DISPATCHER=$wxUSE_SELECT_DISPATCHER" >> ${wx_arg_cache_file}.tmp
6692           fi
6693
6694           if test x"$enablestring" = xdisable; then
6695             if test $wxUSE_SELECT_DISPATCHER = yes; then
6696               result=no
6697             else
6698               result=yes
6699             fi
6700           else
6701             result=$wxUSE_SELECT_DISPATCHER
6702           fi
6703
6704           { echo "$as_me:$LINENO: result: $result" >&5
6705 echo "${ECHO_T}$result" >&6; }
6706
6707
6708
6709           enablestring=
6710           defaultval=$wxUSE_ALL_FEATURES
6711           if test -z "$defaultval"; then
6712               if test x"$enablestring" = xdisable; then
6713                   defaultval=yes
6714               else
6715                   defaultval=no
6716               fi
6717           fi
6718
6719           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-apple_ieee" >&5
6720 echo $ECHO_N "checking for --${enablestring:-enable}-apple_ieee... $ECHO_C" >&6; }
6721           # Check whether --enable-apple_ieee was given.
6722 if test "${enable_apple_ieee+set}" = set; then
6723   enableval=$enable_apple_ieee;
6724                           if test "$enableval" = yes; then
6725                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=yes'
6726                           else
6727                             wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=no'
6728                           fi
6729                           cache=yes
6730
6731 else
6732
6733                           cache=no
6734                           LINE=`grep "^wxUSE_APPLE_IEEE=" ${wx_arg_cache_file}`
6735                           if test "x$LINE" != x ; then
6736                             eval "DEFAULT_$LINE"
6737                           fi
6738
6739                           wx_cv_use_apple_ieee='wxUSE_APPLE_IEEE=${'DEFAULT_wxUSE_APPLE_IEEE":-$defaultval}"
6740
6741 fi
6742
6743
6744           eval "$wx_cv_use_apple_ieee"
6745           if test "x$cache" = xyes; then
6746             echo "wxUSE_APPLE_IEEE=$wxUSE_APPLE_IEEE" >> ${wx_arg_cache_file}.tmp
6747           fi
6748
6749           if test x"$enablestring" = xdisable; then
6750             if test $wxUSE_APPLE_IEEE = yes; then
6751               result=no
6752             else
6753               result=yes
6754             fi
6755           else
6756             result=$wxUSE_APPLE_IEEE
6757           fi
6758
6759           { echo "$as_me:$LINENO: result: $result" >&5
6760 echo "${ECHO_T}$result" >&6; }
6761
6762
6763           enablestring=
6764           defaultval=$wxUSE_ALL_FEATURES
6765           if test -z "$defaultval"; then
6766               if test x"$enablestring" = xdisable; then
6767                   defaultval=yes
6768               else
6769                   defaultval=no
6770               fi
6771           fi
6772
6773           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-arcstream" >&5
6774 echo $ECHO_N "checking for --${enablestring:-enable}-arcstream... $ECHO_C" >&6; }
6775           # Check whether --enable-arcstream was given.
6776 if test "${enable_arcstream+set}" = set; then
6777   enableval=$enable_arcstream;
6778                           if test "$enableval" = yes; then
6779                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=yes'
6780                           else
6781                             wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=no'
6782                           fi
6783                           cache=yes
6784
6785 else
6786
6787                           cache=no
6788                           LINE=`grep "^wxUSE_ARCHIVE_STREAMS=" ${wx_arg_cache_file}`
6789                           if test "x$LINE" != x ; then
6790                             eval "DEFAULT_$LINE"
6791                           fi
6792
6793                           wx_cv_use_arcstream='wxUSE_ARCHIVE_STREAMS=${'DEFAULT_wxUSE_ARCHIVE_STREAMS":-$defaultval}"
6794
6795 fi
6796
6797
6798           eval "$wx_cv_use_arcstream"
6799           if test "x$cache" = xyes; then
6800             echo "wxUSE_ARCHIVE_STREAMS=$wxUSE_ARCHIVE_STREAMS" >> ${wx_arg_cache_file}.tmp
6801           fi
6802
6803           if test x"$enablestring" = xdisable; then
6804             if test $wxUSE_ARCHIVE_STREAMS = yes; then
6805               result=no
6806             else
6807               result=yes
6808             fi
6809           else
6810             result=$wxUSE_ARCHIVE_STREAMS
6811           fi
6812
6813           { echo "$as_me:$LINENO: result: $result" >&5
6814 echo "${ECHO_T}$result" >&6; }
6815
6816
6817           enablestring=
6818           defaultval=$wxUSE_ALL_FEATURES
6819           if test -z "$defaultval"; then
6820               if test x"$enablestring" = xdisable; then
6821                   defaultval=yes
6822               else
6823                   defaultval=no
6824               fi
6825           fi
6826
6827           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-base64" >&5
6828 echo $ECHO_N "checking for --${enablestring:-enable}-base64... $ECHO_C" >&6; }
6829           # Check whether --enable-base64 was given.
6830 if test "${enable_base64+set}" = set; then
6831   enableval=$enable_base64;
6832                           if test "$enableval" = yes; then
6833                             wx_cv_use_base64='wxUSE_BASE64=yes'
6834                           else
6835                             wx_cv_use_base64='wxUSE_BASE64=no'
6836                           fi
6837                           cache=yes
6838
6839 else
6840
6841                           cache=no
6842                           LINE=`grep "^wxUSE_BASE64=" ${wx_arg_cache_file}`
6843                           if test "x$LINE" != x ; then
6844                             eval "DEFAULT_$LINE"
6845                           fi
6846
6847                           wx_cv_use_base64='wxUSE_BASE64=${'DEFAULT_wxUSE_BASE64":-$defaultval}"
6848
6849 fi
6850
6851
6852           eval "$wx_cv_use_base64"
6853           if test "x$cache" = xyes; then
6854             echo "wxUSE_BASE64=$wxUSE_BASE64" >> ${wx_arg_cache_file}.tmp
6855           fi
6856
6857           if test x"$enablestring" = xdisable; then
6858             if test $wxUSE_BASE64 = yes; then
6859               result=no
6860             else
6861               result=yes
6862             fi
6863           else
6864             result=$wxUSE_BASE64
6865           fi
6866
6867           { echo "$as_me:$LINENO: result: $result" >&5
6868 echo "${ECHO_T}$result" >&6; }
6869
6870
6871           enablestring=
6872           defaultval=$wxUSE_ALL_FEATURES
6873           if test -z "$defaultval"; then
6874               if test x"$enablestring" = xdisable; then
6875                   defaultval=yes
6876               else
6877                   defaultval=no
6878               fi
6879           fi
6880
6881           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-backtrace" >&5
6882 echo $ECHO_N "checking for --${enablestring:-enable}-backtrace... $ECHO_C" >&6; }
6883           # Check whether --enable-backtrace was given.
6884 if test "${enable_backtrace+set}" = set; then
6885   enableval=$enable_backtrace;
6886                           if test "$enableval" = yes; then
6887                             wx_cv_use_backtrace='wxUSE_STACKWALKER=yes'
6888                           else
6889                             wx_cv_use_backtrace='wxUSE_STACKWALKER=no'
6890                           fi
6891                           cache=yes
6892
6893 else
6894
6895                           cache=no
6896                           LINE=`grep "^wxUSE_STACKWALKER=" ${wx_arg_cache_file}`
6897                           if test "x$LINE" != x ; then
6898                             eval "DEFAULT_$LINE"
6899                           fi
6900
6901                           wx_cv_use_backtrace='wxUSE_STACKWALKER=${'DEFAULT_wxUSE_STACKWALKER":-$defaultval}"
6902
6903 fi
6904
6905
6906           eval "$wx_cv_use_backtrace"
6907           if test "x$cache" = xyes; then
6908             echo "wxUSE_STACKWALKER=$wxUSE_STACKWALKER" >> ${wx_arg_cache_file}.tmp
6909           fi
6910
6911           if test x"$enablestring" = xdisable; then
6912             if test $wxUSE_STACKWALKER = yes; then
6913               result=no
6914             else
6915               result=yes
6916             fi
6917           else
6918             result=$wxUSE_STACKWALKER
6919           fi
6920
6921           { echo "$as_me:$LINENO: result: $result" >&5
6922 echo "${ECHO_T}$result" >&6; }
6923
6924
6925           enablestring=
6926           defaultval=$wxUSE_ALL_FEATURES
6927           if test -z "$defaultval"; then
6928               if test x"$enablestring" = xdisable; then
6929                   defaultval=yes
6930               else
6931                   defaultval=no
6932               fi
6933           fi
6934
6935           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-catch_segvs" >&5
6936 echo $ECHO_N "checking for --${enablestring:-enable}-catch_segvs... $ECHO_C" >&6; }
6937           # Check whether --enable-catch_segvs was given.
6938 if test "${enable_catch_segvs+set}" = set; then
6939   enableval=$enable_catch_segvs;
6940                           if test "$enableval" = yes; then
6941                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=yes'
6942                           else
6943                             wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=no'
6944                           fi
6945                           cache=yes
6946
6947 else
6948
6949                           cache=no
6950                           LINE=`grep "^wxUSE_ON_FATAL_EXCEPTION=" ${wx_arg_cache_file}`
6951                           if test "x$LINE" != x ; then
6952                             eval "DEFAULT_$LINE"
6953                           fi
6954
6955                           wx_cv_use_catch_segvs='wxUSE_ON_FATAL_EXCEPTION=${'DEFAULT_wxUSE_ON_FATAL_EXCEPTION":-$defaultval}"
6956
6957 fi
6958
6959
6960           eval "$wx_cv_use_catch_segvs"
6961           if test "x$cache" = xyes; then
6962             echo "wxUSE_ON_FATAL_EXCEPTION=$wxUSE_ON_FATAL_EXCEPTION" >> ${wx_arg_cache_file}.tmp
6963           fi
6964
6965           if test x"$enablestring" = xdisable; then
6966             if test $wxUSE_ON_FATAL_EXCEPTION = yes; then
6967               result=no
6968             else
6969               result=yes
6970             fi
6971           else
6972             result=$wxUSE_ON_FATAL_EXCEPTION
6973           fi
6974
6975           { echo "$as_me:$LINENO: result: $result" >&5
6976 echo "${ECHO_T}$result" >&6; }
6977
6978
6979           enablestring=
6980           defaultval=$wxUSE_ALL_FEATURES
6981           if test -z "$defaultval"; then
6982               if test x"$enablestring" = xdisable; then
6983                   defaultval=yes
6984               else
6985                   defaultval=no
6986               fi
6987           fi
6988
6989           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-cmdline" >&5
6990 echo $ECHO_N "checking for --${enablestring:-enable}-cmdline... $ECHO_C" >&6; }
6991           # Check whether --enable-cmdline was given.
6992 if test "${enable_cmdline+set}" = set; then
6993   enableval=$enable_cmdline;
6994                           if test "$enableval" = yes; then
6995                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=yes'
6996                           else
6997                             wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=no'
6998                           fi
6999                           cache=yes
7000
7001 else
7002
7003                           cache=no
7004                           LINE=`grep "^wxUSE_CMDLINE_PARSER=" ${wx_arg_cache_file}`
7005                           if test "x$LINE" != x ; then
7006                             eval "DEFAULT_$LINE"
7007                           fi
7008
7009                           wx_cv_use_cmdline='wxUSE_CMDLINE_PARSER=${'DEFAULT_wxUSE_CMDLINE_PARSER":-$defaultval}"
7010
7011 fi
7012
7013
7014           eval "$wx_cv_use_cmdline"
7015           if test "x$cache" = xyes; then
7016             echo "wxUSE_CMDLINE_PARSER=$wxUSE_CMDLINE_PARSER" >> ${wx_arg_cache_file}.tmp
7017           fi
7018
7019           if test x"$enablestring" = xdisable; then
7020             if test $wxUSE_CMDLINE_PARSER = yes; then
7021               result=no
7022             else
7023               result=yes
7024             fi
7025           else
7026             result=$wxUSE_CMDLINE_PARSER
7027           fi
7028
7029           { echo "$as_me:$LINENO: result: $result" >&5
7030 echo "${ECHO_T}$result" >&6; }
7031
7032
7033           enablestring=
7034           defaultval=$wxUSE_ALL_FEATURES
7035           if test -z "$defaultval"; then
7036               if test x"$enablestring" = xdisable; then
7037                   defaultval=yes
7038               else
7039                   defaultval=no
7040               fi
7041           fi
7042
7043           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datetime" >&5
7044 echo $ECHO_N "checking for --${enablestring:-enable}-datetime... $ECHO_C" >&6; }
7045           # Check whether --enable-datetime was given.
7046 if test "${enable_datetime+set}" = set; then
7047   enableval=$enable_datetime;
7048                           if test "$enableval" = yes; then
7049                             wx_cv_use_datetime='wxUSE_DATETIME=yes'
7050                           else
7051                             wx_cv_use_datetime='wxUSE_DATETIME=no'
7052                           fi
7053                           cache=yes
7054
7055 else
7056
7057                           cache=no
7058                           LINE=`grep "^wxUSE_DATETIME=" ${wx_arg_cache_file}`
7059                           if test "x$LINE" != x ; then
7060                             eval "DEFAULT_$LINE"
7061                           fi
7062
7063                           wx_cv_use_datetime='wxUSE_DATETIME=${'DEFAULT_wxUSE_DATETIME":-$defaultval}"
7064
7065 fi
7066
7067
7068           eval "$wx_cv_use_datetime"
7069           if test "x$cache" = xyes; then
7070             echo "wxUSE_DATETIME=$wxUSE_DATETIME" >> ${wx_arg_cache_file}.tmp
7071           fi
7072
7073           if test x"$enablestring" = xdisable; then
7074             if test $wxUSE_DATETIME = yes; then
7075               result=no
7076             else
7077               result=yes
7078             fi
7079           else
7080             result=$wxUSE_DATETIME
7081           fi
7082
7083           { echo "$as_me:$LINENO: result: $result" >&5
7084 echo "${ECHO_T}$result" >&6; }
7085
7086
7087           enablestring=
7088           defaultval=$wxUSE_ALL_FEATURES
7089           if test -z "$defaultval"; then
7090               if test x"$enablestring" = xdisable; then
7091                   defaultval=yes
7092               else
7093                   defaultval=no
7094               fi
7095           fi
7096
7097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-debugreport" >&5
7098 echo $ECHO_N "checking for --${enablestring:-enable}-debugreport... $ECHO_C" >&6; }
7099           # Check whether --enable-debugreport was given.
7100 if test "${enable_debugreport+set}" = set; then
7101   enableval=$enable_debugreport;
7102                           if test "$enableval" = yes; then
7103                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=yes'
7104                           else
7105                             wx_cv_use_debugreport='wxUSE_DEBUGREPORT=no'
7106                           fi
7107                           cache=yes
7108
7109 else
7110
7111                           cache=no
7112                           LINE=`grep "^wxUSE_DEBUGREPORT=" ${wx_arg_cache_file}`
7113                           if test "x$LINE" != x ; then
7114                             eval "DEFAULT_$LINE"
7115                           fi
7116
7117                           wx_cv_use_debugreport='wxUSE_DEBUGREPORT=${'DEFAULT_wxUSE_DEBUGREPORT":-$defaultval}"
7118
7119 fi
7120
7121
7122           eval "$wx_cv_use_debugreport"
7123           if test "x$cache" = xyes; then
7124             echo "wxUSE_DEBUGREPORT=$wxUSE_DEBUGREPORT" >> ${wx_arg_cache_file}.tmp
7125           fi
7126
7127           if test x"$enablestring" = xdisable; then
7128             if test $wxUSE_DEBUGREPORT = yes; then
7129               result=no
7130             else
7131               result=yes
7132             fi
7133           else
7134             result=$wxUSE_DEBUGREPORT
7135           fi
7136
7137           { echo "$as_me:$LINENO: result: $result" >&5
7138 echo "${ECHO_T}$result" >&6; }
7139
7140
7141           enablestring=
7142           defaultval=$wxUSE_ALL_FEATURES
7143           if test -z "$defaultval"; then
7144               if test x"$enablestring" = xdisable; then
7145                   defaultval=yes
7146               else
7147                   defaultval=no
7148               fi
7149           fi
7150
7151           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dialupman" >&5
7152 echo $ECHO_N "checking for --${enablestring:-enable}-dialupman... $ECHO_C" >&6; }
7153           # Check whether --enable-dialupman was given.
7154 if test "${enable_dialupman+set}" = set; then
7155   enableval=$enable_dialupman;
7156                           if test "$enableval" = yes; then
7157                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=yes'
7158                           else
7159                             wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=no'
7160                           fi
7161                           cache=yes
7162
7163 else
7164
7165                           cache=no
7166                           LINE=`grep "^wxUSE_DIALUP_MANAGER=" ${wx_arg_cache_file}`
7167                           if test "x$LINE" != x ; then
7168                             eval "DEFAULT_$LINE"
7169                           fi
7170
7171                           wx_cv_use_dialupman='wxUSE_DIALUP_MANAGER=${'DEFAULT_wxUSE_DIALUP_MANAGER":-$defaultval}"
7172
7173 fi
7174
7175
7176           eval "$wx_cv_use_dialupman"
7177           if test "x$cache" = xyes; then
7178             echo "wxUSE_DIALUP_MANAGER=$wxUSE_DIALUP_MANAGER" >> ${wx_arg_cache_file}.tmp
7179           fi
7180
7181           if test x"$enablestring" = xdisable; then
7182             if test $wxUSE_DIALUP_MANAGER = yes; then
7183               result=no
7184             else
7185               result=yes
7186             fi
7187           else
7188             result=$wxUSE_DIALUP_MANAGER
7189           fi
7190
7191           { echo "$as_me:$LINENO: result: $result" >&5
7192 echo "${ECHO_T}$result" >&6; }
7193
7194
7195           enablestring=
7196           defaultval=$wxUSE_ALL_FEATURES
7197           if test -z "$defaultval"; then
7198               if test x"$enablestring" = xdisable; then
7199                   defaultval=yes
7200               else
7201                   defaultval=no
7202               fi
7203           fi
7204
7205           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynlib" >&5
7206 echo $ECHO_N "checking for --${enablestring:-enable}-dynlib... $ECHO_C" >&6; }
7207           # Check whether --enable-dynlib was given.
7208 if test "${enable_dynlib+set}" = set; then
7209   enableval=$enable_dynlib;
7210                           if test "$enableval" = yes; then
7211                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=yes'
7212                           else
7213                             wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=no'
7214                           fi
7215                           cache=yes
7216
7217 else
7218
7219                           cache=no
7220                           LINE=`grep "^wxUSE_DYNLIB_CLASS=" ${wx_arg_cache_file}`
7221                           if test "x$LINE" != x ; then
7222                             eval "DEFAULT_$LINE"
7223                           fi
7224
7225                           wx_cv_use_dynlib='wxUSE_DYNLIB_CLASS=${'DEFAULT_wxUSE_DYNLIB_CLASS":-$defaultval}"
7226
7227 fi
7228
7229
7230           eval "$wx_cv_use_dynlib"
7231           if test "x$cache" = xyes; then
7232             echo "wxUSE_DYNLIB_CLASS=$wxUSE_DYNLIB_CLASS" >> ${wx_arg_cache_file}.tmp
7233           fi
7234
7235           if test x"$enablestring" = xdisable; then
7236             if test $wxUSE_DYNLIB_CLASS = yes; then
7237               result=no
7238             else
7239               result=yes
7240             fi
7241           else
7242             result=$wxUSE_DYNLIB_CLASS
7243           fi
7244
7245           { echo "$as_me:$LINENO: result: $result" >&5
7246 echo "${ECHO_T}$result" >&6; }
7247
7248
7249           enablestring=
7250           defaultval=$wxUSE_ALL_FEATURES
7251           if test -z "$defaultval"; then
7252               if test x"$enablestring" = xdisable; then
7253                   defaultval=yes
7254               else
7255                   defaultval=no
7256               fi
7257           fi
7258
7259           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dynamicloader" >&5
7260 echo $ECHO_N "checking for --${enablestring:-enable}-dynamicloader... $ECHO_C" >&6; }
7261           # Check whether --enable-dynamicloader was given.
7262 if test "${enable_dynamicloader+set}" = set; then
7263   enableval=$enable_dynamicloader;
7264                           if test "$enableval" = yes; then
7265                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=yes'
7266                           else
7267                             wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=no'
7268                           fi
7269                           cache=yes
7270
7271 else
7272
7273                           cache=no
7274                           LINE=`grep "^wxUSE_DYNAMIC_LOADER=" ${wx_arg_cache_file}`
7275                           if test "x$LINE" != x ; then
7276                             eval "DEFAULT_$LINE"
7277                           fi
7278
7279                           wx_cv_use_dynamicloader='wxUSE_DYNAMIC_LOADER=${'DEFAULT_wxUSE_DYNAMIC_LOADER":-$defaultval}"
7280
7281 fi
7282
7283
7284           eval "$wx_cv_use_dynamicloader"
7285           if test "x$cache" = xyes; then
7286             echo "wxUSE_DYNAMIC_LOADER=$wxUSE_DYNAMIC_LOADER" >> ${wx_arg_cache_file}.tmp
7287           fi
7288
7289           if test x"$enablestring" = xdisable; then
7290             if test $wxUSE_DYNAMIC_LOADER = yes; then
7291               result=no
7292             else
7293               result=yes
7294             fi
7295           else
7296             result=$wxUSE_DYNAMIC_LOADER
7297           fi
7298
7299           { echo "$as_me:$LINENO: result: $result" >&5
7300 echo "${ECHO_T}$result" >&6; }
7301
7302
7303           enablestring=
7304           defaultval=$wxUSE_ALL_FEATURES
7305           if test -z "$defaultval"; then
7306               if test x"$enablestring" = xdisable; then
7307                   defaultval=yes
7308               else
7309                   defaultval=no
7310               fi
7311           fi
7312
7313           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-exceptions" >&5
7314 echo $ECHO_N "checking for --${enablestring:-enable}-exceptions... $ECHO_C" >&6; }
7315           # Check whether --enable-exceptions was given.
7316 if test "${enable_exceptions+set}" = set; then
7317   enableval=$enable_exceptions;
7318                           if test "$enableval" = yes; then
7319                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=yes'
7320                           else
7321                             wx_cv_use_exceptions='wxUSE_EXCEPTIONS=no'
7322                           fi
7323                           cache=yes
7324
7325 else
7326
7327                           cache=no
7328                           LINE=`grep "^wxUSE_EXCEPTIONS=" ${wx_arg_cache_file}`
7329                           if test "x$LINE" != x ; then
7330                             eval "DEFAULT_$LINE"
7331                           fi
7332
7333                           wx_cv_use_exceptions='wxUSE_EXCEPTIONS=${'DEFAULT_wxUSE_EXCEPTIONS":-$defaultval}"
7334
7335 fi
7336
7337
7338           eval "$wx_cv_use_exceptions"
7339           if test "x$cache" = xyes; then
7340             echo "wxUSE_EXCEPTIONS=$wxUSE_EXCEPTIONS" >> ${wx_arg_cache_file}.tmp
7341           fi
7342
7343           if test x"$enablestring" = xdisable; then
7344             if test $wxUSE_EXCEPTIONS = yes; then
7345               result=no
7346             else
7347               result=yes
7348             fi
7349           else
7350             result=$wxUSE_EXCEPTIONS
7351           fi
7352
7353           { echo "$as_me:$LINENO: result: $result" >&5
7354 echo "${ECHO_T}$result" >&6; }
7355
7356
7357           enablestring=
7358           defaultval=$wxUSE_ALL_FEATURES
7359           if test -z "$defaultval"; then
7360               if test x"$enablestring" = xdisable; then
7361                   defaultval=yes
7362               else
7363                   defaultval=no
7364               fi
7365           fi
7366
7367           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ffile" >&5
7368 echo $ECHO_N "checking for --${enablestring:-enable}-ffile... $ECHO_C" >&6; }
7369           # Check whether --enable-ffile was given.
7370 if test "${enable_ffile+set}" = set; then
7371   enableval=$enable_ffile;
7372                           if test "$enableval" = yes; then
7373                             wx_cv_use_ffile='wxUSE_FFILE=yes'
7374                           else
7375                             wx_cv_use_ffile='wxUSE_FFILE=no'
7376                           fi
7377                           cache=yes
7378
7379 else
7380
7381                           cache=no
7382                           LINE=`grep "^wxUSE_FFILE=" ${wx_arg_cache_file}`
7383                           if test "x$LINE" != x ; then
7384                             eval "DEFAULT_$LINE"
7385                           fi
7386
7387                           wx_cv_use_ffile='wxUSE_FFILE=${'DEFAULT_wxUSE_FFILE":-$defaultval}"
7388
7389 fi
7390
7391
7392           eval "$wx_cv_use_ffile"
7393           if test "x$cache" = xyes; then
7394             echo "wxUSE_FFILE=$wxUSE_FFILE" >> ${wx_arg_cache_file}.tmp
7395           fi
7396
7397           if test x"$enablestring" = xdisable; then
7398             if test $wxUSE_FFILE = yes; then
7399               result=no
7400             else
7401               result=yes
7402             fi
7403           else
7404             result=$wxUSE_FFILE
7405           fi
7406
7407           { echo "$as_me:$LINENO: result: $result" >&5
7408 echo "${ECHO_T}$result" >&6; }
7409
7410
7411           enablestring=
7412           defaultval=$wxUSE_ALL_FEATURES
7413           if test -z "$defaultval"; then
7414               if test x"$enablestring" = xdisable; then
7415                   defaultval=yes
7416               else
7417                   defaultval=no
7418               fi
7419           fi
7420
7421           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-file" >&5
7422 echo $ECHO_N "checking for --${enablestring:-enable}-file... $ECHO_C" >&6; }
7423           # Check whether --enable-file was given.
7424 if test "${enable_file+set}" = set; then
7425   enableval=$enable_file;
7426                           if test "$enableval" = yes; then
7427                             wx_cv_use_file='wxUSE_FILE=yes'
7428                           else
7429                             wx_cv_use_file='wxUSE_FILE=no'
7430                           fi
7431                           cache=yes
7432
7433 else
7434
7435                           cache=no
7436                           LINE=`grep "^wxUSE_FILE=" ${wx_arg_cache_file}`
7437                           if test "x$LINE" != x ; then
7438                             eval "DEFAULT_$LINE"
7439                           fi
7440
7441                           wx_cv_use_file='wxUSE_FILE=${'DEFAULT_wxUSE_FILE":-$defaultval}"
7442
7443 fi
7444
7445
7446           eval "$wx_cv_use_file"
7447           if test "x$cache" = xyes; then
7448             echo "wxUSE_FILE=$wxUSE_FILE" >> ${wx_arg_cache_file}.tmp
7449           fi
7450
7451           if test x"$enablestring" = xdisable; then
7452             if test $wxUSE_FILE = yes; then
7453               result=no
7454             else
7455               result=yes
7456             fi
7457           else
7458             result=$wxUSE_FILE
7459           fi
7460
7461           { echo "$as_me:$LINENO: result: $result" >&5
7462 echo "${ECHO_T}$result" >&6; }
7463
7464
7465           enablestring=
7466           defaultval=$wxUSE_ALL_FEATURES
7467           if test -z "$defaultval"; then
7468               if test x"$enablestring" = xdisable; then
7469                   defaultval=yes
7470               else
7471                   defaultval=no
7472               fi
7473           fi
7474
7475           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filesystem" >&5
7476 echo $ECHO_N "checking for --${enablestring:-enable}-filesystem... $ECHO_C" >&6; }
7477           # Check whether --enable-filesystem was given.
7478 if test "${enable_filesystem+set}" = set; then
7479   enableval=$enable_filesystem;
7480                           if test "$enableval" = yes; then
7481                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=yes'
7482                           else
7483                             wx_cv_use_filesystem='wxUSE_FILESYSTEM=no'
7484                           fi
7485                           cache=yes
7486
7487 else
7488
7489                           cache=no
7490                           LINE=`grep "^wxUSE_FILESYSTEM=" ${wx_arg_cache_file}`
7491                           if test "x$LINE" != x ; then
7492                             eval "DEFAULT_$LINE"
7493                           fi
7494
7495                           wx_cv_use_filesystem='wxUSE_FILESYSTEM=${'DEFAULT_wxUSE_FILESYSTEM":-$defaultval}"
7496
7497 fi
7498
7499
7500           eval "$wx_cv_use_filesystem"
7501           if test "x$cache" = xyes; then
7502             echo "wxUSE_FILESYSTEM=$wxUSE_FILESYSTEM" >> ${wx_arg_cache_file}.tmp
7503           fi
7504
7505           if test x"$enablestring" = xdisable; then
7506             if test $wxUSE_FILESYSTEM = yes; then
7507               result=no
7508             else
7509               result=yes
7510             fi
7511           else
7512             result=$wxUSE_FILESYSTEM
7513           fi
7514
7515           { echo "$as_me:$LINENO: result: $result" >&5
7516 echo "${ECHO_T}$result" >&6; }
7517
7518
7519           enablestring=
7520           defaultval=$wxUSE_ALL_FEATURES
7521           if test -z "$defaultval"; then
7522               if test x"$enablestring" = xdisable; then
7523                   defaultval=yes
7524               else
7525                   defaultval=no
7526               fi
7527           fi
7528
7529           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontenum" >&5
7530 echo $ECHO_N "checking for --${enablestring:-enable}-fontenum... $ECHO_C" >&6; }
7531           # Check whether --enable-fontenum was given.
7532 if test "${enable_fontenum+set}" = set; then
7533   enableval=$enable_fontenum;
7534                           if test "$enableval" = yes; then
7535                             wx_cv_use_fontenum='wxUSE_FONTENUM=yes'
7536                           else
7537                             wx_cv_use_fontenum='wxUSE_FONTENUM=no'
7538                           fi
7539                           cache=yes
7540
7541 else
7542
7543                           cache=no
7544                           LINE=`grep "^wxUSE_FONTENUM=" ${wx_arg_cache_file}`
7545                           if test "x$LINE" != x ; then
7546                             eval "DEFAULT_$LINE"
7547                           fi
7548
7549                           wx_cv_use_fontenum='wxUSE_FONTENUM=${'DEFAULT_wxUSE_FONTENUM":-$defaultval}"
7550
7551 fi
7552
7553
7554           eval "$wx_cv_use_fontenum"
7555           if test "x$cache" = xyes; then
7556             echo "wxUSE_FONTENUM=$wxUSE_FONTENUM" >> ${wx_arg_cache_file}.tmp
7557           fi
7558
7559           if test x"$enablestring" = xdisable; then
7560             if test $wxUSE_FONTENUM = yes; then
7561               result=no
7562             else
7563               result=yes
7564             fi
7565           else
7566             result=$wxUSE_FONTENUM
7567           fi
7568
7569           { echo "$as_me:$LINENO: result: $result" >&5
7570 echo "${ECHO_T}$result" >&6; }
7571
7572
7573           enablestring=
7574           defaultval=$wxUSE_ALL_FEATURES
7575           if test -z "$defaultval"; then
7576               if test x"$enablestring" = xdisable; then
7577                   defaultval=yes
7578               else
7579                   defaultval=no
7580               fi
7581           fi
7582
7583           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontmap" >&5
7584 echo $ECHO_N "checking for --${enablestring:-enable}-fontmap... $ECHO_C" >&6; }
7585           # Check whether --enable-fontmap was given.
7586 if test "${enable_fontmap+set}" = set; then
7587   enableval=$enable_fontmap;
7588                           if test "$enableval" = yes; then
7589                             wx_cv_use_fontmap='wxUSE_FONTMAP=yes'
7590                           else
7591                             wx_cv_use_fontmap='wxUSE_FONTMAP=no'
7592                           fi
7593                           cache=yes
7594
7595 else
7596
7597                           cache=no
7598                           LINE=`grep "^wxUSE_FONTMAP=" ${wx_arg_cache_file}`
7599                           if test "x$LINE" != x ; then
7600                             eval "DEFAULT_$LINE"
7601                           fi
7602
7603                           wx_cv_use_fontmap='wxUSE_FONTMAP=${'DEFAULT_wxUSE_FONTMAP":-$defaultval}"
7604
7605 fi
7606
7607
7608           eval "$wx_cv_use_fontmap"
7609           if test "x$cache" = xyes; then
7610             echo "wxUSE_FONTMAP=$wxUSE_FONTMAP" >> ${wx_arg_cache_file}.tmp
7611           fi
7612
7613           if test x"$enablestring" = xdisable; then
7614             if test $wxUSE_FONTMAP = yes; then
7615               result=no
7616             else
7617               result=yes
7618             fi
7619           else
7620             result=$wxUSE_FONTMAP
7621           fi
7622
7623           { echo "$as_me:$LINENO: result: $result" >&5
7624 echo "${ECHO_T}$result" >&6; }
7625
7626
7627           enablestring=
7628           defaultval=$wxUSE_ALL_FEATURES
7629           if test -z "$defaultval"; then
7630               if test x"$enablestring" = xdisable; then
7631                   defaultval=yes
7632               else
7633                   defaultval=no
7634               fi
7635           fi
7636
7637           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_archive" >&5
7638 echo $ECHO_N "checking for --${enablestring:-enable}-fs_archive... $ECHO_C" >&6; }
7639           # Check whether --enable-fs_archive was given.
7640 if test "${enable_fs_archive+set}" = set; then
7641   enableval=$enable_fs_archive;
7642                           if test "$enableval" = yes; then
7643                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=yes'
7644                           else
7645                             wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=no'
7646                           fi
7647                           cache=yes
7648
7649 else
7650
7651                           cache=no
7652                           LINE=`grep "^wxUSE_FS_ARCHIVE=" ${wx_arg_cache_file}`
7653                           if test "x$LINE" != x ; then
7654                             eval "DEFAULT_$LINE"
7655                           fi
7656
7657                           wx_cv_use_fs_archive='wxUSE_FS_ARCHIVE=${'DEFAULT_wxUSE_FS_ARCHIVE":-$defaultval}"
7658
7659 fi
7660
7661
7662           eval "$wx_cv_use_fs_archive"
7663           if test "x$cache" = xyes; then
7664             echo "wxUSE_FS_ARCHIVE=$wxUSE_FS_ARCHIVE" >> ${wx_arg_cache_file}.tmp
7665           fi
7666
7667           if test x"$enablestring" = xdisable; then
7668             if test $wxUSE_FS_ARCHIVE = yes; then
7669               result=no
7670             else
7671               result=yes
7672             fi
7673           else
7674             result=$wxUSE_FS_ARCHIVE
7675           fi
7676
7677           { echo "$as_me:$LINENO: result: $result" >&5
7678 echo "${ECHO_T}$result" >&6; }
7679
7680
7681           enablestring=
7682           defaultval=$wxUSE_ALL_FEATURES
7683           if test -z "$defaultval"; then
7684               if test x"$enablestring" = xdisable; then
7685                   defaultval=yes
7686               else
7687                   defaultval=no
7688               fi
7689           fi
7690
7691           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_inet" >&5
7692 echo $ECHO_N "checking for --${enablestring:-enable}-fs_inet... $ECHO_C" >&6; }
7693           # Check whether --enable-fs_inet was given.
7694 if test "${enable_fs_inet+set}" = set; then
7695   enableval=$enable_fs_inet;
7696                           if test "$enableval" = yes; then
7697                             wx_cv_use_fs_inet='wxUSE_FS_INET=yes'
7698                           else
7699                             wx_cv_use_fs_inet='wxUSE_FS_INET=no'
7700                           fi
7701                           cache=yes
7702
7703 else
7704
7705                           cache=no
7706                           LINE=`grep "^wxUSE_FS_INET=" ${wx_arg_cache_file}`
7707                           if test "x$LINE" != x ; then
7708                             eval "DEFAULT_$LINE"
7709                           fi
7710
7711                           wx_cv_use_fs_inet='wxUSE_FS_INET=${'DEFAULT_wxUSE_FS_INET":-$defaultval}"
7712
7713 fi
7714
7715
7716           eval "$wx_cv_use_fs_inet"
7717           if test "x$cache" = xyes; then
7718             echo "wxUSE_FS_INET=$wxUSE_FS_INET" >> ${wx_arg_cache_file}.tmp
7719           fi
7720
7721           if test x"$enablestring" = xdisable; then
7722             if test $wxUSE_FS_INET = yes; then
7723               result=no
7724             else
7725               result=yes
7726             fi
7727           else
7728             result=$wxUSE_FS_INET
7729           fi
7730
7731           { echo "$as_me:$LINENO: result: $result" >&5
7732 echo "${ECHO_T}$result" >&6; }
7733
7734
7735           enablestring=
7736           defaultval=$wxUSE_ALL_FEATURES
7737           if test -z "$defaultval"; then
7738               if test x"$enablestring" = xdisable; then
7739                   defaultval=yes
7740               else
7741                   defaultval=no
7742               fi
7743           fi
7744
7745           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fs_zip" >&5
7746 echo $ECHO_N "checking for --${enablestring:-enable}-fs_zip... $ECHO_C" >&6; }
7747           # Check whether --enable-fs_zip was given.
7748 if test "${enable_fs_zip+set}" = set; then
7749   enableval=$enable_fs_zip;
7750                           if test "$enableval" = yes; then
7751                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=yes'
7752                           else
7753                             wx_cv_use_fs_zip='wxUSE_FS_ZIP=no'
7754                           fi
7755                           cache=yes
7756
7757 else
7758
7759                           cache=no
7760                           LINE=`grep "^wxUSE_FS_ZIP=" ${wx_arg_cache_file}`
7761                           if test "x$LINE" != x ; then
7762                             eval "DEFAULT_$LINE"
7763                           fi
7764
7765                           wx_cv_use_fs_zip='wxUSE_FS_ZIP=${'DEFAULT_wxUSE_FS_ZIP":-$defaultval}"
7766
7767 fi
7768
7769
7770           eval "$wx_cv_use_fs_zip"
7771           if test "x$cache" = xyes; then
7772             echo "wxUSE_FS_ZIP=$wxUSE_FS_ZIP" >> ${wx_arg_cache_file}.tmp
7773           fi
7774
7775           if test x"$enablestring" = xdisable; then
7776             if test $wxUSE_FS_ZIP = yes; then
7777               result=no
7778             else
7779               result=yes
7780             fi
7781           else
7782             result=$wxUSE_FS_ZIP
7783           fi
7784
7785           { echo "$as_me:$LINENO: result: $result" >&5
7786 echo "${ECHO_T}$result" >&6; }
7787
7788
7789           enablestring=
7790           defaultval=$wxUSE_ALL_FEATURES
7791           if test -z "$defaultval"; then
7792               if test x"$enablestring" = xdisable; then
7793                   defaultval=yes
7794               else
7795                   defaultval=no
7796               fi
7797           fi
7798
7799           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-geometry" >&5
7800 echo $ECHO_N "checking for --${enablestring:-enable}-geometry... $ECHO_C" >&6; }
7801           # Check whether --enable-geometry was given.
7802 if test "${enable_geometry+set}" = set; then
7803   enableval=$enable_geometry;
7804                           if test "$enableval" = yes; then
7805                             wx_cv_use_geometry='wxUSE_GEOMETRY=yes'
7806                           else
7807                             wx_cv_use_geometry='wxUSE_GEOMETRY=no'
7808                           fi
7809                           cache=yes
7810
7811 else
7812
7813                           cache=no
7814                           LINE=`grep "^wxUSE_GEOMETRY=" ${wx_arg_cache_file}`
7815                           if test "x$LINE" != x ; then
7816                             eval "DEFAULT_$LINE"
7817                           fi
7818
7819                           wx_cv_use_geometry='wxUSE_GEOMETRY=${'DEFAULT_wxUSE_GEOMETRY":-$defaultval}"
7820
7821 fi
7822
7823
7824           eval "$wx_cv_use_geometry"
7825           if test "x$cache" = xyes; then
7826             echo "wxUSE_GEOMETRY=$wxUSE_GEOMETRY" >> ${wx_arg_cache_file}.tmp
7827           fi
7828
7829           if test x"$enablestring" = xdisable; then
7830             if test $wxUSE_GEOMETRY = yes; then
7831               result=no
7832             else
7833               result=yes
7834             fi
7835           else
7836             result=$wxUSE_GEOMETRY
7837           fi
7838
7839           { echo "$as_me:$LINENO: result: $result" >&5
7840 echo "${ECHO_T}$result" >&6; }
7841
7842
7843           enablestring=
7844           defaultval=$wxUSE_ALL_FEATURES
7845           if test -z "$defaultval"; then
7846               if test x"$enablestring" = xdisable; then
7847                   defaultval=yes
7848               else
7849                   defaultval=no
7850               fi
7851           fi
7852
7853           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-log" >&5
7854 echo $ECHO_N "checking for --${enablestring:-enable}-log... $ECHO_C" >&6; }
7855           # Check whether --enable-log was given.
7856 if test "${enable_log+set}" = set; then
7857   enableval=$enable_log;
7858                           if test "$enableval" = yes; then
7859                             wx_cv_use_log='wxUSE_LOG=yes'
7860                           else
7861                             wx_cv_use_log='wxUSE_LOG=no'
7862                           fi
7863                           cache=yes
7864
7865 else
7866
7867                           cache=no
7868                           LINE=`grep "^wxUSE_LOG=" ${wx_arg_cache_file}`
7869                           if test "x$LINE" != x ; then
7870                             eval "DEFAULT_$LINE"
7871                           fi
7872
7873                           wx_cv_use_log='wxUSE_LOG=${'DEFAULT_wxUSE_LOG":-$defaultval}"
7874
7875 fi
7876
7877
7878           eval "$wx_cv_use_log"
7879           if test "x$cache" = xyes; then
7880             echo "wxUSE_LOG=$wxUSE_LOG" >> ${wx_arg_cache_file}.tmp
7881           fi
7882
7883           if test x"$enablestring" = xdisable; then
7884             if test $wxUSE_LOG = yes; then
7885               result=no
7886             else
7887               result=yes
7888             fi
7889           else
7890             result=$wxUSE_LOG
7891           fi
7892
7893           { echo "$as_me:$LINENO: result: $result" >&5
7894 echo "${ECHO_T}$result" >&6; }
7895
7896
7897           enablestring=
7898           defaultval=$wxUSE_ALL_FEATURES
7899           if test -z "$defaultval"; then
7900               if test x"$enablestring" = xdisable; then
7901                   defaultval=yes
7902               else
7903                   defaultval=no
7904               fi
7905           fi
7906
7907           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-longlong" >&5
7908 echo $ECHO_N "checking for --${enablestring:-enable}-longlong... $ECHO_C" >&6; }
7909           # Check whether --enable-longlong was given.
7910 if test "${enable_longlong+set}" = set; then
7911   enableval=$enable_longlong;
7912                           if test "$enableval" = yes; then
7913                             wx_cv_use_longlong='wxUSE_LONGLONG=yes'
7914                           else
7915                             wx_cv_use_longlong='wxUSE_LONGLONG=no'
7916                           fi
7917                           cache=yes
7918
7919 else
7920
7921                           cache=no
7922                           LINE=`grep "^wxUSE_LONGLONG=" ${wx_arg_cache_file}`
7923                           if test "x$LINE" != x ; then
7924                             eval "DEFAULT_$LINE"
7925                           fi
7926
7927                           wx_cv_use_longlong='wxUSE_LONGLONG=${'DEFAULT_wxUSE_LONGLONG":-$defaultval}"
7928
7929 fi
7930
7931
7932           eval "$wx_cv_use_longlong"
7933           if test "x$cache" = xyes; then
7934             echo "wxUSE_LONGLONG=$wxUSE_LONGLONG" >> ${wx_arg_cache_file}.tmp
7935           fi
7936
7937           if test x"$enablestring" = xdisable; then
7938             if test $wxUSE_LONGLONG = yes; then
7939               result=no
7940             else
7941               result=yes
7942             fi
7943           else
7944             result=$wxUSE_LONGLONG
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}-mimetype" >&5
7962 echo $ECHO_N "checking for --${enablestring:-enable}-mimetype... $ECHO_C" >&6; }
7963           # Check whether --enable-mimetype was given.
7964 if test "${enable_mimetype+set}" = set; then
7965   enableval=$enable_mimetype;
7966                           if test "$enableval" = yes; then
7967                             wx_cv_use_mimetype='wxUSE_MIMETYPE=yes'
7968                           else
7969                             wx_cv_use_mimetype='wxUSE_MIMETYPE=no'
7970                           fi
7971                           cache=yes
7972
7973 else
7974
7975                           cache=no
7976                           LINE=`grep "^wxUSE_MIMETYPE=" ${wx_arg_cache_file}`
7977                           if test "x$LINE" != x ; then
7978                             eval "DEFAULT_$LINE"
7979                           fi
7980
7981                           wx_cv_use_mimetype='wxUSE_MIMETYPE=${'DEFAULT_wxUSE_MIMETYPE":-$defaultval}"
7982
7983 fi
7984
7985
7986           eval "$wx_cv_use_mimetype"
7987           if test "x$cache" = xyes; then
7988             echo "wxUSE_MIMETYPE=$wxUSE_MIMETYPE" >> ${wx_arg_cache_file}.tmp
7989           fi
7990
7991           if test x"$enablestring" = xdisable; then
7992             if test $wxUSE_MIMETYPE = yes; then
7993               result=no
7994             else
7995               result=yes
7996             fi
7997           else
7998             result=$wxUSE_MIMETYPE
7999           fi
8000
8001           { echo "$as_me:$LINENO: result: $result" >&5
8002 echo "${ECHO_T}$result" >&6; }
8003
8004
8005           enablestring=
8006           defaultval=$wxUSE_ALL_FEATURES
8007           if test -z "$defaultval"; then
8008               if test x"$enablestring" = xdisable; then
8009                   defaultval=yes
8010               else
8011                   defaultval=no
8012               fi
8013           fi
8014
8015           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-snglinst" >&5
8016 echo $ECHO_N "checking for --${enablestring:-enable}-snglinst... $ECHO_C" >&6; }
8017           # Check whether --enable-snglinst was given.
8018 if test "${enable_snglinst+set}" = set; then
8019   enableval=$enable_snglinst;
8020                           if test "$enableval" = yes; then
8021                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=yes'
8022                           else
8023                             wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=no'
8024                           fi
8025                           cache=yes
8026
8027 else
8028
8029                           cache=no
8030                           LINE=`grep "^wxUSE_SNGLINST_CHECKER=" ${wx_arg_cache_file}`
8031                           if test "x$LINE" != x ; then
8032                             eval "DEFAULT_$LINE"
8033                           fi
8034
8035                           wx_cv_use_snglinst='wxUSE_SNGLINST_CHECKER=${'DEFAULT_wxUSE_SNGLINST_CHECKER":-$defaultval}"
8036
8037 fi
8038
8039
8040           eval "$wx_cv_use_snglinst"
8041           if test "x$cache" = xyes; then
8042             echo "wxUSE_SNGLINST_CHECKER=$wxUSE_SNGLINST_CHECKER" >> ${wx_arg_cache_file}.tmp
8043           fi
8044
8045           if test x"$enablestring" = xdisable; then
8046             if test $wxUSE_SNGLINST_CHECKER = yes; then
8047               result=no
8048             else
8049               result=yes
8050             fi
8051           else
8052             result=$wxUSE_SNGLINST_CHECKER
8053           fi
8054
8055           { echo "$as_me:$LINENO: result: $result" >&5
8056 echo "${ECHO_T}$result" >&6; }
8057
8058
8059           enablestring=
8060           defaultval=$wxUSE_ALL_FEATURES
8061           if test -z "$defaultval"; then
8062               if test x"$enablestring" = xdisable; then
8063                   defaultval=yes
8064               else
8065                   defaultval=no
8066               fi
8067           fi
8068
8069           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stdpaths" >&5
8070 echo $ECHO_N "checking for --${enablestring:-enable}-stdpaths... $ECHO_C" >&6; }
8071           # Check whether --enable-stdpaths was given.
8072 if test "${enable_stdpaths+set}" = set; then
8073   enableval=$enable_stdpaths;
8074                           if test "$enableval" = yes; then
8075                             wx_cv_use_stdpaths='wxUSE_STDPATHS=yes'
8076                           else
8077                             wx_cv_use_stdpaths='wxUSE_STDPATHS=no'
8078                           fi
8079                           cache=yes
8080
8081 else
8082
8083                           cache=no
8084                           LINE=`grep "^wxUSE_STDPATHS=" ${wx_arg_cache_file}`
8085                           if test "x$LINE" != x ; then
8086                             eval "DEFAULT_$LINE"
8087                           fi
8088
8089                           wx_cv_use_stdpaths='wxUSE_STDPATHS=${'DEFAULT_wxUSE_STDPATHS":-$defaultval}"
8090
8091 fi
8092
8093
8094           eval "$wx_cv_use_stdpaths"
8095           if test "x$cache" = xyes; then
8096             echo "wxUSE_STDPATHS=$wxUSE_STDPATHS" >> ${wx_arg_cache_file}.tmp
8097           fi
8098
8099           if test x"$enablestring" = xdisable; then
8100             if test $wxUSE_STDPATHS = yes; then
8101               result=no
8102             else
8103               result=yes
8104             fi
8105           else
8106             result=$wxUSE_STDPATHS
8107           fi
8108
8109           { echo "$as_me:$LINENO: result: $result" >&5
8110 echo "${ECHO_T}$result" >&6; }
8111
8112
8113           enablestring=
8114           defaultval=$wxUSE_ALL_FEATURES
8115           if test -z "$defaultval"; then
8116               if test x"$enablestring" = xdisable; then
8117                   defaultval=yes
8118               else
8119                   defaultval=no
8120               fi
8121           fi
8122
8123           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stopwatch" >&5
8124 echo $ECHO_N "checking for --${enablestring:-enable}-stopwatch... $ECHO_C" >&6; }
8125           # Check whether --enable-stopwatch was given.
8126 if test "${enable_stopwatch+set}" = set; then
8127   enableval=$enable_stopwatch;
8128                           if test "$enableval" = yes; then
8129                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=yes'
8130                           else
8131                             wx_cv_use_stopwatch='wxUSE_STOPWATCH=no'
8132                           fi
8133                           cache=yes
8134
8135 else
8136
8137                           cache=no
8138                           LINE=`grep "^wxUSE_STOPWATCH=" ${wx_arg_cache_file}`
8139                           if test "x$LINE" != x ; then
8140                             eval "DEFAULT_$LINE"
8141                           fi
8142
8143                           wx_cv_use_stopwatch='wxUSE_STOPWATCH=${'DEFAULT_wxUSE_STOPWATCH":-$defaultval}"
8144
8145 fi
8146
8147
8148           eval "$wx_cv_use_stopwatch"
8149           if test "x$cache" = xyes; then
8150             echo "wxUSE_STOPWATCH=$wxUSE_STOPWATCH" >> ${wx_arg_cache_file}.tmp
8151           fi
8152
8153           if test x"$enablestring" = xdisable; then
8154             if test $wxUSE_STOPWATCH = yes; then
8155               result=no
8156             else
8157               result=yes
8158             fi
8159           else
8160             result=$wxUSE_STOPWATCH
8161           fi
8162
8163           { echo "$as_me:$LINENO: result: $result" >&5
8164 echo "${ECHO_T}$result" >&6; }
8165
8166
8167           enablestring=
8168           defaultval=$wxUSE_ALL_FEATURES
8169           if test -z "$defaultval"; then
8170               if test x"$enablestring" = xdisable; then
8171                   defaultval=yes
8172               else
8173                   defaultval=no
8174               fi
8175           fi
8176
8177           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-streams" >&5
8178 echo $ECHO_N "checking for --${enablestring:-enable}-streams... $ECHO_C" >&6; }
8179           # Check whether --enable-streams was given.
8180 if test "${enable_streams+set}" = set; then
8181   enableval=$enable_streams;
8182                           if test "$enableval" = yes; then
8183                             wx_cv_use_streams='wxUSE_STREAMS=yes'
8184                           else
8185                             wx_cv_use_streams='wxUSE_STREAMS=no'
8186                           fi
8187                           cache=yes
8188
8189 else
8190
8191                           cache=no
8192                           LINE=`grep "^wxUSE_STREAMS=" ${wx_arg_cache_file}`
8193                           if test "x$LINE" != x ; then
8194                             eval "DEFAULT_$LINE"
8195                           fi
8196
8197                           wx_cv_use_streams='wxUSE_STREAMS=${'DEFAULT_wxUSE_STREAMS":-$defaultval}"
8198
8199 fi
8200
8201
8202           eval "$wx_cv_use_streams"
8203           if test "x$cache" = xyes; then
8204             echo "wxUSE_STREAMS=$wxUSE_STREAMS" >> ${wx_arg_cache_file}.tmp
8205           fi
8206
8207           if test x"$enablestring" = xdisable; then
8208             if test $wxUSE_STREAMS = yes; then
8209               result=no
8210             else
8211               result=yes
8212             fi
8213           else
8214             result=$wxUSE_STREAMS
8215           fi
8216
8217           { echo "$as_me:$LINENO: result: $result" >&5
8218 echo "${ECHO_T}$result" >&6; }
8219
8220
8221           enablestring=
8222           defaultval=$wxUSE_ALL_FEATURES
8223           if test -z "$defaultval"; then
8224               if test x"$enablestring" = xdisable; then
8225                   defaultval=yes
8226               else
8227                   defaultval=no
8228               fi
8229           fi
8230
8231           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-system_options" >&5
8232 echo $ECHO_N "checking for --${enablestring:-enable}-system_options... $ECHO_C" >&6; }
8233           # Check whether --enable-system_options was given.
8234 if test "${enable_system_options+set}" = set; then
8235   enableval=$enable_system_options;
8236                           if test "$enableval" = yes; then
8237                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=yes'
8238                           else
8239                             wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=no'
8240                           fi
8241                           cache=yes
8242
8243 else
8244
8245                           cache=no
8246                           LINE=`grep "^wxUSE_SYSTEM_OPTIONS=" ${wx_arg_cache_file}`
8247                           if test "x$LINE" != x ; then
8248                             eval "DEFAULT_$LINE"
8249                           fi
8250
8251                           wx_cv_use_system_options='wxUSE_SYSTEM_OPTIONS=${'DEFAULT_wxUSE_SYSTEM_OPTIONS":-$defaultval}"
8252
8253 fi
8254
8255
8256           eval "$wx_cv_use_system_options"
8257           if test "x$cache" = xyes; then
8258             echo "wxUSE_SYSTEM_OPTIONS=$wxUSE_SYSTEM_OPTIONS" >> ${wx_arg_cache_file}.tmp
8259           fi
8260
8261           if test x"$enablestring" = xdisable; then
8262             if test $wxUSE_SYSTEM_OPTIONS = yes; then
8263               result=no
8264             else
8265               result=yes
8266             fi
8267           else
8268             result=$wxUSE_SYSTEM_OPTIONS
8269           fi
8270
8271           { echo "$as_me:$LINENO: result: $result" >&5
8272 echo "${ECHO_T}$result" >&6; }
8273
8274
8275           enablestring=
8276           defaultval=$wxUSE_ALL_FEATURES
8277           if test -z "$defaultval"; then
8278               if test x"$enablestring" = xdisable; then
8279                   defaultval=yes
8280               else
8281                   defaultval=no
8282               fi
8283           fi
8284
8285           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tarstream" >&5
8286 echo $ECHO_N "checking for --${enablestring:-enable}-tarstream... $ECHO_C" >&6; }
8287           # Check whether --enable-tarstream was given.
8288 if test "${enable_tarstream+set}" = set; then
8289   enableval=$enable_tarstream;
8290                           if test "$enableval" = yes; then
8291                             wx_cv_use_tarstream='wxUSE_TARSTREAM=yes'
8292                           else
8293                             wx_cv_use_tarstream='wxUSE_TARSTREAM=no'
8294                           fi
8295                           cache=yes
8296
8297 else
8298
8299                           cache=no
8300                           LINE=`grep "^wxUSE_TARSTREAM=" ${wx_arg_cache_file}`
8301                           if test "x$LINE" != x ; then
8302                             eval "DEFAULT_$LINE"
8303                           fi
8304
8305                           wx_cv_use_tarstream='wxUSE_TARSTREAM=${'DEFAULT_wxUSE_TARSTREAM":-$defaultval}"
8306
8307 fi
8308
8309
8310           eval "$wx_cv_use_tarstream"
8311           if test "x$cache" = xyes; then
8312             echo "wxUSE_TARSTREAM=$wxUSE_TARSTREAM" >> ${wx_arg_cache_file}.tmp
8313           fi
8314
8315           if test x"$enablestring" = xdisable; then
8316             if test $wxUSE_TARSTREAM = yes; then
8317               result=no
8318             else
8319               result=yes
8320             fi
8321           else
8322             result=$wxUSE_TARSTREAM
8323           fi
8324
8325           { echo "$as_me:$LINENO: result: $result" >&5
8326 echo "${ECHO_T}$result" >&6; }
8327
8328
8329           enablestring=
8330           defaultval=$wxUSE_ALL_FEATURES
8331           if test -z "$defaultval"; then
8332               if test x"$enablestring" = xdisable; then
8333                   defaultval=yes
8334               else
8335                   defaultval=no
8336               fi
8337           fi
8338
8339           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textbuf" >&5
8340 echo $ECHO_N "checking for --${enablestring:-enable}-textbuf... $ECHO_C" >&6; }
8341           # Check whether --enable-textbuf was given.
8342 if test "${enable_textbuf+set}" = set; then
8343   enableval=$enable_textbuf;
8344                           if test "$enableval" = yes; then
8345                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=yes'
8346                           else
8347                             wx_cv_use_textbuf='wxUSE_TEXTBUFFER=no'
8348                           fi
8349                           cache=yes
8350
8351 else
8352
8353                           cache=no
8354                           LINE=`grep "^wxUSE_TEXTBUFFER=" ${wx_arg_cache_file}`
8355                           if test "x$LINE" != x ; then
8356                             eval "DEFAULT_$LINE"
8357                           fi
8358
8359                           wx_cv_use_textbuf='wxUSE_TEXTBUFFER=${'DEFAULT_wxUSE_TEXTBUFFER":-$defaultval}"
8360
8361 fi
8362
8363
8364           eval "$wx_cv_use_textbuf"
8365           if test "x$cache" = xyes; then
8366             echo "wxUSE_TEXTBUFFER=$wxUSE_TEXTBUFFER" >> ${wx_arg_cache_file}.tmp
8367           fi
8368
8369           if test x"$enablestring" = xdisable; then
8370             if test $wxUSE_TEXTBUFFER = yes; then
8371               result=no
8372             else
8373               result=yes
8374             fi
8375           else
8376             result=$wxUSE_TEXTBUFFER
8377           fi
8378
8379           { echo "$as_me:$LINENO: result: $result" >&5
8380 echo "${ECHO_T}$result" >&6; }
8381
8382
8383           enablestring=
8384           defaultval=$wxUSE_ALL_FEATURES
8385           if test -z "$defaultval"; then
8386               if test x"$enablestring" = xdisable; then
8387                   defaultval=yes
8388               else
8389                   defaultval=no
8390               fi
8391           fi
8392
8393           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textfile" >&5
8394 echo $ECHO_N "checking for --${enablestring:-enable}-textfile... $ECHO_C" >&6; }
8395           # Check whether --enable-textfile was given.
8396 if test "${enable_textfile+set}" = set; then
8397   enableval=$enable_textfile;
8398                           if test "$enableval" = yes; then
8399                             wx_cv_use_textfile='wxUSE_TEXTFILE=yes'
8400                           else
8401                             wx_cv_use_textfile='wxUSE_TEXTFILE=no'
8402                           fi
8403                           cache=yes
8404
8405 else
8406
8407                           cache=no
8408                           LINE=`grep "^wxUSE_TEXTFILE=" ${wx_arg_cache_file}`
8409                           if test "x$LINE" != x ; then
8410                             eval "DEFAULT_$LINE"
8411                           fi
8412
8413                           wx_cv_use_textfile='wxUSE_TEXTFILE=${'DEFAULT_wxUSE_TEXTFILE":-$defaultval}"
8414
8415 fi
8416
8417
8418           eval "$wx_cv_use_textfile"
8419           if test "x$cache" = xyes; then
8420             echo "wxUSE_TEXTFILE=$wxUSE_TEXTFILE" >> ${wx_arg_cache_file}.tmp
8421           fi
8422
8423           if test x"$enablestring" = xdisable; then
8424             if test $wxUSE_TEXTFILE = yes; then
8425               result=no
8426             else
8427               result=yes
8428             fi
8429           else
8430             result=$wxUSE_TEXTFILE
8431           fi
8432
8433           { echo "$as_me:$LINENO: result: $result" >&5
8434 echo "${ECHO_T}$result" >&6; }
8435
8436
8437           enablestring=
8438           defaultval=$wxUSE_ALL_FEATURES
8439           if test -z "$defaultval"; then
8440               if test x"$enablestring" = xdisable; then
8441                   defaultval=yes
8442               else
8443                   defaultval=no
8444               fi
8445           fi
8446
8447           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-timer" >&5
8448 echo $ECHO_N "checking for --${enablestring:-enable}-timer... $ECHO_C" >&6; }
8449           # Check whether --enable-timer was given.
8450 if test "${enable_timer+set}" = set; then
8451   enableval=$enable_timer;
8452                           if test "$enableval" = yes; then
8453                             wx_cv_use_timer='wxUSE_TIMER=yes'
8454                           else
8455                             wx_cv_use_timer='wxUSE_TIMER=no'
8456                           fi
8457                           cache=yes
8458
8459 else
8460
8461                           cache=no
8462                           LINE=`grep "^wxUSE_TIMER=" ${wx_arg_cache_file}`
8463                           if test "x$LINE" != x ; then
8464                             eval "DEFAULT_$LINE"
8465                           fi
8466
8467                           wx_cv_use_timer='wxUSE_TIMER=${'DEFAULT_wxUSE_TIMER":-$defaultval}"
8468
8469 fi
8470
8471
8472           eval "$wx_cv_use_timer"
8473           if test "x$cache" = xyes; then
8474             echo "wxUSE_TIMER=$wxUSE_TIMER" >> ${wx_arg_cache_file}.tmp
8475           fi
8476
8477           if test x"$enablestring" = xdisable; then
8478             if test $wxUSE_TIMER = yes; then
8479               result=no
8480             else
8481               result=yes
8482             fi
8483           else
8484             result=$wxUSE_TIMER
8485           fi
8486
8487           { echo "$as_me:$LINENO: result: $result" >&5
8488 echo "${ECHO_T}$result" >&6; }
8489
8490
8491           enablestring=
8492           defaultval=$wxUSE_ALL_FEATURES
8493           if test -z "$defaultval"; then
8494               if test x"$enablestring" = xdisable; then
8495                   defaultval=yes
8496               else
8497                   defaultval=no
8498               fi
8499           fi
8500
8501           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sound" >&5
8502 echo $ECHO_N "checking for --${enablestring:-enable}-sound... $ECHO_C" >&6; }
8503           # Check whether --enable-sound was given.
8504 if test "${enable_sound+set}" = set; then
8505   enableval=$enable_sound;
8506                           if test "$enableval" = yes; then
8507                             wx_cv_use_sound='wxUSE_SOUND=yes'
8508                           else
8509                             wx_cv_use_sound='wxUSE_SOUND=no'
8510                           fi
8511                           cache=yes
8512
8513 else
8514
8515                           cache=no
8516                           LINE=`grep "^wxUSE_SOUND=" ${wx_arg_cache_file}`
8517                           if test "x$LINE" != x ; then
8518                             eval "DEFAULT_$LINE"
8519                           fi
8520
8521                           wx_cv_use_sound='wxUSE_SOUND=${'DEFAULT_wxUSE_SOUND":-$defaultval}"
8522
8523 fi
8524
8525
8526           eval "$wx_cv_use_sound"
8527           if test "x$cache" = xyes; then
8528             echo "wxUSE_SOUND=$wxUSE_SOUND" >> ${wx_arg_cache_file}.tmp
8529           fi
8530
8531           if test x"$enablestring" = xdisable; then
8532             if test $wxUSE_SOUND = yes; then
8533               result=no
8534             else
8535               result=yes
8536             fi
8537           else
8538             result=$wxUSE_SOUND
8539           fi
8540
8541           { echo "$as_me:$LINENO: result: $result" >&5
8542 echo "${ECHO_T}$result" >&6; }
8543
8544
8545           enablestring=
8546           defaultval=$wxUSE_ALL_FEATURES
8547           if test -z "$defaultval"; then
8548               if test x"$enablestring" = xdisable; then
8549                   defaultval=yes
8550               else
8551                   defaultval=no
8552               fi
8553           fi
8554
8555           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mediactrl" >&5
8556 echo $ECHO_N "checking for --${enablestring:-enable}-mediactrl... $ECHO_C" >&6; }
8557           # Check whether --enable-mediactrl was given.
8558 if test "${enable_mediactrl+set}" = set; then
8559   enableval=$enable_mediactrl;
8560                           if test "$enableval" = yes; then
8561                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=yes'
8562                           else
8563                             wx_cv_use_mediactrl='wxUSE_MEDIACTRL=no'
8564                           fi
8565                           cache=yes
8566
8567 else
8568
8569                           cache=no
8570                           LINE=`grep "^wxUSE_MEDIACTRL=" ${wx_arg_cache_file}`
8571                           if test "x$LINE" != x ; then
8572                             eval "DEFAULT_$LINE"
8573                           fi
8574
8575                           wx_cv_use_mediactrl='wxUSE_MEDIACTRL=${'DEFAULT_wxUSE_MEDIACTRL":-$defaultval}"
8576
8577 fi
8578
8579
8580           eval "$wx_cv_use_mediactrl"
8581           if test "x$cache" = xyes; then
8582             echo "wxUSE_MEDIACTRL=$wxUSE_MEDIACTRL" >> ${wx_arg_cache_file}.tmp
8583           fi
8584
8585           if test x"$enablestring" = xdisable; then
8586             if test $wxUSE_MEDIACTRL = yes; then
8587               result=no
8588             else
8589               result=yes
8590             fi
8591           else
8592             result=$wxUSE_MEDIACTRL
8593           fi
8594
8595           { echo "$as_me:$LINENO: result: $result" >&5
8596 echo "${ECHO_T}$result" >&6; }
8597
8598
8599           enablestring=
8600           defaultval=$wxUSE_ALL_FEATURES
8601           if test -z "$defaultval"; then
8602               if test x"$enablestring" = xdisable; then
8603                   defaultval=yes
8604               else
8605                   defaultval=no
8606               fi
8607           fi
8608
8609           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gstreamer8" >&5
8610 echo $ECHO_N "checking for --${enablestring:-enable}-gstreamer8... $ECHO_C" >&6; }
8611           # Check whether --enable-gstreamer8 was given.
8612 if test "${enable_gstreamer8+set}" = set; then
8613   enableval=$enable_gstreamer8;
8614                           if test "$enableval" = yes; then
8615                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=yes'
8616                           else
8617                             wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=no'
8618                           fi
8619                           cache=yes
8620
8621 else
8622
8623                           cache=no
8624                           LINE=`grep "^wxUSE_GSTREAMER8=" ${wx_arg_cache_file}`
8625                           if test "x$LINE" != x ; then
8626                             eval "DEFAULT_$LINE"
8627                           fi
8628
8629                           wx_cv_use_gstreamer8='wxUSE_GSTREAMER8=${'DEFAULT_wxUSE_GSTREAMER8":-$defaultval}"
8630
8631 fi
8632
8633
8634           eval "$wx_cv_use_gstreamer8"
8635           if test "x$cache" = xyes; then
8636             echo "wxUSE_GSTREAMER8=$wxUSE_GSTREAMER8" >> ${wx_arg_cache_file}.tmp
8637           fi
8638
8639           if test x"$enablestring" = xdisable; then
8640             if test $wxUSE_GSTREAMER8 = yes; then
8641               result=no
8642             else
8643               result=yes
8644             fi
8645           else
8646             result=$wxUSE_GSTREAMER8
8647           fi
8648
8649           { echo "$as_me:$LINENO: result: $result" >&5
8650 echo "${ECHO_T}$result" >&6; }
8651
8652
8653           enablestring=
8654           defaultval=$wxUSE_ALL_FEATURES
8655           if test -z "$defaultval"; then
8656               if test x"$enablestring" = xdisable; then
8657                   defaultval=yes
8658               else
8659                   defaultval=no
8660               fi
8661           fi
8662
8663           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printfposparam" >&5
8664 echo $ECHO_N "checking for --${enablestring:-enable}-printfposparam... $ECHO_C" >&6; }
8665           # Check whether --enable-printfposparam was given.
8666 if test "${enable_printfposparam+set}" = set; then
8667   enableval=$enable_printfposparam;
8668                           if test "$enableval" = yes; then
8669                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=yes'
8670                           else
8671                             wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=no'
8672                           fi
8673                           cache=yes
8674
8675 else
8676
8677                           cache=no
8678                           LINE=`grep "^wxUSE_PRINTF_POS_PARAMS=" ${wx_arg_cache_file}`
8679                           if test "x$LINE" != x ; then
8680                             eval "DEFAULT_$LINE"
8681                           fi
8682
8683                           wx_cv_use_printfposparam='wxUSE_PRINTF_POS_PARAMS=${'DEFAULT_wxUSE_PRINTF_POS_PARAMS":-$defaultval}"
8684
8685 fi
8686
8687
8688           eval "$wx_cv_use_printfposparam"
8689           if test "x$cache" = xyes; then
8690             echo "wxUSE_PRINTF_POS_PARAMS=$wxUSE_PRINTF_POS_PARAMS" >> ${wx_arg_cache_file}.tmp
8691           fi
8692
8693           if test x"$enablestring" = xdisable; then
8694             if test $wxUSE_PRINTF_POS_PARAMS = yes; then
8695               result=no
8696             else
8697               result=yes
8698             fi
8699           else
8700             result=$wxUSE_PRINTF_POS_PARAMS
8701           fi
8702
8703           { echo "$as_me:$LINENO: result: $result" >&5
8704 echo "${ECHO_T}$result" >&6; }
8705
8706
8707           enablestring=
8708           defaultval=$wxUSE_ALL_FEATURES
8709           if test -z "$defaultval"; then
8710               if test x"$enablestring" = xdisable; then
8711                   defaultval=yes
8712               else
8713                   defaultval=no
8714               fi
8715           fi
8716
8717           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-zipstream" >&5
8718 echo $ECHO_N "checking for --${enablestring:-enable}-zipstream... $ECHO_C" >&6; }
8719           # Check whether --enable-zipstream was given.
8720 if test "${enable_zipstream+set}" = set; then
8721   enableval=$enable_zipstream;
8722                           if test "$enableval" = yes; then
8723                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=yes'
8724                           else
8725                             wx_cv_use_zipstream='wxUSE_ZIPSTREAM=no'
8726                           fi
8727                           cache=yes
8728
8729 else
8730
8731                           cache=no
8732                           LINE=`grep "^wxUSE_ZIPSTREAM=" ${wx_arg_cache_file}`
8733                           if test "x$LINE" != x ; then
8734                             eval "DEFAULT_$LINE"
8735                           fi
8736
8737                           wx_cv_use_zipstream='wxUSE_ZIPSTREAM=${'DEFAULT_wxUSE_ZIPSTREAM":-$defaultval}"
8738
8739 fi
8740
8741
8742           eval "$wx_cv_use_zipstream"
8743           if test "x$cache" = xyes; then
8744             echo "wxUSE_ZIPSTREAM=$wxUSE_ZIPSTREAM" >> ${wx_arg_cache_file}.tmp
8745           fi
8746
8747           if test x"$enablestring" = xdisable; then
8748             if test $wxUSE_ZIPSTREAM = yes; then
8749               result=no
8750             else
8751               result=yes
8752             fi
8753           else
8754             result=$wxUSE_ZIPSTREAM
8755           fi
8756
8757           { echo "$as_me:$LINENO: result: $result" >&5
8758 echo "${ECHO_T}$result" >&6; }
8759
8760
8761
8762           enablestring=
8763           defaultval=$wxUSE_ALL_FEATURES
8764           if test -z "$defaultval"; then
8765               if test x"$enablestring" = xdisable; then
8766                   defaultval=yes
8767               else
8768                   defaultval=no
8769               fi
8770           fi
8771
8772           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-url" >&5
8773 echo $ECHO_N "checking for --${enablestring:-enable}-url... $ECHO_C" >&6; }
8774           # Check whether --enable-url was given.
8775 if test "${enable_url+set}" = set; then
8776   enableval=$enable_url;
8777                           if test "$enableval" = yes; then
8778                             wx_cv_use_url='wxUSE_URL=yes'
8779                           else
8780                             wx_cv_use_url='wxUSE_URL=no'
8781                           fi
8782                           cache=yes
8783
8784 else
8785
8786                           cache=no
8787                           LINE=`grep "^wxUSE_URL=" ${wx_arg_cache_file}`
8788                           if test "x$LINE" != x ; then
8789                             eval "DEFAULT_$LINE"
8790                           fi
8791
8792                           wx_cv_use_url='wxUSE_URL=${'DEFAULT_wxUSE_URL":-$defaultval}"
8793
8794 fi
8795
8796
8797           eval "$wx_cv_use_url"
8798           if test "x$cache" = xyes; then
8799             echo "wxUSE_URL=$wxUSE_URL" >> ${wx_arg_cache_file}.tmp
8800           fi
8801
8802           if test x"$enablestring" = xdisable; then
8803             if test $wxUSE_URL = yes; then
8804               result=no
8805             else
8806               result=yes
8807             fi
8808           else
8809             result=$wxUSE_URL
8810           fi
8811
8812           { echo "$as_me:$LINENO: result: $result" >&5
8813 echo "${ECHO_T}$result" >&6; }
8814
8815
8816           enablestring=
8817           defaultval=$wxUSE_ALL_FEATURES
8818           if test -z "$defaultval"; then
8819               if test x"$enablestring" = xdisable; then
8820                   defaultval=yes
8821               else
8822                   defaultval=no
8823               fi
8824           fi
8825
8826           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-variant" >&5
8827 echo $ECHO_N "checking for --${enablestring:-enable}-variant... $ECHO_C" >&6; }
8828           # Check whether --enable-variant was given.
8829 if test "${enable_variant+set}" = set; then
8830   enableval=$enable_variant;
8831                           if test "$enableval" = yes; then
8832                             wx_cv_use_variant='wxUSE_VARIANT=yes'
8833                           else
8834                             wx_cv_use_variant='wxUSE_VARIANT=no'
8835                           fi
8836                           cache=yes
8837
8838 else
8839
8840                           cache=no
8841                           LINE=`grep "^wxUSE_VARIANT=" ${wx_arg_cache_file}`
8842                           if test "x$LINE" != x ; then
8843                             eval "DEFAULT_$LINE"
8844                           fi
8845
8846                           wx_cv_use_variant='wxUSE_VARIANT=${'DEFAULT_wxUSE_VARIANT":-$defaultval}"
8847
8848 fi
8849
8850
8851           eval "$wx_cv_use_variant"
8852           if test "x$cache" = xyes; then
8853             echo "wxUSE_VARIANT=$wxUSE_VARIANT" >> ${wx_arg_cache_file}.tmp
8854           fi
8855
8856           if test x"$enablestring" = xdisable; then
8857             if test $wxUSE_VARIANT = yes; then
8858               result=no
8859             else
8860               result=yes
8861             fi
8862           else
8863             result=$wxUSE_VARIANT
8864           fi
8865
8866           { echo "$as_me:$LINENO: result: $result" >&5
8867 echo "${ECHO_T}$result" >&6; }
8868
8869
8870           enablestring=
8871           defaultval=$wxUSE_ALL_FEATURES
8872           if test -z "$defaultval"; then
8873               if test x"$enablestring" = xdisable; then
8874                   defaultval=yes
8875               else
8876                   defaultval=no
8877               fi
8878           fi
8879
8880           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol" >&5
8881 echo $ECHO_N "checking for --${enablestring:-enable}-protocol... $ECHO_C" >&6; }
8882           # Check whether --enable-protocol was given.
8883 if test "${enable_protocol+set}" = set; then
8884   enableval=$enable_protocol;
8885                           if test "$enableval" = yes; then
8886                             wx_cv_use_protocol='wxUSE_PROTOCOL=yes'
8887                           else
8888                             wx_cv_use_protocol='wxUSE_PROTOCOL=no'
8889                           fi
8890                           cache=yes
8891
8892 else
8893
8894                           cache=no
8895                           LINE=`grep "^wxUSE_PROTOCOL=" ${wx_arg_cache_file}`
8896                           if test "x$LINE" != x ; then
8897                             eval "DEFAULT_$LINE"
8898                           fi
8899
8900                           wx_cv_use_protocol='wxUSE_PROTOCOL=${'DEFAULT_wxUSE_PROTOCOL":-$defaultval}"
8901
8902 fi
8903
8904
8905           eval "$wx_cv_use_protocol"
8906           if test "x$cache" = xyes; then
8907             echo "wxUSE_PROTOCOL=$wxUSE_PROTOCOL" >> ${wx_arg_cache_file}.tmp
8908           fi
8909
8910           if test x"$enablestring" = xdisable; then
8911             if test $wxUSE_PROTOCOL = yes; then
8912               result=no
8913             else
8914               result=yes
8915             fi
8916           else
8917             result=$wxUSE_PROTOCOL
8918           fi
8919
8920           { echo "$as_me:$LINENO: result: $result" >&5
8921 echo "${ECHO_T}$result" >&6; }
8922
8923
8924           enablestring=
8925           defaultval=$wxUSE_ALL_FEATURES
8926           if test -z "$defaultval"; then
8927               if test x"$enablestring" = xdisable; then
8928                   defaultval=yes
8929               else
8930                   defaultval=no
8931               fi
8932           fi
8933
8934           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_http" >&5
8935 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_http... $ECHO_C" >&6; }
8936           # Check whether --enable-protocol_http was given.
8937 if test "${enable_protocol_http+set}" = set; then
8938   enableval=$enable_protocol_http;
8939                           if test "$enableval" = yes; then
8940                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=yes'
8941                           else
8942                             wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=no'
8943                           fi
8944                           cache=yes
8945
8946 else
8947
8948                           cache=no
8949                           LINE=`grep "^wxUSE_PROTOCOL_HTTP=" ${wx_arg_cache_file}`
8950                           if test "x$LINE" != x ; then
8951                             eval "DEFAULT_$LINE"
8952                           fi
8953
8954                           wx_cv_use_protocol_http='wxUSE_PROTOCOL_HTTP=${'DEFAULT_wxUSE_PROTOCOL_HTTP":-$defaultval}"
8955
8956 fi
8957
8958
8959           eval "$wx_cv_use_protocol_http"
8960           if test "x$cache" = xyes; then
8961             echo "wxUSE_PROTOCOL_HTTP=$wxUSE_PROTOCOL_HTTP" >> ${wx_arg_cache_file}.tmp
8962           fi
8963
8964           if test x"$enablestring" = xdisable; then
8965             if test $wxUSE_PROTOCOL_HTTP = yes; then
8966               result=no
8967             else
8968               result=yes
8969             fi
8970           else
8971             result=$wxUSE_PROTOCOL_HTTP
8972           fi
8973
8974           { echo "$as_me:$LINENO: result: $result" >&5
8975 echo "${ECHO_T}$result" >&6; }
8976
8977
8978           enablestring=
8979           defaultval=$wxUSE_ALL_FEATURES
8980           if test -z "$defaultval"; then
8981               if test x"$enablestring" = xdisable; then
8982                   defaultval=yes
8983               else
8984                   defaultval=no
8985               fi
8986           fi
8987
8988           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_ftp" >&5
8989 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_ftp... $ECHO_C" >&6; }
8990           # Check whether --enable-protocol_ftp was given.
8991 if test "${enable_protocol_ftp+set}" = set; then
8992   enableval=$enable_protocol_ftp;
8993                           if test "$enableval" = yes; then
8994                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=yes'
8995                           else
8996                             wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=no'
8997                           fi
8998                           cache=yes
8999
9000 else
9001
9002                           cache=no
9003                           LINE=`grep "^wxUSE_PROTOCOL_FTP=" ${wx_arg_cache_file}`
9004                           if test "x$LINE" != x ; then
9005                             eval "DEFAULT_$LINE"
9006                           fi
9007
9008                           wx_cv_use_protocol_ftp='wxUSE_PROTOCOL_FTP=${'DEFAULT_wxUSE_PROTOCOL_FTP":-$defaultval}"
9009
9010 fi
9011
9012
9013           eval "$wx_cv_use_protocol_ftp"
9014           if test "x$cache" = xyes; then
9015             echo "wxUSE_PROTOCOL_FTP=$wxUSE_PROTOCOL_FTP" >> ${wx_arg_cache_file}.tmp
9016           fi
9017
9018           if test x"$enablestring" = xdisable; then
9019             if test $wxUSE_PROTOCOL_FTP = yes; then
9020               result=no
9021             else
9022               result=yes
9023             fi
9024           else
9025             result=$wxUSE_PROTOCOL_FTP
9026           fi
9027
9028           { echo "$as_me:$LINENO: result: $result" >&5
9029 echo "${ECHO_T}$result" >&6; }
9030
9031
9032           enablestring=
9033           defaultval=$wxUSE_ALL_FEATURES
9034           if test -z "$defaultval"; then
9035               if test x"$enablestring" = xdisable; then
9036                   defaultval=yes
9037               else
9038                   defaultval=no
9039               fi
9040           fi
9041
9042           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-protocol_file" >&5
9043 echo $ECHO_N "checking for --${enablestring:-enable}-protocol_file... $ECHO_C" >&6; }
9044           # Check whether --enable-protocol_file was given.
9045 if test "${enable_protocol_file+set}" = set; then
9046   enableval=$enable_protocol_file;
9047                           if test "$enableval" = yes; then
9048                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=yes'
9049                           else
9050                             wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=no'
9051                           fi
9052                           cache=yes
9053
9054 else
9055
9056                           cache=no
9057                           LINE=`grep "^wxUSE_PROTOCOL_FILE=" ${wx_arg_cache_file}`
9058                           if test "x$LINE" != x ; then
9059                             eval "DEFAULT_$LINE"
9060                           fi
9061
9062                           wx_cv_use_protocol_file='wxUSE_PROTOCOL_FILE=${'DEFAULT_wxUSE_PROTOCOL_FILE":-$defaultval}"
9063
9064 fi
9065
9066
9067           eval "$wx_cv_use_protocol_file"
9068           if test "x$cache" = xyes; then
9069             echo "wxUSE_PROTOCOL_FILE=$wxUSE_PROTOCOL_FILE" >> ${wx_arg_cache_file}.tmp
9070           fi
9071
9072           if test x"$enablestring" = xdisable; then
9073             if test $wxUSE_PROTOCOL_FILE = yes; then
9074               result=no
9075             else
9076               result=yes
9077             fi
9078           else
9079             result=$wxUSE_PROTOCOL_FILE
9080           fi
9081
9082           { echo "$as_me:$LINENO: result: $result" >&5
9083 echo "${ECHO_T}$result" >&6; }
9084
9085
9086
9087           enablestring=
9088           defaultval=$wxUSE_ALL_FEATURES
9089           if test -z "$defaultval"; then
9090               if test x"$enablestring" = xdisable; then
9091                   defaultval=yes
9092               else
9093                   defaultval=no
9094               fi
9095           fi
9096
9097           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-threads" >&5
9098 echo $ECHO_N "checking for --${enablestring:-enable}-threads... $ECHO_C" >&6; }
9099           # Check whether --enable-threads was given.
9100 if test "${enable_threads+set}" = set; then
9101   enableval=$enable_threads;
9102                           if test "$enableval" = yes; then
9103                             wx_cv_use_threads='wxUSE_THREADS=yes'
9104                           else
9105                             wx_cv_use_threads='wxUSE_THREADS=no'
9106                           fi
9107                           cache=yes
9108
9109 else
9110
9111                           cache=no
9112                           LINE=`grep "^wxUSE_THREADS=" ${wx_arg_cache_file}`
9113                           if test "x$LINE" != x ; then
9114                             eval "DEFAULT_$LINE"
9115                           fi
9116
9117                           wx_cv_use_threads='wxUSE_THREADS=${'DEFAULT_wxUSE_THREADS":-$defaultval}"
9118
9119 fi
9120
9121
9122           eval "$wx_cv_use_threads"
9123           if test "x$cache" = xyes; then
9124             echo "wxUSE_THREADS=$wxUSE_THREADS" >> ${wx_arg_cache_file}.tmp
9125           fi
9126
9127           if test x"$enablestring" = xdisable; then
9128             if test $wxUSE_THREADS = yes; then
9129               result=no
9130             else
9131               result=yes
9132             fi
9133           else
9134             result=$wxUSE_THREADS
9135           fi
9136
9137           { echo "$as_me:$LINENO: result: $result" >&5
9138 echo "${ECHO_T}$result" >&6; }
9139
9140
9141 if test "$wxUSE_GUI" = "yes"; then
9142
9143
9144
9145           enablestring=
9146           defaultval=$wxUSE_ALL_FEATURES
9147           if test -z "$defaultval"; then
9148               if test x"$enablestring" = xdisable; then
9149                   defaultval=yes
9150               else
9151                   defaultval=no
9152               fi
9153           fi
9154
9155           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-docview" >&5
9156 echo $ECHO_N "checking for --${enablestring:-enable}-docview... $ECHO_C" >&6; }
9157           # Check whether --enable-docview was given.
9158 if test "${enable_docview+set}" = set; then
9159   enableval=$enable_docview;
9160                           if test "$enableval" = yes; then
9161                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=yes'
9162                           else
9163                             wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=no'
9164                           fi
9165                           cache=yes
9166
9167 else
9168
9169                           cache=no
9170                           LINE=`grep "^wxUSE_DOC_VIEW_ARCHITECTURE=" ${wx_arg_cache_file}`
9171                           if test "x$LINE" != x ; then
9172                             eval "DEFAULT_$LINE"
9173                           fi
9174
9175                           wx_cv_use_docview='wxUSE_DOC_VIEW_ARCHITECTURE=${'DEFAULT_wxUSE_DOC_VIEW_ARCHITECTURE":-$defaultval}"
9176
9177 fi
9178
9179
9180           eval "$wx_cv_use_docview"
9181           if test "x$cache" = xyes; then
9182             echo "wxUSE_DOC_VIEW_ARCHITECTURE=$wxUSE_DOC_VIEW_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9183           fi
9184
9185           if test x"$enablestring" = xdisable; then
9186             if test $wxUSE_DOC_VIEW_ARCHITECTURE = yes; then
9187               result=no
9188             else
9189               result=yes
9190             fi
9191           else
9192             result=$wxUSE_DOC_VIEW_ARCHITECTURE
9193           fi
9194
9195           { echo "$as_me:$LINENO: result: $result" >&5
9196 echo "${ECHO_T}$result" >&6; }
9197
9198
9199           enablestring=
9200           defaultval=$wxUSE_ALL_FEATURES
9201           if test -z "$defaultval"; then
9202               if test x"$enablestring" = xdisable; then
9203                   defaultval=yes
9204               else
9205                   defaultval=no
9206               fi
9207           fi
9208
9209           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-help" >&5
9210 echo $ECHO_N "checking for --${enablestring:-enable}-help... $ECHO_C" >&6; }
9211           # Check whether --enable-help was given.
9212 if test "${enable_help+set}" = set; then
9213   enableval=$enable_help;
9214                           if test "$enableval" = yes; then
9215                             wx_cv_use_help='wxUSE_HELP=yes'
9216                           else
9217                             wx_cv_use_help='wxUSE_HELP=no'
9218                           fi
9219                           cache=yes
9220
9221 else
9222
9223                           cache=no
9224                           LINE=`grep "^wxUSE_HELP=" ${wx_arg_cache_file}`
9225                           if test "x$LINE" != x ; then
9226                             eval "DEFAULT_$LINE"
9227                           fi
9228
9229                           wx_cv_use_help='wxUSE_HELP=${'DEFAULT_wxUSE_HELP":-$defaultval}"
9230
9231 fi
9232
9233
9234           eval "$wx_cv_use_help"
9235           if test "x$cache" = xyes; then
9236             echo "wxUSE_HELP=$wxUSE_HELP" >> ${wx_arg_cache_file}.tmp
9237           fi
9238
9239           if test x"$enablestring" = xdisable; then
9240             if test $wxUSE_HELP = yes; then
9241               result=no
9242             else
9243               result=yes
9244             fi
9245           else
9246             result=$wxUSE_HELP
9247           fi
9248
9249           { echo "$as_me:$LINENO: result: $result" >&5
9250 echo "${ECHO_T}$result" >&6; }
9251
9252
9253           enablestring=
9254           defaultval=$wxUSE_ALL_FEATURES
9255           if test -z "$defaultval"; then
9256               if test x"$enablestring" = xdisable; then
9257                   defaultval=yes
9258               else
9259                   defaultval=no
9260               fi
9261           fi
9262
9263           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mshtmlhelp" >&5
9264 echo $ECHO_N "checking for --${enablestring:-enable}-mshtmlhelp... $ECHO_C" >&6; }
9265           # Check whether --enable-mshtmlhelp was given.
9266 if test "${enable_mshtmlhelp+set}" = set; then
9267   enableval=$enable_mshtmlhelp;
9268                           if test "$enableval" = yes; then
9269                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=yes'
9270                           else
9271                             wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=no'
9272                           fi
9273                           cache=yes
9274
9275 else
9276
9277                           cache=no
9278                           LINE=`grep "^wxUSE_MS_HTML_HELP=" ${wx_arg_cache_file}`
9279                           if test "x$LINE" != x ; then
9280                             eval "DEFAULT_$LINE"
9281                           fi
9282
9283                           wx_cv_use_mshtmlhelp='wxUSE_MS_HTML_HELP=${'DEFAULT_wxUSE_MS_HTML_HELP":-$defaultval}"
9284
9285 fi
9286
9287
9288           eval "$wx_cv_use_mshtmlhelp"
9289           if test "x$cache" = xyes; then
9290             echo "wxUSE_MS_HTML_HELP=$wxUSE_MS_HTML_HELP" >> ${wx_arg_cache_file}.tmp
9291           fi
9292
9293           if test x"$enablestring" = xdisable; then
9294             if test $wxUSE_MS_HTML_HELP = yes; then
9295               result=no
9296             else
9297               result=yes
9298             fi
9299           else
9300             result=$wxUSE_MS_HTML_HELP
9301           fi
9302
9303           { echo "$as_me:$LINENO: result: $result" >&5
9304 echo "${ECHO_T}$result" >&6; }
9305
9306
9307           enablestring=
9308           defaultval=$wxUSE_ALL_FEATURES
9309           if test -z "$defaultval"; then
9310               if test x"$enablestring" = xdisable; then
9311                   defaultval=yes
9312               else
9313                   defaultval=no
9314               fi
9315           fi
9316
9317           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-html" >&5
9318 echo $ECHO_N "checking for --${enablestring:-enable}-html... $ECHO_C" >&6; }
9319           # Check whether --enable-html was given.
9320 if test "${enable_html+set}" = set; then
9321   enableval=$enable_html;
9322                           if test "$enableval" = yes; then
9323                             wx_cv_use_html='wxUSE_HTML=yes'
9324                           else
9325                             wx_cv_use_html='wxUSE_HTML=no'
9326                           fi
9327                           cache=yes
9328
9329 else
9330
9331                           cache=no
9332                           LINE=`grep "^wxUSE_HTML=" ${wx_arg_cache_file}`
9333                           if test "x$LINE" != x ; then
9334                             eval "DEFAULT_$LINE"
9335                           fi
9336
9337                           wx_cv_use_html='wxUSE_HTML=${'DEFAULT_wxUSE_HTML":-$defaultval}"
9338
9339 fi
9340
9341
9342           eval "$wx_cv_use_html"
9343           if test "x$cache" = xyes; then
9344             echo "wxUSE_HTML=$wxUSE_HTML" >> ${wx_arg_cache_file}.tmp
9345           fi
9346
9347           if test x"$enablestring" = xdisable; then
9348             if test $wxUSE_HTML = yes; then
9349               result=no
9350             else
9351               result=yes
9352             fi
9353           else
9354             result=$wxUSE_HTML
9355           fi
9356
9357           { echo "$as_me:$LINENO: result: $result" >&5
9358 echo "${ECHO_T}$result" >&6; }
9359
9360
9361           enablestring=
9362           defaultval=$wxUSE_ALL_FEATURES
9363           if test -z "$defaultval"; then
9364               if test x"$enablestring" = xdisable; then
9365                   defaultval=yes
9366               else
9367                   defaultval=no
9368               fi
9369           fi
9370
9371           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-htmlhelp" >&5
9372 echo $ECHO_N "checking for --${enablestring:-enable}-htmlhelp... $ECHO_C" >&6; }
9373           # Check whether --enable-htmlhelp was given.
9374 if test "${enable_htmlhelp+set}" = set; then
9375   enableval=$enable_htmlhelp;
9376                           if test "$enableval" = yes; then
9377                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=yes'
9378                           else
9379                             wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=no'
9380                           fi
9381                           cache=yes
9382
9383 else
9384
9385                           cache=no
9386                           LINE=`grep "^wxUSE_WXHTML_HELP=" ${wx_arg_cache_file}`
9387                           if test "x$LINE" != x ; then
9388                             eval "DEFAULT_$LINE"
9389                           fi
9390
9391                           wx_cv_use_htmlhelp='wxUSE_WXHTML_HELP=${'DEFAULT_wxUSE_WXHTML_HELP":-$defaultval}"
9392
9393 fi
9394
9395
9396           eval "$wx_cv_use_htmlhelp"
9397           if test "x$cache" = xyes; then
9398             echo "wxUSE_WXHTML_HELP=$wxUSE_WXHTML_HELP" >> ${wx_arg_cache_file}.tmp
9399           fi
9400
9401           if test x"$enablestring" = xdisable; then
9402             if test $wxUSE_WXHTML_HELP = yes; then
9403               result=no
9404             else
9405               result=yes
9406             fi
9407           else
9408             result=$wxUSE_WXHTML_HELP
9409           fi
9410
9411           { echo "$as_me:$LINENO: result: $result" >&5
9412 echo "${ECHO_T}$result" >&6; }
9413
9414
9415           enablestring=
9416           defaultval=$wxUSE_ALL_FEATURES
9417           if test -z "$defaultval"; then
9418               if test x"$enablestring" = xdisable; then
9419                   defaultval=yes
9420               else
9421                   defaultval=no
9422               fi
9423           fi
9424
9425           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xrc" >&5
9426 echo $ECHO_N "checking for --${enablestring:-enable}-xrc... $ECHO_C" >&6; }
9427           # Check whether --enable-xrc was given.
9428 if test "${enable_xrc+set}" = set; then
9429   enableval=$enable_xrc;
9430                           if test "$enableval" = yes; then
9431                             wx_cv_use_xrc='wxUSE_XRC=yes'
9432                           else
9433                             wx_cv_use_xrc='wxUSE_XRC=no'
9434                           fi
9435                           cache=yes
9436
9437 else
9438
9439                           cache=no
9440                           LINE=`grep "^wxUSE_XRC=" ${wx_arg_cache_file}`
9441                           if test "x$LINE" != x ; then
9442                             eval "DEFAULT_$LINE"
9443                           fi
9444
9445                           wx_cv_use_xrc='wxUSE_XRC=${'DEFAULT_wxUSE_XRC":-$defaultval}"
9446
9447 fi
9448
9449
9450           eval "$wx_cv_use_xrc"
9451           if test "x$cache" = xyes; then
9452             echo "wxUSE_XRC=$wxUSE_XRC" >> ${wx_arg_cache_file}.tmp
9453           fi
9454
9455           if test x"$enablestring" = xdisable; then
9456             if test $wxUSE_XRC = yes; then
9457               result=no
9458             else
9459               result=yes
9460             fi
9461           else
9462             result=$wxUSE_XRC
9463           fi
9464
9465           { echo "$as_me:$LINENO: result: $result" >&5
9466 echo "${ECHO_T}$result" >&6; }
9467
9468
9469           enablestring=
9470           defaultval=$wxUSE_ALL_FEATURES
9471           if test -z "$defaultval"; then
9472               if test x"$enablestring" = xdisable; then
9473                   defaultval=yes
9474               else
9475                   defaultval=no
9476               fi
9477           fi
9478
9479           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aui" >&5
9480 echo $ECHO_N "checking for --${enablestring:-enable}-aui... $ECHO_C" >&6; }
9481           # Check whether --enable-aui was given.
9482 if test "${enable_aui+set}" = set; then
9483   enableval=$enable_aui;
9484                           if test "$enableval" = yes; then
9485                             wx_cv_use_aui='wxUSE_AUI=yes'
9486                           else
9487                             wx_cv_use_aui='wxUSE_AUI=no'
9488                           fi
9489                           cache=yes
9490
9491 else
9492
9493                           cache=no
9494                           LINE=`grep "^wxUSE_AUI=" ${wx_arg_cache_file}`
9495                           if test "x$LINE" != x ; then
9496                             eval "DEFAULT_$LINE"
9497                           fi
9498
9499                           wx_cv_use_aui='wxUSE_AUI=${'DEFAULT_wxUSE_AUI":-$defaultval}"
9500
9501 fi
9502
9503
9504           eval "$wx_cv_use_aui"
9505           if test "x$cache" = xyes; then
9506             echo "wxUSE_AUI=$wxUSE_AUI" >> ${wx_arg_cache_file}.tmp
9507           fi
9508
9509           if test x"$enablestring" = xdisable; then
9510             if test $wxUSE_AUI = yes; then
9511               result=no
9512             else
9513               result=yes
9514             fi
9515           else
9516             result=$wxUSE_AUI
9517           fi
9518
9519           { echo "$as_me:$LINENO: result: $result" >&5
9520 echo "${ECHO_T}$result" >&6; }
9521
9522
9523           enablestring=
9524           defaultval=$wxUSE_ALL_FEATURES
9525           if test -z "$defaultval"; then
9526               if test x"$enablestring" = xdisable; then
9527                   defaultval=yes
9528               else
9529                   defaultval=no
9530               fi
9531           fi
9532
9533           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stc" >&5
9534 echo $ECHO_N "checking for --${enablestring:-enable}-stc... $ECHO_C" >&6; }
9535           # Check whether --enable-stc was given.
9536 if test "${enable_stc+set}" = set; then
9537   enableval=$enable_stc;
9538                           if test "$enableval" = yes; then
9539                             wx_cv_use_stc='wxUSE_STC=yes'
9540                           else
9541                             wx_cv_use_stc='wxUSE_STC=no'
9542                           fi
9543                           cache=yes
9544
9545 else
9546
9547                           cache=no
9548                           LINE=`grep "^wxUSE_STC=" ${wx_arg_cache_file}`
9549                           if test "x$LINE" != x ; then
9550                             eval "DEFAULT_$LINE"
9551                           fi
9552
9553                           wx_cv_use_stc='wxUSE_STC=${'DEFAULT_wxUSE_STC":-$defaultval}"
9554
9555 fi
9556
9557
9558           eval "$wx_cv_use_stc"
9559           if test "x$cache" = xyes; then
9560             echo "wxUSE_STC=$wxUSE_STC" >> ${wx_arg_cache_file}.tmp
9561           fi
9562
9563           if test x"$enablestring" = xdisable; then
9564             if test $wxUSE_STC = yes; then
9565               result=no
9566             else
9567               result=yes
9568             fi
9569           else
9570             result=$wxUSE_STC
9571           fi
9572
9573           { echo "$as_me:$LINENO: result: $result" >&5
9574 echo "${ECHO_T}$result" >&6; }
9575
9576
9577           enablestring=
9578           defaultval=$wxUSE_ALL_FEATURES
9579           if test -z "$defaultval"; then
9580               if test x"$enablestring" = xdisable; then
9581                   defaultval=yes
9582               else
9583                   defaultval=no
9584               fi
9585           fi
9586
9587           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-constraints" >&5
9588 echo $ECHO_N "checking for --${enablestring:-enable}-constraints... $ECHO_C" >&6; }
9589           # Check whether --enable-constraints was given.
9590 if test "${enable_constraints+set}" = set; then
9591   enableval=$enable_constraints;
9592                           if test "$enableval" = yes; then
9593                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=yes'
9594                           else
9595                             wx_cv_use_constraints='wxUSE_CONSTRAINTS=no'
9596                           fi
9597                           cache=yes
9598
9599 else
9600
9601                           cache=no
9602                           LINE=`grep "^wxUSE_CONSTRAINTS=" ${wx_arg_cache_file}`
9603                           if test "x$LINE" != x ; then
9604                             eval "DEFAULT_$LINE"
9605                           fi
9606
9607                           wx_cv_use_constraints='wxUSE_CONSTRAINTS=${'DEFAULT_wxUSE_CONSTRAINTS":-$defaultval}"
9608
9609 fi
9610
9611
9612           eval "$wx_cv_use_constraints"
9613           if test "x$cache" = xyes; then
9614             echo "wxUSE_CONSTRAINTS=$wxUSE_CONSTRAINTS" >> ${wx_arg_cache_file}.tmp
9615           fi
9616
9617           if test x"$enablestring" = xdisable; then
9618             if test $wxUSE_CONSTRAINTS = yes; then
9619               result=no
9620             else
9621               result=yes
9622             fi
9623           else
9624             result=$wxUSE_CONSTRAINTS
9625           fi
9626
9627           { echo "$as_me:$LINENO: result: $result" >&5
9628 echo "${ECHO_T}$result" >&6; }
9629
9630
9631           enablestring=
9632           defaultval=$wxUSE_ALL_FEATURES
9633           if test -z "$defaultval"; then
9634               if test x"$enablestring" = xdisable; then
9635                   defaultval=yes
9636               else
9637                   defaultval=no
9638               fi
9639           fi
9640
9641           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-printarch" >&5
9642 echo $ECHO_N "checking for --${enablestring:-enable}-printarch... $ECHO_C" >&6; }
9643           # Check whether --enable-printarch was given.
9644 if test "${enable_printarch+set}" = set; then
9645   enableval=$enable_printarch;
9646                           if test "$enableval" = yes; then
9647                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=yes'
9648                           else
9649                             wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=no'
9650                           fi
9651                           cache=yes
9652
9653 else
9654
9655                           cache=no
9656                           LINE=`grep "^wxUSE_PRINTING_ARCHITECTURE=" ${wx_arg_cache_file}`
9657                           if test "x$LINE" != x ; then
9658                             eval "DEFAULT_$LINE"
9659                           fi
9660
9661                           wx_cv_use_printarch='wxUSE_PRINTING_ARCHITECTURE=${'DEFAULT_wxUSE_PRINTING_ARCHITECTURE":-$defaultval}"
9662
9663 fi
9664
9665
9666           eval "$wx_cv_use_printarch"
9667           if test "x$cache" = xyes; then
9668             echo "wxUSE_PRINTING_ARCHITECTURE=$wxUSE_PRINTING_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9669           fi
9670
9671           if test x"$enablestring" = xdisable; then
9672             if test $wxUSE_PRINTING_ARCHITECTURE = yes; then
9673               result=no
9674             else
9675               result=yes
9676             fi
9677           else
9678             result=$wxUSE_PRINTING_ARCHITECTURE
9679           fi
9680
9681           { echo "$as_me:$LINENO: result: $result" >&5
9682 echo "${ECHO_T}$result" >&6; }
9683
9684
9685           enablestring=
9686           defaultval=$wxUSE_ALL_FEATURES
9687           if test -z "$defaultval"; then
9688               if test x"$enablestring" = xdisable; then
9689                   defaultval=yes
9690               else
9691                   defaultval=no
9692               fi
9693           fi
9694
9695           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdi" >&5
9696 echo $ECHO_N "checking for --${enablestring:-enable}-mdi... $ECHO_C" >&6; }
9697           # Check whether --enable-mdi was given.
9698 if test "${enable_mdi+set}" = set; then
9699   enableval=$enable_mdi;
9700                           if test "$enableval" = yes; then
9701                             wx_cv_use_mdi='wxUSE_MDI=yes'
9702                           else
9703                             wx_cv_use_mdi='wxUSE_MDI=no'
9704                           fi
9705                           cache=yes
9706
9707 else
9708
9709                           cache=no
9710                           LINE=`grep "^wxUSE_MDI=" ${wx_arg_cache_file}`
9711                           if test "x$LINE" != x ; then
9712                             eval "DEFAULT_$LINE"
9713                           fi
9714
9715                           wx_cv_use_mdi='wxUSE_MDI=${'DEFAULT_wxUSE_MDI":-$defaultval}"
9716
9717 fi
9718
9719
9720           eval "$wx_cv_use_mdi"
9721           if test "x$cache" = xyes; then
9722             echo "wxUSE_MDI=$wxUSE_MDI" >> ${wx_arg_cache_file}.tmp
9723           fi
9724
9725           if test x"$enablestring" = xdisable; then
9726             if test $wxUSE_MDI = yes; then
9727               result=no
9728             else
9729               result=yes
9730             fi
9731           else
9732             result=$wxUSE_MDI
9733           fi
9734
9735           { echo "$as_me:$LINENO: result: $result" >&5
9736 echo "${ECHO_T}$result" >&6; }
9737
9738
9739           enablestring=
9740           defaultval=$wxUSE_ALL_FEATURES
9741           if test -z "$defaultval"; then
9742               if test x"$enablestring" = xdisable; then
9743                   defaultval=yes
9744               else
9745                   defaultval=no
9746               fi
9747           fi
9748
9749           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mdidoc" >&5
9750 echo $ECHO_N "checking for --${enablestring:-enable}-mdidoc... $ECHO_C" >&6; }
9751           # Check whether --enable-mdidoc was given.
9752 if test "${enable_mdidoc+set}" = set; then
9753   enableval=$enable_mdidoc;
9754                           if test "$enableval" = yes; then
9755                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=yes'
9756                           else
9757                             wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=no'
9758                           fi
9759                           cache=yes
9760
9761 else
9762
9763                           cache=no
9764                           LINE=`grep "^wxUSE_MDI_ARCHITECTURE=" ${wx_arg_cache_file}`
9765                           if test "x$LINE" != x ; then
9766                             eval "DEFAULT_$LINE"
9767                           fi
9768
9769                           wx_cv_use_mdidoc='wxUSE_MDI_ARCHITECTURE=${'DEFAULT_wxUSE_MDI_ARCHITECTURE":-$defaultval}"
9770
9771 fi
9772
9773
9774           eval "$wx_cv_use_mdidoc"
9775           if test "x$cache" = xyes; then
9776             echo "wxUSE_MDI_ARCHITECTURE=$wxUSE_MDI_ARCHITECTURE" >> ${wx_arg_cache_file}.tmp
9777           fi
9778
9779           if test x"$enablestring" = xdisable; then
9780             if test $wxUSE_MDI_ARCHITECTURE = yes; then
9781               result=no
9782             else
9783               result=yes
9784             fi
9785           else
9786             result=$wxUSE_MDI_ARCHITECTURE
9787           fi
9788
9789           { echo "$as_me:$LINENO: result: $result" >&5
9790 echo "${ECHO_T}$result" >&6; }
9791
9792
9793           enablestring=
9794           defaultval=$wxUSE_ALL_FEATURES
9795           if test -z "$defaultval"; then
9796               if test x"$enablestring" = xdisable; then
9797                   defaultval=yes
9798               else
9799                   defaultval=no
9800               fi
9801           fi
9802
9803           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-loggui" >&5
9804 echo $ECHO_N "checking for --${enablestring:-enable}-loggui... $ECHO_C" >&6; }
9805           # Check whether --enable-loggui was given.
9806 if test "${enable_loggui+set}" = set; then
9807   enableval=$enable_loggui;
9808                           if test "$enableval" = yes; then
9809                             wx_cv_use_loggui='wxUSE_LOGGUI=yes'
9810                           else
9811                             wx_cv_use_loggui='wxUSE_LOGGUI=no'
9812                           fi
9813                           cache=yes
9814
9815 else
9816
9817                           cache=no
9818                           LINE=`grep "^wxUSE_LOGGUI=" ${wx_arg_cache_file}`
9819                           if test "x$LINE" != x ; then
9820                             eval "DEFAULT_$LINE"
9821                           fi
9822
9823                           wx_cv_use_loggui='wxUSE_LOGGUI=${'DEFAULT_wxUSE_LOGGUI":-$defaultval}"
9824
9825 fi
9826
9827
9828           eval "$wx_cv_use_loggui"
9829           if test "x$cache" = xyes; then
9830             echo "wxUSE_LOGGUI=$wxUSE_LOGGUI" >> ${wx_arg_cache_file}.tmp
9831           fi
9832
9833           if test x"$enablestring" = xdisable; then
9834             if test $wxUSE_LOGGUI = yes; then
9835               result=no
9836             else
9837               result=yes
9838             fi
9839           else
9840             result=$wxUSE_LOGGUI
9841           fi
9842
9843           { echo "$as_me:$LINENO: result: $result" >&5
9844 echo "${ECHO_T}$result" >&6; }
9845
9846
9847           enablestring=
9848           defaultval=$wxUSE_ALL_FEATURES
9849           if test -z "$defaultval"; then
9850               if test x"$enablestring" = xdisable; then
9851                   defaultval=yes
9852               else
9853                   defaultval=no
9854               fi
9855           fi
9856
9857           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logwin" >&5
9858 echo $ECHO_N "checking for --${enablestring:-enable}-logwin... $ECHO_C" >&6; }
9859           # Check whether --enable-logwin was given.
9860 if test "${enable_logwin+set}" = set; then
9861   enableval=$enable_logwin;
9862                           if test "$enableval" = yes; then
9863                             wx_cv_use_logwin='wxUSE_LOGWINDOW=yes'
9864                           else
9865                             wx_cv_use_logwin='wxUSE_LOGWINDOW=no'
9866                           fi
9867                           cache=yes
9868
9869 else
9870
9871                           cache=no
9872                           LINE=`grep "^wxUSE_LOGWINDOW=" ${wx_arg_cache_file}`
9873                           if test "x$LINE" != x ; then
9874                             eval "DEFAULT_$LINE"
9875                           fi
9876
9877                           wx_cv_use_logwin='wxUSE_LOGWINDOW=${'DEFAULT_wxUSE_LOGWINDOW":-$defaultval}"
9878
9879 fi
9880
9881
9882           eval "$wx_cv_use_logwin"
9883           if test "x$cache" = xyes; then
9884             echo "wxUSE_LOGWINDOW=$wxUSE_LOGWINDOW" >> ${wx_arg_cache_file}.tmp
9885           fi
9886
9887           if test x"$enablestring" = xdisable; then
9888             if test $wxUSE_LOGWINDOW = yes; then
9889               result=no
9890             else
9891               result=yes
9892             fi
9893           else
9894             result=$wxUSE_LOGWINDOW
9895           fi
9896
9897           { echo "$as_me:$LINENO: result: $result" >&5
9898 echo "${ECHO_T}$result" >&6; }
9899
9900
9901           enablestring=
9902           defaultval=$wxUSE_ALL_FEATURES
9903           if test -z "$defaultval"; then
9904               if test x"$enablestring" = xdisable; then
9905                   defaultval=yes
9906               else
9907                   defaultval=no
9908               fi
9909           fi
9910
9911           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-logdialog" >&5
9912 echo $ECHO_N "checking for --${enablestring:-enable}-logdialog... $ECHO_C" >&6; }
9913           # Check whether --enable-logdialog was given.
9914 if test "${enable_logdialog+set}" = set; then
9915   enableval=$enable_logdialog;
9916                           if test "$enableval" = yes; then
9917                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=yes'
9918                           else
9919                             wx_cv_use_logdialog='wxUSE_LOGDIALOG=no'
9920                           fi
9921                           cache=yes
9922
9923 else
9924
9925                           cache=no
9926                           LINE=`grep "^wxUSE_LOGDIALOG=" ${wx_arg_cache_file}`
9927                           if test "x$LINE" != x ; then
9928                             eval "DEFAULT_$LINE"
9929                           fi
9930
9931                           wx_cv_use_logdialog='wxUSE_LOGDIALOG=${'DEFAULT_wxUSE_LOGDIALOG":-$defaultval}"
9932
9933 fi
9934
9935
9936           eval "$wx_cv_use_logdialog"
9937           if test "x$cache" = xyes; then
9938             echo "wxUSE_LOGDIALOG=$wxUSE_LOGDIALOG" >> ${wx_arg_cache_file}.tmp
9939           fi
9940
9941           if test x"$enablestring" = xdisable; then
9942             if test $wxUSE_LOGDIALOG = yes; then
9943               result=no
9944             else
9945               result=yes
9946             fi
9947           else
9948             result=$wxUSE_LOGDIALOG
9949           fi
9950
9951           { echo "$as_me:$LINENO: result: $result" >&5
9952 echo "${ECHO_T}$result" >&6; }
9953
9954
9955           enablestring=
9956           defaultval=$wxUSE_ALL_FEATURES
9957           if test -z "$defaultval"; then
9958               if test x"$enablestring" = xdisable; then
9959                   defaultval=yes
9960               else
9961                   defaultval=no
9962               fi
9963           fi
9964
9965           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-webkit" >&5
9966 echo $ECHO_N "checking for --${enablestring:-enable}-webkit... $ECHO_C" >&6; }
9967           # Check whether --enable-webkit was given.
9968 if test "${enable_webkit+set}" = set; then
9969   enableval=$enable_webkit;
9970                           if test "$enableval" = yes; then
9971                             wx_cv_use_webkit='wxUSE_WEBKIT=yes'
9972                           else
9973                             wx_cv_use_webkit='wxUSE_WEBKIT=no'
9974                           fi
9975                           cache=yes
9976
9977 else
9978
9979                           cache=no
9980                           LINE=`grep "^wxUSE_WEBKIT=" ${wx_arg_cache_file}`
9981                           if test "x$LINE" != x ; then
9982                             eval "DEFAULT_$LINE"
9983                           fi
9984
9985                           wx_cv_use_webkit='wxUSE_WEBKIT=${'DEFAULT_wxUSE_WEBKIT":-$defaultval}"
9986
9987 fi
9988
9989
9990           eval "$wx_cv_use_webkit"
9991           if test "x$cache" = xyes; then
9992             echo "wxUSE_WEBKIT=$wxUSE_WEBKIT" >> ${wx_arg_cache_file}.tmp
9993           fi
9994
9995           if test x"$enablestring" = xdisable; then
9996             if test $wxUSE_WEBKIT = yes; then
9997               result=no
9998             else
9999               result=yes
10000             fi
10001           else
10002             result=$wxUSE_WEBKIT
10003           fi
10004
10005           { echo "$as_me:$LINENO: result: $result" >&5
10006 echo "${ECHO_T}$result" >&6; }
10007
10008
10009           enablestring=
10010           defaultval=$wxUSE_ALL_FEATURES
10011           if test -z "$defaultval"; then
10012               if test x"$enablestring" = xdisable; then
10013                   defaultval=yes
10014               else
10015                   defaultval=no
10016               fi
10017           fi
10018
10019           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-richtext" >&5
10020 echo $ECHO_N "checking for --${enablestring:-enable}-richtext... $ECHO_C" >&6; }
10021           # Check whether --enable-richtext was given.
10022 if test "${enable_richtext+set}" = set; then
10023   enableval=$enable_richtext;
10024                           if test "$enableval" = yes; then
10025                             wx_cv_use_richtext='wxUSE_RICHTEXT=yes'
10026                           else
10027                             wx_cv_use_richtext='wxUSE_RICHTEXT=no'
10028                           fi
10029                           cache=yes
10030
10031 else
10032
10033                           cache=no
10034                           LINE=`grep "^wxUSE_RICHTEXT=" ${wx_arg_cache_file}`
10035                           if test "x$LINE" != x ; then
10036                             eval "DEFAULT_$LINE"
10037                           fi
10038
10039                           wx_cv_use_richtext='wxUSE_RICHTEXT=${'DEFAULT_wxUSE_RICHTEXT":-$defaultval}"
10040
10041 fi
10042
10043
10044           eval "$wx_cv_use_richtext"
10045           if test "x$cache" = xyes; then
10046             echo "wxUSE_RICHTEXT=$wxUSE_RICHTEXT" >> ${wx_arg_cache_file}.tmp
10047           fi
10048
10049           if test x"$enablestring" = xdisable; then
10050             if test $wxUSE_RICHTEXT = yes; then
10051               result=no
10052             else
10053               result=yes
10054             fi
10055           else
10056             result=$wxUSE_RICHTEXT
10057           fi
10058
10059           { echo "$as_me:$LINENO: result: $result" >&5
10060 echo "${ECHO_T}$result" >&6; }
10061
10062
10063           enablestring=
10064           defaultval=$wxUSE_ALL_FEATURES
10065           if test -z "$defaultval"; then
10066               if test x"$enablestring" = xdisable; then
10067                   defaultval=yes
10068               else
10069                   defaultval=no
10070               fi
10071           fi
10072
10073           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-graphics_ctx" >&5
10074 echo $ECHO_N "checking for --${enablestring:-enable}-graphics_ctx... $ECHO_C" >&6; }
10075           # Check whether --enable-graphics_ctx was given.
10076 if test "${enable_graphics_ctx+set}" = set; then
10077   enableval=$enable_graphics_ctx;
10078                           if test "$enableval" = yes; then
10079                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=yes'
10080                           else
10081                             wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=no'
10082                           fi
10083                           cache=yes
10084
10085 else
10086
10087                           cache=no
10088                           LINE=`grep "^wxUSE_GRAPHICS_CONTEXT=" ${wx_arg_cache_file}`
10089                           if test "x$LINE" != x ; then
10090                             eval "DEFAULT_$LINE"
10091                           fi
10092
10093                           wx_cv_use_graphics_ctx='wxUSE_GRAPHICS_CONTEXT=${'DEFAULT_wxUSE_GRAPHICS_CONTEXT":-$defaultval}"
10094
10095 fi
10096
10097
10098           eval "$wx_cv_use_graphics_ctx"
10099           if test "x$cache" = xyes; then
10100             echo "wxUSE_GRAPHICS_CONTEXT=$wxUSE_GRAPHICS_CONTEXT" >> ${wx_arg_cache_file}.tmp
10101           fi
10102
10103           if test x"$enablestring" = xdisable; then
10104             if test $wxUSE_GRAPHICS_CONTEXT = yes; then
10105               result=no
10106             else
10107               result=yes
10108             fi
10109           else
10110             result=$wxUSE_GRAPHICS_CONTEXT
10111           fi
10112
10113           { echo "$as_me:$LINENO: result: $result" >&5
10114 echo "${ECHO_T}$result" >&6; }
10115
10116
10117           enablestring=
10118           defaultval=$wxUSE_ALL_FEATURES
10119           if test -z "$defaultval"; then
10120               if test x"$enablestring" = xdisable; then
10121                   defaultval=yes
10122               else
10123                   defaultval=no
10124               fi
10125           fi
10126
10127           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-postscript" >&5
10128 echo $ECHO_N "checking for --${enablestring:-enable}-postscript... $ECHO_C" >&6; }
10129           # Check whether --enable-postscript was given.
10130 if test "${enable_postscript+set}" = set; then
10131   enableval=$enable_postscript;
10132                           if test "$enableval" = yes; then
10133                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=yes'
10134                           else
10135                             wx_cv_use_postscript='wxUSE_POSTSCRIPT=no'
10136                           fi
10137                           cache=yes
10138
10139 else
10140
10141                           cache=no
10142                           LINE=`grep "^wxUSE_POSTSCRIPT=" ${wx_arg_cache_file}`
10143                           if test "x$LINE" != x ; then
10144                             eval "DEFAULT_$LINE"
10145                           fi
10146
10147                           wx_cv_use_postscript='wxUSE_POSTSCRIPT=${'DEFAULT_wxUSE_POSTSCRIPT":-$defaultval}"
10148
10149 fi
10150
10151
10152           eval "$wx_cv_use_postscript"
10153           if test "x$cache" = xyes; then
10154             echo "wxUSE_POSTSCRIPT=$wxUSE_POSTSCRIPT" >> ${wx_arg_cache_file}.tmp
10155           fi
10156
10157           if test x"$enablestring" = xdisable; then
10158             if test $wxUSE_POSTSCRIPT = yes; then
10159               result=no
10160             else
10161               result=yes
10162             fi
10163           else
10164             result=$wxUSE_POSTSCRIPT
10165           fi
10166
10167           { echo "$as_me:$LINENO: result: $result" >&5
10168 echo "${ECHO_T}$result" >&6; }
10169
10170
10171           enablestring=
10172           defaultval=$wxUSE_ALL_FEATURES
10173           if test -z "$defaultval"; then
10174               if test x"$enablestring" = xdisable; then
10175                   defaultval=yes
10176               else
10177                   defaultval=no
10178               fi
10179           fi
10180
10181           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-svg" >&5
10182 echo $ECHO_N "checking for --${enablestring:-enable}-svg... $ECHO_C" >&6; }
10183           # Check whether --enable-svg was given.
10184 if test "${enable_svg+set}" = set; then
10185   enableval=$enable_svg;
10186                           if test "$enableval" = yes; then
10187                             wx_cv_use_svg='wxUSE_SVG=yes'
10188                           else
10189                             wx_cv_use_svg='wxUSE_SVG=no'
10190                           fi
10191                           cache=yes
10192
10193 else
10194
10195                           cache=no
10196                           LINE=`grep "^wxUSE_SVG=" ${wx_arg_cache_file}`
10197                           if test "x$LINE" != x ; then
10198                             eval "DEFAULT_$LINE"
10199                           fi
10200
10201                           wx_cv_use_svg='wxUSE_SVG=${'DEFAULT_wxUSE_SVG":-$defaultval}"
10202
10203 fi
10204
10205
10206           eval "$wx_cv_use_svg"
10207           if test "x$cache" = xyes; then
10208             echo "wxUSE_SVG=$wxUSE_SVG" >> ${wx_arg_cache_file}.tmp
10209           fi
10210
10211           if test x"$enablestring" = xdisable; then
10212             if test $wxUSE_SVG = yes; then
10213               result=no
10214             else
10215               result=yes
10216             fi
10217           else
10218             result=$wxUSE_SVG
10219           fi
10220
10221           { echo "$as_me:$LINENO: result: $result" >&5
10222 echo "${ECHO_T}$result" >&6; }
10223
10224
10225
10226
10227           enablestring=
10228           defaultval=$wxUSE_ALL_FEATURES
10229           if test -z "$defaultval"; then
10230               if test x"$enablestring" = xdisable; then
10231                   defaultval=yes
10232               else
10233                   defaultval=no
10234               fi
10235           fi
10236
10237           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-clipboard" >&5
10238 echo $ECHO_N "checking for --${enablestring:-enable}-clipboard... $ECHO_C" >&6; }
10239           # Check whether --enable-clipboard was given.
10240 if test "${enable_clipboard+set}" = set; then
10241   enableval=$enable_clipboard;
10242                           if test "$enableval" = yes; then
10243                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=yes'
10244                           else
10245                             wx_cv_use_clipboard='wxUSE_CLIPBOARD=no'
10246                           fi
10247                           cache=yes
10248
10249 else
10250
10251                           cache=no
10252                           LINE=`grep "^wxUSE_CLIPBOARD=" ${wx_arg_cache_file}`
10253                           if test "x$LINE" != x ; then
10254                             eval "DEFAULT_$LINE"
10255                           fi
10256
10257                           wx_cv_use_clipboard='wxUSE_CLIPBOARD=${'DEFAULT_wxUSE_CLIPBOARD":-$defaultval}"
10258
10259 fi
10260
10261
10262           eval "$wx_cv_use_clipboard"
10263           if test "x$cache" = xyes; then
10264             echo "wxUSE_CLIPBOARD=$wxUSE_CLIPBOARD" >> ${wx_arg_cache_file}.tmp
10265           fi
10266
10267           if test x"$enablestring" = xdisable; then
10268             if test $wxUSE_CLIPBOARD = yes; then
10269               result=no
10270             else
10271               result=yes
10272             fi
10273           else
10274             result=$wxUSE_CLIPBOARD
10275           fi
10276
10277           { echo "$as_me:$LINENO: result: $result" >&5
10278 echo "${ECHO_T}$result" >&6; }
10279
10280
10281           enablestring=
10282           defaultval=$wxUSE_ALL_FEATURES
10283           if test -z "$defaultval"; then
10284               if test x"$enablestring" = xdisable; then
10285                   defaultval=yes
10286               else
10287                   defaultval=no
10288               fi
10289           fi
10290
10291           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dnd" >&5
10292 echo $ECHO_N "checking for --${enablestring:-enable}-dnd... $ECHO_C" >&6; }
10293           # Check whether --enable-dnd was given.
10294 if test "${enable_dnd+set}" = set; then
10295   enableval=$enable_dnd;
10296                           if test "$enableval" = yes; then
10297                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=yes'
10298                           else
10299                             wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=no'
10300                           fi
10301                           cache=yes
10302
10303 else
10304
10305                           cache=no
10306                           LINE=`grep "^wxUSE_DRAG_AND_DROP=" ${wx_arg_cache_file}`
10307                           if test "x$LINE" != x ; then
10308                             eval "DEFAULT_$LINE"
10309                           fi
10310
10311                           wx_cv_use_dnd='wxUSE_DRAG_AND_DROP=${'DEFAULT_wxUSE_DRAG_AND_DROP":-$defaultval}"
10312
10313 fi
10314
10315
10316           eval "$wx_cv_use_dnd"
10317           if test "x$cache" = xyes; then
10318             echo "wxUSE_DRAG_AND_DROP=$wxUSE_DRAG_AND_DROP" >> ${wx_arg_cache_file}.tmp
10319           fi
10320
10321           if test x"$enablestring" = xdisable; then
10322             if test $wxUSE_DRAG_AND_DROP = yes; then
10323               result=no
10324             else
10325               result=yes
10326             fi
10327           else
10328             result=$wxUSE_DRAG_AND_DROP
10329           fi
10330
10331           { echo "$as_me:$LINENO: result: $result" >&5
10332 echo "${ECHO_T}$result" >&6; }
10333
10334
10335           enablestring=
10336           defaultval=$wxUSE_ALL_FEATURES
10337           if test -z "$defaultval"; then
10338               if test x"$enablestring" = xdisable; then
10339                   defaultval=yes
10340               else
10341                   defaultval=no
10342               fi
10343           fi
10344
10345           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
10346 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
10347           # Check whether --enable-metafile was given.
10348 if test "${enable_metafile+set}" = set; then
10349   enableval=$enable_metafile;
10350                           if test "$enableval" = yes; then
10351                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
10352                           else
10353                             wx_cv_use_metafile='wxUSE_METAFILE=no'
10354                           fi
10355                           cache=yes
10356
10357 else
10358
10359                           cache=no
10360                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
10361                           if test "x$LINE" != x ; then
10362                             eval "DEFAULT_$LINE"
10363                           fi
10364
10365                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
10366
10367 fi
10368
10369
10370           eval "$wx_cv_use_metafile"
10371           if test "x$cache" = xyes; then
10372             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
10373           fi
10374
10375           if test x"$enablestring" = xdisable; then
10376             if test $wxUSE_METAFILE = yes; then
10377               result=no
10378             else
10379               result=yes
10380             fi
10381           else
10382             result=$wxUSE_METAFILE
10383           fi
10384
10385           { echo "$as_me:$LINENO: result: $result" >&5
10386 echo "${ECHO_T}$result" >&6; }
10387
10388
10389
10390 DEFAULT_wxUSE_CONTROLS=none
10391
10392           enablestring=disable
10393           defaultval=
10394           if test -z "$defaultval"; then
10395               if test x"$enablestring" = xdisable; then
10396                   defaultval=yes
10397               else
10398                   defaultval=no
10399               fi
10400           fi
10401
10402           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-controls" >&5
10403 echo $ECHO_N "checking for --${enablestring:-enable}-controls... $ECHO_C" >&6; }
10404           # Check whether --enable-controls was given.
10405 if test "${enable_controls+set}" = set; then
10406   enableval=$enable_controls;
10407                           if test "$enableval" = yes; then
10408                             wx_cv_use_controls='wxUSE_CONTROLS=yes'
10409                           else
10410                             wx_cv_use_controls='wxUSE_CONTROLS=no'
10411                           fi
10412                           cache=yes
10413
10414 else
10415
10416                           cache=no
10417                           LINE=`grep "^wxUSE_CONTROLS=" ${wx_arg_cache_file}`
10418                           if test "x$LINE" != x ; then
10419                             eval "DEFAULT_$LINE"
10420                           fi
10421
10422                           wx_cv_use_controls='wxUSE_CONTROLS=${'DEFAULT_wxUSE_CONTROLS":-$defaultval}"
10423
10424 fi
10425
10426
10427           eval "$wx_cv_use_controls"
10428           if test "x$cache" = xyes; then
10429             echo "wxUSE_CONTROLS=$wxUSE_CONTROLS" >> ${wx_arg_cache_file}.tmp
10430           fi
10431
10432           if test x"$enablestring" = xdisable; then
10433             if test $wxUSE_CONTROLS = yes; then
10434               result=no
10435             else
10436               result=yes
10437             fi
10438           else
10439             result=$wxUSE_CONTROLS
10440           fi
10441
10442           { echo "$as_me:$LINENO: result: $result" >&5
10443 echo "${ECHO_T}$result" >&6; }
10444
10445
10446 if test "$wxUSE_CONTROLS" = "yes"; then
10447   DEFAULT_wxUSE_ACCEL=yes
10448   DEFAULT_wxUSE_ANIMATIONCTRL=yes
10449   DEFAULT_wxUSE_BMPBUTTON=yes
10450   DEFAULT_wxUSE_BUTTON=yes
10451   DEFAULT_wxUSE_CALCTRL=yes
10452   DEFAULT_wxUSE_CARET=yes
10453   DEFAULT_wxUSE_COMBOBOX=yes
10454   DEFAULT_wxUSE_CHECKBOX=yes
10455   DEFAULT_wxUSE_CHECKLISTBOX=yes
10456   DEFAULT_wxUSE_CHOICE=yes
10457   DEFAULT_wxUSE_CHOICEBOOK=yes
10458   DEFAULT_wxUSE_COLLPANE=yes
10459   DEFAULT_wxUSE_COLOURPICKERCTRL=yes
10460   DEFAULT_wxUSE_COMBOBOX=yes
10461   DEFAULT_wxUSE_DATEPICKCTRL=yes
10462   DEFAULT_wxUSE_DISPLAY=yes
10463   DEFAULT_wxUSE_DETECT_SM=yes
10464   DEFAULT_wxUSE_DIRPICKERCTRL=yes
10465   DEFAULT_wxUSE_FILEPICKERCTRL=yes
10466   DEFAULT_wxUSE_FONTPICKERCTRL=yes
10467   DEFAULT_wxUSE_GAUGE=yes
10468   DEFAULT_wxUSE_GRID=yes
10469   DEFAULT_wxUSE_HYPERLINKCTRL=yes
10470   DEFAULT_wxUSE_DATAVIEWCTRL=no
10471   DEFAULT_wxUSE_IMAGLIST=yes
10472   DEFAULT_wxUSE_LISTBOOK=yes
10473   DEFAULT_wxUSE_LISTBOX=yes
10474   DEFAULT_wxUSE_LISTCTRL=yes
10475   DEFAULT_wxUSE_NOTEBOOK=yes
10476   DEFAULT_wxUSE_RADIOBOX=yes
10477   DEFAULT_wxUSE_RADIOBTN=yes
10478   DEFAULT_wxUSE_SASH=yes
10479   DEFAULT_wxUSE_SCROLLBAR=yes
10480   DEFAULT_wxUSE_SEARCHCTRL=yes
10481   DEFAULT_wxUSE_SLIDER=yes
10482   DEFAULT_wxUSE_SPINBTN=yes
10483   DEFAULT_wxUSE_SPINCTRL=yes
10484   DEFAULT_wxUSE_SPLITTER=yes
10485   DEFAULT_wxUSE_STATBMP=yes
10486   DEFAULT_wxUSE_STATBOX=yes
10487   DEFAULT_wxUSE_STATLINE=yes
10488   DEFAULT_wxUSE_STATUSBAR=yes
10489   DEFAULT_wxUSE_TAB_DIALOG=yes
10490   DEFAULT_wxUSE_TOGGLEBTN=yes
10491   DEFAULT_wxUSE_TOOLBAR=yes
10492   DEFAULT_wxUSE_TOOLBAR_NATIVE=yes
10493   DEFAULT_wxUSE_TOOLTIPS=yes
10494   DEFAULT_wxUSE_TREEBOOK=yes
10495   DEFAULT_wxUSE_TOOLBOOK=yes
10496   DEFAULT_wxUSE_TREECTRL=yes
10497   DEFAULT_wxUSE_POPUPWIN=yes
10498   DEFAULT_wxUSE_TIPWINDOW=yes
10499 elif test "$wxUSE_CONTROLS" = "no"; then
10500   DEFAULT_wxUSE_ACCEL=no
10501   DEFAULT_wxUSE_ANIMATIONCTRL=no
10502   DEFAULT_wxUSE_BMPBUTTON=no
10503   DEFAULT_wxUSE_BUTTON=no
10504   DEFAULT_wxUSE_CALCTRL=no
10505   DEFAULT_wxUSE_CARET=no
10506   DEFAULT_wxUSE_COLLPANE=no
10507   DEFAULT_wxUSE_COMBOBOX=no
10508   DEFAULT_wxUSE_CHECKBOX=no
10509   DEFAULT_wxUSE_CHECKLISTBOX=no
10510   DEFAULT_wxUSE_CHOICE=no
10511   DEFAULT_wxUSE_CHOICEBOOK=no
10512   DEFAULT_wxUSE_COLOURPICKERCTRL=no
10513   DEFAULT_wxUSE_COMBOBOX=no
10514   DEFAULT_wxUSE_DATEPICKCTRL=no
10515   DEFAULT_wxUSE_DISPLAY=no
10516   DEFAULT_wxUSE_DETECT_SM=no
10517   DEFAULT_wxUSE_DIRPICKERCTRL=no
10518   DEFAULT_wxUSE_FILEPICKERCTRL=no
10519   DEFAULT_wxUSE_FONTPICKERCTRL=no
10520   DEFAULT_wxUSE_GAUGE=no
10521   DEFAULT_wxUSE_GRID=no
10522   DEFAULT_wxUSE_HYPERLINKCTRL=no
10523   DEFAULT_wxUSE_DATAVIEWCTRL=no
10524   DEFAULT_wxUSE_IMAGLIST=no
10525   DEFAULT_wxUSE_LISTBOOK=no
10526   DEFAULT_wxUSE_LISTBOX=no
10527   DEFAULT_wxUSE_LISTCTRL=no
10528   DEFAULT_wxUSE_NOTEBOOK=no
10529   DEFAULT_wxUSE_RADIOBOX=no
10530   DEFAULT_wxUSE_RADIOBTN=no
10531   DEFAULT_wxUSE_SASH=no
10532   DEFAULT_wxUSE_SCROLLBAR=no
10533   DEFAULT_wxUSE_SEARCHCTRL=no
10534   DEFAULT_wxUSE_SLIDER=no
10535   DEFAULT_wxUSE_SPINBTN=no
10536   DEFAULT_wxUSE_SPINCTRL=no
10537   DEFAULT_wxUSE_SPLITTER=no
10538   DEFAULT_wxUSE_STATBMP=no
10539   DEFAULT_wxUSE_STATBOX=no
10540   DEFAULT_wxUSE_STATLINE=no
10541   DEFAULT_wxUSE_STATUSBAR=no
10542   DEFAULT_wxUSE_TAB_DIALOG=no
10543   DEFAULT_wxUSE_TOGGLEBTN=no
10544   DEFAULT_wxUSE_TOOLBAR=no
10545   DEFAULT_wxUSE_TOOLBAR_NATIVE=no
10546   DEFAULT_wxUSE_TOOLTIPS=no
10547   DEFAULT_wxUSE_TREEBOOK=no
10548   DEFAULT_wxUSE_TOOLBOOK=no
10549   DEFAULT_wxUSE_TREECTRL=no
10550   DEFAULT_wxUSE_POPUPWIN=no
10551   DEFAULT_wxUSE_TIPWINDOW=no
10552 fi
10553
10554
10555           enablestring=
10556           defaultval=$wxUSE_ALL_FEATURES
10557           if test -z "$defaultval"; then
10558               if test x"$enablestring" = xdisable; then
10559                   defaultval=yes
10560               else
10561                   defaultval=no
10562               fi
10563           fi
10564
10565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accel" >&5
10566 echo $ECHO_N "checking for --${enablestring:-enable}-accel... $ECHO_C" >&6; }
10567           # Check whether --enable-accel was given.
10568 if test "${enable_accel+set}" = set; then
10569   enableval=$enable_accel;
10570                           if test "$enableval" = yes; then
10571                             wx_cv_use_accel='wxUSE_ACCEL=yes'
10572                           else
10573                             wx_cv_use_accel='wxUSE_ACCEL=no'
10574                           fi
10575                           cache=yes
10576
10577 else
10578
10579                           cache=no
10580                           LINE=`grep "^wxUSE_ACCEL=" ${wx_arg_cache_file}`
10581                           if test "x$LINE" != x ; then
10582                             eval "DEFAULT_$LINE"
10583                           fi
10584
10585                           wx_cv_use_accel='wxUSE_ACCEL=${'DEFAULT_wxUSE_ACCEL":-$defaultval}"
10586
10587 fi
10588
10589
10590           eval "$wx_cv_use_accel"
10591           if test "x$cache" = xyes; then
10592             echo "wxUSE_ACCEL=$wxUSE_ACCEL" >> ${wx_arg_cache_file}.tmp
10593           fi
10594
10595           if test x"$enablestring" = xdisable; then
10596             if test $wxUSE_ACCEL = yes; then
10597               result=no
10598             else
10599               result=yes
10600             fi
10601           else
10602             result=$wxUSE_ACCEL
10603           fi
10604
10605           { echo "$as_me:$LINENO: result: $result" >&5
10606 echo "${ECHO_T}$result" >&6; }
10607
10608
10609           enablestring=
10610           defaultval=$wxUSE_ALL_FEATURES
10611           if test -z "$defaultval"; then
10612               if test x"$enablestring" = xdisable; then
10613                   defaultval=yes
10614               else
10615                   defaultval=no
10616               fi
10617           fi
10618
10619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-animatectrl" >&5
10620 echo $ECHO_N "checking for --${enablestring:-enable}-animatectrl... $ECHO_C" >&6; }
10621           # Check whether --enable-animatectrl was given.
10622 if test "${enable_animatectrl+set}" = set; then
10623   enableval=$enable_animatectrl;
10624                           if test "$enableval" = yes; then
10625                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=yes'
10626                           else
10627                             wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=no'
10628                           fi
10629                           cache=yes
10630
10631 else
10632
10633                           cache=no
10634                           LINE=`grep "^wxUSE_ANIMATIONCTRL=" ${wx_arg_cache_file}`
10635                           if test "x$LINE" != x ; then
10636                             eval "DEFAULT_$LINE"
10637                           fi
10638
10639                           wx_cv_use_animatectrl='wxUSE_ANIMATIONCTRL=${'DEFAULT_wxUSE_ANIMATIONCTRL":-$defaultval}"
10640
10641 fi
10642
10643
10644           eval "$wx_cv_use_animatectrl"
10645           if test "x$cache" = xyes; then
10646             echo "wxUSE_ANIMATIONCTRL=$wxUSE_ANIMATIONCTRL" >> ${wx_arg_cache_file}.tmp
10647           fi
10648
10649           if test x"$enablestring" = xdisable; then
10650             if test $wxUSE_ANIMATIONCTRL = yes; then
10651               result=no
10652             else
10653               result=yes
10654             fi
10655           else
10656             result=$wxUSE_ANIMATIONCTRL
10657           fi
10658
10659           { echo "$as_me:$LINENO: result: $result" >&5
10660 echo "${ECHO_T}$result" >&6; }
10661
10662
10663           enablestring=
10664           defaultval=$wxUSE_ALL_FEATURES
10665           if test -z "$defaultval"; then
10666               if test x"$enablestring" = xdisable; then
10667                   defaultval=yes
10668               else
10669                   defaultval=no
10670               fi
10671           fi
10672
10673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-button" >&5
10674 echo $ECHO_N "checking for --${enablestring:-enable}-button... $ECHO_C" >&6; }
10675           # Check whether --enable-button was given.
10676 if test "${enable_button+set}" = set; then
10677   enableval=$enable_button;
10678                           if test "$enableval" = yes; then
10679                             wx_cv_use_button='wxUSE_BUTTON=yes'
10680                           else
10681                             wx_cv_use_button='wxUSE_BUTTON=no'
10682                           fi
10683                           cache=yes
10684
10685 else
10686
10687                           cache=no
10688                           LINE=`grep "^wxUSE_BUTTON=" ${wx_arg_cache_file}`
10689                           if test "x$LINE" != x ; then
10690                             eval "DEFAULT_$LINE"
10691                           fi
10692
10693                           wx_cv_use_button='wxUSE_BUTTON=${'DEFAULT_wxUSE_BUTTON":-$defaultval}"
10694
10695 fi
10696
10697
10698           eval "$wx_cv_use_button"
10699           if test "x$cache" = xyes; then
10700             echo "wxUSE_BUTTON=$wxUSE_BUTTON" >> ${wx_arg_cache_file}.tmp
10701           fi
10702
10703           if test x"$enablestring" = xdisable; then
10704             if test $wxUSE_BUTTON = yes; then
10705               result=no
10706             else
10707               result=yes
10708             fi
10709           else
10710             result=$wxUSE_BUTTON
10711           fi
10712
10713           { echo "$as_me:$LINENO: result: $result" >&5
10714 echo "${ECHO_T}$result" >&6; }
10715
10716
10717           enablestring=
10718           defaultval=$wxUSE_ALL_FEATURES
10719           if test -z "$defaultval"; then
10720               if test x"$enablestring" = xdisable; then
10721                   defaultval=yes
10722               else
10723                   defaultval=no
10724               fi
10725           fi
10726
10727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpbutton" >&5
10728 echo $ECHO_N "checking for --${enablestring:-enable}-bmpbutton... $ECHO_C" >&6; }
10729           # Check whether --enable-bmpbutton was given.
10730 if test "${enable_bmpbutton+set}" = set; then
10731   enableval=$enable_bmpbutton;
10732                           if test "$enableval" = yes; then
10733                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=yes'
10734                           else
10735                             wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=no'
10736                           fi
10737                           cache=yes
10738
10739 else
10740
10741                           cache=no
10742                           LINE=`grep "^wxUSE_BMPBUTTON=" ${wx_arg_cache_file}`
10743                           if test "x$LINE" != x ; then
10744                             eval "DEFAULT_$LINE"
10745                           fi
10746
10747                           wx_cv_use_bmpbutton='wxUSE_BMPBUTTON=${'DEFAULT_wxUSE_BMPBUTTON":-$defaultval}"
10748
10749 fi
10750
10751
10752           eval "$wx_cv_use_bmpbutton"
10753           if test "x$cache" = xyes; then
10754             echo "wxUSE_BMPBUTTON=$wxUSE_BMPBUTTON" >> ${wx_arg_cache_file}.tmp
10755           fi
10756
10757           if test x"$enablestring" = xdisable; then
10758             if test $wxUSE_BMPBUTTON = yes; then
10759               result=no
10760             else
10761               result=yes
10762             fi
10763           else
10764             result=$wxUSE_BMPBUTTON
10765           fi
10766
10767           { echo "$as_me:$LINENO: result: $result" >&5
10768 echo "${ECHO_T}$result" >&6; }
10769
10770
10771           enablestring=
10772           defaultval=$wxUSE_ALL_FEATURES
10773           if test -z "$defaultval"; then
10774               if test x"$enablestring" = xdisable; then
10775                   defaultval=yes
10776               else
10777                   defaultval=no
10778               fi
10779           fi
10780
10781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-bmpcombobox" >&5
10782 echo $ECHO_N "checking for --${enablestring:-enable}-bmpcombobox... $ECHO_C" >&6; }
10783           # Check whether --enable-bmpcombobox was given.
10784 if test "${enable_bmpcombobox+set}" = set; then
10785   enableval=$enable_bmpcombobox;
10786                           if test "$enableval" = yes; then
10787                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=yes'
10788                           else
10789                             wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=no'
10790                           fi
10791                           cache=yes
10792
10793 else
10794
10795                           cache=no
10796                           LINE=`grep "^wxUSE_BITMAPCOMBOBOX=" ${wx_arg_cache_file}`
10797                           if test "x$LINE" != x ; then
10798                             eval "DEFAULT_$LINE"
10799                           fi
10800
10801                           wx_cv_use_bmpcombobox='wxUSE_BITMAPCOMBOBOX=${'DEFAULT_wxUSE_BITMAPCOMBOBOX":-$defaultval}"
10802
10803 fi
10804
10805
10806           eval "$wx_cv_use_bmpcombobox"
10807           if test "x$cache" = xyes; then
10808             echo "wxUSE_BITMAPCOMBOBOX=$wxUSE_BITMAPCOMBOBOX" >> ${wx_arg_cache_file}.tmp
10809           fi
10810
10811           if test x"$enablestring" = xdisable; then
10812             if test $wxUSE_BITMAPCOMBOBOX = yes; then
10813               result=no
10814             else
10815               result=yes
10816             fi
10817           else
10818             result=$wxUSE_BITMAPCOMBOBOX
10819           fi
10820
10821           { echo "$as_me:$LINENO: result: $result" >&5
10822 echo "${ECHO_T}$result" >&6; }
10823
10824
10825           enablestring=
10826           defaultval=$wxUSE_ALL_FEATURES
10827           if test -z "$defaultval"; then
10828               if test x"$enablestring" = xdisable; then
10829                   defaultval=yes
10830               else
10831                   defaultval=no
10832               fi
10833           fi
10834
10835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-calendar" >&5
10836 echo $ECHO_N "checking for --${enablestring:-enable}-calendar... $ECHO_C" >&6; }
10837           # Check whether --enable-calendar was given.
10838 if test "${enable_calendar+set}" = set; then
10839   enableval=$enable_calendar;
10840                           if test "$enableval" = yes; then
10841                             wx_cv_use_calendar='wxUSE_CALCTRL=yes'
10842                           else
10843                             wx_cv_use_calendar='wxUSE_CALCTRL=no'
10844                           fi
10845                           cache=yes
10846
10847 else
10848
10849                           cache=no
10850                           LINE=`grep "^wxUSE_CALCTRL=" ${wx_arg_cache_file}`
10851                           if test "x$LINE" != x ; then
10852                             eval "DEFAULT_$LINE"
10853                           fi
10854
10855                           wx_cv_use_calendar='wxUSE_CALCTRL=${'DEFAULT_wxUSE_CALCTRL":-$defaultval}"
10856
10857 fi
10858
10859
10860           eval "$wx_cv_use_calendar"
10861           if test "x$cache" = xyes; then
10862             echo "wxUSE_CALCTRL=$wxUSE_CALCTRL" >> ${wx_arg_cache_file}.tmp
10863           fi
10864
10865           if test x"$enablestring" = xdisable; then
10866             if test $wxUSE_CALCTRL = yes; then
10867               result=no
10868             else
10869               result=yes
10870             fi
10871           else
10872             result=$wxUSE_CALCTRL
10873           fi
10874
10875           { echo "$as_me:$LINENO: result: $result" >&5
10876 echo "${ECHO_T}$result" >&6; }
10877
10878
10879           enablestring=
10880           defaultval=$wxUSE_ALL_FEATURES
10881           if test -z "$defaultval"; then
10882               if test x"$enablestring" = xdisable; then
10883                   defaultval=yes
10884               else
10885                   defaultval=no
10886               fi
10887           fi
10888
10889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-caret" >&5
10890 echo $ECHO_N "checking for --${enablestring:-enable}-caret... $ECHO_C" >&6; }
10891           # Check whether --enable-caret was given.
10892 if test "${enable_caret+set}" = set; then
10893   enableval=$enable_caret;
10894                           if test "$enableval" = yes; then
10895                             wx_cv_use_caret='wxUSE_CARET=yes'
10896                           else
10897                             wx_cv_use_caret='wxUSE_CARET=no'
10898                           fi
10899                           cache=yes
10900
10901 else
10902
10903                           cache=no
10904                           LINE=`grep "^wxUSE_CARET=" ${wx_arg_cache_file}`
10905                           if test "x$LINE" != x ; then
10906                             eval "DEFAULT_$LINE"
10907                           fi
10908
10909                           wx_cv_use_caret='wxUSE_CARET=${'DEFAULT_wxUSE_CARET":-$defaultval}"
10910
10911 fi
10912
10913
10914           eval "$wx_cv_use_caret"
10915           if test "x$cache" = xyes; then
10916             echo "wxUSE_CARET=$wxUSE_CARET" >> ${wx_arg_cache_file}.tmp
10917           fi
10918
10919           if test x"$enablestring" = xdisable; then
10920             if test $wxUSE_CARET = yes; then
10921               result=no
10922             else
10923               result=yes
10924             fi
10925           else
10926             result=$wxUSE_CARET
10927           fi
10928
10929           { echo "$as_me:$LINENO: result: $result" >&5
10930 echo "${ECHO_T}$result" >&6; }
10931
10932
10933           enablestring=
10934           defaultval=$wxUSE_ALL_FEATURES
10935           if test -z "$defaultval"; then
10936               if test x"$enablestring" = xdisable; then
10937                   defaultval=yes
10938               else
10939                   defaultval=no
10940               fi
10941           fi
10942
10943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checkbox" >&5
10944 echo $ECHO_N "checking for --${enablestring:-enable}-checkbox... $ECHO_C" >&6; }
10945           # Check whether --enable-checkbox was given.
10946 if test "${enable_checkbox+set}" = set; then
10947   enableval=$enable_checkbox;
10948                           if test "$enableval" = yes; then
10949                             wx_cv_use_checkbox='wxUSE_CHECKBOX=yes'
10950                           else
10951                             wx_cv_use_checkbox='wxUSE_CHECKBOX=no'
10952                           fi
10953                           cache=yes
10954
10955 else
10956
10957                           cache=no
10958                           LINE=`grep "^wxUSE_CHECKBOX=" ${wx_arg_cache_file}`
10959                           if test "x$LINE" != x ; then
10960                             eval "DEFAULT_$LINE"
10961                           fi
10962
10963                           wx_cv_use_checkbox='wxUSE_CHECKBOX=${'DEFAULT_wxUSE_CHECKBOX":-$defaultval}"
10964
10965 fi
10966
10967
10968           eval "$wx_cv_use_checkbox"
10969           if test "x$cache" = xyes; then
10970             echo "wxUSE_CHECKBOX=$wxUSE_CHECKBOX" >> ${wx_arg_cache_file}.tmp
10971           fi
10972
10973           if test x"$enablestring" = xdisable; then
10974             if test $wxUSE_CHECKBOX = yes; then
10975               result=no
10976             else
10977               result=yes
10978             fi
10979           else
10980             result=$wxUSE_CHECKBOX
10981           fi
10982
10983           { echo "$as_me:$LINENO: result: $result" >&5
10984 echo "${ECHO_T}$result" >&6; }
10985
10986
10987           enablestring=
10988           defaultval=$wxUSE_ALL_FEATURES
10989           if test -z "$defaultval"; then
10990               if test x"$enablestring" = xdisable; then
10991                   defaultval=yes
10992               else
10993                   defaultval=no
10994               fi
10995           fi
10996
10997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-checklst" >&5
10998 echo $ECHO_N "checking for --${enablestring:-enable}-checklst... $ECHO_C" >&6; }
10999           # Check whether --enable-checklst was given.
11000 if test "${enable_checklst+set}" = set; then
11001   enableval=$enable_checklst;
11002                           if test "$enableval" = yes; then
11003                             wx_cv_use_checklst='wxUSE_CHECKLST=yes'
11004                           else
11005                             wx_cv_use_checklst='wxUSE_CHECKLST=no'
11006                           fi
11007                           cache=yes
11008
11009 else
11010
11011                           cache=no
11012                           LINE=`grep "^wxUSE_CHECKLST=" ${wx_arg_cache_file}`
11013                           if test "x$LINE" != x ; then
11014                             eval "DEFAULT_$LINE"
11015                           fi
11016
11017                           wx_cv_use_checklst='wxUSE_CHECKLST=${'DEFAULT_wxUSE_CHECKLST":-$defaultval}"
11018
11019 fi
11020
11021
11022           eval "$wx_cv_use_checklst"
11023           if test "x$cache" = xyes; then
11024             echo "wxUSE_CHECKLST=$wxUSE_CHECKLST" >> ${wx_arg_cache_file}.tmp
11025           fi
11026
11027           if test x"$enablestring" = xdisable; then
11028             if test $wxUSE_CHECKLST = yes; then
11029               result=no
11030             else
11031               result=yes
11032             fi
11033           else
11034             result=$wxUSE_CHECKLST
11035           fi
11036
11037           { echo "$as_me:$LINENO: result: $result" >&5
11038 echo "${ECHO_T}$result" >&6; }
11039
11040
11041           enablestring=
11042           defaultval=$wxUSE_ALL_FEATURES
11043           if test -z "$defaultval"; then
11044               if test x"$enablestring" = xdisable; then
11045                   defaultval=yes
11046               else
11047                   defaultval=no
11048               fi
11049           fi
11050
11051           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choice" >&5
11052 echo $ECHO_N "checking for --${enablestring:-enable}-choice... $ECHO_C" >&6; }
11053           # Check whether --enable-choice was given.
11054 if test "${enable_choice+set}" = set; then
11055   enableval=$enable_choice;
11056                           if test "$enableval" = yes; then
11057                             wx_cv_use_choice='wxUSE_CHOICE=yes'
11058                           else
11059                             wx_cv_use_choice='wxUSE_CHOICE=no'
11060                           fi
11061                           cache=yes
11062
11063 else
11064
11065                           cache=no
11066                           LINE=`grep "^wxUSE_CHOICE=" ${wx_arg_cache_file}`
11067                           if test "x$LINE" != x ; then
11068                             eval "DEFAULT_$LINE"
11069                           fi
11070
11071                           wx_cv_use_choice='wxUSE_CHOICE=${'DEFAULT_wxUSE_CHOICE":-$defaultval}"
11072
11073 fi
11074
11075
11076           eval "$wx_cv_use_choice"
11077           if test "x$cache" = xyes; then
11078             echo "wxUSE_CHOICE=$wxUSE_CHOICE" >> ${wx_arg_cache_file}.tmp
11079           fi
11080
11081           if test x"$enablestring" = xdisable; then
11082             if test $wxUSE_CHOICE = yes; then
11083               result=no
11084             else
11085               result=yes
11086             fi
11087           else
11088             result=$wxUSE_CHOICE
11089           fi
11090
11091           { echo "$as_me:$LINENO: result: $result" >&5
11092 echo "${ECHO_T}$result" >&6; }
11093
11094
11095           enablestring=
11096           defaultval=$wxUSE_ALL_FEATURES
11097           if test -z "$defaultval"; then
11098               if test x"$enablestring" = xdisable; then
11099                   defaultval=yes
11100               else
11101                   defaultval=no
11102               fi
11103           fi
11104
11105           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicebook" >&5
11106 echo $ECHO_N "checking for --${enablestring:-enable}-choicebook... $ECHO_C" >&6; }
11107           # Check whether --enable-choicebook was given.
11108 if test "${enable_choicebook+set}" = set; then
11109   enableval=$enable_choicebook;
11110                           if test "$enableval" = yes; then
11111                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=yes'
11112                           else
11113                             wx_cv_use_choicebook='wxUSE_CHOICEBOOK=no'
11114                           fi
11115                           cache=yes
11116
11117 else
11118
11119                           cache=no
11120                           LINE=`grep "^wxUSE_CHOICEBOOK=" ${wx_arg_cache_file}`
11121                           if test "x$LINE" != x ; then
11122                             eval "DEFAULT_$LINE"
11123                           fi
11124
11125                           wx_cv_use_choicebook='wxUSE_CHOICEBOOK=${'DEFAULT_wxUSE_CHOICEBOOK":-$defaultval}"
11126
11127 fi
11128
11129
11130           eval "$wx_cv_use_choicebook"
11131           if test "x$cache" = xyes; then
11132             echo "wxUSE_CHOICEBOOK=$wxUSE_CHOICEBOOK" >> ${wx_arg_cache_file}.tmp
11133           fi
11134
11135           if test x"$enablestring" = xdisable; then
11136             if test $wxUSE_CHOICEBOOK = yes; then
11137               result=no
11138             else
11139               result=yes
11140             fi
11141           else
11142             result=$wxUSE_CHOICEBOOK
11143           fi
11144
11145           { echo "$as_me:$LINENO: result: $result" >&5
11146 echo "${ECHO_T}$result" >&6; }
11147
11148
11149           enablestring=
11150           defaultval=$wxUSE_ALL_FEATURES
11151           if test -z "$defaultval"; then
11152               if test x"$enablestring" = xdisable; then
11153                   defaultval=yes
11154               else
11155                   defaultval=no
11156               fi
11157           fi
11158
11159           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-collpane" >&5
11160 echo $ECHO_N "checking for --${enablestring:-enable}-collpane... $ECHO_C" >&6; }
11161           # Check whether --enable-collpane was given.
11162 if test "${enable_collpane+set}" = set; then
11163   enableval=$enable_collpane;
11164                           if test "$enableval" = yes; then
11165                             wx_cv_use_collpane='wxUSE_COLLPANE=yes'
11166                           else
11167                             wx_cv_use_collpane='wxUSE_COLLPANE=no'
11168                           fi
11169                           cache=yes
11170
11171 else
11172
11173                           cache=no
11174                           LINE=`grep "^wxUSE_COLLPANE=" ${wx_arg_cache_file}`
11175                           if test "x$LINE" != x ; then
11176                             eval "DEFAULT_$LINE"
11177                           fi
11178
11179                           wx_cv_use_collpane='wxUSE_COLLPANE=${'DEFAULT_wxUSE_COLLPANE":-$defaultval}"
11180
11181 fi
11182
11183
11184           eval "$wx_cv_use_collpane"
11185           if test "x$cache" = xyes; then
11186             echo "wxUSE_COLLPANE=$wxUSE_COLLPANE" >> ${wx_arg_cache_file}.tmp
11187           fi
11188
11189           if test x"$enablestring" = xdisable; then
11190             if test $wxUSE_COLLPANE = yes; then
11191               result=no
11192             else
11193               result=yes
11194             fi
11195           else
11196             result=$wxUSE_COLLPANE
11197           fi
11198
11199           { echo "$as_me:$LINENO: result: $result" >&5
11200 echo "${ECHO_T}$result" >&6; }
11201
11202
11203           enablestring=
11204           defaultval=$wxUSE_ALL_FEATURES
11205           if test -z "$defaultval"; then
11206               if test x"$enablestring" = xdisable; then
11207                   defaultval=yes
11208               else
11209                   defaultval=no
11210               fi
11211           fi
11212
11213           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-colourpicker" >&5
11214 echo $ECHO_N "checking for --${enablestring:-enable}-colourpicker... $ECHO_C" >&6; }
11215           # Check whether --enable-colourpicker was given.
11216 if test "${enable_colourpicker+set}" = set; then
11217   enableval=$enable_colourpicker;
11218                           if test "$enableval" = yes; then
11219                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=yes'
11220                           else
11221                             wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=no'
11222                           fi
11223                           cache=yes
11224
11225 else
11226
11227                           cache=no
11228                           LINE=`grep "^wxUSE_COLOURPICKERCTRL=" ${wx_arg_cache_file}`
11229                           if test "x$LINE" != x ; then
11230                             eval "DEFAULT_$LINE"
11231                           fi
11232
11233                           wx_cv_use_colourpicker='wxUSE_COLOURPICKERCTRL=${'DEFAULT_wxUSE_COLOURPICKERCTRL":-$defaultval}"
11234
11235 fi
11236
11237
11238           eval "$wx_cv_use_colourpicker"
11239           if test "x$cache" = xyes; then
11240             echo "wxUSE_COLOURPICKERCTRL=$wxUSE_COLOURPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11241           fi
11242
11243           if test x"$enablestring" = xdisable; then
11244             if test $wxUSE_COLOURPICKERCTRL = yes; then
11245               result=no
11246             else
11247               result=yes
11248             fi
11249           else
11250             result=$wxUSE_COLOURPICKERCTRL
11251           fi
11252
11253           { echo "$as_me:$LINENO: result: $result" >&5
11254 echo "${ECHO_T}$result" >&6; }
11255
11256
11257           enablestring=
11258           defaultval=$wxUSE_ALL_FEATURES
11259           if test -z "$defaultval"; then
11260               if test x"$enablestring" = xdisable; then
11261                   defaultval=yes
11262               else
11263                   defaultval=no
11264               fi
11265           fi
11266
11267           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-combobox" >&5
11268 echo $ECHO_N "checking for --${enablestring:-enable}-combobox... $ECHO_C" >&6; }
11269           # Check whether --enable-combobox was given.
11270 if test "${enable_combobox+set}" = set; then
11271   enableval=$enable_combobox;
11272                           if test "$enableval" = yes; then
11273                             wx_cv_use_combobox='wxUSE_COMBOBOX=yes'
11274                           else
11275                             wx_cv_use_combobox='wxUSE_COMBOBOX=no'
11276                           fi
11277                           cache=yes
11278
11279 else
11280
11281                           cache=no
11282                           LINE=`grep "^wxUSE_COMBOBOX=" ${wx_arg_cache_file}`
11283                           if test "x$LINE" != x ; then
11284                             eval "DEFAULT_$LINE"
11285                           fi
11286
11287                           wx_cv_use_combobox='wxUSE_COMBOBOX=${'DEFAULT_wxUSE_COMBOBOX":-$defaultval}"
11288
11289 fi
11290
11291
11292           eval "$wx_cv_use_combobox"
11293           if test "x$cache" = xyes; then
11294             echo "wxUSE_COMBOBOX=$wxUSE_COMBOBOX" >> ${wx_arg_cache_file}.tmp
11295           fi
11296
11297           if test x"$enablestring" = xdisable; then
11298             if test $wxUSE_COMBOBOX = yes; then
11299               result=no
11300             else
11301               result=yes
11302             fi
11303           else
11304             result=$wxUSE_COMBOBOX
11305           fi
11306
11307           { echo "$as_me:$LINENO: result: $result" >&5
11308 echo "${ECHO_T}$result" >&6; }
11309
11310
11311           enablestring=
11312           defaultval=$wxUSE_ALL_FEATURES
11313           if test -z "$defaultval"; then
11314               if test x"$enablestring" = xdisable; then
11315                   defaultval=yes
11316               else
11317                   defaultval=no
11318               fi
11319           fi
11320
11321           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-comboctrl" >&5
11322 echo $ECHO_N "checking for --${enablestring:-enable}-comboctrl... $ECHO_C" >&6; }
11323           # Check whether --enable-comboctrl was given.
11324 if test "${enable_comboctrl+set}" = set; then
11325   enableval=$enable_comboctrl;
11326                           if test "$enableval" = yes; then
11327                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=yes'
11328                           else
11329                             wx_cv_use_comboctrl='wxUSE_COMBOCTRL=no'
11330                           fi
11331                           cache=yes
11332
11333 else
11334
11335                           cache=no
11336                           LINE=`grep "^wxUSE_COMBOCTRL=" ${wx_arg_cache_file}`
11337                           if test "x$LINE" != x ; then
11338                             eval "DEFAULT_$LINE"
11339                           fi
11340
11341                           wx_cv_use_comboctrl='wxUSE_COMBOCTRL=${'DEFAULT_wxUSE_COMBOCTRL":-$defaultval}"
11342
11343 fi
11344
11345
11346           eval "$wx_cv_use_comboctrl"
11347           if test "x$cache" = xyes; then
11348             echo "wxUSE_COMBOCTRL=$wxUSE_COMBOCTRL" >> ${wx_arg_cache_file}.tmp
11349           fi
11350
11351           if test x"$enablestring" = xdisable; then
11352             if test $wxUSE_COMBOCTRL = yes; then
11353               result=no
11354             else
11355               result=yes
11356             fi
11357           else
11358             result=$wxUSE_COMBOCTRL
11359           fi
11360
11361           { echo "$as_me:$LINENO: result: $result" >&5
11362 echo "${ECHO_T}$result" >&6; }
11363
11364
11365           enablestring=
11366           defaultval=$wxUSE_ALL_FEATURES
11367           if test -z "$defaultval"; then
11368               if test x"$enablestring" = xdisable; then
11369                   defaultval=yes
11370               else
11371                   defaultval=no
11372               fi
11373           fi
11374
11375           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-datepick" >&5
11376 echo $ECHO_N "checking for --${enablestring:-enable}-datepick... $ECHO_C" >&6; }
11377           # Check whether --enable-datepick was given.
11378 if test "${enable_datepick+set}" = set; then
11379   enableval=$enable_datepick;
11380                           if test "$enableval" = yes; then
11381                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=yes'
11382                           else
11383                             wx_cv_use_datepick='wxUSE_DATEPICKCTRL=no'
11384                           fi
11385                           cache=yes
11386
11387 else
11388
11389                           cache=no
11390                           LINE=`grep "^wxUSE_DATEPICKCTRL=" ${wx_arg_cache_file}`
11391                           if test "x$LINE" != x ; then
11392                             eval "DEFAULT_$LINE"
11393                           fi
11394
11395                           wx_cv_use_datepick='wxUSE_DATEPICKCTRL=${'DEFAULT_wxUSE_DATEPICKCTRL":-$defaultval}"
11396
11397 fi
11398
11399
11400           eval "$wx_cv_use_datepick"
11401           if test "x$cache" = xyes; then
11402             echo "wxUSE_DATEPICKCTRL=$wxUSE_DATEPICKCTRL" >> ${wx_arg_cache_file}.tmp
11403           fi
11404
11405           if test x"$enablestring" = xdisable; then
11406             if test $wxUSE_DATEPICKCTRL = yes; then
11407               result=no
11408             else
11409               result=yes
11410             fi
11411           else
11412             result=$wxUSE_DATEPICKCTRL
11413           fi
11414
11415           { echo "$as_me:$LINENO: result: $result" >&5
11416 echo "${ECHO_T}$result" >&6; }
11417
11418
11419           enablestring=
11420           defaultval=$wxUSE_ALL_FEATURES
11421           if test -z "$defaultval"; then
11422               if test x"$enablestring" = xdisable; then
11423                   defaultval=yes
11424               else
11425                   defaultval=no
11426               fi
11427           fi
11428
11429           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirpicker" >&5
11430 echo $ECHO_N "checking for --${enablestring:-enable}-dirpicker... $ECHO_C" >&6; }
11431           # Check whether --enable-dirpicker was given.
11432 if test "${enable_dirpicker+set}" = set; then
11433   enableval=$enable_dirpicker;
11434                           if test "$enableval" = yes; then
11435                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=yes'
11436                           else
11437                             wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=no'
11438                           fi
11439                           cache=yes
11440
11441 else
11442
11443                           cache=no
11444                           LINE=`grep "^wxUSE_DIRPICKERCTRL=" ${wx_arg_cache_file}`
11445                           if test "x$LINE" != x ; then
11446                             eval "DEFAULT_$LINE"
11447                           fi
11448
11449                           wx_cv_use_dirpicker='wxUSE_DIRPICKERCTRL=${'DEFAULT_wxUSE_DIRPICKERCTRL":-$defaultval}"
11450
11451 fi
11452
11453
11454           eval "$wx_cv_use_dirpicker"
11455           if test "x$cache" = xyes; then
11456             echo "wxUSE_DIRPICKERCTRL=$wxUSE_DIRPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11457           fi
11458
11459           if test x"$enablestring" = xdisable; then
11460             if test $wxUSE_DIRPICKERCTRL = yes; then
11461               result=no
11462             else
11463               result=yes
11464             fi
11465           else
11466             result=$wxUSE_DIRPICKERCTRL
11467           fi
11468
11469           { echo "$as_me:$LINENO: result: $result" >&5
11470 echo "${ECHO_T}$result" >&6; }
11471
11472
11473           enablestring=
11474           defaultval=$wxUSE_ALL_FEATURES
11475           if test -z "$defaultval"; then
11476               if test x"$enablestring" = xdisable; then
11477                   defaultval=yes
11478               else
11479                   defaultval=no
11480               fi
11481           fi
11482
11483           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-display" >&5
11484 echo $ECHO_N "checking for --${enablestring:-enable}-display... $ECHO_C" >&6; }
11485           # Check whether --enable-display was given.
11486 if test "${enable_display+set}" = set; then
11487   enableval=$enable_display;
11488                           if test "$enableval" = yes; then
11489                             wx_cv_use_display='wxUSE_DISPLAY=yes'
11490                           else
11491                             wx_cv_use_display='wxUSE_DISPLAY=no'
11492                           fi
11493                           cache=yes
11494
11495 else
11496
11497                           cache=no
11498                           LINE=`grep "^wxUSE_DISPLAY=" ${wx_arg_cache_file}`
11499                           if test "x$LINE" != x ; then
11500                             eval "DEFAULT_$LINE"
11501                           fi
11502
11503                           wx_cv_use_display='wxUSE_DISPLAY=${'DEFAULT_wxUSE_DISPLAY":-$defaultval}"
11504
11505 fi
11506
11507
11508           eval "$wx_cv_use_display"
11509           if test "x$cache" = xyes; then
11510             echo "wxUSE_DISPLAY=$wxUSE_DISPLAY" >> ${wx_arg_cache_file}.tmp
11511           fi
11512
11513           if test x"$enablestring" = xdisable; then
11514             if test $wxUSE_DISPLAY = yes; then
11515               result=no
11516             else
11517               result=yes
11518             fi
11519           else
11520             result=$wxUSE_DISPLAY
11521           fi
11522
11523           { echo "$as_me:$LINENO: result: $result" >&5
11524 echo "${ECHO_T}$result" >&6; }
11525
11526
11527           enablestring=
11528           defaultval=$wxUSE_ALL_FEATURES
11529           if test -z "$defaultval"; then
11530               if test x"$enablestring" = xdisable; then
11531                   defaultval=yes
11532               else
11533                   defaultval=no
11534               fi
11535           fi
11536
11537           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-detect_sm" >&5
11538 echo $ECHO_N "checking for --${enablestring:-enable}-detect_sm... $ECHO_C" >&6; }
11539           # Check whether --enable-detect_sm was given.
11540 if test "${enable_detect_sm+set}" = set; then
11541   enableval=$enable_detect_sm;
11542                           if test "$enableval" = yes; then
11543                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=yes'
11544                           else
11545                             wx_cv_use_detect_sm='wxUSE_DETECT_SM=no'
11546                           fi
11547                           cache=yes
11548
11549 else
11550
11551                           cache=no
11552                           LINE=`grep "^wxUSE_DETECT_SM=" ${wx_arg_cache_file}`
11553                           if test "x$LINE" != x ; then
11554                             eval "DEFAULT_$LINE"
11555                           fi
11556
11557                           wx_cv_use_detect_sm='wxUSE_DETECT_SM=${'DEFAULT_wxUSE_DETECT_SM":-$defaultval}"
11558
11559 fi
11560
11561
11562           eval "$wx_cv_use_detect_sm"
11563           if test "x$cache" = xyes; then
11564             echo "wxUSE_DETECT_SM=$wxUSE_DETECT_SM" >> ${wx_arg_cache_file}.tmp
11565           fi
11566
11567           if test x"$enablestring" = xdisable; then
11568             if test $wxUSE_DETECT_SM = yes; then
11569               result=no
11570             else
11571               result=yes
11572             fi
11573           else
11574             result=$wxUSE_DETECT_SM
11575           fi
11576
11577           { echo "$as_me:$LINENO: result: $result" >&5
11578 echo "${ECHO_T}$result" >&6; }
11579
11580
11581           enablestring=
11582           defaultval=$wxUSE_ALL_FEATURES
11583           if test -z "$defaultval"; then
11584               if test x"$enablestring" = xdisable; then
11585                   defaultval=yes
11586               else
11587                   defaultval=no
11588               fi
11589           fi
11590
11591           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-editablebox" >&5
11592 echo $ECHO_N "checking for --${enablestring:-enable}-editablebox... $ECHO_C" >&6; }
11593           # Check whether --enable-editablebox was given.
11594 if test "${enable_editablebox+set}" = set; then
11595   enableval=$enable_editablebox;
11596                           if test "$enableval" = yes; then
11597                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=yes'
11598                           else
11599                             wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=no'
11600                           fi
11601                           cache=yes
11602
11603 else
11604
11605                           cache=no
11606                           LINE=`grep "^wxUSE_EDITABLELISTBOX=" ${wx_arg_cache_file}`
11607                           if test "x$LINE" != x ; then
11608                             eval "DEFAULT_$LINE"
11609                           fi
11610
11611                           wx_cv_use_editablebox='wxUSE_EDITABLELISTBOX=${'DEFAULT_wxUSE_EDITABLELISTBOX":-$defaultval}"
11612
11613 fi
11614
11615
11616           eval "$wx_cv_use_editablebox"
11617           if test "x$cache" = xyes; then
11618             echo "wxUSE_EDITABLELISTBOX=$wxUSE_EDITABLELISTBOX" >> ${wx_arg_cache_file}.tmp
11619           fi
11620
11621           if test x"$enablestring" = xdisable; then
11622             if test $wxUSE_EDITABLELISTBOX = yes; then
11623               result=no
11624             else
11625               result=yes
11626             fi
11627           else
11628             result=$wxUSE_EDITABLELISTBOX
11629           fi
11630
11631           { echo "$as_me:$LINENO: result: $result" >&5
11632 echo "${ECHO_T}$result" >&6; }
11633
11634
11635           enablestring=
11636           defaultval=$wxUSE_ALL_FEATURES
11637           if test -z "$defaultval"; then
11638               if test x"$enablestring" = xdisable; then
11639                   defaultval=yes
11640               else
11641                   defaultval=no
11642               fi
11643           fi
11644
11645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filepicker" >&5
11646 echo $ECHO_N "checking for --${enablestring:-enable}-filepicker... $ECHO_C" >&6; }
11647           # Check whether --enable-filepicker was given.
11648 if test "${enable_filepicker+set}" = set; then
11649   enableval=$enable_filepicker;
11650                           if test "$enableval" = yes; then
11651                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=yes'
11652                           else
11653                             wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=no'
11654                           fi
11655                           cache=yes
11656
11657 else
11658
11659                           cache=no
11660                           LINE=`grep "^wxUSE_FILEPICKERCTRL=" ${wx_arg_cache_file}`
11661                           if test "x$LINE" != x ; then
11662                             eval "DEFAULT_$LINE"
11663                           fi
11664
11665                           wx_cv_use_filepicker='wxUSE_FILEPICKERCTRL=${'DEFAULT_wxUSE_FILEPICKERCTRL":-$defaultval}"
11666
11667 fi
11668
11669
11670           eval "$wx_cv_use_filepicker"
11671           if test "x$cache" = xyes; then
11672             echo "wxUSE_FILEPICKERCTRL=$wxUSE_FILEPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11673           fi
11674
11675           if test x"$enablestring" = xdisable; then
11676             if test $wxUSE_FILEPICKERCTRL = yes; then
11677               result=no
11678             else
11679               result=yes
11680             fi
11681           else
11682             result=$wxUSE_FILEPICKERCTRL
11683           fi
11684
11685           { echo "$as_me:$LINENO: result: $result" >&5
11686 echo "${ECHO_T}$result" >&6; }
11687
11688
11689           enablestring=
11690           defaultval=$wxUSE_ALL_FEATURES
11691           if test -z "$defaultval"; then
11692               if test x"$enablestring" = xdisable; then
11693                   defaultval=yes
11694               else
11695                   defaultval=no
11696               fi
11697           fi
11698
11699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontpicker" >&5
11700 echo $ECHO_N "checking for --${enablestring:-enable}-fontpicker... $ECHO_C" >&6; }
11701           # Check whether --enable-fontpicker was given.
11702 if test "${enable_fontpicker+set}" = set; then
11703   enableval=$enable_fontpicker;
11704                           if test "$enableval" = yes; then
11705                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=yes'
11706                           else
11707                             wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=no'
11708                           fi
11709                           cache=yes
11710
11711 else
11712
11713                           cache=no
11714                           LINE=`grep "^wxUSE_FONTPICKERCTRL=" ${wx_arg_cache_file}`
11715                           if test "x$LINE" != x ; then
11716                             eval "DEFAULT_$LINE"
11717                           fi
11718
11719                           wx_cv_use_fontpicker='wxUSE_FONTPICKERCTRL=${'DEFAULT_wxUSE_FONTPICKERCTRL":-$defaultval}"
11720
11721 fi
11722
11723
11724           eval "$wx_cv_use_fontpicker"
11725           if test "x$cache" = xyes; then
11726             echo "wxUSE_FONTPICKERCTRL=$wxUSE_FONTPICKERCTRL" >> ${wx_arg_cache_file}.tmp
11727           fi
11728
11729           if test x"$enablestring" = xdisable; then
11730             if test $wxUSE_FONTPICKERCTRL = yes; then
11731               result=no
11732             else
11733               result=yes
11734             fi
11735           else
11736             result=$wxUSE_FONTPICKERCTRL
11737           fi
11738
11739           { echo "$as_me:$LINENO: result: $result" >&5
11740 echo "${ECHO_T}$result" >&6; }
11741
11742
11743           enablestring=
11744           defaultval=$wxUSE_ALL_FEATURES
11745           if test -z "$defaultval"; then
11746               if test x"$enablestring" = xdisable; then
11747                   defaultval=yes
11748               else
11749                   defaultval=no
11750               fi
11751           fi
11752
11753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gauge" >&5
11754 echo $ECHO_N "checking for --${enablestring:-enable}-gauge... $ECHO_C" >&6; }
11755           # Check whether --enable-gauge was given.
11756 if test "${enable_gauge+set}" = set; then
11757   enableval=$enable_gauge;
11758                           if test "$enableval" = yes; then
11759                             wx_cv_use_gauge='wxUSE_GAUGE=yes'
11760                           else
11761                             wx_cv_use_gauge='wxUSE_GAUGE=no'
11762                           fi
11763                           cache=yes
11764
11765 else
11766
11767                           cache=no
11768                           LINE=`grep "^wxUSE_GAUGE=" ${wx_arg_cache_file}`
11769                           if test "x$LINE" != x ; then
11770                             eval "DEFAULT_$LINE"
11771                           fi
11772
11773                           wx_cv_use_gauge='wxUSE_GAUGE=${'DEFAULT_wxUSE_GAUGE":-$defaultval}"
11774
11775 fi
11776
11777
11778           eval "$wx_cv_use_gauge"
11779           if test "x$cache" = xyes; then
11780             echo "wxUSE_GAUGE=$wxUSE_GAUGE" >> ${wx_arg_cache_file}.tmp
11781           fi
11782
11783           if test x"$enablestring" = xdisable; then
11784             if test $wxUSE_GAUGE = yes; then
11785               result=no
11786             else
11787               result=yes
11788             fi
11789           else
11790             result=$wxUSE_GAUGE
11791           fi
11792
11793           { echo "$as_me:$LINENO: result: $result" >&5
11794 echo "${ECHO_T}$result" >&6; }
11795
11796
11797           enablestring=
11798           defaultval=$wxUSE_ALL_FEATURES
11799           if test -z "$defaultval"; then
11800               if test x"$enablestring" = xdisable; then
11801                   defaultval=yes
11802               else
11803                   defaultval=no
11804               fi
11805           fi
11806
11807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-grid" >&5
11808 echo $ECHO_N "checking for --${enablestring:-enable}-grid... $ECHO_C" >&6; }
11809           # Check whether --enable-grid was given.
11810 if test "${enable_grid+set}" = set; then
11811   enableval=$enable_grid;
11812                           if test "$enableval" = yes; then
11813                             wx_cv_use_grid='wxUSE_GRID=yes'
11814                           else
11815                             wx_cv_use_grid='wxUSE_GRID=no'
11816                           fi
11817                           cache=yes
11818
11819 else
11820
11821                           cache=no
11822                           LINE=`grep "^wxUSE_GRID=" ${wx_arg_cache_file}`
11823                           if test "x$LINE" != x ; then
11824                             eval "DEFAULT_$LINE"
11825                           fi
11826
11827                           wx_cv_use_grid='wxUSE_GRID=${'DEFAULT_wxUSE_GRID":-$defaultval}"
11828
11829 fi
11830
11831
11832           eval "$wx_cv_use_grid"
11833           if test "x$cache" = xyes; then
11834             echo "wxUSE_GRID=$wxUSE_GRID" >> ${wx_arg_cache_file}.tmp
11835           fi
11836
11837           if test x"$enablestring" = xdisable; then
11838             if test $wxUSE_GRID = yes; then
11839               result=no
11840             else
11841               result=yes
11842             fi
11843           else
11844             result=$wxUSE_GRID
11845           fi
11846
11847           { echo "$as_me:$LINENO: result: $result" >&5
11848 echo "${ECHO_T}$result" >&6; }
11849
11850
11851           enablestring=
11852           defaultval=$wxUSE_ALL_FEATURES
11853           if test -z "$defaultval"; then
11854               if test x"$enablestring" = xdisable; then
11855                   defaultval=yes
11856               else
11857                   defaultval=no
11858               fi
11859           fi
11860
11861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dataviewctrl" >&5
11862 echo $ECHO_N "checking for --${enablestring:-enable}-dataviewctrl... $ECHO_C" >&6; }
11863           # Check whether --enable-dataviewctrl was given.
11864 if test "${enable_dataviewctrl+set}" = set; then
11865   enableval=$enable_dataviewctrl;
11866                           if test "$enableval" = yes; then
11867                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=yes'
11868                           else
11869                             wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=no'
11870                           fi
11871                           cache=yes
11872
11873 else
11874
11875                           cache=no
11876                           LINE=`grep "^wxUSE_DATAVIEWCTRL=" ${wx_arg_cache_file}`
11877                           if test "x$LINE" != x ; then
11878                             eval "DEFAULT_$LINE"
11879                           fi
11880
11881                           wx_cv_use_dataviewctrl='wxUSE_DATAVIEWCTRL=${'DEFAULT_wxUSE_DATAVIEWCTRL":-$defaultval}"
11882
11883 fi
11884
11885
11886           eval "$wx_cv_use_dataviewctrl"
11887           if test "x$cache" = xyes; then
11888             echo "wxUSE_DATAVIEWCTRL=$wxUSE_DATAVIEWCTRL" >> ${wx_arg_cache_file}.tmp
11889           fi
11890
11891           if test x"$enablestring" = xdisable; then
11892             if test $wxUSE_DATAVIEWCTRL = yes; then
11893               result=no
11894             else
11895               result=yes
11896             fi
11897           else
11898             result=$wxUSE_DATAVIEWCTRL
11899           fi
11900
11901           { echo "$as_me:$LINENO: result: $result" >&5
11902 echo "${ECHO_T}$result" >&6; }
11903
11904
11905           enablestring=
11906           defaultval=$wxUSE_ALL_FEATURES
11907           if test -z "$defaultval"; then
11908               if test x"$enablestring" = xdisable; then
11909                   defaultval=yes
11910               else
11911                   defaultval=no
11912               fi
11913           fi
11914
11915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-hyperlink" >&5
11916 echo $ECHO_N "checking for --${enablestring:-enable}-hyperlink... $ECHO_C" >&6; }
11917           # Check whether --enable-hyperlink was given.
11918 if test "${enable_hyperlink+set}" = set; then
11919   enableval=$enable_hyperlink;
11920                           if test "$enableval" = yes; then
11921                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=yes'
11922                           else
11923                             wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=no'
11924                           fi
11925                           cache=yes
11926
11927 else
11928
11929                           cache=no
11930                           LINE=`grep "^wxUSE_HYPERLINKCTRL=" ${wx_arg_cache_file}`
11931                           if test "x$LINE" != x ; then
11932                             eval "DEFAULT_$LINE"
11933                           fi
11934
11935                           wx_cv_use_hyperlink='wxUSE_HYPERLINKCTRL=${'DEFAULT_wxUSE_HYPERLINKCTRL":-$defaultval}"
11936
11937 fi
11938
11939
11940           eval "$wx_cv_use_hyperlink"
11941           if test "x$cache" = xyes; then
11942             echo "wxUSE_HYPERLINKCTRL=$wxUSE_HYPERLINKCTRL" >> ${wx_arg_cache_file}.tmp
11943           fi
11944
11945           if test x"$enablestring" = xdisable; then
11946             if test $wxUSE_HYPERLINKCTRL = yes; then
11947               result=no
11948             else
11949               result=yes
11950             fi
11951           else
11952             result=$wxUSE_HYPERLINKCTRL
11953           fi
11954
11955           { echo "$as_me:$LINENO: result: $result" >&5
11956 echo "${ECHO_T}$result" >&6; }
11957
11958
11959           enablestring=
11960           defaultval=$wxUSE_ALL_FEATURES
11961           if test -z "$defaultval"; then
11962               if test x"$enablestring" = xdisable; then
11963                   defaultval=yes
11964               else
11965                   defaultval=no
11966               fi
11967           fi
11968
11969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-imaglist" >&5
11970 echo $ECHO_N "checking for --${enablestring:-enable}-imaglist... $ECHO_C" >&6; }
11971           # Check whether --enable-imaglist was given.
11972 if test "${enable_imaglist+set}" = set; then
11973   enableval=$enable_imaglist;
11974                           if test "$enableval" = yes; then
11975                             wx_cv_use_imaglist='wxUSE_IMAGLIST=yes'
11976                           else
11977                             wx_cv_use_imaglist='wxUSE_IMAGLIST=no'
11978                           fi
11979                           cache=yes
11980
11981 else
11982
11983                           cache=no
11984                           LINE=`grep "^wxUSE_IMAGLIST=" ${wx_arg_cache_file}`
11985                           if test "x$LINE" != x ; then
11986                             eval "DEFAULT_$LINE"
11987                           fi
11988
11989                           wx_cv_use_imaglist='wxUSE_IMAGLIST=${'DEFAULT_wxUSE_IMAGLIST":-$defaultval}"
11990
11991 fi
11992
11993
11994           eval "$wx_cv_use_imaglist"
11995           if test "x$cache" = xyes; then
11996             echo "wxUSE_IMAGLIST=$wxUSE_IMAGLIST" >> ${wx_arg_cache_file}.tmp
11997           fi
11998
11999           if test x"$enablestring" = xdisable; then
12000             if test $wxUSE_IMAGLIST = yes; then
12001               result=no
12002             else
12003               result=yes
12004             fi
12005           else
12006             result=$wxUSE_IMAGLIST
12007           fi
12008
12009           { echo "$as_me:$LINENO: result: $result" >&5
12010 echo "${ECHO_T}$result" >&6; }
12011
12012
12013           enablestring=
12014           defaultval=$wxUSE_ALL_FEATURES
12015           if test -z "$defaultval"; then
12016               if test x"$enablestring" = xdisable; then
12017                   defaultval=yes
12018               else
12019                   defaultval=no
12020               fi
12021           fi
12022
12023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbook" >&5
12024 echo $ECHO_N "checking for --${enablestring:-enable}-listbook... $ECHO_C" >&6; }
12025           # Check whether --enable-listbook was given.
12026 if test "${enable_listbook+set}" = set; then
12027   enableval=$enable_listbook;
12028                           if test "$enableval" = yes; then
12029                             wx_cv_use_listbook='wxUSE_LISTBOOK=yes'
12030                           else
12031                             wx_cv_use_listbook='wxUSE_LISTBOOK=no'
12032                           fi
12033                           cache=yes
12034
12035 else
12036
12037                           cache=no
12038                           LINE=`grep "^wxUSE_LISTBOOK=" ${wx_arg_cache_file}`
12039                           if test "x$LINE" != x ; then
12040                             eval "DEFAULT_$LINE"
12041                           fi
12042
12043                           wx_cv_use_listbook='wxUSE_LISTBOOK=${'DEFAULT_wxUSE_LISTBOOK":-$defaultval}"
12044
12045 fi
12046
12047
12048           eval "$wx_cv_use_listbook"
12049           if test "x$cache" = xyes; then
12050             echo "wxUSE_LISTBOOK=$wxUSE_LISTBOOK" >> ${wx_arg_cache_file}.tmp
12051           fi
12052
12053           if test x"$enablestring" = xdisable; then
12054             if test $wxUSE_LISTBOOK = yes; then
12055               result=no
12056             else
12057               result=yes
12058             fi
12059           else
12060             result=$wxUSE_LISTBOOK
12061           fi
12062
12063           { echo "$as_me:$LINENO: result: $result" >&5
12064 echo "${ECHO_T}$result" >&6; }
12065
12066
12067           enablestring=
12068           defaultval=$wxUSE_ALL_FEATURES
12069           if test -z "$defaultval"; then
12070               if test x"$enablestring" = xdisable; then
12071                   defaultval=yes
12072               else
12073                   defaultval=no
12074               fi
12075           fi
12076
12077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listbox" >&5
12078 echo $ECHO_N "checking for --${enablestring:-enable}-listbox... $ECHO_C" >&6; }
12079           # Check whether --enable-listbox was given.
12080 if test "${enable_listbox+set}" = set; then
12081   enableval=$enable_listbox;
12082                           if test "$enableval" = yes; then
12083                             wx_cv_use_listbox='wxUSE_LISTBOX=yes'
12084                           else
12085                             wx_cv_use_listbox='wxUSE_LISTBOX=no'
12086                           fi
12087                           cache=yes
12088
12089 else
12090
12091                           cache=no
12092                           LINE=`grep "^wxUSE_LISTBOX=" ${wx_arg_cache_file}`
12093                           if test "x$LINE" != x ; then
12094                             eval "DEFAULT_$LINE"
12095                           fi
12096
12097                           wx_cv_use_listbox='wxUSE_LISTBOX=${'DEFAULT_wxUSE_LISTBOX":-$defaultval}"
12098
12099 fi
12100
12101
12102           eval "$wx_cv_use_listbox"
12103           if test "x$cache" = xyes; then
12104             echo "wxUSE_LISTBOX=$wxUSE_LISTBOX" >> ${wx_arg_cache_file}.tmp
12105           fi
12106
12107           if test x"$enablestring" = xdisable; then
12108             if test $wxUSE_LISTBOX = yes; then
12109               result=no
12110             else
12111               result=yes
12112             fi
12113           else
12114             result=$wxUSE_LISTBOX
12115           fi
12116
12117           { echo "$as_me:$LINENO: result: $result" >&5
12118 echo "${ECHO_T}$result" >&6; }
12119
12120
12121           enablestring=
12122           defaultval=$wxUSE_ALL_FEATURES
12123           if test -z "$defaultval"; then
12124               if test x"$enablestring" = xdisable; then
12125                   defaultval=yes
12126               else
12127                   defaultval=no
12128               fi
12129           fi
12130
12131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-listctrl" >&5
12132 echo $ECHO_N "checking for --${enablestring:-enable}-listctrl... $ECHO_C" >&6; }
12133           # Check whether --enable-listctrl was given.
12134 if test "${enable_listctrl+set}" = set; then
12135   enableval=$enable_listctrl;
12136                           if test "$enableval" = yes; then
12137                             wx_cv_use_listctrl='wxUSE_LISTCTRL=yes'
12138                           else
12139                             wx_cv_use_listctrl='wxUSE_LISTCTRL=no'
12140                           fi
12141                           cache=yes
12142
12143 else
12144
12145                           cache=no
12146                           LINE=`grep "^wxUSE_LISTCTRL=" ${wx_arg_cache_file}`
12147                           if test "x$LINE" != x ; then
12148                             eval "DEFAULT_$LINE"
12149                           fi
12150
12151                           wx_cv_use_listctrl='wxUSE_LISTCTRL=${'DEFAULT_wxUSE_LISTCTRL":-$defaultval}"
12152
12153 fi
12154
12155
12156           eval "$wx_cv_use_listctrl"
12157           if test "x$cache" = xyes; then
12158             echo "wxUSE_LISTCTRL=$wxUSE_LISTCTRL" >> ${wx_arg_cache_file}.tmp
12159           fi
12160
12161           if test x"$enablestring" = xdisable; then
12162             if test $wxUSE_LISTCTRL = yes; then
12163               result=no
12164             else
12165               result=yes
12166             fi
12167           else
12168             result=$wxUSE_LISTCTRL
12169           fi
12170
12171           { echo "$as_me:$LINENO: result: $result" >&5
12172 echo "${ECHO_T}$result" >&6; }
12173
12174
12175           enablestring=
12176           defaultval=$wxUSE_ALL_FEATURES
12177           if test -z "$defaultval"; then
12178               if test x"$enablestring" = xdisable; then
12179                   defaultval=yes
12180               else
12181                   defaultval=no
12182               fi
12183           fi
12184
12185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-notebook" >&5
12186 echo $ECHO_N "checking for --${enablestring:-enable}-notebook... $ECHO_C" >&6; }
12187           # Check whether --enable-notebook was given.
12188 if test "${enable_notebook+set}" = set; then
12189   enableval=$enable_notebook;
12190                           if test "$enableval" = yes; then
12191                             wx_cv_use_notebook='wxUSE_NOTEBOOK=yes'
12192                           else
12193                             wx_cv_use_notebook='wxUSE_NOTEBOOK=no'
12194                           fi
12195                           cache=yes
12196
12197 else
12198
12199                           cache=no
12200                           LINE=`grep "^wxUSE_NOTEBOOK=" ${wx_arg_cache_file}`
12201                           if test "x$LINE" != x ; then
12202                             eval "DEFAULT_$LINE"
12203                           fi
12204
12205                           wx_cv_use_notebook='wxUSE_NOTEBOOK=${'DEFAULT_wxUSE_NOTEBOOK":-$defaultval}"
12206
12207 fi
12208
12209
12210           eval "$wx_cv_use_notebook"
12211           if test "x$cache" = xyes; then
12212             echo "wxUSE_NOTEBOOK=$wxUSE_NOTEBOOK" >> ${wx_arg_cache_file}.tmp
12213           fi
12214
12215           if test x"$enablestring" = xdisable; then
12216             if test $wxUSE_NOTEBOOK = yes; then
12217               result=no
12218             else
12219               result=yes
12220             fi
12221           else
12222             result=$wxUSE_NOTEBOOK
12223           fi
12224
12225           { echo "$as_me:$LINENO: result: $result" >&5
12226 echo "${ECHO_T}$result" >&6; }
12227
12228
12229           enablestring=
12230           defaultval=$wxUSE_ALL_FEATURES
12231           if test -z "$defaultval"; then
12232               if test x"$enablestring" = xdisable; then
12233                   defaultval=yes
12234               else
12235                   defaultval=no
12236               fi
12237           fi
12238
12239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-odcombobox" >&5
12240 echo $ECHO_N "checking for --${enablestring:-enable}-odcombobox... $ECHO_C" >&6; }
12241           # Check whether --enable-odcombobox was given.
12242 if test "${enable_odcombobox+set}" = set; then
12243   enableval=$enable_odcombobox;
12244                           if test "$enableval" = yes; then
12245                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=yes'
12246                           else
12247                             wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=no'
12248                           fi
12249                           cache=yes
12250
12251 else
12252
12253                           cache=no
12254                           LINE=`grep "^wxUSE_ODCOMBOBOX=" ${wx_arg_cache_file}`
12255                           if test "x$LINE" != x ; then
12256                             eval "DEFAULT_$LINE"
12257                           fi
12258
12259                           wx_cv_use_odcombobox='wxUSE_ODCOMBOBOX=${'DEFAULT_wxUSE_ODCOMBOBOX":-$defaultval}"
12260
12261 fi
12262
12263
12264           eval "$wx_cv_use_odcombobox"
12265           if test "x$cache" = xyes; then
12266             echo "wxUSE_ODCOMBOBOX=$wxUSE_ODCOMBOBOX" >> ${wx_arg_cache_file}.tmp
12267           fi
12268
12269           if test x"$enablestring" = xdisable; then
12270             if test $wxUSE_ODCOMBOBOX = yes; then
12271               result=no
12272             else
12273               result=yes
12274             fi
12275           else
12276             result=$wxUSE_ODCOMBOBOX
12277           fi
12278
12279           { echo "$as_me:$LINENO: result: $result" >&5
12280 echo "${ECHO_T}$result" >&6; }
12281
12282
12283           enablestring=
12284           defaultval=$wxUSE_ALL_FEATURES
12285           if test -z "$defaultval"; then
12286               if test x"$enablestring" = xdisable; then
12287                   defaultval=yes
12288               else
12289                   defaultval=no
12290               fi
12291           fi
12292
12293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobox" >&5
12294 echo $ECHO_N "checking for --${enablestring:-enable}-radiobox... $ECHO_C" >&6; }
12295           # Check whether --enable-radiobox was given.
12296 if test "${enable_radiobox+set}" = set; then
12297   enableval=$enable_radiobox;
12298                           if test "$enableval" = yes; then
12299                             wx_cv_use_radiobox='wxUSE_RADIOBOX=yes'
12300                           else
12301                             wx_cv_use_radiobox='wxUSE_RADIOBOX=no'
12302                           fi
12303                           cache=yes
12304
12305 else
12306
12307                           cache=no
12308                           LINE=`grep "^wxUSE_RADIOBOX=" ${wx_arg_cache_file}`
12309                           if test "x$LINE" != x ; then
12310                             eval "DEFAULT_$LINE"
12311                           fi
12312
12313                           wx_cv_use_radiobox='wxUSE_RADIOBOX=${'DEFAULT_wxUSE_RADIOBOX":-$defaultval}"
12314
12315 fi
12316
12317
12318           eval "$wx_cv_use_radiobox"
12319           if test "x$cache" = xyes; then
12320             echo "wxUSE_RADIOBOX=$wxUSE_RADIOBOX" >> ${wx_arg_cache_file}.tmp
12321           fi
12322
12323           if test x"$enablestring" = xdisable; then
12324             if test $wxUSE_RADIOBOX = yes; then
12325               result=no
12326             else
12327               result=yes
12328             fi
12329           else
12330             result=$wxUSE_RADIOBOX
12331           fi
12332
12333           { echo "$as_me:$LINENO: result: $result" >&5
12334 echo "${ECHO_T}$result" >&6; }
12335
12336
12337           enablestring=
12338           defaultval=$wxUSE_ALL_FEATURES
12339           if test -z "$defaultval"; then
12340               if test x"$enablestring" = xdisable; then
12341                   defaultval=yes
12342               else
12343                   defaultval=no
12344               fi
12345           fi
12346
12347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-radiobtn" >&5
12348 echo $ECHO_N "checking for --${enablestring:-enable}-radiobtn... $ECHO_C" >&6; }
12349           # Check whether --enable-radiobtn was given.
12350 if test "${enable_radiobtn+set}" = set; then
12351   enableval=$enable_radiobtn;
12352                           if test "$enableval" = yes; then
12353                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=yes'
12354                           else
12355                             wx_cv_use_radiobtn='wxUSE_RADIOBTN=no'
12356                           fi
12357                           cache=yes
12358
12359 else
12360
12361                           cache=no
12362                           LINE=`grep "^wxUSE_RADIOBTN=" ${wx_arg_cache_file}`
12363                           if test "x$LINE" != x ; then
12364                             eval "DEFAULT_$LINE"
12365                           fi
12366
12367                           wx_cv_use_radiobtn='wxUSE_RADIOBTN=${'DEFAULT_wxUSE_RADIOBTN":-$defaultval}"
12368
12369 fi
12370
12371
12372           eval "$wx_cv_use_radiobtn"
12373           if test "x$cache" = xyes; then
12374             echo "wxUSE_RADIOBTN=$wxUSE_RADIOBTN" >> ${wx_arg_cache_file}.tmp
12375           fi
12376
12377           if test x"$enablestring" = xdisable; then
12378             if test $wxUSE_RADIOBTN = yes; then
12379               result=no
12380             else
12381               result=yes
12382             fi
12383           else
12384             result=$wxUSE_RADIOBTN
12385           fi
12386
12387           { echo "$as_me:$LINENO: result: $result" >&5
12388 echo "${ECHO_T}$result" >&6; }
12389
12390
12391           enablestring=
12392           defaultval=$wxUSE_ALL_FEATURES
12393           if test -z "$defaultval"; then
12394               if test x"$enablestring" = xdisable; then
12395                   defaultval=yes
12396               else
12397                   defaultval=no
12398               fi
12399           fi
12400
12401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-sash" >&5
12402 echo $ECHO_N "checking for --${enablestring:-enable}-sash... $ECHO_C" >&6; }
12403           # Check whether --enable-sash was given.
12404 if test "${enable_sash+set}" = set; then
12405   enableval=$enable_sash;
12406                           if test "$enableval" = yes; then
12407                             wx_cv_use_sash='wxUSE_SASH=yes'
12408                           else
12409                             wx_cv_use_sash='wxUSE_SASH=no'
12410                           fi
12411                           cache=yes
12412
12413 else
12414
12415                           cache=no
12416                           LINE=`grep "^wxUSE_SASH=" ${wx_arg_cache_file}`
12417                           if test "x$LINE" != x ; then
12418                             eval "DEFAULT_$LINE"
12419                           fi
12420
12421                           wx_cv_use_sash='wxUSE_SASH=${'DEFAULT_wxUSE_SASH":-$defaultval}"
12422
12423 fi
12424
12425
12426           eval "$wx_cv_use_sash"
12427           if test "x$cache" = xyes; then
12428             echo "wxUSE_SASH=$wxUSE_SASH" >> ${wx_arg_cache_file}.tmp
12429           fi
12430
12431           if test x"$enablestring" = xdisable; then
12432             if test $wxUSE_SASH = yes; then
12433               result=no
12434             else
12435               result=yes
12436             fi
12437           else
12438             result=$wxUSE_SASH
12439           fi
12440
12441           { echo "$as_me:$LINENO: result: $result" >&5
12442 echo "${ECHO_T}$result" >&6; }
12443
12444
12445           enablestring=
12446           defaultval=$wxUSE_ALL_FEATURES
12447           if test -z "$defaultval"; then
12448               if test x"$enablestring" = xdisable; then
12449                   defaultval=yes
12450               else
12451                   defaultval=no
12452               fi
12453           fi
12454
12455           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-scrollbar" >&5
12456 echo $ECHO_N "checking for --${enablestring:-enable}-scrollbar... $ECHO_C" >&6; }
12457           # Check whether --enable-scrollbar was given.
12458 if test "${enable_scrollbar+set}" = set; then
12459   enableval=$enable_scrollbar;
12460                           if test "$enableval" = yes; then
12461                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=yes'
12462                           else
12463                             wx_cv_use_scrollbar='wxUSE_SCROLLBAR=no'
12464                           fi
12465                           cache=yes
12466
12467 else
12468
12469                           cache=no
12470                           LINE=`grep "^wxUSE_SCROLLBAR=" ${wx_arg_cache_file}`
12471                           if test "x$LINE" != x ; then
12472                             eval "DEFAULT_$LINE"
12473                           fi
12474
12475                           wx_cv_use_scrollbar='wxUSE_SCROLLBAR=${'DEFAULT_wxUSE_SCROLLBAR":-$defaultval}"
12476
12477 fi
12478
12479
12480           eval "$wx_cv_use_scrollbar"
12481           if test "x$cache" = xyes; then
12482             echo "wxUSE_SCROLLBAR=$wxUSE_SCROLLBAR" >> ${wx_arg_cache_file}.tmp
12483           fi
12484
12485           if test x"$enablestring" = xdisable; then
12486             if test $wxUSE_SCROLLBAR = yes; then
12487               result=no
12488             else
12489               result=yes
12490             fi
12491           else
12492             result=$wxUSE_SCROLLBAR
12493           fi
12494
12495           { echo "$as_me:$LINENO: result: $result" >&5
12496 echo "${ECHO_T}$result" >&6; }
12497
12498
12499           enablestring=
12500           defaultval=$wxUSE_ALL_FEATURES
12501           if test -z "$defaultval"; then
12502               if test x"$enablestring" = xdisable; then
12503                   defaultval=yes
12504               else
12505                   defaultval=no
12506               fi
12507           fi
12508
12509           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-searchctrl" >&5
12510 echo $ECHO_N "checking for --${enablestring:-enable}-searchctrl... $ECHO_C" >&6; }
12511           # Check whether --enable-searchctrl was given.
12512 if test "${enable_searchctrl+set}" = set; then
12513   enableval=$enable_searchctrl;
12514                           if test "$enableval" = yes; then
12515                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=yes'
12516                           else
12517                             wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=no'
12518                           fi
12519                           cache=yes
12520
12521 else
12522
12523                           cache=no
12524                           LINE=`grep "^wxUSE_SEARCHCTRL=" ${wx_arg_cache_file}`
12525                           if test "x$LINE" != x ; then
12526                             eval "DEFAULT_$LINE"
12527                           fi
12528
12529                           wx_cv_use_searchctrl='wxUSE_SEARCHCTRL=${'DEFAULT_wxUSE_SEARCHCTRL":-$defaultval}"
12530
12531 fi
12532
12533
12534           eval "$wx_cv_use_searchctrl"
12535           if test "x$cache" = xyes; then
12536             echo "wxUSE_SEARCHCTRL=$wxUSE_SEARCHCTRL" >> ${wx_arg_cache_file}.tmp
12537           fi
12538
12539           if test x"$enablestring" = xdisable; then
12540             if test $wxUSE_SEARCHCTRL = yes; then
12541               result=no
12542             else
12543               result=yes
12544             fi
12545           else
12546             result=$wxUSE_SEARCHCTRL
12547           fi
12548
12549           { echo "$as_me:$LINENO: result: $result" >&5
12550 echo "${ECHO_T}$result" >&6; }
12551
12552
12553           enablestring=
12554           defaultval=$wxUSE_ALL_FEATURES
12555           if test -z "$defaultval"; then
12556               if test x"$enablestring" = xdisable; then
12557                   defaultval=yes
12558               else
12559                   defaultval=no
12560               fi
12561           fi
12562
12563           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-slider" >&5
12564 echo $ECHO_N "checking for --${enablestring:-enable}-slider... $ECHO_C" >&6; }
12565           # Check whether --enable-slider was given.
12566 if test "${enable_slider+set}" = set; then
12567   enableval=$enable_slider;
12568                           if test "$enableval" = yes; then
12569                             wx_cv_use_slider='wxUSE_SLIDER=yes'
12570                           else
12571                             wx_cv_use_slider='wxUSE_SLIDER=no'
12572                           fi
12573                           cache=yes
12574
12575 else
12576
12577                           cache=no
12578                           LINE=`grep "^wxUSE_SLIDER=" ${wx_arg_cache_file}`
12579                           if test "x$LINE" != x ; then
12580                             eval "DEFAULT_$LINE"
12581                           fi
12582
12583                           wx_cv_use_slider='wxUSE_SLIDER=${'DEFAULT_wxUSE_SLIDER":-$defaultval}"
12584
12585 fi
12586
12587
12588           eval "$wx_cv_use_slider"
12589           if test "x$cache" = xyes; then
12590             echo "wxUSE_SLIDER=$wxUSE_SLIDER" >> ${wx_arg_cache_file}.tmp
12591           fi
12592
12593           if test x"$enablestring" = xdisable; then
12594             if test $wxUSE_SLIDER = yes; then
12595               result=no
12596             else
12597               result=yes
12598             fi
12599           else
12600             result=$wxUSE_SLIDER
12601           fi
12602
12603           { echo "$as_me:$LINENO: result: $result" >&5
12604 echo "${ECHO_T}$result" >&6; }
12605
12606
12607           enablestring=
12608           defaultval=$wxUSE_ALL_FEATURES
12609           if test -z "$defaultval"; then
12610               if test x"$enablestring" = xdisable; then
12611                   defaultval=yes
12612               else
12613                   defaultval=no
12614               fi
12615           fi
12616
12617           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinbtn" >&5
12618 echo $ECHO_N "checking for --${enablestring:-enable}-spinbtn... $ECHO_C" >&6; }
12619           # Check whether --enable-spinbtn was given.
12620 if test "${enable_spinbtn+set}" = set; then
12621   enableval=$enable_spinbtn;
12622                           if test "$enableval" = yes; then
12623                             wx_cv_use_spinbtn='wxUSE_SPINBTN=yes'
12624                           else
12625                             wx_cv_use_spinbtn='wxUSE_SPINBTN=no'
12626                           fi
12627                           cache=yes
12628
12629 else
12630
12631                           cache=no
12632                           LINE=`grep "^wxUSE_SPINBTN=" ${wx_arg_cache_file}`
12633                           if test "x$LINE" != x ; then
12634                             eval "DEFAULT_$LINE"
12635                           fi
12636
12637                           wx_cv_use_spinbtn='wxUSE_SPINBTN=${'DEFAULT_wxUSE_SPINBTN":-$defaultval}"
12638
12639 fi
12640
12641
12642           eval "$wx_cv_use_spinbtn"
12643           if test "x$cache" = xyes; then
12644             echo "wxUSE_SPINBTN=$wxUSE_SPINBTN" >> ${wx_arg_cache_file}.tmp
12645           fi
12646
12647           if test x"$enablestring" = xdisable; then
12648             if test $wxUSE_SPINBTN = yes; then
12649               result=no
12650             else
12651               result=yes
12652             fi
12653           else
12654             result=$wxUSE_SPINBTN
12655           fi
12656
12657           { echo "$as_me:$LINENO: result: $result" >&5
12658 echo "${ECHO_T}$result" >&6; }
12659
12660
12661           enablestring=
12662           defaultval=$wxUSE_ALL_FEATURES
12663           if test -z "$defaultval"; then
12664               if test x"$enablestring" = xdisable; then
12665                   defaultval=yes
12666               else
12667                   defaultval=no
12668               fi
12669           fi
12670
12671           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-spinctrl" >&5
12672 echo $ECHO_N "checking for --${enablestring:-enable}-spinctrl... $ECHO_C" >&6; }
12673           # Check whether --enable-spinctrl was given.
12674 if test "${enable_spinctrl+set}" = set; then
12675   enableval=$enable_spinctrl;
12676                           if test "$enableval" = yes; then
12677                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=yes'
12678                           else
12679                             wx_cv_use_spinctrl='wxUSE_SPINCTRL=no'
12680                           fi
12681                           cache=yes
12682
12683 else
12684
12685                           cache=no
12686                           LINE=`grep "^wxUSE_SPINCTRL=" ${wx_arg_cache_file}`
12687                           if test "x$LINE" != x ; then
12688                             eval "DEFAULT_$LINE"
12689                           fi
12690
12691                           wx_cv_use_spinctrl='wxUSE_SPINCTRL=${'DEFAULT_wxUSE_SPINCTRL":-$defaultval}"
12692
12693 fi
12694
12695
12696           eval "$wx_cv_use_spinctrl"
12697           if test "x$cache" = xyes; then
12698             echo "wxUSE_SPINCTRL=$wxUSE_SPINCTRL" >> ${wx_arg_cache_file}.tmp
12699           fi
12700
12701           if test x"$enablestring" = xdisable; then
12702             if test $wxUSE_SPINCTRL = yes; then
12703               result=no
12704             else
12705               result=yes
12706             fi
12707           else
12708             result=$wxUSE_SPINCTRL
12709           fi
12710
12711           { echo "$as_me:$LINENO: result: $result" >&5
12712 echo "${ECHO_T}$result" >&6; }
12713
12714
12715           enablestring=
12716           defaultval=$wxUSE_ALL_FEATURES
12717           if test -z "$defaultval"; then
12718               if test x"$enablestring" = xdisable; then
12719                   defaultval=yes
12720               else
12721                   defaultval=no
12722               fi
12723           fi
12724
12725           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splitter" >&5
12726 echo $ECHO_N "checking for --${enablestring:-enable}-splitter... $ECHO_C" >&6; }
12727           # Check whether --enable-splitter was given.
12728 if test "${enable_splitter+set}" = set; then
12729   enableval=$enable_splitter;
12730                           if test "$enableval" = yes; then
12731                             wx_cv_use_splitter='wxUSE_SPLITTER=yes'
12732                           else
12733                             wx_cv_use_splitter='wxUSE_SPLITTER=no'
12734                           fi
12735                           cache=yes
12736
12737 else
12738
12739                           cache=no
12740                           LINE=`grep "^wxUSE_SPLITTER=" ${wx_arg_cache_file}`
12741                           if test "x$LINE" != x ; then
12742                             eval "DEFAULT_$LINE"
12743                           fi
12744
12745                           wx_cv_use_splitter='wxUSE_SPLITTER=${'DEFAULT_wxUSE_SPLITTER":-$defaultval}"
12746
12747 fi
12748
12749
12750           eval "$wx_cv_use_splitter"
12751           if test "x$cache" = xyes; then
12752             echo "wxUSE_SPLITTER=$wxUSE_SPLITTER" >> ${wx_arg_cache_file}.tmp
12753           fi
12754
12755           if test x"$enablestring" = xdisable; then
12756             if test $wxUSE_SPLITTER = yes; then
12757               result=no
12758             else
12759               result=yes
12760             fi
12761           else
12762             result=$wxUSE_SPLITTER
12763           fi
12764
12765           { echo "$as_me:$LINENO: result: $result" >&5
12766 echo "${ECHO_T}$result" >&6; }
12767
12768
12769           enablestring=
12770           defaultval=$wxUSE_ALL_FEATURES
12771           if test -z "$defaultval"; then
12772               if test x"$enablestring" = xdisable; then
12773                   defaultval=yes
12774               else
12775                   defaultval=no
12776               fi
12777           fi
12778
12779           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbmp" >&5
12780 echo $ECHO_N "checking for --${enablestring:-enable}-statbmp... $ECHO_C" >&6; }
12781           # Check whether --enable-statbmp was given.
12782 if test "${enable_statbmp+set}" = set; then
12783   enableval=$enable_statbmp;
12784                           if test "$enableval" = yes; then
12785                             wx_cv_use_statbmp='wxUSE_STATBMP=yes'
12786                           else
12787                             wx_cv_use_statbmp='wxUSE_STATBMP=no'
12788                           fi
12789                           cache=yes
12790
12791 else
12792
12793                           cache=no
12794                           LINE=`grep "^wxUSE_STATBMP=" ${wx_arg_cache_file}`
12795                           if test "x$LINE" != x ; then
12796                             eval "DEFAULT_$LINE"
12797                           fi
12798
12799                           wx_cv_use_statbmp='wxUSE_STATBMP=${'DEFAULT_wxUSE_STATBMP":-$defaultval}"
12800
12801 fi
12802
12803
12804           eval "$wx_cv_use_statbmp"
12805           if test "x$cache" = xyes; then
12806             echo "wxUSE_STATBMP=$wxUSE_STATBMP" >> ${wx_arg_cache_file}.tmp
12807           fi
12808
12809           if test x"$enablestring" = xdisable; then
12810             if test $wxUSE_STATBMP = yes; then
12811               result=no
12812             else
12813               result=yes
12814             fi
12815           else
12816             result=$wxUSE_STATBMP
12817           fi
12818
12819           { echo "$as_me:$LINENO: result: $result" >&5
12820 echo "${ECHO_T}$result" >&6; }
12821
12822
12823           enablestring=
12824           defaultval=$wxUSE_ALL_FEATURES
12825           if test -z "$defaultval"; then
12826               if test x"$enablestring" = xdisable; then
12827                   defaultval=yes
12828               else
12829                   defaultval=no
12830               fi
12831           fi
12832
12833           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statbox" >&5
12834 echo $ECHO_N "checking for --${enablestring:-enable}-statbox... $ECHO_C" >&6; }
12835           # Check whether --enable-statbox was given.
12836 if test "${enable_statbox+set}" = set; then
12837   enableval=$enable_statbox;
12838                           if test "$enableval" = yes; then
12839                             wx_cv_use_statbox='wxUSE_STATBOX=yes'
12840                           else
12841                             wx_cv_use_statbox='wxUSE_STATBOX=no'
12842                           fi
12843                           cache=yes
12844
12845 else
12846
12847                           cache=no
12848                           LINE=`grep "^wxUSE_STATBOX=" ${wx_arg_cache_file}`
12849                           if test "x$LINE" != x ; then
12850                             eval "DEFAULT_$LINE"
12851                           fi
12852
12853                           wx_cv_use_statbox='wxUSE_STATBOX=${'DEFAULT_wxUSE_STATBOX":-$defaultval}"
12854
12855 fi
12856
12857
12858           eval "$wx_cv_use_statbox"
12859           if test "x$cache" = xyes; then
12860             echo "wxUSE_STATBOX=$wxUSE_STATBOX" >> ${wx_arg_cache_file}.tmp
12861           fi
12862
12863           if test x"$enablestring" = xdisable; then
12864             if test $wxUSE_STATBOX = yes; then
12865               result=no
12866             else
12867               result=yes
12868             fi
12869           else
12870             result=$wxUSE_STATBOX
12871           fi
12872
12873           { echo "$as_me:$LINENO: result: $result" >&5
12874 echo "${ECHO_T}$result" >&6; }
12875
12876
12877           enablestring=
12878           defaultval=$wxUSE_ALL_FEATURES
12879           if test -z "$defaultval"; then
12880               if test x"$enablestring" = xdisable; then
12881                   defaultval=yes
12882               else
12883                   defaultval=no
12884               fi
12885           fi
12886
12887           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statline" >&5
12888 echo $ECHO_N "checking for --${enablestring:-enable}-statline... $ECHO_C" >&6; }
12889           # Check whether --enable-statline was given.
12890 if test "${enable_statline+set}" = set; then
12891   enableval=$enable_statline;
12892                           if test "$enableval" = yes; then
12893                             wx_cv_use_statline='wxUSE_STATLINE=yes'
12894                           else
12895                             wx_cv_use_statline='wxUSE_STATLINE=no'
12896                           fi
12897                           cache=yes
12898
12899 else
12900
12901                           cache=no
12902                           LINE=`grep "^wxUSE_STATLINE=" ${wx_arg_cache_file}`
12903                           if test "x$LINE" != x ; then
12904                             eval "DEFAULT_$LINE"
12905                           fi
12906
12907                           wx_cv_use_statline='wxUSE_STATLINE=${'DEFAULT_wxUSE_STATLINE":-$defaultval}"
12908
12909 fi
12910
12911
12912           eval "$wx_cv_use_statline"
12913           if test "x$cache" = xyes; then
12914             echo "wxUSE_STATLINE=$wxUSE_STATLINE" >> ${wx_arg_cache_file}.tmp
12915           fi
12916
12917           if test x"$enablestring" = xdisable; then
12918             if test $wxUSE_STATLINE = yes; then
12919               result=no
12920             else
12921               result=yes
12922             fi
12923           else
12924             result=$wxUSE_STATLINE
12925           fi
12926
12927           { echo "$as_me:$LINENO: result: $result" >&5
12928 echo "${ECHO_T}$result" >&6; }
12929
12930
12931           enablestring=
12932           defaultval=$wxUSE_ALL_FEATURES
12933           if test -z "$defaultval"; then
12934               if test x"$enablestring" = xdisable; then
12935                   defaultval=yes
12936               else
12937                   defaultval=no
12938               fi
12939           fi
12940
12941           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-stattext" >&5
12942 echo $ECHO_N "checking for --${enablestring:-enable}-stattext... $ECHO_C" >&6; }
12943           # Check whether --enable-stattext was given.
12944 if test "${enable_stattext+set}" = set; then
12945   enableval=$enable_stattext;
12946                           if test "$enableval" = yes; then
12947                             wx_cv_use_stattext='wxUSE_STATTEXT=yes'
12948                           else
12949                             wx_cv_use_stattext='wxUSE_STATTEXT=no'
12950                           fi
12951                           cache=yes
12952
12953 else
12954
12955                           cache=no
12956                           LINE=`grep "^wxUSE_STATTEXT=" ${wx_arg_cache_file}`
12957                           if test "x$LINE" != x ; then
12958                             eval "DEFAULT_$LINE"
12959                           fi
12960
12961                           wx_cv_use_stattext='wxUSE_STATTEXT=${'DEFAULT_wxUSE_STATTEXT":-$defaultval}"
12962
12963 fi
12964
12965
12966           eval "$wx_cv_use_stattext"
12967           if test "x$cache" = xyes; then
12968             echo "wxUSE_STATTEXT=$wxUSE_STATTEXT" >> ${wx_arg_cache_file}.tmp
12969           fi
12970
12971           if test x"$enablestring" = xdisable; then
12972             if test $wxUSE_STATTEXT = yes; then
12973               result=no
12974             else
12975               result=yes
12976             fi
12977           else
12978             result=$wxUSE_STATTEXT
12979           fi
12980
12981           { echo "$as_me:$LINENO: result: $result" >&5
12982 echo "${ECHO_T}$result" >&6; }
12983
12984
12985           enablestring=
12986           defaultval=$wxUSE_ALL_FEATURES
12987           if test -z "$defaultval"; then
12988               if test x"$enablestring" = xdisable; then
12989                   defaultval=yes
12990               else
12991                   defaultval=no
12992               fi
12993           fi
12994
12995           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-statusbar" >&5
12996 echo $ECHO_N "checking for --${enablestring:-enable}-statusbar... $ECHO_C" >&6; }
12997           # Check whether --enable-statusbar was given.
12998 if test "${enable_statusbar+set}" = set; then
12999   enableval=$enable_statusbar;
13000                           if test "$enableval" = yes; then
13001                             wx_cv_use_statusbar='wxUSE_STATUSBAR=yes'
13002                           else
13003                             wx_cv_use_statusbar='wxUSE_STATUSBAR=no'
13004                           fi
13005                           cache=yes
13006
13007 else
13008
13009                           cache=no
13010                           LINE=`grep "^wxUSE_STATUSBAR=" ${wx_arg_cache_file}`
13011                           if test "x$LINE" != x ; then
13012                             eval "DEFAULT_$LINE"
13013                           fi
13014
13015                           wx_cv_use_statusbar='wxUSE_STATUSBAR=${'DEFAULT_wxUSE_STATUSBAR":-$defaultval}"
13016
13017 fi
13018
13019
13020           eval "$wx_cv_use_statusbar"
13021           if test "x$cache" = xyes; then
13022             echo "wxUSE_STATUSBAR=$wxUSE_STATUSBAR" >> ${wx_arg_cache_file}.tmp
13023           fi
13024
13025           if test x"$enablestring" = xdisable; then
13026             if test $wxUSE_STATUSBAR = yes; then
13027               result=no
13028             else
13029               result=yes
13030             fi
13031           else
13032             result=$wxUSE_STATUSBAR
13033           fi
13034
13035           { echo "$as_me:$LINENO: result: $result" >&5
13036 echo "${ECHO_T}$result" >&6; }
13037
13038
13039           enablestring=
13040           defaultval=$wxUSE_ALL_FEATURES
13041           if test -z "$defaultval"; then
13042               if test x"$enablestring" = xdisable; then
13043                   defaultval=yes
13044               else
13045                   defaultval=no
13046               fi
13047           fi
13048
13049           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tabdialog" >&5
13050 echo $ECHO_N "checking for --${enablestring:-enable}-tabdialog... $ECHO_C" >&6; }
13051           # Check whether --enable-tabdialog was given.
13052 if test "${enable_tabdialog+set}" = set; then
13053   enableval=$enable_tabdialog;
13054                           if test "$enableval" = yes; then
13055                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=yes'
13056                           else
13057                             wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=no'
13058                           fi
13059                           cache=yes
13060
13061 else
13062
13063                           cache=no
13064                           LINE=`grep "^wxUSE_TAB_DIALOG=" ${wx_arg_cache_file}`
13065                           if test "x$LINE" != x ; then
13066                             eval "DEFAULT_$LINE"
13067                           fi
13068
13069                           wx_cv_use_tabdialog='wxUSE_TAB_DIALOG=${'DEFAULT_wxUSE_TAB_DIALOG":-$defaultval}"
13070
13071 fi
13072
13073
13074           eval "$wx_cv_use_tabdialog"
13075           if test "x$cache" = xyes; then
13076             echo "wxUSE_TAB_DIALOG=$wxUSE_TAB_DIALOG" >> ${wx_arg_cache_file}.tmp
13077           fi
13078
13079           if test x"$enablestring" = xdisable; then
13080             if test $wxUSE_TAB_DIALOG = yes; then
13081               result=no
13082             else
13083               result=yes
13084             fi
13085           else
13086             result=$wxUSE_TAB_DIALOG
13087           fi
13088
13089           { echo "$as_me:$LINENO: result: $result" >&5
13090 echo "${ECHO_T}$result" >&6; }
13091
13092
13093           enablestring=
13094           defaultval=$wxUSE_ALL_FEATURES
13095           if test -z "$defaultval"; then
13096               if test x"$enablestring" = xdisable; then
13097                   defaultval=yes
13098               else
13099                   defaultval=no
13100               fi
13101           fi
13102
13103           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-taskbaricon" >&5
13104 echo $ECHO_N "checking for --${enablestring:-enable}-taskbaricon... $ECHO_C" >&6; }
13105           # Check whether --enable-taskbaricon was given.
13106 if test "${enable_taskbaricon+set}" = set; then
13107   enableval=$enable_taskbaricon;
13108                           if test "$enableval" = yes; then
13109                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=yes'
13110                           else
13111                             wx_cv_use_taskbaricon='wxUSE_TASKBARICON=no'
13112                           fi
13113                           cache=yes
13114
13115 else
13116
13117                           cache=no
13118                           LINE=`grep "^wxUSE_TASKBARICON=" ${wx_arg_cache_file}`
13119                           if test "x$LINE" != x ; then
13120                             eval "DEFAULT_$LINE"
13121                           fi
13122
13123                           wx_cv_use_taskbaricon='wxUSE_TASKBARICON=${'DEFAULT_wxUSE_TASKBARICON":-$defaultval}"
13124
13125 fi
13126
13127
13128           eval "$wx_cv_use_taskbaricon"
13129           if test "x$cache" = xyes; then
13130             echo "wxUSE_TASKBARICON=$wxUSE_TASKBARICON" >> ${wx_arg_cache_file}.tmp
13131           fi
13132
13133           if test x"$enablestring" = xdisable; then
13134             if test $wxUSE_TASKBARICON = yes; then
13135               result=no
13136             else
13137               result=yes
13138             fi
13139           else
13140             result=$wxUSE_TASKBARICON
13141           fi
13142
13143           { echo "$as_me:$LINENO: result: $result" >&5
13144 echo "${ECHO_T}$result" >&6; }
13145
13146
13147           enablestring=
13148           defaultval=$wxUSE_ALL_FEATURES
13149           if test -z "$defaultval"; then
13150               if test x"$enablestring" = xdisable; then
13151                   defaultval=yes
13152               else
13153                   defaultval=no
13154               fi
13155           fi
13156
13157           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textctrl" >&5
13158 echo $ECHO_N "checking for --${enablestring:-enable}-textctrl... $ECHO_C" >&6; }
13159           # Check whether --enable-textctrl was given.
13160 if test "${enable_textctrl+set}" = set; then
13161   enableval=$enable_textctrl;
13162                           if test "$enableval" = yes; then
13163                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=yes'
13164                           else
13165                             wx_cv_use_textctrl='wxUSE_TEXTCTRL=no'
13166                           fi
13167                           cache=yes
13168
13169 else
13170
13171                           cache=no
13172                           LINE=`grep "^wxUSE_TEXTCTRL=" ${wx_arg_cache_file}`
13173                           if test "x$LINE" != x ; then
13174                             eval "DEFAULT_$LINE"
13175                           fi
13176
13177                           wx_cv_use_textctrl='wxUSE_TEXTCTRL=${'DEFAULT_wxUSE_TEXTCTRL":-$defaultval}"
13178
13179 fi
13180
13181
13182           eval "$wx_cv_use_textctrl"
13183           if test "x$cache" = xyes; then
13184             echo "wxUSE_TEXTCTRL=$wxUSE_TEXTCTRL" >> ${wx_arg_cache_file}.tmp
13185           fi
13186
13187           if test x"$enablestring" = xdisable; then
13188             if test $wxUSE_TEXTCTRL = yes; then
13189               result=no
13190             else
13191               result=yes
13192             fi
13193           else
13194             result=$wxUSE_TEXTCTRL
13195           fi
13196
13197           { echo "$as_me:$LINENO: result: $result" >&5
13198 echo "${ECHO_T}$result" >&6; }
13199
13200
13201           enablestring=
13202           defaultval=$wxUSE_ALL_FEATURES
13203           if test -z "$defaultval"; then
13204               if test x"$enablestring" = xdisable; then
13205                   defaultval=yes
13206               else
13207                   defaultval=no
13208               fi
13209           fi
13210
13211           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-togglebtn" >&5
13212 echo $ECHO_N "checking for --${enablestring:-enable}-togglebtn... $ECHO_C" >&6; }
13213           # Check whether --enable-togglebtn was given.
13214 if test "${enable_togglebtn+set}" = set; then
13215   enableval=$enable_togglebtn;
13216                           if test "$enableval" = yes; then
13217                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=yes'
13218                           else
13219                             wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=no'
13220                           fi
13221                           cache=yes
13222
13223 else
13224
13225                           cache=no
13226                           LINE=`grep "^wxUSE_TOGGLEBTN=" ${wx_arg_cache_file}`
13227                           if test "x$LINE" != x ; then
13228                             eval "DEFAULT_$LINE"
13229                           fi
13230
13231                           wx_cv_use_togglebtn='wxUSE_TOGGLEBTN=${'DEFAULT_wxUSE_TOGGLEBTN":-$defaultval}"
13232
13233 fi
13234
13235
13236           eval "$wx_cv_use_togglebtn"
13237           if test "x$cache" = xyes; then
13238             echo "wxUSE_TOGGLEBTN=$wxUSE_TOGGLEBTN" >> ${wx_arg_cache_file}.tmp
13239           fi
13240
13241           if test x"$enablestring" = xdisable; then
13242             if test $wxUSE_TOGGLEBTN = yes; then
13243               result=no
13244             else
13245               result=yes
13246             fi
13247           else
13248             result=$wxUSE_TOGGLEBTN
13249           fi
13250
13251           { echo "$as_me:$LINENO: result: $result" >&5
13252 echo "${ECHO_T}$result" >&6; }
13253
13254
13255           enablestring=
13256           defaultval=$wxUSE_ALL_FEATURES
13257           if test -z "$defaultval"; then
13258               if test x"$enablestring" = xdisable; then
13259                   defaultval=yes
13260               else
13261                   defaultval=no
13262               fi
13263           fi
13264
13265           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbar" >&5
13266 echo $ECHO_N "checking for --${enablestring:-enable}-toolbar... $ECHO_C" >&6; }
13267           # Check whether --enable-toolbar was given.
13268 if test "${enable_toolbar+set}" = set; then
13269   enableval=$enable_toolbar;
13270                           if test "$enableval" = yes; then
13271                             wx_cv_use_toolbar='wxUSE_TOOLBAR=yes'
13272                           else
13273                             wx_cv_use_toolbar='wxUSE_TOOLBAR=no'
13274                           fi
13275                           cache=yes
13276
13277 else
13278
13279                           cache=no
13280                           LINE=`grep "^wxUSE_TOOLBAR=" ${wx_arg_cache_file}`
13281                           if test "x$LINE" != x ; then
13282                             eval "DEFAULT_$LINE"
13283                           fi
13284
13285                           wx_cv_use_toolbar='wxUSE_TOOLBAR=${'DEFAULT_wxUSE_TOOLBAR":-$defaultval}"
13286
13287 fi
13288
13289
13290           eval "$wx_cv_use_toolbar"
13291           if test "x$cache" = xyes; then
13292             echo "wxUSE_TOOLBAR=$wxUSE_TOOLBAR" >> ${wx_arg_cache_file}.tmp
13293           fi
13294
13295           if test x"$enablestring" = xdisable; then
13296             if test $wxUSE_TOOLBAR = yes; then
13297               result=no
13298             else
13299               result=yes
13300             fi
13301           else
13302             result=$wxUSE_TOOLBAR
13303           fi
13304
13305           { echo "$as_me:$LINENO: result: $result" >&5
13306 echo "${ECHO_T}$result" >&6; }
13307
13308
13309           enablestring=
13310           defaultval=$wxUSE_ALL_FEATURES
13311           if test -z "$defaultval"; then
13312               if test x"$enablestring" = xdisable; then
13313                   defaultval=yes
13314               else
13315                   defaultval=no
13316               fi
13317           fi
13318
13319           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tbarnative" >&5
13320 echo $ECHO_N "checking for --${enablestring:-enable}-tbarnative... $ECHO_C" >&6; }
13321           # Check whether --enable-tbarnative was given.
13322 if test "${enable_tbarnative+set}" = set; then
13323   enableval=$enable_tbarnative;
13324                           if test "$enableval" = yes; then
13325                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=yes'
13326                           else
13327                             wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=no'
13328                           fi
13329                           cache=yes
13330
13331 else
13332
13333                           cache=no
13334                           LINE=`grep "^wxUSE_TOOLBAR_NATIVE=" ${wx_arg_cache_file}`
13335                           if test "x$LINE" != x ; then
13336                             eval "DEFAULT_$LINE"
13337                           fi
13338
13339                           wx_cv_use_tbarnative='wxUSE_TOOLBAR_NATIVE=${'DEFAULT_wxUSE_TOOLBAR_NATIVE":-$defaultval}"
13340
13341 fi
13342
13343
13344           eval "$wx_cv_use_tbarnative"
13345           if test "x$cache" = xyes; then
13346             echo "wxUSE_TOOLBAR_NATIVE=$wxUSE_TOOLBAR_NATIVE" >> ${wx_arg_cache_file}.tmp
13347           fi
13348
13349           if test x"$enablestring" = xdisable; then
13350             if test $wxUSE_TOOLBAR_NATIVE = yes; then
13351               result=no
13352             else
13353               result=yes
13354             fi
13355           else
13356             result=$wxUSE_TOOLBAR_NATIVE
13357           fi
13358
13359           { echo "$as_me:$LINENO: result: $result" >&5
13360 echo "${ECHO_T}$result" >&6; }
13361
13362
13363           enablestring=
13364           defaultval=$wxUSE_ALL_FEATURES
13365           if test -z "$defaultval"; then
13366               if test x"$enablestring" = xdisable; then
13367                   defaultval=yes
13368               else
13369                   defaultval=no
13370               fi
13371           fi
13372
13373           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treebook" >&5
13374 echo $ECHO_N "checking for --${enablestring:-enable}-treebook... $ECHO_C" >&6; }
13375           # Check whether --enable-treebook was given.
13376 if test "${enable_treebook+set}" = set; then
13377   enableval=$enable_treebook;
13378                           if test "$enableval" = yes; then
13379                             wx_cv_use_treebook='wxUSE_TREEBOOK=yes'
13380                           else
13381                             wx_cv_use_treebook='wxUSE_TREEBOOK=no'
13382                           fi
13383                           cache=yes
13384
13385 else
13386
13387                           cache=no
13388                           LINE=`grep "^wxUSE_TREEBOOK=" ${wx_arg_cache_file}`
13389                           if test "x$LINE" != x ; then
13390                             eval "DEFAULT_$LINE"
13391                           fi
13392
13393                           wx_cv_use_treebook='wxUSE_TREEBOOK=${'DEFAULT_wxUSE_TREEBOOK":-$defaultval}"
13394
13395 fi
13396
13397
13398           eval "$wx_cv_use_treebook"
13399           if test "x$cache" = xyes; then
13400             echo "wxUSE_TREEBOOK=$wxUSE_TREEBOOK" >> ${wx_arg_cache_file}.tmp
13401           fi
13402
13403           if test x"$enablestring" = xdisable; then
13404             if test $wxUSE_TREEBOOK = yes; then
13405               result=no
13406             else
13407               result=yes
13408             fi
13409           else
13410             result=$wxUSE_TREEBOOK
13411           fi
13412
13413           { echo "$as_me:$LINENO: result: $result" >&5
13414 echo "${ECHO_T}$result" >&6; }
13415
13416
13417           enablestring=
13418           defaultval=$wxUSE_ALL_FEATURES
13419           if test -z "$defaultval"; then
13420               if test x"$enablestring" = xdisable; then
13421                   defaultval=yes
13422               else
13423                   defaultval=no
13424               fi
13425           fi
13426
13427           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-toolbook" >&5
13428 echo $ECHO_N "checking for --${enablestring:-enable}-toolbook... $ECHO_C" >&6; }
13429           # Check whether --enable-toolbook was given.
13430 if test "${enable_toolbook+set}" = set; then
13431   enableval=$enable_toolbook;
13432                           if test "$enableval" = yes; then
13433                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=yes'
13434                           else
13435                             wx_cv_use_toolbook='wxUSE_TOOLBOOK=no'
13436                           fi
13437                           cache=yes
13438
13439 else
13440
13441                           cache=no
13442                           LINE=`grep "^wxUSE_TOOLBOOK=" ${wx_arg_cache_file}`
13443                           if test "x$LINE" != x ; then
13444                             eval "DEFAULT_$LINE"
13445                           fi
13446
13447                           wx_cv_use_toolbook='wxUSE_TOOLBOOK=${'DEFAULT_wxUSE_TOOLBOOK":-$defaultval}"
13448
13449 fi
13450
13451
13452           eval "$wx_cv_use_toolbook"
13453           if test "x$cache" = xyes; then
13454             echo "wxUSE_TOOLBOOK=$wxUSE_TOOLBOOK" >> ${wx_arg_cache_file}.tmp
13455           fi
13456
13457           if test x"$enablestring" = xdisable; then
13458             if test $wxUSE_TOOLBOOK = yes; then
13459               result=no
13460             else
13461               result=yes
13462             fi
13463           else
13464             result=$wxUSE_TOOLBOOK
13465           fi
13466
13467           { echo "$as_me:$LINENO: result: $result" >&5
13468 echo "${ECHO_T}$result" >&6; }
13469
13470
13471           enablestring=
13472           defaultval=$wxUSE_ALL_FEATURES
13473           if test -z "$defaultval"; then
13474               if test x"$enablestring" = xdisable; then
13475                   defaultval=yes
13476               else
13477                   defaultval=no
13478               fi
13479           fi
13480
13481           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-treectrl" >&5
13482 echo $ECHO_N "checking for --${enablestring:-enable}-treectrl... $ECHO_C" >&6; }
13483           # Check whether --enable-treectrl was given.
13484 if test "${enable_treectrl+set}" = set; then
13485   enableval=$enable_treectrl;
13486                           if test "$enableval" = yes; then
13487                             wx_cv_use_treectrl='wxUSE_TREECTRL=yes'
13488                           else
13489                             wx_cv_use_treectrl='wxUSE_TREECTRL=no'
13490                           fi
13491                           cache=yes
13492
13493 else
13494
13495                           cache=no
13496                           LINE=`grep "^wxUSE_TREECTRL=" ${wx_arg_cache_file}`
13497                           if test "x$LINE" != x ; then
13498                             eval "DEFAULT_$LINE"
13499                           fi
13500
13501                           wx_cv_use_treectrl='wxUSE_TREECTRL=${'DEFAULT_wxUSE_TREECTRL":-$defaultval}"
13502
13503 fi
13504
13505
13506           eval "$wx_cv_use_treectrl"
13507           if test "x$cache" = xyes; then
13508             echo "wxUSE_TREECTRL=$wxUSE_TREECTRL" >> ${wx_arg_cache_file}.tmp
13509           fi
13510
13511           if test x"$enablestring" = xdisable; then
13512             if test $wxUSE_TREECTRL = yes; then
13513               result=no
13514             else
13515               result=yes
13516             fi
13517           else
13518             result=$wxUSE_TREECTRL
13519           fi
13520
13521           { echo "$as_me:$LINENO: result: $result" >&5
13522 echo "${ECHO_T}$result" >&6; }
13523
13524
13525           enablestring=
13526           defaultval=$wxUSE_ALL_FEATURES
13527           if test -z "$defaultval"; then
13528               if test x"$enablestring" = xdisable; then
13529                   defaultval=yes
13530               else
13531                   defaultval=no
13532               fi
13533           fi
13534
13535           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipwindow" >&5
13536 echo $ECHO_N "checking for --${enablestring:-enable}-tipwindow... $ECHO_C" >&6; }
13537           # Check whether --enable-tipwindow was given.
13538 if test "${enable_tipwindow+set}" = set; then
13539   enableval=$enable_tipwindow;
13540                           if test "$enableval" = yes; then
13541                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=yes'
13542                           else
13543                             wx_cv_use_tipwindow='wxUSE_TIPWINDOW=no'
13544                           fi
13545                           cache=yes
13546
13547 else
13548
13549                           cache=no
13550                           LINE=`grep "^wxUSE_TIPWINDOW=" ${wx_arg_cache_file}`
13551                           if test "x$LINE" != x ; then
13552                             eval "DEFAULT_$LINE"
13553                           fi
13554
13555                           wx_cv_use_tipwindow='wxUSE_TIPWINDOW=${'DEFAULT_wxUSE_TIPWINDOW":-$defaultval}"
13556
13557 fi
13558
13559
13560           eval "$wx_cv_use_tipwindow"
13561           if test "x$cache" = xyes; then
13562             echo "wxUSE_TIPWINDOW=$wxUSE_TIPWINDOW" >> ${wx_arg_cache_file}.tmp
13563           fi
13564
13565           if test x"$enablestring" = xdisable; then
13566             if test $wxUSE_TIPWINDOW = yes; then
13567               result=no
13568             else
13569               result=yes
13570             fi
13571           else
13572             result=$wxUSE_TIPWINDOW
13573           fi
13574
13575           { echo "$as_me:$LINENO: result: $result" >&5
13576 echo "${ECHO_T}$result" >&6; }
13577
13578
13579           enablestring=
13580           defaultval=$wxUSE_ALL_FEATURES
13581           if test -z "$defaultval"; then
13582               if test x"$enablestring" = xdisable; then
13583                   defaultval=yes
13584               else
13585                   defaultval=no
13586               fi
13587           fi
13588
13589           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-popupwin" >&5
13590 echo $ECHO_N "checking for --${enablestring:-enable}-popupwin... $ECHO_C" >&6; }
13591           # Check whether --enable-popupwin was given.
13592 if test "${enable_popupwin+set}" = set; then
13593   enableval=$enable_popupwin;
13594                           if test "$enableval" = yes; then
13595                             wx_cv_use_popupwin='wxUSE_POPUPWIN=yes'
13596                           else
13597                             wx_cv_use_popupwin='wxUSE_POPUPWIN=no'
13598                           fi
13599                           cache=yes
13600
13601 else
13602
13603                           cache=no
13604                           LINE=`grep "^wxUSE_POPUPWIN=" ${wx_arg_cache_file}`
13605                           if test "x$LINE" != x ; then
13606                             eval "DEFAULT_$LINE"
13607                           fi
13608
13609                           wx_cv_use_popupwin='wxUSE_POPUPWIN=${'DEFAULT_wxUSE_POPUPWIN":-$defaultval}"
13610
13611 fi
13612
13613
13614           eval "$wx_cv_use_popupwin"
13615           if test "x$cache" = xyes; then
13616             echo "wxUSE_POPUPWIN=$wxUSE_POPUPWIN" >> ${wx_arg_cache_file}.tmp
13617           fi
13618
13619           if test x"$enablestring" = xdisable; then
13620             if test $wxUSE_POPUPWIN = yes; then
13621               result=no
13622             else
13623               result=yes
13624             fi
13625           else
13626             result=$wxUSE_POPUPWIN
13627           fi
13628
13629           { echo "$as_me:$LINENO: result: $result" >&5
13630 echo "${ECHO_T}$result" >&6; }
13631
13632
13633
13634
13635           enablestring=
13636           defaultval=$wxUSE_ALL_FEATURES
13637           if test -z "$defaultval"; then
13638               if test x"$enablestring" = xdisable; then
13639                   defaultval=yes
13640               else
13641                   defaultval=no
13642               fi
13643           fi
13644
13645           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-commondlg" >&5
13646 echo $ECHO_N "checking for --${enablestring:-enable}-commondlg... $ECHO_C" >&6; }
13647           # Check whether --enable-commondlg was given.
13648 if test "${enable_commondlg+set}" = set; then
13649   enableval=$enable_commondlg;
13650                           if test "$enableval" = yes; then
13651                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=yes'
13652                           else
13653                             wx_cv_use_commondlg='wxUSE_COMMONDLGS=no'
13654                           fi
13655                           cache=yes
13656
13657 else
13658
13659                           cache=no
13660                           LINE=`grep "^wxUSE_COMMONDLGS=" ${wx_arg_cache_file}`
13661                           if test "x$LINE" != x ; then
13662                             eval "DEFAULT_$LINE"
13663                           fi
13664
13665                           wx_cv_use_commondlg='wxUSE_COMMONDLGS=${'DEFAULT_wxUSE_COMMONDLGS":-$defaultval}"
13666
13667 fi
13668
13669
13670           eval "$wx_cv_use_commondlg"
13671           if test "x$cache" = xyes; then
13672             echo "wxUSE_COMMONDLGS=$wxUSE_COMMONDLGS" >> ${wx_arg_cache_file}.tmp
13673           fi
13674
13675           if test x"$enablestring" = xdisable; then
13676             if test $wxUSE_COMMONDLGS = yes; then
13677               result=no
13678             else
13679               result=yes
13680             fi
13681           else
13682             result=$wxUSE_COMMONDLGS
13683           fi
13684
13685           { echo "$as_me:$LINENO: result: $result" >&5
13686 echo "${ECHO_T}$result" >&6; }
13687
13688
13689           enablestring=
13690           defaultval=$wxUSE_ALL_FEATURES
13691           if test -z "$defaultval"; then
13692               if test x"$enablestring" = xdisable; then
13693                   defaultval=yes
13694               else
13695                   defaultval=no
13696               fi
13697           fi
13698
13699           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-aboutdlg" >&5
13700 echo $ECHO_N "checking for --${enablestring:-enable}-aboutdlg... $ECHO_C" >&6; }
13701           # Check whether --enable-aboutdlg was given.
13702 if test "${enable_aboutdlg+set}" = set; then
13703   enableval=$enable_aboutdlg;
13704                           if test "$enableval" = yes; then
13705                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=yes'
13706                           else
13707                             wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=no'
13708                           fi
13709                           cache=yes
13710
13711 else
13712
13713                           cache=no
13714                           LINE=`grep "^wxUSE_ABOUTDLG=" ${wx_arg_cache_file}`
13715                           if test "x$LINE" != x ; then
13716                             eval "DEFAULT_$LINE"
13717                           fi
13718
13719                           wx_cv_use_aboutdlg='wxUSE_ABOUTDLG=${'DEFAULT_wxUSE_ABOUTDLG":-$defaultval}"
13720
13721 fi
13722
13723
13724           eval "$wx_cv_use_aboutdlg"
13725           if test "x$cache" = xyes; then
13726             echo "wxUSE_ABOUTDLG=$wxUSE_ABOUTDLG" >> ${wx_arg_cache_file}.tmp
13727           fi
13728
13729           if test x"$enablestring" = xdisable; then
13730             if test $wxUSE_ABOUTDLG = yes; then
13731               result=no
13732             else
13733               result=yes
13734             fi
13735           else
13736             result=$wxUSE_ABOUTDLG
13737           fi
13738
13739           { echo "$as_me:$LINENO: result: $result" >&5
13740 echo "${ECHO_T}$result" >&6; }
13741
13742
13743           enablestring=
13744           defaultval=$wxUSE_ALL_FEATURES
13745           if test -z "$defaultval"; then
13746               if test x"$enablestring" = xdisable; then
13747                   defaultval=yes
13748               else
13749                   defaultval=no
13750               fi
13751           fi
13752
13753           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-choicedlg" >&5
13754 echo $ECHO_N "checking for --${enablestring:-enable}-choicedlg... $ECHO_C" >&6; }
13755           # Check whether --enable-choicedlg was given.
13756 if test "${enable_choicedlg+set}" = set; then
13757   enableval=$enable_choicedlg;
13758                           if test "$enableval" = yes; then
13759                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=yes'
13760                           else
13761                             wx_cv_use_choicedlg='wxUSE_CHOICEDLG=no'
13762                           fi
13763                           cache=yes
13764
13765 else
13766
13767                           cache=no
13768                           LINE=`grep "^wxUSE_CHOICEDLG=" ${wx_arg_cache_file}`
13769                           if test "x$LINE" != x ; then
13770                             eval "DEFAULT_$LINE"
13771                           fi
13772
13773                           wx_cv_use_choicedlg='wxUSE_CHOICEDLG=${'DEFAULT_wxUSE_CHOICEDLG":-$defaultval}"
13774
13775 fi
13776
13777
13778           eval "$wx_cv_use_choicedlg"
13779           if test "x$cache" = xyes; then
13780             echo "wxUSE_CHOICEDLG=$wxUSE_CHOICEDLG" >> ${wx_arg_cache_file}.tmp
13781           fi
13782
13783           if test x"$enablestring" = xdisable; then
13784             if test $wxUSE_CHOICEDLG = yes; then
13785               result=no
13786             else
13787               result=yes
13788             fi
13789           else
13790             result=$wxUSE_CHOICEDLG
13791           fi
13792
13793           { echo "$as_me:$LINENO: result: $result" >&5
13794 echo "${ECHO_T}$result" >&6; }
13795
13796
13797           enablestring=
13798           defaultval=$wxUSE_ALL_FEATURES
13799           if test -z "$defaultval"; then
13800               if test x"$enablestring" = xdisable; then
13801                   defaultval=yes
13802               else
13803                   defaultval=no
13804               fi
13805           fi
13806
13807           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-coldlg" >&5
13808 echo $ECHO_N "checking for --${enablestring:-enable}-coldlg... $ECHO_C" >&6; }
13809           # Check whether --enable-coldlg was given.
13810 if test "${enable_coldlg+set}" = set; then
13811   enableval=$enable_coldlg;
13812                           if test "$enableval" = yes; then
13813                             wx_cv_use_coldlg='wxUSE_COLOURDLG=yes'
13814                           else
13815                             wx_cv_use_coldlg='wxUSE_COLOURDLG=no'
13816                           fi
13817                           cache=yes
13818
13819 else
13820
13821                           cache=no
13822                           LINE=`grep "^wxUSE_COLOURDLG=" ${wx_arg_cache_file}`
13823                           if test "x$LINE" != x ; then
13824                             eval "DEFAULT_$LINE"
13825                           fi
13826
13827                           wx_cv_use_coldlg='wxUSE_COLOURDLG=${'DEFAULT_wxUSE_COLOURDLG":-$defaultval}"
13828
13829 fi
13830
13831
13832           eval "$wx_cv_use_coldlg"
13833           if test "x$cache" = xyes; then
13834             echo "wxUSE_COLOURDLG=$wxUSE_COLOURDLG" >> ${wx_arg_cache_file}.tmp
13835           fi
13836
13837           if test x"$enablestring" = xdisable; then
13838             if test $wxUSE_COLOURDLG = yes; then
13839               result=no
13840             else
13841               result=yes
13842             fi
13843           else
13844             result=$wxUSE_COLOURDLG
13845           fi
13846
13847           { echo "$as_me:$LINENO: result: $result" >&5
13848 echo "${ECHO_T}$result" >&6; }
13849
13850
13851           enablestring=
13852           defaultval=$wxUSE_ALL_FEATURES
13853           if test -z "$defaultval"; then
13854               if test x"$enablestring" = xdisable; then
13855                   defaultval=yes
13856               else
13857                   defaultval=no
13858               fi
13859           fi
13860
13861           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-filedlg" >&5
13862 echo $ECHO_N "checking for --${enablestring:-enable}-filedlg... $ECHO_C" >&6; }
13863           # Check whether --enable-filedlg was given.
13864 if test "${enable_filedlg+set}" = set; then
13865   enableval=$enable_filedlg;
13866                           if test "$enableval" = yes; then
13867                             wx_cv_use_filedlg='wxUSE_FILEDLG=yes'
13868                           else
13869                             wx_cv_use_filedlg='wxUSE_FILEDLG=no'
13870                           fi
13871                           cache=yes
13872
13873 else
13874
13875                           cache=no
13876                           LINE=`grep "^wxUSE_FILEDLG=" ${wx_arg_cache_file}`
13877                           if test "x$LINE" != x ; then
13878                             eval "DEFAULT_$LINE"
13879                           fi
13880
13881                           wx_cv_use_filedlg='wxUSE_FILEDLG=${'DEFAULT_wxUSE_FILEDLG":-$defaultval}"
13882
13883 fi
13884
13885
13886           eval "$wx_cv_use_filedlg"
13887           if test "x$cache" = xyes; then
13888             echo "wxUSE_FILEDLG=$wxUSE_FILEDLG" >> ${wx_arg_cache_file}.tmp
13889           fi
13890
13891           if test x"$enablestring" = xdisable; then
13892             if test $wxUSE_FILEDLG = yes; then
13893               result=no
13894             else
13895               result=yes
13896             fi
13897           else
13898             result=$wxUSE_FILEDLG
13899           fi
13900
13901           { echo "$as_me:$LINENO: result: $result" >&5
13902 echo "${ECHO_T}$result" >&6; }
13903
13904
13905           enablestring=
13906           defaultval=$wxUSE_ALL_FEATURES
13907           if test -z "$defaultval"; then
13908               if test x"$enablestring" = xdisable; then
13909                   defaultval=yes
13910               else
13911                   defaultval=no
13912               fi
13913           fi
13914
13915           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-finddlg" >&5
13916 echo $ECHO_N "checking for --${enablestring:-enable}-finddlg... $ECHO_C" >&6; }
13917           # Check whether --enable-finddlg was given.
13918 if test "${enable_finddlg+set}" = set; then
13919   enableval=$enable_finddlg;
13920                           if test "$enableval" = yes; then
13921                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=yes'
13922                           else
13923                             wx_cv_use_finddlg='wxUSE_FINDREPLDLG=no'
13924                           fi
13925                           cache=yes
13926
13927 else
13928
13929                           cache=no
13930                           LINE=`grep "^wxUSE_FINDREPLDLG=" ${wx_arg_cache_file}`
13931                           if test "x$LINE" != x ; then
13932                             eval "DEFAULT_$LINE"
13933                           fi
13934
13935                           wx_cv_use_finddlg='wxUSE_FINDREPLDLG=${'DEFAULT_wxUSE_FINDREPLDLG":-$defaultval}"
13936
13937 fi
13938
13939
13940           eval "$wx_cv_use_finddlg"
13941           if test "x$cache" = xyes; then
13942             echo "wxUSE_FINDREPLDLG=$wxUSE_FINDREPLDLG" >> ${wx_arg_cache_file}.tmp
13943           fi
13944
13945           if test x"$enablestring" = xdisable; then
13946             if test $wxUSE_FINDREPLDLG = yes; then
13947               result=no
13948             else
13949               result=yes
13950             fi
13951           else
13952             result=$wxUSE_FINDREPLDLG
13953           fi
13954
13955           { echo "$as_me:$LINENO: result: $result" >&5
13956 echo "${ECHO_T}$result" >&6; }
13957
13958
13959           enablestring=
13960           defaultval=$wxUSE_ALL_FEATURES
13961           if test -z "$defaultval"; then
13962               if test x"$enablestring" = xdisable; then
13963                   defaultval=yes
13964               else
13965                   defaultval=no
13966               fi
13967           fi
13968
13969           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-fontdlg" >&5
13970 echo $ECHO_N "checking for --${enablestring:-enable}-fontdlg... $ECHO_C" >&6; }
13971           # Check whether --enable-fontdlg was given.
13972 if test "${enable_fontdlg+set}" = set; then
13973   enableval=$enable_fontdlg;
13974                           if test "$enableval" = yes; then
13975                             wx_cv_use_fontdlg='wxUSE_FONTDLG=yes'
13976                           else
13977                             wx_cv_use_fontdlg='wxUSE_FONTDLG=no'
13978                           fi
13979                           cache=yes
13980
13981 else
13982
13983                           cache=no
13984                           LINE=`grep "^wxUSE_FONTDLG=" ${wx_arg_cache_file}`
13985                           if test "x$LINE" != x ; then
13986                             eval "DEFAULT_$LINE"
13987                           fi
13988
13989                           wx_cv_use_fontdlg='wxUSE_FONTDLG=${'DEFAULT_wxUSE_FONTDLG":-$defaultval}"
13990
13991 fi
13992
13993
13994           eval "$wx_cv_use_fontdlg"
13995           if test "x$cache" = xyes; then
13996             echo "wxUSE_FONTDLG=$wxUSE_FONTDLG" >> ${wx_arg_cache_file}.tmp
13997           fi
13998
13999           if test x"$enablestring" = xdisable; then
14000             if test $wxUSE_FONTDLG = yes; then
14001               result=no
14002             else
14003               result=yes
14004             fi
14005           else
14006             result=$wxUSE_FONTDLG
14007           fi
14008
14009           { echo "$as_me:$LINENO: result: $result" >&5
14010 echo "${ECHO_T}$result" >&6; }
14011
14012
14013           enablestring=
14014           defaultval=$wxUSE_ALL_FEATURES
14015           if test -z "$defaultval"; then
14016               if test x"$enablestring" = xdisable; then
14017                   defaultval=yes
14018               else
14019                   defaultval=no
14020               fi
14021           fi
14022
14023           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dirdlg" >&5
14024 echo $ECHO_N "checking for --${enablestring:-enable}-dirdlg... $ECHO_C" >&6; }
14025           # Check whether --enable-dirdlg was given.
14026 if test "${enable_dirdlg+set}" = set; then
14027   enableval=$enable_dirdlg;
14028                           if test "$enableval" = yes; then
14029                             wx_cv_use_dirdlg='wxUSE_DIRDLG=yes'
14030                           else
14031                             wx_cv_use_dirdlg='wxUSE_DIRDLG=no'
14032                           fi
14033                           cache=yes
14034
14035 else
14036
14037                           cache=no
14038                           LINE=`grep "^wxUSE_DIRDLG=" ${wx_arg_cache_file}`
14039                           if test "x$LINE" != x ; then
14040                             eval "DEFAULT_$LINE"
14041                           fi
14042
14043                           wx_cv_use_dirdlg='wxUSE_DIRDLG=${'DEFAULT_wxUSE_DIRDLG":-$defaultval}"
14044
14045 fi
14046
14047
14048           eval "$wx_cv_use_dirdlg"
14049           if test "x$cache" = xyes; then
14050             echo "wxUSE_DIRDLG=$wxUSE_DIRDLG" >> ${wx_arg_cache_file}.tmp
14051           fi
14052
14053           if test x"$enablestring" = xdisable; then
14054             if test $wxUSE_DIRDLG = yes; then
14055               result=no
14056             else
14057               result=yes
14058             fi
14059           else
14060             result=$wxUSE_DIRDLG
14061           fi
14062
14063           { echo "$as_me:$LINENO: result: $result" >&5
14064 echo "${ECHO_T}$result" >&6; }
14065
14066
14067           enablestring=
14068           defaultval=$wxUSE_ALL_FEATURES
14069           if test -z "$defaultval"; then
14070               if test x"$enablestring" = xdisable; then
14071                   defaultval=yes
14072               else
14073                   defaultval=no
14074               fi
14075           fi
14076
14077           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-msgdlg" >&5
14078 echo $ECHO_N "checking for --${enablestring:-enable}-msgdlg... $ECHO_C" >&6; }
14079           # Check whether --enable-msgdlg was given.
14080 if test "${enable_msgdlg+set}" = set; then
14081   enableval=$enable_msgdlg;
14082                           if test "$enableval" = yes; then
14083                             wx_cv_use_msgdlg='wxUSE_MSGDLG=yes'
14084                           else
14085                             wx_cv_use_msgdlg='wxUSE_MSGDLG=no'
14086                           fi
14087                           cache=yes
14088
14089 else
14090
14091                           cache=no
14092                           LINE=`grep "^wxUSE_MSGDLG=" ${wx_arg_cache_file}`
14093                           if test "x$LINE" != x ; then
14094                             eval "DEFAULT_$LINE"
14095                           fi
14096
14097                           wx_cv_use_msgdlg='wxUSE_MSGDLG=${'DEFAULT_wxUSE_MSGDLG":-$defaultval}"
14098
14099 fi
14100
14101
14102           eval "$wx_cv_use_msgdlg"
14103           if test "x$cache" = xyes; then
14104             echo "wxUSE_MSGDLG=$wxUSE_MSGDLG" >> ${wx_arg_cache_file}.tmp
14105           fi
14106
14107           if test x"$enablestring" = xdisable; then
14108             if test $wxUSE_MSGDLG = yes; then
14109               result=no
14110             else
14111               result=yes
14112             fi
14113           else
14114             result=$wxUSE_MSGDLG
14115           fi
14116
14117           { echo "$as_me:$LINENO: result: $result" >&5
14118 echo "${ECHO_T}$result" >&6; }
14119
14120
14121           enablestring=
14122           defaultval=$wxUSE_ALL_FEATURES
14123           if test -z "$defaultval"; then
14124               if test x"$enablestring" = xdisable; then
14125                   defaultval=yes
14126               else
14127                   defaultval=no
14128               fi
14129           fi
14130
14131           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-numberdlg" >&5
14132 echo $ECHO_N "checking for --${enablestring:-enable}-numberdlg... $ECHO_C" >&6; }
14133           # Check whether --enable-numberdlg was given.
14134 if test "${enable_numberdlg+set}" = set; then
14135   enableval=$enable_numberdlg;
14136                           if test "$enableval" = yes; then
14137                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=yes'
14138                           else
14139                             wx_cv_use_numberdlg='wxUSE_NUMBERDLG=no'
14140                           fi
14141                           cache=yes
14142
14143 else
14144
14145                           cache=no
14146                           LINE=`grep "^wxUSE_NUMBERDLG=" ${wx_arg_cache_file}`
14147                           if test "x$LINE" != x ; then
14148                             eval "DEFAULT_$LINE"
14149                           fi
14150
14151                           wx_cv_use_numberdlg='wxUSE_NUMBERDLG=${'DEFAULT_wxUSE_NUMBERDLG":-$defaultval}"
14152
14153 fi
14154
14155
14156           eval "$wx_cv_use_numberdlg"
14157           if test "x$cache" = xyes; then
14158             echo "wxUSE_NUMBERDLG=$wxUSE_NUMBERDLG" >> ${wx_arg_cache_file}.tmp
14159           fi
14160
14161           if test x"$enablestring" = xdisable; then
14162             if test $wxUSE_NUMBERDLG = yes; then
14163               result=no
14164             else
14165               result=yes
14166             fi
14167           else
14168             result=$wxUSE_NUMBERDLG
14169           fi
14170
14171           { echo "$as_me:$LINENO: result: $result" >&5
14172 echo "${ECHO_T}$result" >&6; }
14173
14174
14175           enablestring=
14176           defaultval=$wxUSE_ALL_FEATURES
14177           if test -z "$defaultval"; then
14178               if test x"$enablestring" = xdisable; then
14179                   defaultval=yes
14180               else
14181                   defaultval=no
14182               fi
14183           fi
14184
14185           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splash" >&5
14186 echo $ECHO_N "checking for --${enablestring:-enable}-splash... $ECHO_C" >&6; }
14187           # Check whether --enable-splash was given.
14188 if test "${enable_splash+set}" = set; then
14189   enableval=$enable_splash;
14190                           if test "$enableval" = yes; then
14191                             wx_cv_use_splash='wxUSE_SPLASH=yes'
14192                           else
14193                             wx_cv_use_splash='wxUSE_SPLASH=no'
14194                           fi
14195                           cache=yes
14196
14197 else
14198
14199                           cache=no
14200                           LINE=`grep "^wxUSE_SPLASH=" ${wx_arg_cache_file}`
14201                           if test "x$LINE" != x ; then
14202                             eval "DEFAULT_$LINE"
14203                           fi
14204
14205                           wx_cv_use_splash='wxUSE_SPLASH=${'DEFAULT_wxUSE_SPLASH":-$defaultval}"
14206
14207 fi
14208
14209
14210           eval "$wx_cv_use_splash"
14211           if test "x$cache" = xyes; then
14212             echo "wxUSE_SPLASH=$wxUSE_SPLASH" >> ${wx_arg_cache_file}.tmp
14213           fi
14214
14215           if test x"$enablestring" = xdisable; then
14216             if test $wxUSE_SPLASH = yes; then
14217               result=no
14218             else
14219               result=yes
14220             fi
14221           else
14222             result=$wxUSE_SPLASH
14223           fi
14224
14225           { echo "$as_me:$LINENO: result: $result" >&5
14226 echo "${ECHO_T}$result" >&6; }
14227
14228
14229           enablestring=
14230           defaultval=$wxUSE_ALL_FEATURES
14231           if test -z "$defaultval"; then
14232               if test x"$enablestring" = xdisable; then
14233                   defaultval=yes
14234               else
14235                   defaultval=no
14236               fi
14237           fi
14238
14239           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-textdlg" >&5
14240 echo $ECHO_N "checking for --${enablestring:-enable}-textdlg... $ECHO_C" >&6; }
14241           # Check whether --enable-textdlg was given.
14242 if test "${enable_textdlg+set}" = set; then
14243   enableval=$enable_textdlg;
14244                           if test "$enableval" = yes; then
14245                             wx_cv_use_textdlg='wxUSE_TEXTDLG=yes'
14246                           else
14247                             wx_cv_use_textdlg='wxUSE_TEXTDLG=no'
14248                           fi
14249                           cache=yes
14250
14251 else
14252
14253                           cache=no
14254                           LINE=`grep "^wxUSE_TEXTDLG=" ${wx_arg_cache_file}`
14255                           if test "x$LINE" != x ; then
14256                             eval "DEFAULT_$LINE"
14257                           fi
14258
14259                           wx_cv_use_textdlg='wxUSE_TEXTDLG=${'DEFAULT_wxUSE_TEXTDLG":-$defaultval}"
14260
14261 fi
14262
14263
14264           eval "$wx_cv_use_textdlg"
14265           if test "x$cache" = xyes; then
14266             echo "wxUSE_TEXTDLG=$wxUSE_TEXTDLG" >> ${wx_arg_cache_file}.tmp
14267           fi
14268
14269           if test x"$enablestring" = xdisable; then
14270             if test $wxUSE_TEXTDLG = yes; then
14271               result=no
14272             else
14273               result=yes
14274             fi
14275           else
14276             result=$wxUSE_TEXTDLG
14277           fi
14278
14279           { echo "$as_me:$LINENO: result: $result" >&5
14280 echo "${ECHO_T}$result" >&6; }
14281
14282
14283           enablestring=
14284           defaultval=$wxUSE_ALL_FEATURES
14285           if test -z "$defaultval"; then
14286               if test x"$enablestring" = xdisable; then
14287                   defaultval=yes
14288               else
14289                   defaultval=no
14290               fi
14291           fi
14292
14293           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tipdlg" >&5
14294 echo $ECHO_N "checking for --${enablestring:-enable}-tipdlg... $ECHO_C" >&6; }
14295           # Check whether --enable-tipdlg was given.
14296 if test "${enable_tipdlg+set}" = set; then
14297   enableval=$enable_tipdlg;
14298                           if test "$enableval" = yes; then
14299                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=yes'
14300                           else
14301                             wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=no'
14302                           fi
14303                           cache=yes
14304
14305 else
14306
14307                           cache=no
14308                           LINE=`grep "^wxUSE_STARTUP_TIPS=" ${wx_arg_cache_file}`
14309                           if test "x$LINE" != x ; then
14310                             eval "DEFAULT_$LINE"
14311                           fi
14312
14313                           wx_cv_use_tipdlg='wxUSE_STARTUP_TIPS=${'DEFAULT_wxUSE_STARTUP_TIPS":-$defaultval}"
14314
14315 fi
14316
14317
14318           eval "$wx_cv_use_tipdlg"
14319           if test "x$cache" = xyes; then
14320             echo "wxUSE_STARTUP_TIPS=$wxUSE_STARTUP_TIPS" >> ${wx_arg_cache_file}.tmp
14321           fi
14322
14323           if test x"$enablestring" = xdisable; then
14324             if test $wxUSE_STARTUP_TIPS = yes; then
14325               result=no
14326             else
14327               result=yes
14328             fi
14329           else
14330             result=$wxUSE_STARTUP_TIPS
14331           fi
14332
14333           { echo "$as_me:$LINENO: result: $result" >&5
14334 echo "${ECHO_T}$result" >&6; }
14335
14336
14337           enablestring=
14338           defaultval=$wxUSE_ALL_FEATURES
14339           if test -z "$defaultval"; then
14340               if test x"$enablestring" = xdisable; then
14341                   defaultval=yes
14342               else
14343                   defaultval=no
14344               fi
14345           fi
14346
14347           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-progressdlg" >&5
14348 echo $ECHO_N "checking for --${enablestring:-enable}-progressdlg... $ECHO_C" >&6; }
14349           # Check whether --enable-progressdlg was given.
14350 if test "${enable_progressdlg+set}" = set; then
14351   enableval=$enable_progressdlg;
14352                           if test "$enableval" = yes; then
14353                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=yes'
14354                           else
14355                             wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=no'
14356                           fi
14357                           cache=yes
14358
14359 else
14360
14361                           cache=no
14362                           LINE=`grep "^wxUSE_PROGRESSDLG=" ${wx_arg_cache_file}`
14363                           if test "x$LINE" != x ; then
14364                             eval "DEFAULT_$LINE"
14365                           fi
14366
14367                           wx_cv_use_progressdlg='wxUSE_PROGRESSDLG=${'DEFAULT_wxUSE_PROGRESSDLG":-$defaultval}"
14368
14369 fi
14370
14371
14372           eval "$wx_cv_use_progressdlg"
14373           if test "x$cache" = xyes; then
14374             echo "wxUSE_PROGRESSDLG=$wxUSE_PROGRESSDLG" >> ${wx_arg_cache_file}.tmp
14375           fi
14376
14377           if test x"$enablestring" = xdisable; then
14378             if test $wxUSE_PROGRESSDLG = yes; then
14379               result=no
14380             else
14381               result=yes
14382             fi
14383           else
14384             result=$wxUSE_PROGRESSDLG
14385           fi
14386
14387           { echo "$as_me:$LINENO: result: $result" >&5
14388 echo "${ECHO_T}$result" >&6; }
14389
14390
14391           enablestring=
14392           defaultval=$wxUSE_ALL_FEATURES
14393           if test -z "$defaultval"; then
14394               if test x"$enablestring" = xdisable; then
14395                   defaultval=yes
14396               else
14397                   defaultval=no
14398               fi
14399           fi
14400
14401           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wizarddlg" >&5
14402 echo $ECHO_N "checking for --${enablestring:-enable}-wizarddlg... $ECHO_C" >&6; }
14403           # Check whether --enable-wizarddlg was given.
14404 if test "${enable_wizarddlg+set}" = set; then
14405   enableval=$enable_wizarddlg;
14406                           if test "$enableval" = yes; then
14407                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=yes'
14408                           else
14409                             wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=no'
14410                           fi
14411                           cache=yes
14412
14413 else
14414
14415                           cache=no
14416                           LINE=`grep "^wxUSE_WIZARDDLG=" ${wx_arg_cache_file}`
14417                           if test "x$LINE" != x ; then
14418                             eval "DEFAULT_$LINE"
14419                           fi
14420
14421                           wx_cv_use_wizarddlg='wxUSE_WIZARDDLG=${'DEFAULT_wxUSE_WIZARDDLG":-$defaultval}"
14422
14423 fi
14424
14425
14426           eval "$wx_cv_use_wizarddlg"
14427           if test "x$cache" = xyes; then
14428             echo "wxUSE_WIZARDDLG=$wxUSE_WIZARDDLG" >> ${wx_arg_cache_file}.tmp
14429           fi
14430
14431           if test x"$enablestring" = xdisable; then
14432             if test $wxUSE_WIZARDDLG = yes; then
14433               result=no
14434             else
14435               result=yes
14436             fi
14437           else
14438             result=$wxUSE_WIZARDDLG
14439           fi
14440
14441           { echo "$as_me:$LINENO: result: $result" >&5
14442 echo "${ECHO_T}$result" >&6; }
14443
14444
14445
14446
14447           enablestring=
14448           defaultval=$wxUSE_ALL_FEATURES
14449           if test -z "$defaultval"; then
14450               if test x"$enablestring" = xdisable; then
14451                   defaultval=yes
14452               else
14453                   defaultval=no
14454               fi
14455           fi
14456
14457           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-menus" >&5
14458 echo $ECHO_N "checking for --${enablestring:-enable}-menus... $ECHO_C" >&6; }
14459           # Check whether --enable-menus was given.
14460 if test "${enable_menus+set}" = set; then
14461   enableval=$enable_menus;
14462                           if test "$enableval" = yes; then
14463                             wx_cv_use_menus='wxUSE_MENUS=yes'
14464                           else
14465                             wx_cv_use_menus='wxUSE_MENUS=no'
14466                           fi
14467                           cache=yes
14468
14469 else
14470
14471                           cache=no
14472                           LINE=`grep "^wxUSE_MENUS=" ${wx_arg_cache_file}`
14473                           if test "x$LINE" != x ; then
14474                             eval "DEFAULT_$LINE"
14475                           fi
14476
14477                           wx_cv_use_menus='wxUSE_MENUS=${'DEFAULT_wxUSE_MENUS":-$defaultval}"
14478
14479 fi
14480
14481
14482           eval "$wx_cv_use_menus"
14483           if test "x$cache" = xyes; then
14484             echo "wxUSE_MENUS=$wxUSE_MENUS" >> ${wx_arg_cache_file}.tmp
14485           fi
14486
14487           if test x"$enablestring" = xdisable; then
14488             if test $wxUSE_MENUS = yes; then
14489               result=no
14490             else
14491               result=yes
14492             fi
14493           else
14494             result=$wxUSE_MENUS
14495           fi
14496
14497           { echo "$as_me:$LINENO: result: $result" >&5
14498 echo "${ECHO_T}$result" >&6; }
14499
14500
14501           enablestring=
14502           defaultval=$wxUSE_ALL_FEATURES
14503           if test -z "$defaultval"; then
14504               if test x"$enablestring" = xdisable; then
14505                   defaultval=yes
14506               else
14507                   defaultval=no
14508               fi
14509           fi
14510
14511           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-miniframe" >&5
14512 echo $ECHO_N "checking for --${enablestring:-enable}-miniframe... $ECHO_C" >&6; }
14513           # Check whether --enable-miniframe was given.
14514 if test "${enable_miniframe+set}" = set; then
14515   enableval=$enable_miniframe;
14516                           if test "$enableval" = yes; then
14517                             wx_cv_use_miniframe='wxUSE_MINIFRAME=yes'
14518                           else
14519                             wx_cv_use_miniframe='wxUSE_MINIFRAME=no'
14520                           fi
14521                           cache=yes
14522
14523 else
14524
14525                           cache=no
14526                           LINE=`grep "^wxUSE_MINIFRAME=" ${wx_arg_cache_file}`
14527                           if test "x$LINE" != x ; then
14528                             eval "DEFAULT_$LINE"
14529                           fi
14530
14531                           wx_cv_use_miniframe='wxUSE_MINIFRAME=${'DEFAULT_wxUSE_MINIFRAME":-$defaultval}"
14532
14533 fi
14534
14535
14536           eval "$wx_cv_use_miniframe"
14537           if test "x$cache" = xyes; then
14538             echo "wxUSE_MINIFRAME=$wxUSE_MINIFRAME" >> ${wx_arg_cache_file}.tmp
14539           fi
14540
14541           if test x"$enablestring" = xdisable; then
14542             if test $wxUSE_MINIFRAME = yes; then
14543               result=no
14544             else
14545               result=yes
14546             fi
14547           else
14548             result=$wxUSE_MINIFRAME
14549           fi
14550
14551           { echo "$as_me:$LINENO: result: $result" >&5
14552 echo "${ECHO_T}$result" >&6; }
14553
14554
14555           enablestring=
14556           defaultval=$wxUSE_ALL_FEATURES
14557           if test -z "$defaultval"; then
14558               if test x"$enablestring" = xdisable; then
14559                   defaultval=yes
14560               else
14561                   defaultval=no
14562               fi
14563           fi
14564
14565           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tooltips" >&5
14566 echo $ECHO_N "checking for --${enablestring:-enable}-tooltips... $ECHO_C" >&6; }
14567           # Check whether --enable-tooltips was given.
14568 if test "${enable_tooltips+set}" = set; then
14569   enableval=$enable_tooltips;
14570                           if test "$enableval" = yes; then
14571                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=yes'
14572                           else
14573                             wx_cv_use_tooltips='wxUSE_TOOLTIPS=no'
14574                           fi
14575                           cache=yes
14576
14577 else
14578
14579                           cache=no
14580                           LINE=`grep "^wxUSE_TOOLTIPS=" ${wx_arg_cache_file}`
14581                           if test "x$LINE" != x ; then
14582                             eval "DEFAULT_$LINE"
14583                           fi
14584
14585                           wx_cv_use_tooltips='wxUSE_TOOLTIPS=${'DEFAULT_wxUSE_TOOLTIPS":-$defaultval}"
14586
14587 fi
14588
14589
14590           eval "$wx_cv_use_tooltips"
14591           if test "x$cache" = xyes; then
14592             echo "wxUSE_TOOLTIPS=$wxUSE_TOOLTIPS" >> ${wx_arg_cache_file}.tmp
14593           fi
14594
14595           if test x"$enablestring" = xdisable; then
14596             if test $wxUSE_TOOLTIPS = yes; then
14597               result=no
14598             else
14599               result=yes
14600             fi
14601           else
14602             result=$wxUSE_TOOLTIPS
14603           fi
14604
14605           { echo "$as_me:$LINENO: result: $result" >&5
14606 echo "${ECHO_T}$result" >&6; }
14607
14608
14609           enablestring=
14610           defaultval=$wxUSE_ALL_FEATURES
14611           if test -z "$defaultval"; then
14612               if test x"$enablestring" = xdisable; then
14613                   defaultval=yes
14614               else
14615                   defaultval=no
14616               fi
14617           fi
14618
14619           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-splines" >&5
14620 echo $ECHO_N "checking for --${enablestring:-enable}-splines... $ECHO_C" >&6; }
14621           # Check whether --enable-splines was given.
14622 if test "${enable_splines+set}" = set; then
14623   enableval=$enable_splines;
14624                           if test "$enableval" = yes; then
14625                             wx_cv_use_splines='wxUSE_SPLINES=yes'
14626                           else
14627                             wx_cv_use_splines='wxUSE_SPLINES=no'
14628                           fi
14629                           cache=yes
14630
14631 else
14632
14633                           cache=no
14634                           LINE=`grep "^wxUSE_SPLINES=" ${wx_arg_cache_file}`
14635                           if test "x$LINE" != x ; then
14636                             eval "DEFAULT_$LINE"
14637                           fi
14638
14639                           wx_cv_use_splines='wxUSE_SPLINES=${'DEFAULT_wxUSE_SPLINES":-$defaultval}"
14640
14641 fi
14642
14643
14644           eval "$wx_cv_use_splines"
14645           if test "x$cache" = xyes; then
14646             echo "wxUSE_SPLINES=$wxUSE_SPLINES" >> ${wx_arg_cache_file}.tmp
14647           fi
14648
14649           if test x"$enablestring" = xdisable; then
14650             if test $wxUSE_SPLINES = yes; then
14651               result=no
14652             else
14653               result=yes
14654             fi
14655           else
14656             result=$wxUSE_SPLINES
14657           fi
14658
14659           { echo "$as_me:$LINENO: result: $result" >&5
14660 echo "${ECHO_T}$result" >&6; }
14661
14662
14663           enablestring=
14664           defaultval=$wxUSE_ALL_FEATURES
14665           if test -z "$defaultval"; then
14666               if test x"$enablestring" = xdisable; then
14667                   defaultval=yes
14668               else
14669                   defaultval=no
14670               fi
14671           fi
14672
14673           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-mousewheel" >&5
14674 echo $ECHO_N "checking for --${enablestring:-enable}-mousewheel... $ECHO_C" >&6; }
14675           # Check whether --enable-mousewheel was given.
14676 if test "${enable_mousewheel+set}" = set; then
14677   enableval=$enable_mousewheel;
14678                           if test "$enableval" = yes; then
14679                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=yes'
14680                           else
14681                             wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=no'
14682                           fi
14683                           cache=yes
14684
14685 else
14686
14687                           cache=no
14688                           LINE=`grep "^wxUSE_MOUSEWHEEL=" ${wx_arg_cache_file}`
14689                           if test "x$LINE" != x ; then
14690                             eval "DEFAULT_$LINE"
14691                           fi
14692
14693                           wx_cv_use_mousewheel='wxUSE_MOUSEWHEEL=${'DEFAULT_wxUSE_MOUSEWHEEL":-$defaultval}"
14694
14695 fi
14696
14697
14698           eval "$wx_cv_use_mousewheel"
14699           if test "x$cache" = xyes; then
14700             echo "wxUSE_MOUSEWHEEL=$wxUSE_MOUSEWHEEL" >> ${wx_arg_cache_file}.tmp
14701           fi
14702
14703           if test x"$enablestring" = xdisable; then
14704             if test $wxUSE_MOUSEWHEEL = yes; then
14705               result=no
14706             else
14707               result=yes
14708             fi
14709           else
14710             result=$wxUSE_MOUSEWHEEL
14711           fi
14712
14713           { echo "$as_me:$LINENO: result: $result" >&5
14714 echo "${ECHO_T}$result" >&6; }
14715
14716
14717           enablestring=
14718           defaultval=$wxUSE_ALL_FEATURES
14719           if test -z "$defaultval"; then
14720               if test x"$enablestring" = xdisable; then
14721                   defaultval=yes
14722               else
14723                   defaultval=no
14724               fi
14725           fi
14726
14727           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-validators" >&5
14728 echo $ECHO_N "checking for --${enablestring:-enable}-validators... $ECHO_C" >&6; }
14729           # Check whether --enable-validators was given.
14730 if test "${enable_validators+set}" = set; then
14731   enableval=$enable_validators;
14732                           if test "$enableval" = yes; then
14733                             wx_cv_use_validators='wxUSE_VALIDATORS=yes'
14734                           else
14735                             wx_cv_use_validators='wxUSE_VALIDATORS=no'
14736                           fi
14737                           cache=yes
14738
14739 else
14740
14741                           cache=no
14742                           LINE=`grep "^wxUSE_VALIDATORS=" ${wx_arg_cache_file}`
14743                           if test "x$LINE" != x ; then
14744                             eval "DEFAULT_$LINE"
14745                           fi
14746
14747                           wx_cv_use_validators='wxUSE_VALIDATORS=${'DEFAULT_wxUSE_VALIDATORS":-$defaultval}"
14748
14749 fi
14750
14751
14752           eval "$wx_cv_use_validators"
14753           if test "x$cache" = xyes; then
14754             echo "wxUSE_VALIDATORS=$wxUSE_VALIDATORS" >> ${wx_arg_cache_file}.tmp
14755           fi
14756
14757           if test x"$enablestring" = xdisable; then
14758             if test $wxUSE_VALIDATORS = yes; then
14759               result=no
14760             else
14761               result=yes
14762             fi
14763           else
14764             result=$wxUSE_VALIDATORS
14765           fi
14766
14767           { echo "$as_me:$LINENO: result: $result" >&5
14768 echo "${ECHO_T}$result" >&6; }
14769
14770
14771           enablestring=
14772           defaultval=$wxUSE_ALL_FEATURES
14773           if test -z "$defaultval"; then
14774               if test x"$enablestring" = xdisable; then
14775                   defaultval=yes
14776               else
14777                   defaultval=no
14778               fi
14779           fi
14780
14781           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-busyinfo" >&5
14782 echo $ECHO_N "checking for --${enablestring:-enable}-busyinfo... $ECHO_C" >&6; }
14783           # Check whether --enable-busyinfo was given.
14784 if test "${enable_busyinfo+set}" = set; then
14785   enableval=$enable_busyinfo;
14786                           if test "$enableval" = yes; then
14787                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=yes'
14788                           else
14789                             wx_cv_use_busyinfo='wxUSE_BUSYINFO=no'
14790                           fi
14791                           cache=yes
14792
14793 else
14794
14795                           cache=no
14796                           LINE=`grep "^wxUSE_BUSYINFO=" ${wx_arg_cache_file}`
14797                           if test "x$LINE" != x ; then
14798                             eval "DEFAULT_$LINE"
14799                           fi
14800
14801                           wx_cv_use_busyinfo='wxUSE_BUSYINFO=${'DEFAULT_wxUSE_BUSYINFO":-$defaultval}"
14802
14803 fi
14804
14805
14806           eval "$wx_cv_use_busyinfo"
14807           if test "x$cache" = xyes; then
14808             echo "wxUSE_BUSYINFO=$wxUSE_BUSYINFO" >> ${wx_arg_cache_file}.tmp
14809           fi
14810
14811           if test x"$enablestring" = xdisable; then
14812             if test $wxUSE_BUSYINFO = yes; then
14813               result=no
14814             else
14815               result=yes
14816             fi
14817           else
14818             result=$wxUSE_BUSYINFO
14819           fi
14820
14821           { echo "$as_me:$LINENO: result: $result" >&5
14822 echo "${ECHO_T}$result" >&6; }
14823
14824
14825           enablestring=
14826           defaultval=$wxUSE_ALL_FEATURES
14827           if test -z "$defaultval"; then
14828               if test x"$enablestring" = xdisable; then
14829                   defaultval=yes
14830               else
14831                   defaultval=no
14832               fi
14833           fi
14834
14835           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-joystick" >&5
14836 echo $ECHO_N "checking for --${enablestring:-enable}-joystick... $ECHO_C" >&6; }
14837           # Check whether --enable-joystick was given.
14838 if test "${enable_joystick+set}" = set; then
14839   enableval=$enable_joystick;
14840                           if test "$enableval" = yes; then
14841                             wx_cv_use_joystick='wxUSE_JOYSTICK=yes'
14842                           else
14843                             wx_cv_use_joystick='wxUSE_JOYSTICK=no'
14844                           fi
14845                           cache=yes
14846
14847 else
14848
14849                           cache=no
14850                           LINE=`grep "^wxUSE_JOYSTICK=" ${wx_arg_cache_file}`
14851                           if test "x$LINE" != x ; then
14852                             eval "DEFAULT_$LINE"
14853                           fi
14854
14855                           wx_cv_use_joystick='wxUSE_JOYSTICK=${'DEFAULT_wxUSE_JOYSTICK":-$defaultval}"
14856
14857 fi
14858
14859
14860           eval "$wx_cv_use_joystick"
14861           if test "x$cache" = xyes; then
14862             echo "wxUSE_JOYSTICK=$wxUSE_JOYSTICK" >> ${wx_arg_cache_file}.tmp
14863           fi
14864
14865           if test x"$enablestring" = xdisable; then
14866             if test $wxUSE_JOYSTICK = yes; then
14867               result=no
14868             else
14869               result=yes
14870             fi
14871           else
14872             result=$wxUSE_JOYSTICK
14873           fi
14874
14875           { echo "$as_me:$LINENO: result: $result" >&5
14876 echo "${ECHO_T}$result" >&6; }
14877
14878
14879           enablestring=
14880           defaultval=$wxUSE_ALL_FEATURES
14881           if test -z "$defaultval"; then
14882               if test x"$enablestring" = xdisable; then
14883                   defaultval=yes
14884               else
14885                   defaultval=no
14886               fi
14887           fi
14888
14889           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-metafile" >&5
14890 echo $ECHO_N "checking for --${enablestring:-enable}-metafile... $ECHO_C" >&6; }
14891           # Check whether --enable-metafile was given.
14892 if test "${enable_metafile+set}" = set; then
14893   enableval=$enable_metafile;
14894                           if test "$enableval" = yes; then
14895                             wx_cv_use_metafile='wxUSE_METAFILE=yes'
14896                           else
14897                             wx_cv_use_metafile='wxUSE_METAFILE=no'
14898                           fi
14899                           cache=yes
14900
14901 else
14902
14903                           cache=no
14904                           LINE=`grep "^wxUSE_METAFILE=" ${wx_arg_cache_file}`
14905                           if test "x$LINE" != x ; then
14906                             eval "DEFAULT_$LINE"
14907                           fi
14908
14909                           wx_cv_use_metafile='wxUSE_METAFILE=${'DEFAULT_wxUSE_METAFILE":-$defaultval}"
14910
14911 fi
14912
14913
14914           eval "$wx_cv_use_metafile"
14915           if test "x$cache" = xyes; then
14916             echo "wxUSE_METAFILE=$wxUSE_METAFILE" >> ${wx_arg_cache_file}.tmp
14917           fi
14918
14919           if test x"$enablestring" = xdisable; then
14920             if test $wxUSE_METAFILE = yes; then
14921               result=no
14922             else
14923               result=yes
14924             fi
14925           else
14926             result=$wxUSE_METAFILE
14927           fi
14928
14929           { echo "$as_me:$LINENO: result: $result" >&5
14930 echo "${ECHO_T}$result" >&6; }
14931
14932
14933           enablestring=
14934           defaultval=$wxUSE_ALL_FEATURES
14935           if test -z "$defaultval"; then
14936               if test x"$enablestring" = xdisable; then
14937                   defaultval=yes
14938               else
14939                   defaultval=no
14940               fi
14941           fi
14942
14943           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dragimage" >&5
14944 echo $ECHO_N "checking for --${enablestring:-enable}-dragimage... $ECHO_C" >&6; }
14945           # Check whether --enable-dragimage was given.
14946 if test "${enable_dragimage+set}" = set; then
14947   enableval=$enable_dragimage;
14948                           if test "$enableval" = yes; then
14949                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=yes'
14950                           else
14951                             wx_cv_use_dragimage='wxUSE_DRAGIMAGE=no'
14952                           fi
14953                           cache=yes
14954
14955 else
14956
14957                           cache=no
14958                           LINE=`grep "^wxUSE_DRAGIMAGE=" ${wx_arg_cache_file}`
14959                           if test "x$LINE" != x ; then
14960                             eval "DEFAULT_$LINE"
14961                           fi
14962
14963                           wx_cv_use_dragimage='wxUSE_DRAGIMAGE=${'DEFAULT_wxUSE_DRAGIMAGE":-$defaultval}"
14964
14965 fi
14966
14967
14968           eval "$wx_cv_use_dragimage"
14969           if test "x$cache" = xyes; then
14970             echo "wxUSE_DRAGIMAGE=$wxUSE_DRAGIMAGE" >> ${wx_arg_cache_file}.tmp
14971           fi
14972
14973           if test x"$enablestring" = xdisable; then
14974             if test $wxUSE_DRAGIMAGE = yes; then
14975               result=no
14976             else
14977               result=yes
14978             fi
14979           else
14980             result=$wxUSE_DRAGIMAGE
14981           fi
14982
14983           { echo "$as_me:$LINENO: result: $result" >&5
14984 echo "${ECHO_T}$result" >&6; }
14985
14986
14987           enablestring=
14988           defaultval=$wxUSE_ALL_FEATURES
14989           if test -z "$defaultval"; then
14990               if test x"$enablestring" = xdisable; then
14991                   defaultval=yes
14992               else
14993                   defaultval=no
14994               fi
14995           fi
14996
14997           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-accessibility" >&5
14998 echo $ECHO_N "checking for --${enablestring:-enable}-accessibility... $ECHO_C" >&6; }
14999           # Check whether --enable-accessibility was given.
15000 if test "${enable_accessibility+set}" = set; then
15001   enableval=$enable_accessibility;
15002                           if test "$enableval" = yes; then
15003                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=yes'
15004                           else
15005                             wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=no'
15006                           fi
15007                           cache=yes
15008
15009 else
15010
15011                           cache=no
15012                           LINE=`grep "^wxUSE_ACCESSIBILITY=" ${wx_arg_cache_file}`
15013                           if test "x$LINE" != x ; then
15014                             eval "DEFAULT_$LINE"
15015                           fi
15016
15017                           wx_cv_use_accessibility='wxUSE_ACCESSIBILITY=${'DEFAULT_wxUSE_ACCESSIBILITY":-$defaultval}"
15018
15019 fi
15020
15021
15022           eval "$wx_cv_use_accessibility"
15023           if test "x$cache" = xyes; then
15024             echo "wxUSE_ACCESSIBILITY=$wxUSE_ACCESSIBILITY" >> ${wx_arg_cache_file}.tmp
15025           fi
15026
15027           if test x"$enablestring" = xdisable; then
15028             if test $wxUSE_ACCESSIBILITY = yes; then
15029               result=no
15030             else
15031               result=yes
15032             fi
15033           else
15034             result=$wxUSE_ACCESSIBILITY
15035           fi
15036
15037           { echo "$as_me:$LINENO: result: $result" >&5
15038 echo "${ECHO_T}$result" >&6; }
15039
15040
15041
15042
15043           enablestring=
15044           defaultval=$wxUSE_ALL_FEATURES
15045           if test -z "$defaultval"; then
15046               if test x"$enablestring" = xdisable; then
15047                   defaultval=yes
15048               else
15049                   defaultval=no
15050               fi
15051           fi
15052
15053           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-palette" >&5
15054 echo $ECHO_N "checking for --${enablestring:-enable}-palette... $ECHO_C" >&6; }
15055           # Check whether --enable-palette was given.
15056 if test "${enable_palette+set}" = set; then
15057   enableval=$enable_palette;
15058                           if test "$enableval" = yes; then
15059                             wx_cv_use_palette='wxUSE_PALETTE=yes'
15060                           else
15061                             wx_cv_use_palette='wxUSE_PALETTE=no'
15062                           fi
15063                           cache=yes
15064
15065 else
15066
15067                           cache=no
15068                           LINE=`grep "^wxUSE_PALETTE=" ${wx_arg_cache_file}`
15069                           if test "x$LINE" != x ; then
15070                             eval "DEFAULT_$LINE"
15071                           fi
15072
15073                           wx_cv_use_palette='wxUSE_PALETTE=${'DEFAULT_wxUSE_PALETTE":-$defaultval}"
15074
15075 fi
15076
15077
15078           eval "$wx_cv_use_palette"
15079           if test "x$cache" = xyes; then
15080             echo "wxUSE_PALETTE=$wxUSE_PALETTE" >> ${wx_arg_cache_file}.tmp
15081           fi
15082
15083           if test x"$enablestring" = xdisable; then
15084             if test $wxUSE_PALETTE = yes; then
15085               result=no
15086             else
15087               result=yes
15088             fi
15089           else
15090             result=$wxUSE_PALETTE
15091           fi
15092
15093           { echo "$as_me:$LINENO: result: $result" >&5
15094 echo "${ECHO_T}$result" >&6; }
15095
15096
15097           enablestring=
15098           defaultval=$wxUSE_ALL_FEATURES
15099           if test -z "$defaultval"; then
15100               if test x"$enablestring" = xdisable; then
15101                   defaultval=yes
15102               else
15103                   defaultval=no
15104               fi
15105           fi
15106
15107           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-image" >&5
15108 echo $ECHO_N "checking for --${enablestring:-enable}-image... $ECHO_C" >&6; }
15109           # Check whether --enable-image was given.
15110 if test "${enable_image+set}" = set; then
15111   enableval=$enable_image;
15112                           if test "$enableval" = yes; then
15113                             wx_cv_use_image='wxUSE_IMAGE=yes'
15114                           else
15115                             wx_cv_use_image='wxUSE_IMAGE=no'
15116                           fi
15117                           cache=yes
15118
15119 else
15120
15121                           cache=no
15122                           LINE=`grep "^wxUSE_IMAGE=" ${wx_arg_cache_file}`
15123                           if test "x$LINE" != x ; then
15124                             eval "DEFAULT_$LINE"
15125                           fi
15126
15127                           wx_cv_use_image='wxUSE_IMAGE=${'DEFAULT_wxUSE_IMAGE":-$defaultval}"
15128
15129 fi
15130
15131
15132           eval "$wx_cv_use_image"
15133           if test "x$cache" = xyes; then
15134             echo "wxUSE_IMAGE=$wxUSE_IMAGE" >> ${wx_arg_cache_file}.tmp
15135           fi
15136
15137           if test x"$enablestring" = xdisable; then
15138             if test $wxUSE_IMAGE = yes; then
15139               result=no
15140             else
15141               result=yes
15142             fi
15143           else
15144             result=$wxUSE_IMAGE
15145           fi
15146
15147           { echo "$as_me:$LINENO: result: $result" >&5
15148 echo "${ECHO_T}$result" >&6; }
15149
15150
15151           enablestring=
15152           defaultval=$wxUSE_ALL_FEATURES
15153           if test -z "$defaultval"; then
15154               if test x"$enablestring" = xdisable; then
15155                   defaultval=yes
15156               else
15157                   defaultval=no
15158               fi
15159           fi
15160
15161           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-gif" >&5
15162 echo $ECHO_N "checking for --${enablestring:-enable}-gif... $ECHO_C" >&6; }
15163           # Check whether --enable-gif was given.
15164 if test "${enable_gif+set}" = set; then
15165   enableval=$enable_gif;
15166                           if test "$enableval" = yes; then
15167                             wx_cv_use_gif='wxUSE_GIF=yes'
15168                           else
15169                             wx_cv_use_gif='wxUSE_GIF=no'
15170                           fi
15171                           cache=yes
15172
15173 else
15174
15175                           cache=no
15176                           LINE=`grep "^wxUSE_GIF=" ${wx_arg_cache_file}`
15177                           if test "x$LINE" != x ; then
15178                             eval "DEFAULT_$LINE"
15179                           fi
15180
15181                           wx_cv_use_gif='wxUSE_GIF=${'DEFAULT_wxUSE_GIF":-$defaultval}"
15182
15183 fi
15184
15185
15186           eval "$wx_cv_use_gif"
15187           if test "x$cache" = xyes; then
15188             echo "wxUSE_GIF=$wxUSE_GIF" >> ${wx_arg_cache_file}.tmp
15189           fi
15190
15191           if test x"$enablestring" = xdisable; then
15192             if test $wxUSE_GIF = yes; then
15193               result=no
15194             else
15195               result=yes
15196             fi
15197           else
15198             result=$wxUSE_GIF
15199           fi
15200
15201           { echo "$as_me:$LINENO: result: $result" >&5
15202 echo "${ECHO_T}$result" >&6; }
15203
15204
15205           enablestring=
15206           defaultval=$wxUSE_ALL_FEATURES
15207           if test -z "$defaultval"; then
15208               if test x"$enablestring" = xdisable; then
15209                   defaultval=yes
15210               else
15211                   defaultval=no
15212               fi
15213           fi
15214
15215           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pcx" >&5
15216 echo $ECHO_N "checking for --${enablestring:-enable}-pcx... $ECHO_C" >&6; }
15217           # Check whether --enable-pcx was given.
15218 if test "${enable_pcx+set}" = set; then
15219   enableval=$enable_pcx;
15220                           if test "$enableval" = yes; then
15221                             wx_cv_use_pcx='wxUSE_PCX=yes'
15222                           else
15223                             wx_cv_use_pcx='wxUSE_PCX=no'
15224                           fi
15225                           cache=yes
15226
15227 else
15228
15229                           cache=no
15230                           LINE=`grep "^wxUSE_PCX=" ${wx_arg_cache_file}`
15231                           if test "x$LINE" != x ; then
15232                             eval "DEFAULT_$LINE"
15233                           fi
15234
15235                           wx_cv_use_pcx='wxUSE_PCX=${'DEFAULT_wxUSE_PCX":-$defaultval}"
15236
15237 fi
15238
15239
15240           eval "$wx_cv_use_pcx"
15241           if test "x$cache" = xyes; then
15242             echo "wxUSE_PCX=$wxUSE_PCX" >> ${wx_arg_cache_file}.tmp
15243           fi
15244
15245           if test x"$enablestring" = xdisable; then
15246             if test $wxUSE_PCX = yes; then
15247               result=no
15248             else
15249               result=yes
15250             fi
15251           else
15252             result=$wxUSE_PCX
15253           fi
15254
15255           { echo "$as_me:$LINENO: result: $result" >&5
15256 echo "${ECHO_T}$result" >&6; }
15257
15258
15259           enablestring=
15260           defaultval=$wxUSE_ALL_FEATURES
15261           if test -z "$defaultval"; then
15262               if test x"$enablestring" = xdisable; then
15263                   defaultval=yes
15264               else
15265                   defaultval=no
15266               fi
15267           fi
15268
15269           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-tga" >&5
15270 echo $ECHO_N "checking for --${enablestring:-enable}-tga... $ECHO_C" >&6; }
15271           # Check whether --enable-tga was given.
15272 if test "${enable_tga+set}" = set; then
15273   enableval=$enable_tga;
15274                           if test "$enableval" = yes; then
15275                             wx_cv_use_tga='wxUSE_TGA=yes'
15276                           else
15277                             wx_cv_use_tga='wxUSE_TGA=no'
15278                           fi
15279                           cache=yes
15280
15281 else
15282
15283                           cache=no
15284                           LINE=`grep "^wxUSE_TGA=" ${wx_arg_cache_file}`
15285                           if test "x$LINE" != x ; then
15286                             eval "DEFAULT_$LINE"
15287                           fi
15288
15289                           wx_cv_use_tga='wxUSE_TGA=${'DEFAULT_wxUSE_TGA":-$defaultval}"
15290
15291 fi
15292
15293
15294           eval "$wx_cv_use_tga"
15295           if test "x$cache" = xyes; then
15296             echo "wxUSE_TGA=$wxUSE_TGA" >> ${wx_arg_cache_file}.tmp
15297           fi
15298
15299           if test x"$enablestring" = xdisable; then
15300             if test $wxUSE_TGA = yes; then
15301               result=no
15302             else
15303               result=yes
15304             fi
15305           else
15306             result=$wxUSE_TGA
15307           fi
15308
15309           { echo "$as_me:$LINENO: result: $result" >&5
15310 echo "${ECHO_T}$result" >&6; }
15311
15312
15313           enablestring=
15314           defaultval=$wxUSE_ALL_FEATURES
15315           if test -z "$defaultval"; then
15316               if test x"$enablestring" = xdisable; then
15317                   defaultval=yes
15318               else
15319                   defaultval=no
15320               fi
15321           fi
15322
15323           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iff" >&5
15324 echo $ECHO_N "checking for --${enablestring:-enable}-iff... $ECHO_C" >&6; }
15325           # Check whether --enable-iff was given.
15326 if test "${enable_iff+set}" = set; then
15327   enableval=$enable_iff;
15328                           if test "$enableval" = yes; then
15329                             wx_cv_use_iff='wxUSE_IFF=yes'
15330                           else
15331                             wx_cv_use_iff='wxUSE_IFF=no'
15332                           fi
15333                           cache=yes
15334
15335 else
15336
15337                           cache=no
15338                           LINE=`grep "^wxUSE_IFF=" ${wx_arg_cache_file}`
15339                           if test "x$LINE" != x ; then
15340                             eval "DEFAULT_$LINE"
15341                           fi
15342
15343                           wx_cv_use_iff='wxUSE_IFF=${'DEFAULT_wxUSE_IFF":-$defaultval}"
15344
15345 fi
15346
15347
15348           eval "$wx_cv_use_iff"
15349           if test "x$cache" = xyes; then
15350             echo "wxUSE_IFF=$wxUSE_IFF" >> ${wx_arg_cache_file}.tmp
15351           fi
15352
15353           if test x"$enablestring" = xdisable; then
15354             if test $wxUSE_IFF = yes; then
15355               result=no
15356             else
15357               result=yes
15358             fi
15359           else
15360             result=$wxUSE_IFF
15361           fi
15362
15363           { echo "$as_me:$LINENO: result: $result" >&5
15364 echo "${ECHO_T}$result" >&6; }
15365
15366
15367           enablestring=
15368           defaultval=$wxUSE_ALL_FEATURES
15369           if test -z "$defaultval"; then
15370               if test x"$enablestring" = xdisable; then
15371                   defaultval=yes
15372               else
15373                   defaultval=no
15374               fi
15375           fi
15376
15377           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-pnm" >&5
15378 echo $ECHO_N "checking for --${enablestring:-enable}-pnm... $ECHO_C" >&6; }
15379           # Check whether --enable-pnm was given.
15380 if test "${enable_pnm+set}" = set; then
15381   enableval=$enable_pnm;
15382                           if test "$enableval" = yes; then
15383                             wx_cv_use_pnm='wxUSE_PNM=yes'
15384                           else
15385                             wx_cv_use_pnm='wxUSE_PNM=no'
15386                           fi
15387                           cache=yes
15388
15389 else
15390
15391                           cache=no
15392                           LINE=`grep "^wxUSE_PNM=" ${wx_arg_cache_file}`
15393                           if test "x$LINE" != x ; then
15394                             eval "DEFAULT_$LINE"
15395                           fi
15396
15397                           wx_cv_use_pnm='wxUSE_PNM=${'DEFAULT_wxUSE_PNM":-$defaultval}"
15398
15399 fi
15400
15401
15402           eval "$wx_cv_use_pnm"
15403           if test "x$cache" = xyes; then
15404             echo "wxUSE_PNM=$wxUSE_PNM" >> ${wx_arg_cache_file}.tmp
15405           fi
15406
15407           if test x"$enablestring" = xdisable; then
15408             if test $wxUSE_PNM = yes; then
15409               result=no
15410             else
15411               result=yes
15412             fi
15413           else
15414             result=$wxUSE_PNM
15415           fi
15416
15417           { echo "$as_me:$LINENO: result: $result" >&5
15418 echo "${ECHO_T}$result" >&6; }
15419
15420
15421           enablestring=
15422           defaultval=$wxUSE_ALL_FEATURES
15423           if test -z "$defaultval"; then
15424               if test x"$enablestring" = xdisable; then
15425                   defaultval=yes
15426               else
15427                   defaultval=no
15428               fi
15429           fi
15430
15431           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-xpm" >&5
15432 echo $ECHO_N "checking for --${enablestring:-enable}-xpm... $ECHO_C" >&6; }
15433           # Check whether --enable-xpm was given.
15434 if test "${enable_xpm+set}" = set; then
15435   enableval=$enable_xpm;
15436                           if test "$enableval" = yes; then
15437                             wx_cv_use_xpm='wxUSE_XPM=yes'
15438                           else
15439                             wx_cv_use_xpm='wxUSE_XPM=no'
15440                           fi
15441                           cache=yes
15442
15443 else
15444
15445                           cache=no
15446                           LINE=`grep "^wxUSE_XPM=" ${wx_arg_cache_file}`
15447                           if test "x$LINE" != x ; then
15448                             eval "DEFAULT_$LINE"
15449                           fi
15450
15451                           wx_cv_use_xpm='wxUSE_XPM=${'DEFAULT_wxUSE_XPM":-$defaultval}"
15452
15453 fi
15454
15455
15456           eval "$wx_cv_use_xpm"
15457           if test "x$cache" = xyes; then
15458             echo "wxUSE_XPM=$wxUSE_XPM" >> ${wx_arg_cache_file}.tmp
15459           fi
15460
15461           if test x"$enablestring" = xdisable; then
15462             if test $wxUSE_XPM = yes; then
15463               result=no
15464             else
15465               result=yes
15466             fi
15467           else
15468             result=$wxUSE_XPM
15469           fi
15470
15471           { echo "$as_me:$LINENO: result: $result" >&5
15472 echo "${ECHO_T}$result" >&6; }
15473
15474
15475           enablestring=
15476           defaultval=$wxUSE_ALL_FEATURES
15477           if test -z "$defaultval"; then
15478               if test x"$enablestring" = xdisable; then
15479                   defaultval=yes
15480               else
15481                   defaultval=no
15482               fi
15483           fi
15484
15485           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ico_cur" >&5
15486 echo $ECHO_N "checking for --${enablestring:-enable}-ico_cur... $ECHO_C" >&6; }
15487           # Check whether --enable-ico_cur was given.
15488 if test "${enable_ico_cur+set}" = set; then
15489   enableval=$enable_ico_cur;
15490                           if test "$enableval" = yes; then
15491                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=yes'
15492                           else
15493                             wx_cv_use_ico_cur='wxUSE_ICO_CUR=no'
15494                           fi
15495                           cache=yes
15496
15497 else
15498
15499                           cache=no
15500                           LINE=`grep "^wxUSE_ICO_CUR=" ${wx_arg_cache_file}`
15501                           if test "x$LINE" != x ; then
15502                             eval "DEFAULT_$LINE"
15503                           fi
15504
15505                           wx_cv_use_ico_cur='wxUSE_ICO_CUR=${'DEFAULT_wxUSE_ICO_CUR":-$defaultval}"
15506
15507 fi
15508
15509
15510           eval "$wx_cv_use_ico_cur"
15511           if test "x$cache" = xyes; then
15512             echo "wxUSE_ICO_CUR=$wxUSE_ICO_CUR" >> ${wx_arg_cache_file}.tmp
15513           fi
15514
15515           if test x"$enablestring" = xdisable; then
15516             if test $wxUSE_ICO_CUR = yes; then
15517               result=no
15518             else
15519               result=yes
15520             fi
15521           else
15522             result=$wxUSE_ICO_CUR
15523           fi
15524
15525           { echo "$as_me:$LINENO: result: $result" >&5
15526 echo "${ECHO_T}$result" >&6; }
15527
15528
15529
15530
15531           enablestring=
15532           defaultval=$wxUSE_ALL_FEATURES
15533           if test -z "$defaultval"; then
15534               if test x"$enablestring" = xdisable; then
15535                   defaultval=yes
15536               else
15537                   defaultval=no
15538               fi
15539           fi
15540
15541           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-dccache" >&5
15542 echo $ECHO_N "checking for --${enablestring:-enable}-dccache... $ECHO_C" >&6; }
15543           # Check whether --enable-dccache was given.
15544 if test "${enable_dccache+set}" = set; then
15545   enableval=$enable_dccache;
15546                           if test "$enableval" = yes; then
15547                             wx_cv_use_dccache='wxUSE_DC_CACHEING=yes'
15548                           else
15549                             wx_cv_use_dccache='wxUSE_DC_CACHEING=no'
15550                           fi
15551                           cache=yes
15552
15553 else
15554
15555                           cache=no
15556                           LINE=`grep "^wxUSE_DC_CACHEING=" ${wx_arg_cache_file}`
15557                           if test "x$LINE" != x ; then
15558                             eval "DEFAULT_$LINE"
15559                           fi
15560
15561                           wx_cv_use_dccache='wxUSE_DC_CACHEING=${'DEFAULT_wxUSE_DC_CACHEING":-$defaultval}"
15562
15563 fi
15564
15565
15566           eval "$wx_cv_use_dccache"
15567           if test "x$cache" = xyes; then
15568             echo "wxUSE_DC_CACHEING=$wxUSE_DC_CACHEING" >> ${wx_arg_cache_file}.tmp
15569           fi
15570
15571           if test x"$enablestring" = xdisable; then
15572             if test $wxUSE_DC_CACHEING = yes; then
15573               result=no
15574             else
15575               result=yes
15576             fi
15577           else
15578             result=$wxUSE_DC_CACHEING
15579           fi
15580
15581           { echo "$as_me:$LINENO: result: $result" >&5
15582 echo "${ECHO_T}$result" >&6; }
15583
15584
15585           enablestring=
15586           defaultval=
15587           if test -z "$defaultval"; then
15588               if test x"$enablestring" = xdisable; then
15589                   defaultval=yes
15590               else
15591                   defaultval=no
15592               fi
15593           fi
15594
15595           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-iniconf" >&5
15596 echo $ECHO_N "checking for --${enablestring:-enable}-iniconf... $ECHO_C" >&6; }
15597           # Check whether --enable-iniconf was given.
15598 if test "${enable_iniconf+set}" = set; then
15599   enableval=$enable_iniconf;
15600                           if test "$enableval" = yes; then
15601                             wx_cv_use_iniconf='wxUSE_INICONF=yes'
15602                           else
15603                             wx_cv_use_iniconf='wxUSE_INICONF=no'
15604                           fi
15605                           cache=yes
15606
15607 else
15608
15609                           cache=no
15610                           LINE=`grep "^wxUSE_INICONF=" ${wx_arg_cache_file}`
15611                           if test "x$LINE" != x ; then
15612                             eval "DEFAULT_$LINE"
15613                           fi
15614
15615                           wx_cv_use_iniconf='wxUSE_INICONF=${'DEFAULT_wxUSE_INICONF":-$defaultval}"
15616
15617 fi
15618
15619
15620           eval "$wx_cv_use_iniconf"
15621           if test "x$cache" = xyes; then
15622             echo "wxUSE_INICONF=$wxUSE_INICONF" >> ${wx_arg_cache_file}.tmp
15623           fi
15624
15625           if test x"$enablestring" = xdisable; then
15626             if test $wxUSE_INICONF = yes; then
15627               result=no
15628             else
15629               result=yes
15630             fi
15631           else
15632             result=$wxUSE_INICONF
15633           fi
15634
15635           { echo "$as_me:$LINENO: result: $result" >&5
15636 echo "${ECHO_T}$result" >&6; }
15637
15638
15639           enablestring=
15640           defaultval=$wxUSE_ALL_FEATURES
15641           if test -z "$defaultval"; then
15642               if test x"$enablestring" = xdisable; then
15643                   defaultval=yes
15644               else
15645                   defaultval=no
15646               fi
15647           fi
15648
15649           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ps-in-msw" >&5
15650 echo $ECHO_N "checking for --${enablestring:-enable}-ps-in-msw... $ECHO_C" >&6; }
15651           # Check whether --enable-ps-in-msw was given.
15652 if test "${enable_ps_in_msw+set}" = set; then
15653   enableval=$enable_ps_in_msw;
15654                           if test "$enableval" = yes; then
15655                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=yes'
15656                           else
15657                             wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=no'
15658                           fi
15659                           cache=yes
15660
15661 else
15662
15663                           cache=no
15664                           LINE=`grep "^wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=" ${wx_arg_cache_file}`
15665                           if test "x$LINE" != x ; then
15666                             eval "DEFAULT_$LINE"
15667                           fi
15668
15669                           wx_cv_use_ps_in_msw='wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=${'DEFAULT_wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW":-$defaultval}"
15670
15671 fi
15672
15673
15674           eval "$wx_cv_use_ps_in_msw"
15675           if test "x$cache" = xyes; then
15676             echo "wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" >> ${wx_arg_cache_file}.tmp
15677           fi
15678
15679           if test x"$enablestring" = xdisable; then
15680             if test $wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW = yes; then
15681               result=no
15682             else
15683               result=yes
15684             fi
15685           else
15686             result=$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW
15687           fi
15688
15689           { echo "$as_me:$LINENO: result: $result" >&5
15690 echo "${ECHO_T}$result" >&6; }
15691
15692
15693           enablestring=
15694           defaultval=$wxUSE_ALL_FEATURES
15695           if test -z "$defaultval"; then
15696               if test x"$enablestring" = xdisable; then
15697                   defaultval=yes
15698               else
15699                   defaultval=no
15700               fi
15701           fi
15702
15703           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-ownerdrawn" >&5
15704 echo $ECHO_N "checking for --${enablestring:-enable}-ownerdrawn... $ECHO_C" >&6; }
15705           # Check whether --enable-ownerdrawn was given.
15706 if test "${enable_ownerdrawn+set}" = set; then
15707   enableval=$enable_ownerdrawn;
15708                           if test "$enableval" = yes; then
15709                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=yes'
15710                           else
15711                             wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=no'
15712                           fi
15713                           cache=yes
15714
15715 else
15716
15717                           cache=no
15718                           LINE=`grep "^wxUSE_OWNER_DRAWN=" ${wx_arg_cache_file}`
15719                           if test "x$LINE" != x ; then
15720                             eval "DEFAULT_$LINE"
15721                           fi
15722
15723                           wx_cv_use_ownerdrawn='wxUSE_OWNER_DRAWN=${'DEFAULT_wxUSE_OWNER_DRAWN":-$defaultval}"
15724
15725 fi
15726
15727
15728           eval "$wx_cv_use_ownerdrawn"
15729           if test "x$cache" = xyes; then
15730             echo "wxUSE_OWNER_DRAWN=$wxUSE_OWNER_DRAWN" >> ${wx_arg_cache_file}.tmp
15731           fi
15732
15733           if test x"$enablestring" = xdisable; then
15734             if test $wxUSE_OWNER_DRAWN = yes; then
15735               result=no
15736             else
15737               result=yes
15738             fi
15739           else
15740             result=$wxUSE_OWNER_DRAWN
15741           fi
15742
15743           { echo "$as_me:$LINENO: result: $result" >&5
15744 echo "${ECHO_T}$result" >&6; }
15745
15746
15747           enablestring=
15748           defaultval=$wxUSE_ALL_FEATURES
15749           if test -z "$defaultval"; then
15750               if test x"$enablestring" = xdisable; then
15751                   defaultval=yes
15752               else
15753                   defaultval=no
15754               fi
15755           fi
15756
15757           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-regkey" >&5
15758 echo $ECHO_N "checking for --${enablestring:-enable}-regkey... $ECHO_C" >&6; }
15759           # Check whether --enable-regkey was given.
15760 if test "${enable_regkey+set}" = set; then
15761   enableval=$enable_regkey;
15762                           if test "$enableval" = yes; then
15763                             wx_cv_use_regkey='wxUSE_REGKEY=yes'
15764                           else
15765                             wx_cv_use_regkey='wxUSE_REGKEY=no'
15766                           fi
15767                           cache=yes
15768
15769 else
15770
15771                           cache=no
15772                           LINE=`grep "^wxUSE_REGKEY=" ${wx_arg_cache_file}`
15773                           if test "x$LINE" != x ; then
15774                             eval "DEFAULT_$LINE"
15775                           fi
15776
15777                           wx_cv_use_regkey='wxUSE_REGKEY=${'DEFAULT_wxUSE_REGKEY":-$defaultval}"
15778
15779 fi
15780
15781
15782           eval "$wx_cv_use_regkey"
15783           if test "x$cache" = xyes; then
15784             echo "wxUSE_REGKEY=$wxUSE_REGKEY" >> ${wx_arg_cache_file}.tmp
15785           fi
15786
15787           if test x"$enablestring" = xdisable; then
15788             if test $wxUSE_REGKEY = yes; then
15789               result=no
15790             else
15791               result=yes
15792             fi
15793           else
15794             result=$wxUSE_REGKEY
15795           fi
15796
15797           { echo "$as_me:$LINENO: result: $result" >&5
15798 echo "${ECHO_T}$result" >&6; }
15799
15800
15801           enablestring=
15802           defaultval=$wxUSE_ALL_FEATURES
15803           if test -z "$defaultval"; then
15804               if test x"$enablestring" = xdisable; then
15805                   defaultval=yes
15806               else
15807                   defaultval=no
15808               fi
15809           fi
15810
15811           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-uxtheme" >&5
15812 echo $ECHO_N "checking for --${enablestring:-enable}-uxtheme... $ECHO_C" >&6; }
15813           # Check whether --enable-uxtheme was given.
15814 if test "${enable_uxtheme+set}" = set; then
15815   enableval=$enable_uxtheme;
15816                           if test "$enableval" = yes; then
15817                             wx_cv_use_uxtheme='wxUSE_UXTHEME=yes'
15818                           else
15819                             wx_cv_use_uxtheme='wxUSE_UXTHEME=no'
15820                           fi
15821                           cache=yes
15822
15823 else
15824
15825                           cache=no
15826                           LINE=`grep "^wxUSE_UXTHEME=" ${wx_arg_cache_file}`
15827                           if test "x$LINE" != x ; then
15828                             eval "DEFAULT_$LINE"
15829                           fi
15830
15831                           wx_cv_use_uxtheme='wxUSE_UXTHEME=${'DEFAULT_wxUSE_UXTHEME":-$defaultval}"
15832
15833 fi
15834
15835
15836           eval "$wx_cv_use_uxtheme"
15837           if test "x$cache" = xyes; then
15838             echo "wxUSE_UXTHEME=$wxUSE_UXTHEME" >> ${wx_arg_cache_file}.tmp
15839           fi
15840
15841           if test x"$enablestring" = xdisable; then
15842             if test $wxUSE_UXTHEME = yes; then
15843               result=no
15844             else
15845               result=yes
15846             fi
15847           else
15848             result=$wxUSE_UXTHEME
15849           fi
15850
15851           { echo "$as_me:$LINENO: result: $result" >&5
15852 echo "${ECHO_T}$result" >&6; }
15853
15854
15855           enablestring=
15856           defaultval=$wxUSE_ALL_FEATURES
15857           if test -z "$defaultval"; then
15858               if test x"$enablestring" = xdisable; then
15859                   defaultval=yes
15860               else
15861                   defaultval=no
15862               fi
15863           fi
15864
15865           { echo "$as_me:$LINENO: checking for --${enablestring:-enable}-wxdib" >&5
15866 echo $ECHO_N "checking for --${enablestring:-enable}-wxdib... $ECHO_C" >&6; }
15867           # Check whether --enable-wxdib was given.
15868 if test "${enable_wxdib+set}" = set; then
15869   enableval=$enable_wxdib;
15870                           if test "$enableval" = yes; then
15871                             wx_cv_use_wxdib='wxUSE_DIB=yes'
15872                           else
15873                             wx_cv_use_wxdib='wxUSE_DIB=no'
15874                           fi
15875                           cache=yes
15876
15877 else
15878
15879                           cache=no
15880                           LINE=`grep "^wxUSE_DIB=" ${wx_arg_cache_file}`
15881                           if test "x$LINE" != x ; then
15882                             eval "DEFAULT_$LINE"
15883                           fi
15884
15885                           wx_cv_use_wxdib='wxUSE_DIB=${'DEFAULT_wxUSE_DIB":-$defaultval}"
15886
15887 fi
15888
15889
15890           eval "$wx_cv_use_wxdib"
15891           if test "x$cache" = xyes; then
15892             echo "wxUSE_DIB=$wxUSE_DIB" >> ${wx_arg_cache_file}.tmp
15893           fi
15894
15895           if test x"$enablestring" = xdisable; then
15896             if test $wxUSE_DIB = yes; then
15897               result=no
15898             else
15899               result=yes
15900             fi
15901           else
15902             result=$wxUSE_DIB
15903           fi
15904
15905           { echo "$as_me:$LINENO: result: $result" >&5
15906 echo "${ECHO_T}$result" >&6; }
15907
15908
15909 fi
15910
15911
15912           echo "saving argument cache $wx_arg_cache_file"
15913           mv ${wx_arg_cache_file}.tmp ${wx_arg_cache_file}
15914
15915
15916
15917 { echo "$as_me:$LINENO: checking for toolkit" >&5
15918 echo $ECHO_N "checking for toolkit... $ECHO_C" >&6; }
15919
15920 # In Wine, we need to default to MSW, not GTK or MOTIF
15921 if test "$wxUSE_WINE" = "yes"; then
15922     DEFAULT_DEFAULT_wxUSE_GTK=0
15923     DEFAULT_DEFAULT_wxUSE_MOTIF=0
15924     DEFAULT_DEFAULT_wxUSE_MSW=1
15925     wxUSE_SHARED=no
15926     CC=${CC:-winegcc}
15927     CXX=${CXX:-wineg++}
15928 fi
15929
15930
15931 if test "$wxUSE_GUI" = "yes"; then
15932
15933     if test "$USE_BEOS" = 1; then
15934         { { echo "$as_me:$LINENO: error: BeOS GUI is not supported yet, use --disable-gui" >&5
15935 echo "$as_me: error: BeOS GUI is not supported yet, use --disable-gui" >&2;}
15936    { (exit 1); exit 1; }; }
15937     fi
15938
15939     if test "$TOOLKIT_GIVEN" = 1; then
15940             for toolkit in `echo $ALL_TOOLKITS`; do
15941         var=wxUSE_$toolkit
15942         eval "value=\$${var}"
15943         if test "x$value" = "xno"; then
15944           eval "$var=0"
15945         elif test "x$value" != "x"; then
15946           eval "$var=1"
15947         fi
15948
15949         if test "x$value" != "x" -a "x$value" != "xyes" -a "x$value" != "xno"; then
15950           eval "wx${toolkit}_VERSION=$value"
15951         fi
15952       done
15953     else
15954             for toolkit in `echo $ALL_TOOLKITS`; do
15955         if test "$has_toolkit_in_cache" != 1; then
15956           var=DEFAULT_DEFAULT_wxUSE_$toolkit
15957         else
15958           var=DEFAULT_wxUSE_$toolkit
15959
15960           eval "version=\$DEFAULT_wx${toolkit}_VERSION"
15961           if test "x$version" != "x"; then
15962             eval "wx${toolkit}_VERSION=$version"
15963           fi
15964         fi
15965         eval "wxUSE_$toolkit=\$${var}"
15966       done
15967     fi
15968
15969             NUM_TOOLKITS=`expr ${wxUSE_COCOA:-0} + ${wxUSE_GTK:-0} + ${wxUSE_MAC:-0} \
15970                   + ${wxUSE_MGL:-0} + ${wxUSE_DFB:-0} + ${wxUSE_MICROWIN:-0} \
15971                   + ${wxUSE_MOTIF:-0} + ${wxUSE_MSW:-0} + ${wxUSE_X11:-0}`
15972
15973         case "${host}" in
15974       *-pc-os2_emx | *-pc-os2-emx )
15975         NUM_TOOLKITS=`expr ${NUM_TOOLKITS} + ${wxUSE_PM:-0}`
15976     esac
15977
15978     case "$NUM_TOOLKITS" in
15979       1)
15980       ;;
15981       0)
15982         { { echo "$as_me:$LINENO: error: Please specify a toolkit -- cannot determine the default for ${host}" >&5
15983 echo "$as_me: error: Please specify a toolkit -- cannot determine the default for ${host}" >&2;}
15984    { (exit 1); exit 1; }; }
15985       ;;
15986       *)
15987         { { echo "$as_me:$LINENO: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&5
15988 echo "$as_me: error: Please specify at most one toolkit (maybe some are cached in configarg.cache?)" >&2;}
15989    { (exit 1); exit 1; }; }
15990     esac
15991
15992     # to be removed when --disable-gtk2 isn't needed
15993     if test "x$wxUSE_GTK2" = "xyes"; then
15994         wxGTK_VERSION=2
15995     elif test "x$wxUSE_GTK2" = "xno"; then
15996         wxGTK_VERSION=1
15997     fi
15998
15999         for toolkit in `echo $ALL_TOOLKITS`; do
16000       var=wxUSE_$toolkit
16001       eval "value=\$${var}"
16002       if test "x$value" != x; then
16003         cache_var=CACHE_$toolkit
16004         eval "cache=\$${cache_var}"
16005         if test "$cache" = 1; then
16006           echo "$var=$value" >> ${wx_arg_cache_file}
16007           eval "version=\$wx${toolkit}_VERSION"
16008           if test "x$version" != "x"; then
16009             echo "wx${toolkit}_VERSION=$version" >> ${wx_arg_cache_file}
16010           fi
16011         fi
16012         if test "$value" = 1; then
16013           toolkit_echo=`echo $toolkit | tr "[A-Z]" "[a-z]"`
16014           { echo "$as_me:$LINENO: result: $toolkit_echo" >&5
16015 echo "${ECHO_T}$toolkit_echo" >&6; }
16016         fi
16017       fi
16018     done
16019 else
16020     if test "x$host_alias" != "x"; then
16021         { echo "$as_me:$LINENO: result: base ($host_alias hosted) only" >&5
16022 echo "${ECHO_T}base ($host_alias hosted) only" >&6; }
16023     else
16024         { echo "$as_me:$LINENO: result: base only" >&5
16025 echo "${ECHO_T}base only" >&6; }
16026     fi
16027 fi
16028
16029
16030 cat >confcache <<\_ACEOF
16031 # This file is a shell script that caches the results of configure
16032 # tests run on this system so they can be shared between configure
16033 # scripts and configure runs, see configure's option --config-cache.
16034 # It is not useful on other systems.  If it contains results you don't
16035 # want to keep, you may remove or edit it.
16036 #
16037 # config.status only pays attention to the cache file if you give it
16038 # the --recheck option to rerun configure.
16039 #
16040 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16041 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16042 # following values.
16043
16044 _ACEOF
16045
16046 # The following way of writing the cache mishandles newlines in values,
16047 # but we know of no workaround that is simple, portable, and efficient.
16048 # So, we kill variables containing newlines.
16049 # Ultrix sh set writes to stderr and can't be redirected directly,
16050 # and sets the high bit in the cache file unless we assign to the vars.
16051 (
16052   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16053     eval ac_val=\$$ac_var
16054     case $ac_val in #(
16055     *${as_nl}*)
16056       case $ac_var in #(
16057       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
16058 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
16059       esac
16060       case $ac_var in #(
16061       _ | IFS | as_nl) ;; #(
16062       *) $as_unset $ac_var ;;
16063       esac ;;
16064     esac
16065   done
16066
16067   (set) 2>&1 |
16068     case $as_nl`(ac_space=' '; set) 2>&1` in #(
16069     *${as_nl}ac_space=\ *)
16070       # `set' does not quote correctly, so add quotes (double-quote
16071       # substitution turns \\\\ into \\, and sed turns \\ into \).
16072       sed -n \
16073         "s/'/'\\\\''/g;
16074           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16075       ;; #(
16076     *)
16077       # `set' quotes correctly as required by POSIX, so do not add quotes.
16078       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16079       ;;
16080     esac |
16081     sort
16082 ) |
16083   sed '
16084      /^ac_cv_env_/b end
16085      t clear
16086      :clear
16087      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16088      t end
16089      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16090      :end' >>confcache
16091 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16092   if test -w "$cache_file"; then
16093     test "x$cache_file" != "x/dev/null" &&
16094       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
16095 echo "$as_me: updating cache $cache_file" >&6;}
16096     cat confcache >$cache_file
16097   else
16098     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
16099 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16100   fi
16101 fi
16102 rm -f confcache
16103
16104 CFLAGS=${CFLAGS:=}
16105
16106
16107
16108     ac_ext=c
16109 ac_cpp='$CPP $CPPFLAGS'
16110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16113 if test -n "$ac_tool_prefix"; then
16114   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16118 if test "${ac_cv_prog_CC+set}" = set; then
16119   echo $ECHO_N "(cached) $ECHO_C" >&6
16120 else
16121   if test -n "$CC"; then
16122   ac_cv_prog_CC="$CC" # Let the user override the test.
16123 else
16124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16125 for as_dir in $PATH
16126 do
16127   IFS=$as_save_IFS
16128   test -z "$as_dir" && as_dir=.
16129   for ac_exec_ext in '' $ac_executable_extensions; do
16130   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16131     ac_cv_prog_CC="${ac_tool_prefix}gcc"
16132     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16133     break 2
16134   fi
16135 done
16136 done
16137 IFS=$as_save_IFS
16138
16139 fi
16140 fi
16141 CC=$ac_cv_prog_CC
16142 if test -n "$CC"; then
16143   { echo "$as_me:$LINENO: result: $CC" >&5
16144 echo "${ECHO_T}$CC" >&6; }
16145 else
16146   { echo "$as_me:$LINENO: result: no" >&5
16147 echo "${ECHO_T}no" >&6; }
16148 fi
16149
16150
16151 fi
16152 if test -z "$ac_cv_prog_CC"; then
16153   ac_ct_CC=$CC
16154   # Extract the first word of "gcc", so it can be a program name with args.
16155 set dummy gcc; ac_word=$2
16156 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16157 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16158 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16159   echo $ECHO_N "(cached) $ECHO_C" >&6
16160 else
16161   if test -n "$ac_ct_CC"; then
16162   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16163 else
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16166 do
16167   IFS=$as_save_IFS
16168   test -z "$as_dir" && as_dir=.
16169   for ac_exec_ext in '' $ac_executable_extensions; do
16170   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16171     ac_cv_prog_ac_ct_CC="gcc"
16172     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16173     break 2
16174   fi
16175 done
16176 done
16177 IFS=$as_save_IFS
16178
16179 fi
16180 fi
16181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16182 if test -n "$ac_ct_CC"; then
16183   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16184 echo "${ECHO_T}$ac_ct_CC" >&6; }
16185 else
16186   { echo "$as_me:$LINENO: result: no" >&5
16187 echo "${ECHO_T}no" >&6; }
16188 fi
16189
16190   if test "x$ac_ct_CC" = x; then
16191     CC=""
16192   else
16193     case $cross_compiling:$ac_tool_warned in
16194 yes:)
16195 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16196 whose name does not start with the host triplet.  If you think this
16197 configuration is useful to you, please write to autoconf@gnu.org." >&5
16198 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16199 whose name does not start with the host triplet.  If you think this
16200 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16201 ac_tool_warned=yes ;;
16202 esac
16203     CC=$ac_ct_CC
16204   fi
16205 else
16206   CC="$ac_cv_prog_CC"
16207 fi
16208
16209 if test -z "$CC"; then
16210           if test -n "$ac_tool_prefix"; then
16211     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16212 set dummy ${ac_tool_prefix}cc; ac_word=$2
16213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16215 if test "${ac_cv_prog_CC+set}" = set; then
16216   echo $ECHO_N "(cached) $ECHO_C" >&6
16217 else
16218   if test -n "$CC"; then
16219   ac_cv_prog_CC="$CC" # Let the user override the test.
16220 else
16221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16222 for as_dir in $PATH
16223 do
16224   IFS=$as_save_IFS
16225   test -z "$as_dir" && as_dir=.
16226   for ac_exec_ext in '' $ac_executable_extensions; do
16227   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16228     ac_cv_prog_CC="${ac_tool_prefix}cc"
16229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16230     break 2
16231   fi
16232 done
16233 done
16234 IFS=$as_save_IFS
16235
16236 fi
16237 fi
16238 CC=$ac_cv_prog_CC
16239 if test -n "$CC"; then
16240   { echo "$as_me:$LINENO: result: $CC" >&5
16241 echo "${ECHO_T}$CC" >&6; }
16242 else
16243   { echo "$as_me:$LINENO: result: no" >&5
16244 echo "${ECHO_T}no" >&6; }
16245 fi
16246
16247
16248   fi
16249 fi
16250 if test -z "$CC"; then
16251   # Extract the first word of "cc", so it can be a program name with args.
16252 set dummy cc; ac_word=$2
16253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16255 if test "${ac_cv_prog_CC+set}" = set; then
16256   echo $ECHO_N "(cached) $ECHO_C" >&6
16257 else
16258   if test -n "$CC"; then
16259   ac_cv_prog_CC="$CC" # Let the user override the test.
16260 else
16261   ac_prog_rejected=no
16262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16263 for as_dir in $PATH
16264 do
16265   IFS=$as_save_IFS
16266   test -z "$as_dir" && as_dir=.
16267   for ac_exec_ext in '' $ac_executable_extensions; do
16268   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16269     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16270        ac_prog_rejected=yes
16271        continue
16272      fi
16273     ac_cv_prog_CC="cc"
16274     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16275     break 2
16276   fi
16277 done
16278 done
16279 IFS=$as_save_IFS
16280
16281 if test $ac_prog_rejected = yes; then
16282   # We found a bogon in the path, so make sure we never use it.
16283   set dummy $ac_cv_prog_CC
16284   shift
16285   if test $# != 0; then
16286     # We chose a different compiler from the bogus one.
16287     # However, it has the same basename, so the bogon will be chosen
16288     # first if we set CC to just the basename; use the full file name.
16289     shift
16290     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16291   fi
16292 fi
16293 fi
16294 fi
16295 CC=$ac_cv_prog_CC
16296 if test -n "$CC"; then
16297   { echo "$as_me:$LINENO: result: $CC" >&5
16298 echo "${ECHO_T}$CC" >&6; }
16299 else
16300   { echo "$as_me:$LINENO: result: no" >&5
16301 echo "${ECHO_T}no" >&6; }
16302 fi
16303
16304
16305 fi
16306 if test -z "$CC"; then
16307   if test -n "$ac_tool_prefix"; then
16308   for ac_prog in cl.exe
16309   do
16310     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16314 if test "${ac_cv_prog_CC+set}" = set; then
16315   echo $ECHO_N "(cached) $ECHO_C" >&6
16316 else
16317   if test -n "$CC"; then
16318   ac_cv_prog_CC="$CC" # Let the user override the test.
16319 else
16320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16321 for as_dir in $PATH
16322 do
16323   IFS=$as_save_IFS
16324   test -z "$as_dir" && as_dir=.
16325   for ac_exec_ext in '' $ac_executable_extensions; do
16326   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16327     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16328     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16329     break 2
16330   fi
16331 done
16332 done
16333 IFS=$as_save_IFS
16334
16335 fi
16336 fi
16337 CC=$ac_cv_prog_CC
16338 if test -n "$CC"; then
16339   { echo "$as_me:$LINENO: result: $CC" >&5
16340 echo "${ECHO_T}$CC" >&6; }
16341 else
16342   { echo "$as_me:$LINENO: result: no" >&5
16343 echo "${ECHO_T}no" >&6; }
16344 fi
16345
16346
16347     test -n "$CC" && break
16348   done
16349 fi
16350 if test -z "$CC"; then
16351   ac_ct_CC=$CC
16352   for ac_prog in cl.exe
16353 do
16354   # Extract the first word of "$ac_prog", so it can be a program name with args.
16355 set dummy $ac_prog; ac_word=$2
16356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16358 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
16359   echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361   if test -n "$ac_ct_CC"; then
16362   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16363 else
16364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16365 for as_dir in $PATH
16366 do
16367   IFS=$as_save_IFS
16368   test -z "$as_dir" && as_dir=.
16369   for ac_exec_ext in '' $ac_executable_extensions; do
16370   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16371     ac_cv_prog_ac_ct_CC="$ac_prog"
16372     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16373     break 2
16374   fi
16375 done
16376 done
16377 IFS=$as_save_IFS
16378
16379 fi
16380 fi
16381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16382 if test -n "$ac_ct_CC"; then
16383   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
16384 echo "${ECHO_T}$ac_ct_CC" >&6; }
16385 else
16386   { echo "$as_me:$LINENO: result: no" >&5
16387 echo "${ECHO_T}no" >&6; }
16388 fi
16389
16390
16391   test -n "$ac_ct_CC" && break
16392 done
16393
16394   if test "x$ac_ct_CC" = x; then
16395     CC=""
16396   else
16397     case $cross_compiling:$ac_tool_warned in
16398 yes:)
16399 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
16400 whose name does not start with the host triplet.  If you think this
16401 configuration is useful to you, please write to autoconf@gnu.org." >&5
16402 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
16403 whose name does not start with the host triplet.  If you think this
16404 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
16405 ac_tool_warned=yes ;;
16406 esac
16407     CC=$ac_ct_CC
16408   fi
16409 fi
16410
16411 fi
16412
16413
16414 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
16415 See \`config.log' for more details." >&5
16416 echo "$as_me: error: no acceptable C compiler found in \$PATH
16417 See \`config.log' for more details." >&2;}
16418    { (exit 1); exit 1; }; }
16419
16420 # Provide some information about the compiler.
16421 echo "$as_me:$LINENO: checking for C compiler version" >&5
16422 ac_compiler=`set X $ac_compile; echo $2`
16423 { (ac_try="$ac_compiler --version >&5"
16424 case "(($ac_try" in
16425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16426   *) ac_try_echo=$ac_try;;
16427 esac
16428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16429   (eval "$ac_compiler --version >&5") 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }
16433 { (ac_try="$ac_compiler -v >&5"
16434 case "(($ac_try" in
16435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16436   *) ac_try_echo=$ac_try;;
16437 esac
16438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16439   (eval "$ac_compiler -v >&5") 2>&5
16440   ac_status=$?
16441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442   (exit $ac_status); }
16443 { (ac_try="$ac_compiler -V >&5"
16444 case "(($ac_try" in
16445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16446   *) ac_try_echo=$ac_try;;
16447 esac
16448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16449   (eval "$ac_compiler -V >&5") 2>&5
16450   ac_status=$?
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); }
16453
16454 cat >conftest.$ac_ext <<_ACEOF
16455 /* confdefs.h.  */
16456 _ACEOF
16457 cat confdefs.h >>conftest.$ac_ext
16458 cat >>conftest.$ac_ext <<_ACEOF
16459 /* end confdefs.h.  */
16460
16461 int
16462 main ()
16463 {
16464
16465   ;
16466   return 0;
16467 }
16468 _ACEOF
16469 ac_clean_files_save=$ac_clean_files
16470 ac_clean_files="$ac_clean_files a.out a.exe b.out"
16471 # Try to create an executable without -o first, disregard a.out.
16472 # It will help us diagnose broken compilers, and finding out an intuition
16473 # of exeext.
16474 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
16475 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
16476 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
16477 #
16478 # List of possible output files, starting from the most likely.
16479 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
16480 # only as a last resort.  b.out is created by i960 compilers.
16481 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
16482 #
16483 # The IRIX 6 linker writes into existing files which may not be
16484 # executable, retaining their permissions.  Remove them first so a
16485 # subsequent execution test works.
16486 ac_rmfiles=
16487 for ac_file in $ac_files
16488 do
16489   case $ac_file in
16490     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16491     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
16492   esac
16493 done
16494 rm -f $ac_rmfiles
16495
16496 if { (ac_try="$ac_link_default"
16497 case "(($ac_try" in
16498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16499   *) ac_try_echo=$ac_try;;
16500 esac
16501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16502   (eval "$ac_link_default") 2>&5
16503   ac_status=$?
16504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505   (exit $ac_status); }; then
16506   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
16507 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
16508 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
16509 # so that the user can short-circuit this test for compilers unknown to
16510 # Autoconf.
16511 for ac_file in $ac_files ''
16512 do
16513   test -f "$ac_file" || continue
16514   case $ac_file in
16515     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
16516         ;;
16517     [ab].out )
16518         # We found the default executable, but exeext='' is most
16519         # certainly right.
16520         break;;
16521     *.* )
16522         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
16523         then :; else
16524            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16525         fi
16526         # We set ac_cv_exeext here because the later test for it is not
16527         # safe: cross compilers may not add the suffix if given an `-o'
16528         # argument, so we may need to know it at that point already.
16529         # Even if this section looks crufty: it has the advantage of
16530         # actually working.
16531         break;;
16532     * )
16533         break;;
16534   esac
16535 done
16536 test "$ac_cv_exeext" = no && ac_cv_exeext=
16537
16538 else
16539   ac_file=''
16540 fi
16541
16542 { echo "$as_me:$LINENO: result: $ac_file" >&5
16543 echo "${ECHO_T}$ac_file" >&6; }
16544 if test -z "$ac_file"; then
16545   echo "$as_me: failed program was:" >&5
16546 sed 's/^/| /' conftest.$ac_ext >&5
16547
16548 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
16549 See \`config.log' for more details." >&5
16550 echo "$as_me: error: C compiler cannot create executables
16551 See \`config.log' for more details." >&2;}
16552    { (exit 77); exit 77; }; }
16553 fi
16554
16555 ac_exeext=$ac_cv_exeext
16556
16557 # Check that the compiler produces executables we can run.  If not, either
16558 # the compiler is broken, or we cross compile.
16559 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
16560 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
16561 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
16562 # If not cross compiling, check that we can run a simple program.
16563 if test "$cross_compiling" != yes; then
16564   if { ac_try='./$ac_file'
16565   { (case "(($ac_try" in
16566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567   *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570   (eval "$ac_try") 2>&5
16571   ac_status=$?
16572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573   (exit $ac_status); }; }; then
16574     cross_compiling=no
16575   else
16576     if test "$cross_compiling" = maybe; then
16577         cross_compiling=yes
16578     else
16579         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
16580 If you meant to cross compile, use \`--host'.
16581 See \`config.log' for more details." >&5
16582 echo "$as_me: error: cannot run C compiled programs.
16583 If you meant to cross compile, use \`--host'.
16584 See \`config.log' for more details." >&2;}
16585    { (exit 1); exit 1; }; }
16586     fi
16587   fi
16588 fi
16589 { echo "$as_me:$LINENO: result: yes" >&5
16590 echo "${ECHO_T}yes" >&6; }
16591
16592 rm -f a.out a.exe conftest$ac_cv_exeext b.out
16593 ac_clean_files=$ac_clean_files_save
16594 # Check that the compiler produces executables we can run.  If not, either
16595 # the compiler is broken, or we cross compile.
16596 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
16597 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
16598 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
16599 echo "${ECHO_T}$cross_compiling" >&6; }
16600
16601 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
16602 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
16603 if { (ac_try="$ac_link"
16604 case "(($ac_try" in
16605   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16606   *) ac_try_echo=$ac_try;;
16607 esac
16608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16609   (eval "$ac_link") 2>&5
16610   ac_status=$?
16611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16612   (exit $ac_status); }; then
16613   # If both `conftest.exe' and `conftest' are `present' (well, observable)
16614 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
16615 # work properly (i.e., refer to `conftest.exe'), while it won't with
16616 # `rm'.
16617 for ac_file in conftest.exe conftest conftest.*; do
16618   test -f "$ac_file" || continue
16619   case $ac_file in
16620     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
16621     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
16622           break;;
16623     * ) break;;
16624   esac
16625 done
16626 else
16627   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
16628 See \`config.log' for more details." >&5
16629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
16630 See \`config.log' for more details." >&2;}
16631    { (exit 1); exit 1; }; }
16632 fi
16633
16634 rm -f conftest$ac_cv_exeext
16635 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
16636 echo "${ECHO_T}$ac_cv_exeext" >&6; }
16637
16638 rm -f conftest.$ac_ext
16639 EXEEXT=$ac_cv_exeext
16640 ac_exeext=$EXEEXT
16641 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
16642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
16643 if test "${ac_cv_objext+set}" = set; then
16644   echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646   cat >conftest.$ac_ext <<_ACEOF
16647 /* confdefs.h.  */
16648 _ACEOF
16649 cat confdefs.h >>conftest.$ac_ext
16650 cat >>conftest.$ac_ext <<_ACEOF
16651 /* end confdefs.h.  */
16652
16653 int
16654 main ()
16655 {
16656
16657   ;
16658   return 0;
16659 }
16660 _ACEOF
16661 rm -f conftest.o conftest.obj
16662 if { (ac_try="$ac_compile"
16663 case "(($ac_try" in
16664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16665   *) ac_try_echo=$ac_try;;
16666 esac
16667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16668   (eval "$ac_compile") 2>&5
16669   ac_status=$?
16670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16671   (exit $ac_status); }; then
16672   for ac_file in conftest.o conftest.obj conftest.*; do
16673   test -f "$ac_file" || continue;
16674   case $ac_file in
16675     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
16676     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
16677        break;;
16678   esac
16679 done
16680 else
16681   echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16683
16684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
16685 See \`config.log' for more details." >&5
16686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
16687 See \`config.log' for more details." >&2;}
16688    { (exit 1); exit 1; }; }
16689 fi
16690
16691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
16692 fi
16693 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
16694 echo "${ECHO_T}$ac_cv_objext" >&6; }
16695 OBJEXT=$ac_cv_objext
16696 ac_objext=$OBJEXT
16697 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
16698 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
16699 if test "${ac_cv_c_compiler_gnu+set}" = set; then
16700   echo $ECHO_N "(cached) $ECHO_C" >&6
16701 else
16702   cat >conftest.$ac_ext <<_ACEOF
16703 /* confdefs.h.  */
16704 _ACEOF
16705 cat confdefs.h >>conftest.$ac_ext
16706 cat >>conftest.$ac_ext <<_ACEOF
16707 /* end confdefs.h.  */
16708
16709 int
16710 main ()
16711 {
16712 #ifndef __GNUC__
16713        choke me
16714 #endif
16715
16716   ;
16717   return 0;
16718 }
16719 _ACEOF
16720 rm -f conftest.$ac_objext
16721 if { (ac_try="$ac_compile"
16722 case "(($ac_try" in
16723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724   *) ac_try_echo=$ac_try;;
16725 esac
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727   (eval "$ac_compile") 2>conftest.er1
16728   ac_status=$?
16729   grep -v '^ *+' conftest.er1 >conftest.err
16730   rm -f conftest.er1
16731   cat conftest.err >&5
16732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16733   (exit $ac_status); } && {
16734          test -z "$ac_c_werror_flag" ||
16735          test ! -s conftest.err
16736        } && test -s conftest.$ac_objext; then
16737   ac_compiler_gnu=yes
16738 else
16739   echo "$as_me: failed program was:" >&5
16740 sed 's/^/| /' conftest.$ac_ext >&5
16741
16742         ac_compiler_gnu=no
16743 fi
16744
16745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16746 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16747
16748 fi
16749 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
16750 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
16751 GCC=`test $ac_compiler_gnu = yes && echo yes`
16752 ac_test_CFLAGS=${CFLAGS+set}
16753 ac_save_CFLAGS=$CFLAGS
16754 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
16755 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
16756 if test "${ac_cv_prog_cc_g+set}" = set; then
16757   echo $ECHO_N "(cached) $ECHO_C" >&6
16758 else
16759   ac_save_c_werror_flag=$ac_c_werror_flag
16760    ac_c_werror_flag=yes
16761    ac_cv_prog_cc_g=no
16762    CFLAGS="-g"
16763    cat >conftest.$ac_ext <<_ACEOF
16764 /* confdefs.h.  */
16765 _ACEOF
16766 cat confdefs.h >>conftest.$ac_ext
16767 cat >>conftest.$ac_ext <<_ACEOF
16768 /* end confdefs.h.  */
16769
16770 int
16771 main ()
16772 {
16773
16774   ;
16775   return 0;
16776 }
16777 _ACEOF
16778 rm -f conftest.$ac_objext
16779 if { (ac_try="$ac_compile"
16780 case "(($ac_try" in
16781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16782   *) ac_try_echo=$ac_try;;
16783 esac
16784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16785   (eval "$ac_compile") 2>conftest.er1
16786   ac_status=$?
16787   grep -v '^ *+' conftest.er1 >conftest.err
16788   rm -f conftest.er1
16789   cat conftest.err >&5
16790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791   (exit $ac_status); } && {
16792          test -z "$ac_c_werror_flag" ||
16793          test ! -s conftest.err
16794        } && test -s conftest.$ac_objext; then
16795   ac_cv_prog_cc_g=yes
16796 else
16797   echo "$as_me: failed program was:" >&5
16798 sed 's/^/| /' conftest.$ac_ext >&5
16799
16800         CFLAGS=""
16801       cat >conftest.$ac_ext <<_ACEOF
16802 /* confdefs.h.  */
16803 _ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h.  */
16807
16808 int
16809 main ()
16810 {
16811
16812   ;
16813   return 0;
16814 }
16815 _ACEOF
16816 rm -f conftest.$ac_objext
16817 if { (ac_try="$ac_compile"
16818 case "(($ac_try" in
16819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16820   *) ac_try_echo=$ac_try;;
16821 esac
16822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16823   (eval "$ac_compile") 2>conftest.er1
16824   ac_status=$?
16825   grep -v '^ *+' conftest.er1 >conftest.err
16826   rm -f conftest.er1
16827   cat conftest.err >&5
16828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829   (exit $ac_status); } && {
16830          test -z "$ac_c_werror_flag" ||
16831          test ! -s conftest.err
16832        } && test -s conftest.$ac_objext; then
16833   :
16834 else
16835   echo "$as_me: failed program was:" >&5
16836 sed 's/^/| /' conftest.$ac_ext >&5
16837
16838         ac_c_werror_flag=$ac_save_c_werror_flag
16839          CFLAGS="-g"
16840          cat >conftest.$ac_ext <<_ACEOF
16841 /* confdefs.h.  */
16842 _ACEOF
16843 cat confdefs.h >>conftest.$ac_ext
16844 cat >>conftest.$ac_ext <<_ACEOF
16845 /* end confdefs.h.  */
16846
16847 int
16848 main ()
16849 {
16850
16851   ;
16852   return 0;
16853 }
16854 _ACEOF
16855 rm -f conftest.$ac_objext
16856 if { (ac_try="$ac_compile"
16857 case "(($ac_try" in
16858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16859   *) ac_try_echo=$ac_try;;
16860 esac
16861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16862   (eval "$ac_compile") 2>conftest.er1
16863   ac_status=$?
16864   grep -v '^ *+' conftest.er1 >conftest.err
16865   rm -f conftest.er1
16866   cat conftest.err >&5
16867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16868   (exit $ac_status); } && {
16869          test -z "$ac_c_werror_flag" ||
16870          test ! -s conftest.err
16871        } && test -s conftest.$ac_objext; then
16872   ac_cv_prog_cc_g=yes
16873 else
16874   echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877
16878 fi
16879
16880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16881 fi
16882
16883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16884 fi
16885
16886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16887    ac_c_werror_flag=$ac_save_c_werror_flag
16888 fi
16889 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
16890 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
16891 if test "$ac_test_CFLAGS" = set; then
16892   CFLAGS=$ac_save_CFLAGS
16893 elif test $ac_cv_prog_cc_g = yes; then
16894   if test "$GCC" = yes; then
16895     CFLAGS="-g -O2"
16896   else
16897     CFLAGS="-g"
16898   fi
16899 else
16900   if test "$GCC" = yes; then
16901     CFLAGS="-O2"
16902   else
16903     CFLAGS=
16904   fi
16905 fi
16906 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
16907 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
16908 if test "${ac_cv_prog_cc_c89+set}" = set; then
16909   echo $ECHO_N "(cached) $ECHO_C" >&6
16910 else
16911   ac_cv_prog_cc_c89=no
16912 ac_save_CC=$CC
16913 cat >conftest.$ac_ext <<_ACEOF
16914 /* confdefs.h.  */
16915 _ACEOF
16916 cat confdefs.h >>conftest.$ac_ext
16917 cat >>conftest.$ac_ext <<_ACEOF
16918 /* end confdefs.h.  */
16919 #include <stdarg.h>
16920 #include <stdio.h>
16921 #include <sys/types.h>
16922 #include <sys/stat.h>
16923 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
16924 struct buf { int x; };
16925 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16926 static char *e (p, i)
16927      char **p;
16928      int i;
16929 {
16930   return p[i];
16931 }
16932 static char *f (char * (*g) (char **, int), char **p, ...)
16933 {
16934   char *s;
16935   va_list v;
16936   va_start (v,p);
16937   s = g (p, va_arg (v,int));
16938   va_end (v);
16939   return s;
16940 }
16941
16942 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
16943    function prototypes and stuff, but not '\xHH' hex character constants.
16944    These don't provoke an error unfortunately, instead are silently treated
16945    as 'x'.  The following induces an error, until -std is added to get
16946    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
16947    array size at least.  It's necessary to write '\x00'==0 to get something
16948    that's true only with -std.  */
16949 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16950
16951 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16952    inside strings and character constants.  */
16953 #define FOO(x) 'x'
16954 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16955
16956 int test (int i, double x);
16957 struct s1 {int (*f) (int a);};
16958 struct s2 {int (*f) (double a);};
16959 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16960 int argc;
16961 char **argv;
16962 int
16963 main ()
16964 {
16965 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
16966   ;
16967   return 0;
16968 }
16969 _ACEOF
16970 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16971         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16972 do
16973   CC="$ac_save_CC $ac_arg"
16974   rm -f conftest.$ac_objext
16975 if { (ac_try="$ac_compile"
16976 case "(($ac_try" in
16977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16978   *) ac_try_echo=$ac_try;;
16979 esac
16980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16981   (eval "$ac_compile") 2>conftest.er1
16982   ac_status=$?
16983   grep -v '^ *+' conftest.er1 >conftest.err
16984   rm -f conftest.er1
16985   cat conftest.err >&5
16986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16987   (exit $ac_status); } && {
16988          test -z "$ac_c_werror_flag" ||
16989          test ! -s conftest.err
16990        } && test -s conftest.$ac_objext; then
16991   ac_cv_prog_cc_c89=$ac_arg
16992 else
16993   echo "$as_me: failed program was:" >&5
16994 sed 's/^/| /' conftest.$ac_ext >&5
16995
16996
16997 fi
16998
16999 rm -f core conftest.err conftest.$ac_objext
17000   test "x$ac_cv_prog_cc_c89" != "xno" && break
17001 done
17002 rm -f conftest.$ac_ext
17003 CC=$ac_save_CC
17004
17005 fi
17006 # AC_CACHE_VAL
17007 case "x$ac_cv_prog_cc_c89" in
17008   x)
17009     { echo "$as_me:$LINENO: result: none needed" >&5
17010 echo "${ECHO_T}none needed" >&6; } ;;
17011   xno)
17012     { echo "$as_me:$LINENO: result: unsupported" >&5
17013 echo "${ECHO_T}unsupported" >&6; } ;;
17014   *)
17015     CC="$CC $ac_cv_prog_cc_c89"
17016     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
17017 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
17018 esac
17019
17020
17021 ac_ext=c
17022 ac_cpp='$CPP $CPPFLAGS'
17023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17026
17027
17028
17029
17030     ac_ext=c
17031 ac_cpp='$CPP $CPPFLAGS'
17032 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17033 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17034 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17035
17036     { echo "$as_me:$LINENO: checking whether we are using the Intel C compiler" >&5
17037 echo $ECHO_N "checking whether we are using the Intel C compiler... $ECHO_C" >&6; }
17038 if test "${bakefile_cv_c_compiler___INTEL_COMPILER+set}" = set; then
17039   echo $ECHO_N "(cached) $ECHO_C" >&6
17040 else
17041   cat >conftest.$ac_ext <<_ACEOF
17042 /* confdefs.h.  */
17043 _ACEOF
17044 cat confdefs.h >>conftest.$ac_ext
17045 cat >>conftest.$ac_ext <<_ACEOF
17046 /* end confdefs.h.  */
17047
17048 int
17049 main ()
17050 {
17051
17052              #ifndef __INTEL_COMPILER
17053                 choke me
17054              #endif
17055
17056   ;
17057   return 0;
17058 }
17059 _ACEOF
17060 rm -f conftest.$ac_objext
17061 if { (ac_try="$ac_compile"
17062 case "(($ac_try" in
17063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17064   *) ac_try_echo=$ac_try;;
17065 esac
17066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17067   (eval "$ac_compile") 2>conftest.er1
17068   ac_status=$?
17069   grep -v '^ *+' conftest.er1 >conftest.err
17070   rm -f conftest.er1
17071   cat conftest.err >&5
17072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073   (exit $ac_status); } && {
17074          test -z "$ac_c_werror_flag" ||
17075          test ! -s conftest.err
17076        } && test -s conftest.$ac_objext; then
17077   bakefile_cv_c_compiler___INTEL_COMPILER=yes
17078 else
17079   echo "$as_me: failed program was:" >&5
17080 sed 's/^/| /' conftest.$ac_ext >&5
17081
17082         bakefile_cv_c_compiler___INTEL_COMPILER=no
17083
17084 fi
17085
17086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17087
17088
17089 fi
17090 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___INTEL_COMPILER" >&5
17091 echo "${ECHO_T}$bakefile_cv_c_compiler___INTEL_COMPILER" >&6; }
17092     if test "x$bakefile_cv_c_compiler___INTEL_COMPILER" = "xyes"; then
17093         :; INTELCC=yes
17094     else
17095         :;
17096     fi
17097     ac_ext=c
17098 ac_cpp='$CPP $CPPFLAGS'
17099 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17100 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17101 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17102
17103
17104
17105
17106         if test "x$GCC" != "xyes"; then
17107         if test "xCC" = "xC"; then
17108             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
17109 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
17110 if test "${bakefile_cv_c_exto+set}" = set; then
17111   echo $ECHO_N "(cached) $ECHO_C" >&6
17112 else
17113   cat >conftest.$ac_ext <<_ACEOF
17114 /* confdefs.h.  */
17115 _ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h.  */
17119
17120 int
17121 main ()
17122 {
17123
17124   ;
17125   return 0;
17126 }
17127 _ACEOF
17128 rm -f conftest.$ac_objext conftest.$ac_ext.o
17129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17130   (eval $ac_compile) 2>&5
17131   ac_status=$?
17132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17133   (exit $ac_status); }; then
17134   for ac_file in `(ls conftest.* 2>/dev/null)`; do
17135     case $ac_file in
17136         conftest.$ac_ext.o)
17137             bakefile_cv_c_exto="-ext o"
17138             ;;
17139         *)
17140             ;;
17141     esac
17142 done
17143 else
17144   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
17145 See \`config.log' for more details." >&5
17146 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
17147 See \`config.log' for more details." >&2;}
17148    { (exit 1); exit 1; }; }
17149
17150 fi
17151
17152 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
17153
17154 fi
17155 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
17156 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
17157 if test "x$bakefile_cv_c_exto" '!=' "x"; then
17158     if test "c" = "c"; then
17159         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
17160     fi
17161     if test "c" = "cxx"; then
17162         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
17163     fi
17164 fi
17165
17166             if test "x$bakefile_cv_c_exto" '!=' "x"; then
17167                 unset ac_cv_prog_cc_g
17168                 ac_test_CFLAGS=${CFLAGS+set}
17169 ac_save_CFLAGS=$CFLAGS
17170 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
17171 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
17172 if test "${ac_cv_prog_cc_g+set}" = set; then
17173   echo $ECHO_N "(cached) $ECHO_C" >&6
17174 else
17175   ac_save_c_werror_flag=$ac_c_werror_flag
17176    ac_c_werror_flag=yes
17177    ac_cv_prog_cc_g=no
17178    CFLAGS="-g"
17179    cat >conftest.$ac_ext <<_ACEOF
17180 /* confdefs.h.  */
17181 _ACEOF
17182 cat confdefs.h >>conftest.$ac_ext
17183 cat >>conftest.$ac_ext <<_ACEOF
17184 /* end confdefs.h.  */
17185
17186 int
17187 main ()
17188 {
17189
17190   ;
17191   return 0;
17192 }
17193 _ACEOF
17194 rm -f conftest.$ac_objext
17195 if { (ac_try="$ac_compile"
17196 case "(($ac_try" in
17197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198   *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201   (eval "$ac_compile") 2>conftest.er1
17202   ac_status=$?
17203   grep -v '^ *+' conftest.er1 >conftest.err
17204   rm -f conftest.er1
17205   cat conftest.err >&5
17206   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207   (exit $ac_status); } && {
17208          test -z "$ac_c_werror_flag" ||
17209          test ! -s conftest.err
17210        } && test -s conftest.$ac_objext; then
17211   ac_cv_prog_cc_g=yes
17212 else
17213   echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216         CFLAGS=""
17217       cat >conftest.$ac_ext <<_ACEOF
17218 /* confdefs.h.  */
17219 _ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h.  */
17223
17224 int
17225 main ()
17226 {
17227
17228   ;
17229   return 0;
17230 }
17231 _ACEOF
17232 rm -f conftest.$ac_objext
17233 if { (ac_try="$ac_compile"
17234 case "(($ac_try" in
17235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236   *) ac_try_echo=$ac_try;;
17237 esac
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239   (eval "$ac_compile") 2>conftest.er1
17240   ac_status=$?
17241   grep -v '^ *+' conftest.er1 >conftest.err
17242   rm -f conftest.er1
17243   cat conftest.err >&5
17244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17245   (exit $ac_status); } && {
17246          test -z "$ac_c_werror_flag" ||
17247          test ! -s conftest.err
17248        } && test -s conftest.$ac_objext; then
17249   :
17250 else
17251   echo "$as_me: failed program was:" >&5
17252 sed 's/^/| /' conftest.$ac_ext >&5
17253
17254         ac_c_werror_flag=$ac_save_c_werror_flag
17255          CFLAGS="-g"
17256          cat >conftest.$ac_ext <<_ACEOF
17257 /* confdefs.h.  */
17258 _ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h.  */
17262
17263 int
17264 main ()
17265 {
17266
17267   ;
17268   return 0;
17269 }
17270 _ACEOF
17271 rm -f conftest.$ac_objext
17272 if { (ac_try="$ac_compile"
17273 case "(($ac_try" in
17274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17275   *) ac_try_echo=$ac_try;;
17276 esac
17277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17278   (eval "$ac_compile") 2>conftest.er1
17279   ac_status=$?
17280   grep -v '^ *+' conftest.er1 >conftest.err
17281   rm -f conftest.er1
17282   cat conftest.err >&5
17283   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284   (exit $ac_status); } && {
17285          test -z "$ac_c_werror_flag" ||
17286          test ! -s conftest.err
17287        } && test -s conftest.$ac_objext; then
17288   ac_cv_prog_cc_g=yes
17289 else
17290   echo "$as_me: failed program was:" >&5
17291 sed 's/^/| /' conftest.$ac_ext >&5
17292
17293
17294 fi
17295
17296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17297 fi
17298
17299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17300 fi
17301
17302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17303    ac_c_werror_flag=$ac_save_c_werror_flag
17304 fi
17305 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
17306 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
17307 if test "$ac_test_CFLAGS" = set; then
17308   CFLAGS=$ac_save_CFLAGS
17309 elif test $ac_cv_prog_cc_g = yes; then
17310   if test "$GCC" = yes; then
17311     CFLAGS="-g -O2"
17312   else
17313     CFLAGS="-g"
17314   fi
17315 else
17316   if test "$GCC" = yes; then
17317     CFLAGS="-O2"
17318   else
17319     CFLAGS=
17320   fi
17321 fi
17322             fi
17323         fi
17324
17325                         case `uname -s` in
17326             AIX*)
17327
17328
17329     ac_ext=c
17330 ac_cpp='$CPP $CPPFLAGS'
17331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17334
17335     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17336 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17337 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17338   echo $ECHO_N "(cached) $ECHO_C" >&6
17339 else
17340   cat >conftest.$ac_ext <<_ACEOF
17341 /* confdefs.h.  */
17342 _ACEOF
17343 cat confdefs.h >>conftest.$ac_ext
17344 cat >>conftest.$ac_ext <<_ACEOF
17345 /* end confdefs.h.  */
17346
17347 int
17348 main ()
17349 {
17350
17351              #ifndef __xlC__
17352                 choke me
17353              #endif
17354
17355   ;
17356   return 0;
17357 }
17358 _ACEOF
17359 rm -f conftest.$ac_objext
17360 if { (ac_try="$ac_compile"
17361 case "(($ac_try" in
17362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363   *) ac_try_echo=$ac_try;;
17364 esac
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366   (eval "$ac_compile") 2>conftest.er1
17367   ac_status=$?
17368   grep -v '^ *+' conftest.er1 >conftest.err
17369   rm -f conftest.er1
17370   cat conftest.err >&5
17371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372   (exit $ac_status); } && {
17373          test -z "$ac_c_werror_flag" ||
17374          test ! -s conftest.err
17375        } && test -s conftest.$ac_objext; then
17376   bakefile_cv_c_compiler___xlC__=yes
17377 else
17378   echo "$as_me: failed program was:" >&5
17379 sed 's/^/| /' conftest.$ac_ext >&5
17380
17381         bakefile_cv_c_compiler___xlC__=no
17382
17383 fi
17384
17385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17386
17387
17388 fi
17389 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17390 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17391     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17392         :; XLCC=yes
17393     else
17394         :;
17395     fi
17396     ac_ext=c
17397 ac_cpp='$CPP $CPPFLAGS'
17398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17401
17402
17403
17404                 ;;
17405
17406             Darwin)
17407
17408
17409     ac_ext=c
17410 ac_cpp='$CPP $CPPFLAGS'
17411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17414
17415     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C compiler" >&5
17416 echo $ECHO_N "checking whether we are using the Metrowerks C compiler... $ECHO_C" >&6; }
17417 if test "${bakefile_cv_c_compiler___MWERKS__+set}" = set; then
17418   echo $ECHO_N "(cached) $ECHO_C" >&6
17419 else
17420   cat >conftest.$ac_ext <<_ACEOF
17421 /* confdefs.h.  */
17422 _ACEOF
17423 cat confdefs.h >>conftest.$ac_ext
17424 cat >>conftest.$ac_ext <<_ACEOF
17425 /* end confdefs.h.  */
17426
17427 int
17428 main ()
17429 {
17430
17431              #ifndef __MWERKS__
17432                 choke me
17433              #endif
17434
17435   ;
17436   return 0;
17437 }
17438 _ACEOF
17439 rm -f conftest.$ac_objext
17440 if { (ac_try="$ac_compile"
17441 case "(($ac_try" in
17442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17443   *) ac_try_echo=$ac_try;;
17444 esac
17445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17446   (eval "$ac_compile") 2>conftest.er1
17447   ac_status=$?
17448   grep -v '^ *+' conftest.er1 >conftest.err
17449   rm -f conftest.er1
17450   cat conftest.err >&5
17451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17452   (exit $ac_status); } && {
17453          test -z "$ac_c_werror_flag" ||
17454          test ! -s conftest.err
17455        } && test -s conftest.$ac_objext; then
17456   bakefile_cv_c_compiler___MWERKS__=yes
17457 else
17458   echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17460
17461         bakefile_cv_c_compiler___MWERKS__=no
17462
17463 fi
17464
17465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17466
17467
17468 fi
17469 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___MWERKS__" >&5
17470 echo "${ECHO_T}$bakefile_cv_c_compiler___MWERKS__" >&6; }
17471     if test "x$bakefile_cv_c_compiler___MWERKS__" = "xyes"; then
17472         :; MWCC=yes
17473     else
17474         :;
17475     fi
17476     ac_ext=c
17477 ac_cpp='$CPP $CPPFLAGS'
17478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17481
17482
17483
17484
17485
17486     ac_ext=c
17487 ac_cpp='$CPP $CPPFLAGS'
17488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17491
17492     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C compiler" >&5
17493 echo $ECHO_N "checking whether we are using the IBM xlC C compiler... $ECHO_C" >&6; }
17494 if test "${bakefile_cv_c_compiler___xlC__+set}" = set; then
17495   echo $ECHO_N "(cached) $ECHO_C" >&6
17496 else
17497   cat >conftest.$ac_ext <<_ACEOF
17498 /* confdefs.h.  */
17499 _ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h.  */
17503
17504 int
17505 main ()
17506 {
17507
17508              #ifndef __xlC__
17509                 choke me
17510              #endif
17511
17512   ;
17513   return 0;
17514 }
17515 _ACEOF
17516 rm -f conftest.$ac_objext
17517 if { (ac_try="$ac_compile"
17518 case "(($ac_try" in
17519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17520   *) ac_try_echo=$ac_try;;
17521 esac
17522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17523   (eval "$ac_compile") 2>conftest.er1
17524   ac_status=$?
17525   grep -v '^ *+' conftest.er1 >conftest.err
17526   rm -f conftest.er1
17527   cat conftest.err >&5
17528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17529   (exit $ac_status); } && {
17530          test -z "$ac_c_werror_flag" ||
17531          test ! -s conftest.err
17532        } && test -s conftest.$ac_objext; then
17533   bakefile_cv_c_compiler___xlC__=yes
17534 else
17535   echo "$as_me: failed program was:" >&5
17536 sed 's/^/| /' conftest.$ac_ext >&5
17537
17538         bakefile_cv_c_compiler___xlC__=no
17539
17540 fi
17541
17542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17543
17544
17545 fi
17546 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___xlC__" >&5
17547 echo "${ECHO_T}$bakefile_cv_c_compiler___xlC__" >&6; }
17548     if test "x$bakefile_cv_c_compiler___xlC__" = "xyes"; then
17549         :; XLCC=yes
17550     else
17551         :;
17552     fi
17553     ac_ext=c
17554 ac_cpp='$CPP $CPPFLAGS'
17555 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17556 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17557 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17558
17559
17560
17561                 ;;
17562
17563             IRIX*)
17564
17565
17566     ac_ext=c
17567 ac_cpp='$CPP $CPPFLAGS'
17568 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17569 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17570 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17571
17572     { echo "$as_me:$LINENO: checking whether we are using the SGI C compiler" >&5
17573 echo $ECHO_N "checking whether we are using the SGI C compiler... $ECHO_C" >&6; }
17574 if test "${bakefile_cv_c_compiler__SGI_COMPILER_VERSION+set}" = set; then
17575   echo $ECHO_N "(cached) $ECHO_C" >&6
17576 else
17577   cat >conftest.$ac_ext <<_ACEOF
17578 /* confdefs.h.  */
17579 _ACEOF
17580 cat confdefs.h >>conftest.$ac_ext
17581 cat >>conftest.$ac_ext <<_ACEOF
17582 /* end confdefs.h.  */
17583
17584 int
17585 main ()
17586 {
17587
17588              #ifndef _SGI_COMPILER_VERSION
17589                 choke me
17590              #endif
17591
17592   ;
17593   return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext
17597 if { (ac_try="$ac_compile"
17598 case "(($ac_try" in
17599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600   *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603   (eval "$ac_compile") 2>conftest.er1
17604   ac_status=$?
17605   grep -v '^ *+' conftest.er1 >conftest.err
17606   rm -f conftest.er1
17607   cat conftest.err >&5
17608   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609   (exit $ac_status); } && {
17610          test -z "$ac_c_werror_flag" ||
17611          test ! -s conftest.err
17612        } && test -s conftest.$ac_objext; then
17613   bakefile_cv_c_compiler__SGI_COMPILER_VERSION=yes
17614 else
17615   echo "$as_me: failed program was:" >&5
17616 sed 's/^/| /' conftest.$ac_ext >&5
17617
17618         bakefile_cv_c_compiler__SGI_COMPILER_VERSION=no
17619
17620 fi
17621
17622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17623
17624
17625 fi
17626 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&5
17627 echo "${ECHO_T}$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" >&6; }
17628     if test "x$bakefile_cv_c_compiler__SGI_COMPILER_VERSION" = "xyes"; then
17629         :; SGICC=yes
17630     else
17631         :;
17632     fi
17633     ac_ext=c
17634 ac_cpp='$CPP $CPPFLAGS'
17635 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17636 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17637 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17638
17639
17640
17641                 ;;
17642
17643             Linux*)
17644
17645
17646     ac_ext=c
17647 ac_cpp='$CPP $CPPFLAGS'
17648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17651
17652     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17653 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17654 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17655   echo $ECHO_N "(cached) $ECHO_C" >&6
17656 else
17657   cat >conftest.$ac_ext <<_ACEOF
17658 /* confdefs.h.  */
17659 _ACEOF
17660 cat confdefs.h >>conftest.$ac_ext
17661 cat >>conftest.$ac_ext <<_ACEOF
17662 /* end confdefs.h.  */
17663
17664 int
17665 main ()
17666 {
17667
17668              #ifndef __SUNPRO_C
17669                 choke me
17670              #endif
17671
17672   ;
17673   return 0;
17674 }
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680   *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683   (eval "$ac_compile") 2>conftest.er1
17684   ac_status=$?
17685   grep -v '^ *+' conftest.er1 >conftest.err
17686   rm -f conftest.er1
17687   cat conftest.err >&5
17688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689   (exit $ac_status); } && {
17690          test -z "$ac_c_werror_flag" ||
17691          test ! -s conftest.err
17692        } && test -s conftest.$ac_objext; then
17693   bakefile_cv_c_compiler___SUNPRO_C=yes
17694 else
17695   echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698         bakefile_cv_c_compiler___SUNPRO_C=no
17699
17700 fi
17701
17702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17703
17704
17705 fi
17706 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17707 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17708     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17709         :; SUNCC=yes
17710     else
17711         :;
17712     fi
17713     ac_ext=c
17714 ac_cpp='$CPP $CPPFLAGS'
17715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17718
17719
17720
17721                 ;;
17722
17723             HP-UX*)
17724
17725
17726     ac_ext=c
17727 ac_cpp='$CPP $CPPFLAGS'
17728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17731
17732     { echo "$as_me:$LINENO: checking whether we are using the HP C compiler" >&5
17733 echo $ECHO_N "checking whether we are using the HP C compiler... $ECHO_C" >&6; }
17734 if test "${bakefile_cv_c_compiler___HP_cc+set}" = set; then
17735   echo $ECHO_N "(cached) $ECHO_C" >&6
17736 else
17737   cat >conftest.$ac_ext <<_ACEOF
17738 /* confdefs.h.  */
17739 _ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h.  */
17743
17744 int
17745 main ()
17746 {
17747
17748              #ifndef __HP_cc
17749                 choke me
17750              #endif
17751
17752   ;
17753   return 0;
17754 }
17755 _ACEOF
17756 rm -f conftest.$ac_objext
17757 if { (ac_try="$ac_compile"
17758 case "(($ac_try" in
17759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760   *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763   (eval "$ac_compile") 2>conftest.er1
17764   ac_status=$?
17765   grep -v '^ *+' conftest.er1 >conftest.err
17766   rm -f conftest.er1
17767   cat conftest.err >&5
17768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769   (exit $ac_status); } && {
17770          test -z "$ac_c_werror_flag" ||
17771          test ! -s conftest.err
17772        } && test -s conftest.$ac_objext; then
17773   bakefile_cv_c_compiler___HP_cc=yes
17774 else
17775   echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778         bakefile_cv_c_compiler___HP_cc=no
17779
17780 fi
17781
17782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17783
17784
17785 fi
17786 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___HP_cc" >&5
17787 echo "${ECHO_T}$bakefile_cv_c_compiler___HP_cc" >&6; }
17788     if test "x$bakefile_cv_c_compiler___HP_cc" = "xyes"; then
17789         :; HPCC=yes
17790     else
17791         :;
17792     fi
17793     ac_ext=c
17794 ac_cpp='$CPP $CPPFLAGS'
17795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17798
17799
17800
17801                 ;;
17802
17803             OSF1)
17804
17805
17806     ac_ext=c
17807 ac_cpp='$CPP $CPPFLAGS'
17808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17811
17812     { echo "$as_me:$LINENO: checking whether we are using the Compaq C compiler" >&5
17813 echo $ECHO_N "checking whether we are using the Compaq C compiler... $ECHO_C" >&6; }
17814 if test "${bakefile_cv_c_compiler___DECC+set}" = set; then
17815   echo $ECHO_N "(cached) $ECHO_C" >&6
17816 else
17817   cat >conftest.$ac_ext <<_ACEOF
17818 /* confdefs.h.  */
17819 _ACEOF
17820 cat confdefs.h >>conftest.$ac_ext
17821 cat >>conftest.$ac_ext <<_ACEOF
17822 /* end confdefs.h.  */
17823
17824 int
17825 main ()
17826 {
17827
17828              #ifndef __DECC
17829                 choke me
17830              #endif
17831
17832   ;
17833   return 0;
17834 }
17835 _ACEOF
17836 rm -f conftest.$ac_objext
17837 if { (ac_try="$ac_compile"
17838 case "(($ac_try" in
17839   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17840   *) ac_try_echo=$ac_try;;
17841 esac
17842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17843   (eval "$ac_compile") 2>conftest.er1
17844   ac_status=$?
17845   grep -v '^ *+' conftest.er1 >conftest.err
17846   rm -f conftest.er1
17847   cat conftest.err >&5
17848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17849   (exit $ac_status); } && {
17850          test -z "$ac_c_werror_flag" ||
17851          test ! -s conftest.err
17852        } && test -s conftest.$ac_objext; then
17853   bakefile_cv_c_compiler___DECC=yes
17854 else
17855   echo "$as_me: failed program was:" >&5
17856 sed 's/^/| /' conftest.$ac_ext >&5
17857
17858         bakefile_cv_c_compiler___DECC=no
17859
17860 fi
17861
17862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17863
17864
17865 fi
17866 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___DECC" >&5
17867 echo "${ECHO_T}$bakefile_cv_c_compiler___DECC" >&6; }
17868     if test "x$bakefile_cv_c_compiler___DECC" = "xyes"; then
17869         :; COMPAQCC=yes
17870     else
17871         :;
17872     fi
17873     ac_ext=c
17874 ac_cpp='$CPP $CPPFLAGS'
17875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17878
17879
17880
17881                 ;;
17882
17883             SunOS)
17884
17885
17886     ac_ext=c
17887 ac_cpp='$CPP $CPPFLAGS'
17888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17891
17892     { echo "$as_me:$LINENO: checking whether we are using the Sun C compiler" >&5
17893 echo $ECHO_N "checking whether we are using the Sun C compiler... $ECHO_C" >&6; }
17894 if test "${bakefile_cv_c_compiler___SUNPRO_C+set}" = set; then
17895   echo $ECHO_N "(cached) $ECHO_C" >&6
17896 else
17897   cat >conftest.$ac_ext <<_ACEOF
17898 /* confdefs.h.  */
17899 _ACEOF
17900 cat confdefs.h >>conftest.$ac_ext
17901 cat >>conftest.$ac_ext <<_ACEOF
17902 /* end confdefs.h.  */
17903
17904 int
17905 main ()
17906 {
17907
17908              #ifndef __SUNPRO_C
17909                 choke me
17910              #endif
17911
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 rm -f conftest.$ac_objext
17917 if { (ac_try="$ac_compile"
17918 case "(($ac_try" in
17919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17920   *) ac_try_echo=$ac_try;;
17921 esac
17922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17923   (eval "$ac_compile") 2>conftest.er1
17924   ac_status=$?
17925   grep -v '^ *+' conftest.er1 >conftest.err
17926   rm -f conftest.er1
17927   cat conftest.err >&5
17928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17929   (exit $ac_status); } && {
17930          test -z "$ac_c_werror_flag" ||
17931          test ! -s conftest.err
17932        } && test -s conftest.$ac_objext; then
17933   bakefile_cv_c_compiler___SUNPRO_C=yes
17934 else
17935   echo "$as_me: failed program was:" >&5
17936 sed 's/^/| /' conftest.$ac_ext >&5
17937
17938         bakefile_cv_c_compiler___SUNPRO_C=no
17939
17940 fi
17941
17942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17943
17944
17945 fi
17946 { echo "$as_me:$LINENO: result: $bakefile_cv_c_compiler___SUNPRO_C" >&5
17947 echo "${ECHO_T}$bakefile_cv_c_compiler___SUNPRO_C" >&6; }
17948     if test "x$bakefile_cv_c_compiler___SUNPRO_C" = "xyes"; then
17949         :; SUNCC=yes
17950     else
17951         :;
17952     fi
17953     ac_ext=c
17954 ac_cpp='$CPP $CPPFLAGS'
17955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17958
17959
17960
17961                 ;;
17962         esac
17963     fi
17964
17965
17966
17967 ac_ext=c
17968 ac_cpp='$CPP $CPPFLAGS'
17969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17972 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
17973 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
17974 # On Suns, sometimes $CPP names a directory.
17975 if test -n "$CPP" && test -d "$CPP"; then
17976   CPP=
17977 fi
17978 if test -z "$CPP"; then
17979   if test "${ac_cv_prog_CPP+set}" = set; then
17980   echo $ECHO_N "(cached) $ECHO_C" >&6
17981 else
17982       # Double quotes because CPP needs to be expanded
17983     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
17984     do
17985       ac_preproc_ok=false
17986 for ac_c_preproc_warn_flag in '' yes
17987 do
17988   # Use a header file that comes with gcc, so configuring glibc
17989   # with a fresh cross-compiler works.
17990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17991   # <limits.h> exists even on freestanding compilers.
17992   # On the NeXT, cc -E runs the code through the compiler's parser,
17993   # not just through cpp. "Syntax error" is here to catch this case.
17994   cat >conftest.$ac_ext <<_ACEOF
17995 /* confdefs.h.  */
17996 _ACEOF
17997 cat confdefs.h >>conftest.$ac_ext
17998 cat >>conftest.$ac_ext <<_ACEOF
17999 /* end confdefs.h.  */
18000 #ifdef __STDC__
18001 # include <limits.h>
18002 #else
18003 # include <assert.h>
18004 #endif
18005                      Syntax error
18006 _ACEOF
18007 if { (ac_try="$ac_cpp conftest.$ac_ext"
18008 case "(($ac_try" in
18009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18010   *) ac_try_echo=$ac_try;;
18011 esac
18012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18013   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18014   ac_status=$?
18015   grep -v '^ *+' conftest.er1 >conftest.err
18016   rm -f conftest.er1
18017   cat conftest.err >&5
18018   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18019   (exit $ac_status); } >/dev/null && {
18020          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18021          test ! -s conftest.err
18022        }; then
18023   :
18024 else
18025   echo "$as_me: failed program was:" >&5
18026 sed 's/^/| /' conftest.$ac_ext >&5
18027
18028   # Broken: fails on valid input.
18029 continue
18030 fi
18031
18032 rm -f conftest.err conftest.$ac_ext
18033
18034   # OK, works on sane cases.  Now check whether nonexistent headers
18035   # can be detected and how.
18036   cat >conftest.$ac_ext <<_ACEOF
18037 /* confdefs.h.  */
18038 _ACEOF
18039 cat confdefs.h >>conftest.$ac_ext
18040 cat >>conftest.$ac_ext <<_ACEOF
18041 /* end confdefs.h.  */
18042 #include <ac_nonexistent.h>
18043 _ACEOF
18044 if { (ac_try="$ac_cpp conftest.$ac_ext"
18045 case "(($ac_try" in
18046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047   *) ac_try_echo=$ac_try;;
18048 esac
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18051   ac_status=$?
18052   grep -v '^ *+' conftest.er1 >conftest.err
18053   rm -f conftest.er1
18054   cat conftest.err >&5
18055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056   (exit $ac_status); } >/dev/null && {
18057          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18058          test ! -s conftest.err
18059        }; then
18060   # Broken: success on invalid input.
18061 continue
18062 else
18063   echo "$as_me: failed program was:" >&5
18064 sed 's/^/| /' conftest.$ac_ext >&5
18065
18066   # Passes both tests.
18067 ac_preproc_ok=:
18068 break
18069 fi
18070
18071 rm -f conftest.err conftest.$ac_ext
18072
18073 done
18074 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18075 rm -f conftest.err conftest.$ac_ext
18076 if $ac_preproc_ok; then
18077   break
18078 fi
18079
18080     done
18081     ac_cv_prog_CPP=$CPP
18082
18083 fi
18084   CPP=$ac_cv_prog_CPP
18085 else
18086   ac_cv_prog_CPP=$CPP
18087 fi
18088 { echo "$as_me:$LINENO: result: $CPP" >&5
18089 echo "${ECHO_T}$CPP" >&6; }
18090 ac_preproc_ok=false
18091 for ac_c_preproc_warn_flag in '' yes
18092 do
18093   # Use a header file that comes with gcc, so configuring glibc
18094   # with a fresh cross-compiler works.
18095   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18096   # <limits.h> exists even on freestanding compilers.
18097   # On the NeXT, cc -E runs the code through the compiler's parser,
18098   # not just through cpp. "Syntax error" is here to catch this case.
18099   cat >conftest.$ac_ext <<_ACEOF
18100 /* confdefs.h.  */
18101 _ACEOF
18102 cat confdefs.h >>conftest.$ac_ext
18103 cat >>conftest.$ac_ext <<_ACEOF
18104 /* end confdefs.h.  */
18105 #ifdef __STDC__
18106 # include <limits.h>
18107 #else
18108 # include <assert.h>
18109 #endif
18110                      Syntax error
18111 _ACEOF
18112 if { (ac_try="$ac_cpp conftest.$ac_ext"
18113 case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18119   ac_status=$?
18120   grep -v '^ *+' conftest.er1 >conftest.err
18121   rm -f conftest.er1
18122   cat conftest.err >&5
18123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18124   (exit $ac_status); } >/dev/null && {
18125          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18126          test ! -s conftest.err
18127        }; then
18128   :
18129 else
18130   echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133   # Broken: fails on valid input.
18134 continue
18135 fi
18136
18137 rm -f conftest.err conftest.$ac_ext
18138
18139   # OK, works on sane cases.  Now check whether nonexistent headers
18140   # can be detected and how.
18141   cat >conftest.$ac_ext <<_ACEOF
18142 /* confdefs.h.  */
18143 _ACEOF
18144 cat confdefs.h >>conftest.$ac_ext
18145 cat >>conftest.$ac_ext <<_ACEOF
18146 /* end confdefs.h.  */
18147 #include <ac_nonexistent.h>
18148 _ACEOF
18149 if { (ac_try="$ac_cpp conftest.$ac_ext"
18150 case "(($ac_try" in
18151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18152   *) ac_try_echo=$ac_try;;
18153 esac
18154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18156   ac_status=$?
18157   grep -v '^ *+' conftest.er1 >conftest.err
18158   rm -f conftest.er1
18159   cat conftest.err >&5
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); } >/dev/null && {
18162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18163          test ! -s conftest.err
18164        }; then
18165   # Broken: success on invalid input.
18166 continue
18167 else
18168   echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18170
18171   # Passes both tests.
18172 ac_preproc_ok=:
18173 break
18174 fi
18175
18176 rm -f conftest.err conftest.$ac_ext
18177
18178 done
18179 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
18180 rm -f conftest.err conftest.$ac_ext
18181 if $ac_preproc_ok; then
18182   :
18183 else
18184   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
18185 See \`config.log' for more details." >&5
18186 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
18187 See \`config.log' for more details." >&2;}
18188    { (exit 1); exit 1; }; }
18189 fi
18190
18191 ac_ext=c
18192 ac_cpp='$CPP $CPPFLAGS'
18193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18196
18197
18198 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
18199 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
18200 if test "${ac_cv_path_GREP+set}" = set; then
18201   echo $ECHO_N "(cached) $ECHO_C" >&6
18202 else
18203   # Extract the first word of "grep ggrep" to use in msg output
18204 if test -z "$GREP"; then
18205 set dummy grep ggrep; ac_prog_name=$2
18206 if test "${ac_cv_path_GREP+set}" = set; then
18207   echo $ECHO_N "(cached) $ECHO_C" >&6
18208 else
18209   ac_path_GREP_found=false
18210 # Loop through the user's path and test for each of PROGNAME-LIST
18211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18213 do
18214   IFS=$as_save_IFS
18215   test -z "$as_dir" && as_dir=.
18216   for ac_prog in grep ggrep; do
18217   for ac_exec_ext in '' $ac_executable_extensions; do
18218     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
18219     { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
18220     # Check for GNU ac_path_GREP and select it if it is found.
18221   # Check for GNU $ac_path_GREP
18222 case `"$ac_path_GREP" --version 2>&1` in
18223 *GNU*)
18224   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
18225 *)
18226   ac_count=0
18227   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18228   while :
18229   do
18230     cat "conftest.in" "conftest.in" >"conftest.tmp"
18231     mv "conftest.tmp" "conftest.in"
18232     cp "conftest.in" "conftest.nl"
18233     echo 'GREP' >> "conftest.nl"
18234     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18235     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18236     ac_count=`expr $ac_count + 1`
18237     if test $ac_count -gt ${ac_path_GREP_max-0}; then
18238       # Best one so far, save it but keep looking for a better one
18239       ac_cv_path_GREP="$ac_path_GREP"
18240       ac_path_GREP_max=$ac_count
18241     fi
18242     # 10*(2^10) chars as input seems more than enough
18243     test $ac_count -gt 10 && break
18244   done
18245   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18246 esac
18247
18248
18249     $ac_path_GREP_found && break 3
18250   done
18251 done
18252
18253 done
18254 IFS=$as_save_IFS
18255
18256
18257 fi
18258
18259 GREP="$ac_cv_path_GREP"
18260 if test -z "$GREP"; then
18261   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18262 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18263    { (exit 1); exit 1; }; }
18264 fi
18265
18266 else
18267   ac_cv_path_GREP=$GREP
18268 fi
18269
18270
18271 fi
18272 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
18273 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
18274  GREP="$ac_cv_path_GREP"
18275
18276
18277 { echo "$as_me:$LINENO: checking for egrep" >&5
18278 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
18279 if test "${ac_cv_path_EGREP+set}" = set; then
18280   echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
18283    then ac_cv_path_EGREP="$GREP -E"
18284    else
18285      # Extract the first word of "egrep" to use in msg output
18286 if test -z "$EGREP"; then
18287 set dummy egrep; ac_prog_name=$2
18288 if test "${ac_cv_path_EGREP+set}" = set; then
18289   echo $ECHO_N "(cached) $ECHO_C" >&6
18290 else
18291   ac_path_EGREP_found=false
18292 # Loop through the user's path and test for each of PROGNAME-LIST
18293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
18295 do
18296   IFS=$as_save_IFS
18297   test -z "$as_dir" && as_dir=.
18298   for ac_prog in egrep; do
18299   for ac_exec_ext in '' $ac_executable_extensions; do
18300     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
18301     { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
18302     # Check for GNU ac_path_EGREP and select it if it is found.
18303   # Check for GNU $ac_path_EGREP
18304 case `"$ac_path_EGREP" --version 2>&1` in
18305 *GNU*)
18306   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
18307 *)
18308   ac_count=0
18309   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
18310   while :
18311   do
18312     cat "conftest.in" "conftest.in" >"conftest.tmp"
18313     mv "conftest.tmp" "conftest.in"
18314     cp "conftest.in" "conftest.nl"
18315     echo 'EGREP' >> "conftest.nl"
18316     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
18317     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
18318     ac_count=`expr $ac_count + 1`
18319     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
18320       # Best one so far, save it but keep looking for a better one
18321       ac_cv_path_EGREP="$ac_path_EGREP"
18322       ac_path_EGREP_max=$ac_count
18323     fi
18324     # 10*(2^10) chars as input seems more than enough
18325     test $ac_count -gt 10 && break
18326   done
18327   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
18328 esac
18329
18330
18331     $ac_path_EGREP_found && break 3
18332   done
18333 done
18334
18335 done
18336 IFS=$as_save_IFS
18337
18338
18339 fi
18340
18341 EGREP="$ac_cv_path_EGREP"
18342 if test -z "$EGREP"; then
18343   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
18344 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
18345    { (exit 1); exit 1; }; }
18346 fi
18347
18348 else
18349   ac_cv_path_EGREP=$EGREP
18350 fi
18351
18352
18353    fi
18354 fi
18355 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
18356 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
18357  EGREP="$ac_cv_path_EGREP"
18358
18359
18360 if test $ac_cv_c_compiler_gnu = yes; then
18361     { echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
18362 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6; }
18363 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
18364   echo $ECHO_N "(cached) $ECHO_C" >&6
18365 else
18366     ac_pattern="Autoconf.*'x'"
18367   cat >conftest.$ac_ext <<_ACEOF
18368 /* confdefs.h.  */
18369 _ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h.  */
18373 #include <sgtty.h>
18374 Autoconf TIOCGETP
18375 _ACEOF
18376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18377   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18378   ac_cv_prog_gcc_traditional=yes
18379 else
18380   ac_cv_prog_gcc_traditional=no
18381 fi
18382 rm -f conftest*
18383
18384
18385   if test $ac_cv_prog_gcc_traditional = no; then
18386     cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h.  */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h.  */
18392 #include <termio.h>
18393 Autoconf TCGETA
18394 _ACEOF
18395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18396   $EGREP "$ac_pattern" >/dev/null 2>&1; then
18397   ac_cv_prog_gcc_traditional=yes
18398 fi
18399 rm -f conftest*
18400
18401   fi
18402 fi
18403 { echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
18404 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6; }
18405   if test $ac_cv_prog_gcc_traditional = yes; then
18406     CC="$CC -traditional"
18407   fi
18408 fi
18409
18410
18411 CXXFLAGS=${CXXFLAGS:=}
18412
18413
18414
18415     ac_ext=cpp
18416 ac_cpp='$CXXCPP $CPPFLAGS'
18417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18420 if test -z "$CXX"; then
18421   if test -n "$CCC"; then
18422     CXX=$CCC
18423   else
18424     if test -n "$ac_tool_prefix"; then
18425   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18426   do
18427     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18428 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18429 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18431 if test "${ac_cv_prog_CXX+set}" = set; then
18432   echo $ECHO_N "(cached) $ECHO_C" >&6
18433 else
18434   if test -n "$CXX"; then
18435   ac_cv_prog_CXX="$CXX" # Let the user override the test.
18436 else
18437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18438 for as_dir in $PATH
18439 do
18440   IFS=$as_save_IFS
18441   test -z "$as_dir" && as_dir=.
18442   for ac_exec_ext in '' $ac_executable_extensions; do
18443   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18444     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
18445     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18446     break 2
18447   fi
18448 done
18449 done
18450 IFS=$as_save_IFS
18451
18452 fi
18453 fi
18454 CXX=$ac_cv_prog_CXX
18455 if test -n "$CXX"; then
18456   { echo "$as_me:$LINENO: result: $CXX" >&5
18457 echo "${ECHO_T}$CXX" >&6; }
18458 else
18459   { echo "$as_me:$LINENO: result: no" >&5
18460 echo "${ECHO_T}no" >&6; }
18461 fi
18462
18463
18464     test -n "$CXX" && break
18465   done
18466 fi
18467 if test -z "$CXX"; then
18468   ac_ct_CXX=$CXX
18469   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
18470 do
18471   # Extract the first word of "$ac_prog", so it can be a program name with args.
18472 set dummy $ac_prog; ac_word=$2
18473 { echo "$as_me:$LINENO: checking for $ac_word" >&5
18474 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
18475 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
18476   echo $ECHO_N "(cached) $ECHO_C" >&6
18477 else
18478   if test -n "$ac_ct_CXX"; then
18479   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
18480 else
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18483 do
18484   IFS=$as_save_IFS
18485   test -z "$as_dir" && as_dir=.
18486   for ac_exec_ext in '' $ac_executable_extensions; do
18487   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18488     ac_cv_prog_ac_ct_CXX="$ac_prog"
18489     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18490     break 2
18491   fi
18492 done
18493 done
18494 IFS=$as_save_IFS
18495
18496 fi
18497 fi
18498 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
18499 if test -n "$ac_ct_CXX"; then
18500   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
18501 echo "${ECHO_T}$ac_ct_CXX" >&6; }
18502 else
18503   { echo "$as_me:$LINENO: result: no" >&5
18504 echo "${ECHO_T}no" >&6; }
18505 fi
18506
18507
18508   test -n "$ac_ct_CXX" && break
18509 done
18510
18511   if test "x$ac_ct_CXX" = x; then
18512     CXX="g++"
18513   else
18514     case $cross_compiling:$ac_tool_warned in
18515 yes:)
18516 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
18517 whose name does not start with the host triplet.  If you think this
18518 configuration is useful to you, please write to autoconf@gnu.org." >&5
18519 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
18520 whose name does not start with the host triplet.  If you think this
18521 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
18522 ac_tool_warned=yes ;;
18523 esac
18524     CXX=$ac_ct_CXX
18525   fi
18526 fi
18527
18528   fi
18529 fi
18530 # Provide some information about the compiler.
18531 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
18532 ac_compiler=`set X $ac_compile; echo $2`
18533 { (ac_try="$ac_compiler --version >&5"
18534 case "(($ac_try" in
18535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18536   *) ac_try_echo=$ac_try;;
18537 esac
18538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18539   (eval "$ac_compiler --version >&5") 2>&5
18540   ac_status=$?
18541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18542   (exit $ac_status); }
18543 { (ac_try="$ac_compiler -v >&5"
18544 case "(($ac_try" in
18545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18546   *) ac_try_echo=$ac_try;;
18547 esac
18548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18549   (eval "$ac_compiler -v >&5") 2>&5
18550   ac_status=$?
18551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18552   (exit $ac_status); }
18553 { (ac_try="$ac_compiler -V >&5"
18554 case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_compiler -V >&5") 2>&5
18560   ac_status=$?
18561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18562   (exit $ac_status); }
18563
18564 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
18565 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
18566 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
18567   echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569   cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h.  */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h.  */
18575
18576 int
18577 main ()
18578 {
18579 #ifndef __GNUC__
18580        choke me
18581 #endif
18582
18583   ;
18584   return 0;
18585 }
18586 _ACEOF
18587 rm -f conftest.$ac_objext
18588 if { (ac_try="$ac_compile"
18589 case "(($ac_try" in
18590   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18591   *) ac_try_echo=$ac_try;;
18592 esac
18593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18594   (eval "$ac_compile") 2>conftest.er1
18595   ac_status=$?
18596   grep -v '^ *+' conftest.er1 >conftest.err
18597   rm -f conftest.er1
18598   cat conftest.err >&5
18599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600   (exit $ac_status); } && {
18601          test -z "$ac_cxx_werror_flag" ||
18602          test ! -s conftest.err
18603        } && test -s conftest.$ac_objext; then
18604   ac_compiler_gnu=yes
18605 else
18606   echo "$as_me: failed program was:" >&5
18607 sed 's/^/| /' conftest.$ac_ext >&5
18608
18609         ac_compiler_gnu=no
18610 fi
18611
18612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18613 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
18614
18615 fi
18616 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
18617 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
18618 GXX=`test $ac_compiler_gnu = yes && echo yes`
18619 ac_test_CXXFLAGS=${CXXFLAGS+set}
18620 ac_save_CXXFLAGS=$CXXFLAGS
18621 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
18622 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
18623 if test "${ac_cv_prog_cxx_g+set}" = set; then
18624   echo $ECHO_N "(cached) $ECHO_C" >&6
18625 else
18626   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
18627    ac_cxx_werror_flag=yes
18628    ac_cv_prog_cxx_g=no
18629    CXXFLAGS="-g"
18630    cat >conftest.$ac_ext <<_ACEOF
18631 /* confdefs.h.  */
18632 _ACEOF
18633 cat confdefs.h >>conftest.$ac_ext
18634 cat >>conftest.$ac_ext <<_ACEOF
18635 /* end confdefs.h.  */
18636
18637 int
18638 main ()
18639 {
18640
18641   ;
18642   return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest.$ac_objext
18646 if { (ac_try="$ac_compile"
18647 case "(($ac_try" in
18648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649   *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652   (eval "$ac_compile") 2>conftest.er1
18653   ac_status=$?
18654   grep -v '^ *+' conftest.er1 >conftest.err
18655   rm -f conftest.er1
18656   cat conftest.err >&5
18657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658   (exit $ac_status); } && {
18659          test -z "$ac_cxx_werror_flag" ||
18660          test ! -s conftest.err
18661        } && test -s conftest.$ac_objext; then
18662   ac_cv_prog_cxx_g=yes
18663 else
18664   echo "$as_me: failed program was:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18666
18667         CXXFLAGS=""
18668       cat >conftest.$ac_ext <<_ACEOF
18669 /* confdefs.h.  */
18670 _ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h.  */
18674
18675 int
18676 main ()
18677 {
18678
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (ac_try="$ac_compile"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18690   (eval "$ac_compile") 2>conftest.er1
18691   ac_status=$?
18692   grep -v '^ *+' conftest.er1 >conftest.err
18693   rm -f conftest.er1
18694   cat conftest.err >&5
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); } && {
18697          test -z "$ac_cxx_werror_flag" ||
18698          test ! -s conftest.err
18699        } && test -s conftest.$ac_objext; then
18700   :
18701 else
18702   echo "$as_me: failed program was:" >&5
18703 sed 's/^/| /' conftest.$ac_ext >&5
18704
18705         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18706          CXXFLAGS="-g"
18707          cat >conftest.$ac_ext <<_ACEOF
18708 /* confdefs.h.  */
18709 _ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h.  */
18713
18714 int
18715 main ()
18716 {
18717
18718   ;
18719   return 0;
18720 }
18721 _ACEOF
18722 rm -f conftest.$ac_objext
18723 if { (ac_try="$ac_compile"
18724 case "(($ac_try" in
18725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726   *) ac_try_echo=$ac_try;;
18727 esac
18728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18729   (eval "$ac_compile") 2>conftest.er1
18730   ac_status=$?
18731   grep -v '^ *+' conftest.er1 >conftest.err
18732   rm -f conftest.er1
18733   cat conftest.err >&5
18734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735   (exit $ac_status); } && {
18736          test -z "$ac_cxx_werror_flag" ||
18737          test ! -s conftest.err
18738        } && test -s conftest.$ac_objext; then
18739   ac_cv_prog_cxx_g=yes
18740 else
18741   echo "$as_me: failed program was:" >&5
18742 sed 's/^/| /' conftest.$ac_ext >&5
18743
18744
18745 fi
18746
18747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18748 fi
18749
18750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18751 fi
18752
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
18755 fi
18756 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
18757 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
18758 if test "$ac_test_CXXFLAGS" = set; then
18759   CXXFLAGS=$ac_save_CXXFLAGS
18760 elif test $ac_cv_prog_cxx_g = yes; then
18761   if test "$GXX" = yes; then
18762     CXXFLAGS="-g -O2"
18763   else
18764     CXXFLAGS="-g"
18765   fi
18766 else
18767   if test "$GXX" = yes; then
18768     CXXFLAGS="-O2"
18769   else
18770     CXXFLAGS=
18771   fi
18772 fi
18773 ac_ext=c
18774 ac_cpp='$CPP $CPPFLAGS'
18775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18778
18779
18780
18781
18782     ac_ext=cpp
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18787
18788     { echo "$as_me:$LINENO: checking whether we are using the Intel C++ compiler" >&5
18789 echo $ECHO_N "checking whether we are using the Intel C++ compiler... $ECHO_C" >&6; }
18790 if test "${bakefile_cv_cxx_compiler___INTEL_COMPILER+set}" = set; then
18791   echo $ECHO_N "(cached) $ECHO_C" >&6
18792 else
18793   cat >conftest.$ac_ext <<_ACEOF
18794 /* confdefs.h.  */
18795 _ACEOF
18796 cat confdefs.h >>conftest.$ac_ext
18797 cat >>conftest.$ac_ext <<_ACEOF
18798 /* end confdefs.h.  */
18799
18800 int
18801 main ()
18802 {
18803
18804              #ifndef __INTEL_COMPILER
18805                 choke me
18806              #endif
18807
18808   ;
18809   return 0;
18810 }
18811 _ACEOF
18812 rm -f conftest.$ac_objext
18813 if { (ac_try="$ac_compile"
18814 case "(($ac_try" in
18815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18816   *) ac_try_echo=$ac_try;;
18817 esac
18818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18819   (eval "$ac_compile") 2>conftest.er1
18820   ac_status=$?
18821   grep -v '^ *+' conftest.er1 >conftest.err
18822   rm -f conftest.er1
18823   cat conftest.err >&5
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); } && {
18826          test -z "$ac_cxx_werror_flag" ||
18827          test ! -s conftest.err
18828        } && test -s conftest.$ac_objext; then
18829   bakefile_cv_cxx_compiler___INTEL_COMPILER=yes
18830 else
18831   echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18833
18834         bakefile_cv_cxx_compiler___INTEL_COMPILER=no
18835
18836 fi
18837
18838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18839
18840
18841 fi
18842 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___INTEL_COMPILER" >&5
18843 echo "${ECHO_T}$bakefile_cv_cxx_compiler___INTEL_COMPILER" >&6; }
18844     if test "x$bakefile_cv_cxx_compiler___INTEL_COMPILER" = "xyes"; then
18845         :; INTELCXX=yes
18846     else
18847         :;
18848     fi
18849     ac_ext=c
18850 ac_cpp='$CPP $CPPFLAGS'
18851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18854
18855
18856
18857
18858         if test "x$GCXX" != "xyes"; then
18859         if test "xCXX" = "xC"; then
18860             { echo "$as_me:$LINENO: checking if the C compiler requires -ext o" >&5
18861 echo $ECHO_N "checking if the C compiler requires -ext o... $ECHO_C" >&6; }
18862 if test "${bakefile_cv_c_exto+set}" = set; then
18863   echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865   cat >conftest.$ac_ext <<_ACEOF
18866 /* confdefs.h.  */
18867 _ACEOF
18868 cat confdefs.h >>conftest.$ac_ext
18869 cat >>conftest.$ac_ext <<_ACEOF
18870 /* end confdefs.h.  */
18871
18872 int
18873 main ()
18874 {
18875
18876   ;
18877   return 0;
18878 }
18879 _ACEOF
18880 rm -f conftest.$ac_objext conftest.$ac_ext.o
18881 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18882   (eval $ac_compile) 2>&5
18883   ac_status=$?
18884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18885   (exit $ac_status); }; then
18886   for ac_file in `(ls conftest.* 2>/dev/null)`; do
18887     case $ac_file in
18888         conftest.$ac_ext.o)
18889             bakefile_cv_c_exto="-ext o"
18890             ;;
18891         *)
18892             ;;
18893     esac
18894 done
18895 else
18896   { { echo "$as_me:$LINENO: error: cannot figure out if compiler needs -ext o: cannot compile
18897 See \`config.log' for more details." >&5
18898 echo "$as_me: error: cannot figure out if compiler needs -ext o: cannot compile
18899 See \`config.log' for more details." >&2;}
18900    { (exit 1); exit 1; }; }
18901
18902 fi
18903
18904 rm -f conftest.$ac_ext.o conftest.$ac_objext conftest.$ac_ext
18905
18906 fi
18907 { echo "$as_me:$LINENO: result: $bakefile_cv_c_exto" >&5
18908 echo "${ECHO_T}$bakefile_cv_c_exto" >&6; }
18909 if test "x$bakefile_cv_c_exto" '!=' "x"; then
18910     if test "c" = "c"; then
18911         CFLAGS="$bakefile_cv_c_exto $CFLAGS"
18912     fi
18913     if test "c" = "cxx"; then
18914         CXXFLAGS="$bakefile_cv_c_exto $CXXFLAGS"
18915     fi
18916 fi
18917
18918             if test "x$bakefile_cv_c_exto" '!=' "x"; then
18919                 unset ac_cv_prog_cc_g
18920                 ac_test_CFLAGS=${CFLAGS+set}
18921 ac_save_CFLAGS=$CFLAGS
18922 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
18923 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
18924 if test "${ac_cv_prog_cc_g+set}" = set; then
18925   echo $ECHO_N "(cached) $ECHO_C" >&6
18926 else
18927   ac_save_c_werror_flag=$ac_c_werror_flag
18928    ac_c_werror_flag=yes
18929    ac_cv_prog_cc_g=no
18930    CFLAGS="-g"
18931    cat >conftest.$ac_ext <<_ACEOF
18932 /* confdefs.h.  */
18933 _ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h.  */
18937
18938 int
18939 main ()
18940 {
18941
18942   ;
18943   return 0;
18944 }
18945 _ACEOF
18946 rm -f conftest.$ac_objext
18947 if { (ac_try="$ac_compile"
18948 case "(($ac_try" in
18949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18950   *) ac_try_echo=$ac_try;;
18951 esac
18952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18953   (eval "$ac_compile") 2>conftest.er1
18954   ac_status=$?
18955   grep -v '^ *+' conftest.er1 >conftest.err
18956   rm -f conftest.er1
18957   cat conftest.err >&5
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); } && {
18960          test -z "$ac_c_werror_flag" ||
18961          test ! -s conftest.err
18962        } && test -s conftest.$ac_objext; then
18963   ac_cv_prog_cc_g=yes
18964 else
18965   echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18967
18968         CFLAGS=""
18969       cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h.  */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h.  */
18975
18976 int
18977 main ()
18978 {
18979
18980   ;
18981   return 0;
18982 }
18983 _ACEOF
18984 rm -f conftest.$ac_objext
18985 if { (ac_try="$ac_compile"
18986 case "(($ac_try" in
18987   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988   *) ac_try_echo=$ac_try;;
18989 esac
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991   (eval "$ac_compile") 2>conftest.er1
18992   ac_status=$?
18993   grep -v '^ *+' conftest.er1 >conftest.err
18994   rm -f conftest.er1
18995   cat conftest.err >&5
18996   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18997   (exit $ac_status); } && {
18998          test -z "$ac_c_werror_flag" ||
18999          test ! -s conftest.err
19000        } && test -s conftest.$ac_objext; then
19001   :
19002 else
19003   echo "$as_me: failed program was:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19005
19006         ac_c_werror_flag=$ac_save_c_werror_flag
19007          CFLAGS="-g"
19008          cat >conftest.$ac_ext <<_ACEOF
19009 /* confdefs.h.  */
19010 _ACEOF
19011 cat confdefs.h >>conftest.$ac_ext
19012 cat >>conftest.$ac_ext <<_ACEOF
19013 /* end confdefs.h.  */
19014
19015 int
19016 main ()
19017 {
19018
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (ac_try="$ac_compile"
19025 case "(($ac_try" in
19026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027   *) ac_try_echo=$ac_try;;
19028 esac
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030   (eval "$ac_compile") 2>conftest.er1
19031   ac_status=$?
19032   grep -v '^ *+' conftest.er1 >conftest.err
19033   rm -f conftest.er1
19034   cat conftest.err >&5
19035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19036   (exit $ac_status); } && {
19037          test -z "$ac_c_werror_flag" ||
19038          test ! -s conftest.err
19039        } && test -s conftest.$ac_objext; then
19040   ac_cv_prog_cc_g=yes
19041 else
19042   echo "$as_me: failed program was:" >&5
19043 sed 's/^/| /' conftest.$ac_ext >&5
19044
19045
19046 fi
19047
19048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19049 fi
19050
19051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19052 fi
19053
19054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19055    ac_c_werror_flag=$ac_save_c_werror_flag
19056 fi
19057 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19058 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
19059 if test "$ac_test_CFLAGS" = set; then
19060   CFLAGS=$ac_save_CFLAGS
19061 elif test $ac_cv_prog_cc_g = yes; then
19062   if test "$GCC" = yes; then
19063     CFLAGS="-g -O2"
19064   else
19065     CFLAGS="-g"
19066   fi
19067 else
19068   if test "$GCC" = yes; then
19069     CFLAGS="-O2"
19070   else
19071     CFLAGS=
19072   fi
19073 fi
19074             fi
19075         fi
19076
19077                         case `uname -s` in
19078             AIX*)
19079
19080
19081     ac_ext=cpp
19082 ac_cpp='$CXXCPP $CPPFLAGS'
19083 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19084 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19085 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19086
19087     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19088 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19089 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19090   echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092   cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098
19099 int
19100 main ()
19101 {
19102
19103              #ifndef __xlC__
19104                 choke me
19105              #endif
19106
19107   ;
19108   return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest.$ac_objext
19112 if { (ac_try="$ac_compile"
19113 case "(($ac_try" in
19114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115   *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118   (eval "$ac_compile") 2>conftest.er1
19119   ac_status=$?
19120   grep -v '^ *+' conftest.er1 >conftest.err
19121   rm -f conftest.er1
19122   cat conftest.err >&5
19123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124   (exit $ac_status); } && {
19125          test -z "$ac_cxx_werror_flag" ||
19126          test ! -s conftest.err
19127        } && test -s conftest.$ac_objext; then
19128   bakefile_cv_cxx_compiler___xlC__=yes
19129 else
19130   echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19132
19133         bakefile_cv_cxx_compiler___xlC__=no
19134
19135 fi
19136
19137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19138
19139
19140 fi
19141 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19142 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19143     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19144         :; XLCXX=yes
19145     else
19146         :;
19147     fi
19148     ac_ext=c
19149 ac_cpp='$CPP $CPPFLAGS'
19150 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19151 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19152 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19153
19154
19155
19156                 ;;
19157
19158             Darwin)
19159
19160
19161     ac_ext=cpp
19162 ac_cpp='$CXXCPP $CPPFLAGS'
19163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19166
19167     { echo "$as_me:$LINENO: checking whether we are using the Metrowerks C++ compiler" >&5
19168 echo $ECHO_N "checking whether we are using the Metrowerks C++ compiler... $ECHO_C" >&6; }
19169 if test "${bakefile_cv_cxx_compiler___MWERKS__+set}" = set; then
19170   echo $ECHO_N "(cached) $ECHO_C" >&6
19171 else
19172   cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178
19179 int
19180 main ()
19181 {
19182
19183              #ifndef __MWERKS__
19184                 choke me
19185              #endif
19186
19187   ;
19188   return 0;
19189 }
19190 _ACEOF
19191 rm -f conftest.$ac_objext
19192 if { (ac_try="$ac_compile"
19193 case "(($ac_try" in
19194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19195   *) ac_try_echo=$ac_try;;
19196 esac
19197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19198   (eval "$ac_compile") 2>conftest.er1
19199   ac_status=$?
19200   grep -v '^ *+' conftest.er1 >conftest.err
19201   rm -f conftest.er1
19202   cat conftest.err >&5
19203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19204   (exit $ac_status); } && {
19205          test -z "$ac_cxx_werror_flag" ||
19206          test ! -s conftest.err
19207        } && test -s conftest.$ac_objext; then
19208   bakefile_cv_cxx_compiler___MWERKS__=yes
19209 else
19210   echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19212
19213         bakefile_cv_cxx_compiler___MWERKS__=no
19214
19215 fi
19216
19217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218
19219
19220 fi
19221 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___MWERKS__" >&5
19222 echo "${ECHO_T}$bakefile_cv_cxx_compiler___MWERKS__" >&6; }
19223     if test "x$bakefile_cv_cxx_compiler___MWERKS__" = "xyes"; then
19224         :; MWCXX=yes
19225     else
19226         :;
19227     fi
19228     ac_ext=c
19229 ac_cpp='$CPP $CPPFLAGS'
19230 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19231 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19232 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19233
19234
19235
19236
19237
19238     ac_ext=cpp
19239 ac_cpp='$CXXCPP $CPPFLAGS'
19240 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19241 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19242 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19243
19244     { echo "$as_me:$LINENO: checking whether we are using the IBM xlC C++ compiler" >&5
19245 echo $ECHO_N "checking whether we are using the IBM xlC C++ compiler... $ECHO_C" >&6; }
19246 if test "${bakefile_cv_cxx_compiler___xlC__+set}" = set; then
19247   echo $ECHO_N "(cached) $ECHO_C" >&6
19248 else
19249   cat >conftest.$ac_ext <<_ACEOF
19250 /* confdefs.h.  */
19251 _ACEOF
19252 cat confdefs.h >>conftest.$ac_ext
19253 cat >>conftest.$ac_ext <<_ACEOF
19254 /* end confdefs.h.  */
19255
19256 int
19257 main ()
19258 {
19259
19260              #ifndef __xlC__
19261                 choke me
19262              #endif
19263
19264   ;
19265   return 0;
19266 }
19267 _ACEOF
19268 rm -f conftest.$ac_objext
19269 if { (ac_try="$ac_compile"
19270 case "(($ac_try" in
19271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19272   *) ac_try_echo=$ac_try;;
19273 esac
19274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19275   (eval "$ac_compile") 2>conftest.er1
19276   ac_status=$?
19277   grep -v '^ *+' conftest.er1 >conftest.err
19278   rm -f conftest.er1
19279   cat conftest.err >&5
19280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19281   (exit $ac_status); } && {
19282          test -z "$ac_cxx_werror_flag" ||
19283          test ! -s conftest.err
19284        } && test -s conftest.$ac_objext; then
19285   bakefile_cv_cxx_compiler___xlC__=yes
19286 else
19287   echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19289
19290         bakefile_cv_cxx_compiler___xlC__=no
19291
19292 fi
19293
19294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295
19296
19297 fi
19298 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___xlC__" >&5
19299 echo "${ECHO_T}$bakefile_cv_cxx_compiler___xlC__" >&6; }
19300     if test "x$bakefile_cv_cxx_compiler___xlC__" = "xyes"; then
19301         :; XLCXX=yes
19302     else
19303         :;
19304     fi
19305     ac_ext=c
19306 ac_cpp='$CPP $CPPFLAGS'
19307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19310
19311
19312
19313                 ;;
19314
19315             IRIX*)
19316
19317
19318     ac_ext=cpp
19319 ac_cpp='$CXXCPP $CPPFLAGS'
19320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323
19324     { echo "$as_me:$LINENO: checking whether we are using the SGI C++ compiler" >&5
19325 echo $ECHO_N "checking whether we are using the SGI C++ compiler... $ECHO_C" >&6; }
19326 if test "${bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION+set}" = set; then
19327   echo $ECHO_N "(cached) $ECHO_C" >&6
19328 else
19329   cat >conftest.$ac_ext <<_ACEOF
19330 /* confdefs.h.  */
19331 _ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h.  */
19335
19336 int
19337 main ()
19338 {
19339
19340              #ifndef _SGI_COMPILER_VERSION
19341                 choke me
19342              #endif
19343
19344   ;
19345   return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext
19349 if { (ac_try="$ac_compile"
19350 case "(($ac_try" in
19351   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352   *) ac_try_echo=$ac_try;;
19353 esac
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355   (eval "$ac_compile") 2>conftest.er1
19356   ac_status=$?
19357   grep -v '^ *+' conftest.er1 >conftest.err
19358   rm -f conftest.er1
19359   cat conftest.err >&5
19360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361   (exit $ac_status); } && {
19362          test -z "$ac_cxx_werror_flag" ||
19363          test ! -s conftest.err
19364        } && test -s conftest.$ac_objext; then
19365   bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=yes
19366 else
19367   echo "$as_me: failed program was:" >&5
19368 sed 's/^/| /' conftest.$ac_ext >&5
19369
19370         bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION=no
19371
19372 fi
19373
19374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19375
19376
19377 fi
19378 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&5
19379 echo "${ECHO_T}$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" >&6; }
19380     if test "x$bakefile_cv_cxx_compiler__SGI_COMPILER_VERSION" = "xyes"; then
19381         :; SGICXX=yes
19382     else
19383         :;
19384     fi
19385     ac_ext=c
19386 ac_cpp='$CPP $CPPFLAGS'
19387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19390
19391
19392
19393                 ;;
19394
19395             Linux*)
19396
19397
19398     ac_ext=cpp
19399 ac_cpp='$CXXCPP $CPPFLAGS'
19400 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19401 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19402 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19403
19404     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19405 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19406 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19407   echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409   cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h.  */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h.  */
19415
19416 int
19417 main ()
19418 {
19419
19420              #ifndef __SUNPRO_CC
19421                 choke me
19422              #endif
19423
19424   ;
19425   return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext
19429 if { (ac_try="$ac_compile"
19430 case "(($ac_try" in
19431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432   *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435   (eval "$ac_compile") 2>conftest.er1
19436   ac_status=$?
19437   grep -v '^ *+' conftest.er1 >conftest.err
19438   rm -f conftest.er1
19439   cat conftest.err >&5
19440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441   (exit $ac_status); } && {
19442          test -z "$ac_cxx_werror_flag" ||
19443          test ! -s conftest.err
19444        } && test -s conftest.$ac_objext; then
19445   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19451
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19455
19456
19457 fi
19458 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19459 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19460     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19461         :; SUNCXX=yes
19462     else
19463         :;
19464     fi
19465     ac_ext=c
19466 ac_cpp='$CPP $CPPFLAGS'
19467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19470
19471
19472
19473                 ;;
19474
19475             HP-UX*)
19476
19477
19478     ac_ext=cpp
19479 ac_cpp='$CXXCPP $CPPFLAGS'
19480 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19481 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19482 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19483
19484     { echo "$as_me:$LINENO: checking whether we are using the HP C++ compiler" >&5
19485 echo $ECHO_N "checking whether we are using the HP C++ compiler... $ECHO_C" >&6; }
19486 if test "${bakefile_cv_cxx_compiler___HP_aCC+set}" = set; then
19487   echo $ECHO_N "(cached) $ECHO_C" >&6
19488 else
19489   cat >conftest.$ac_ext <<_ACEOF
19490 /* confdefs.h.  */
19491 _ACEOF
19492 cat confdefs.h >>conftest.$ac_ext
19493 cat >>conftest.$ac_ext <<_ACEOF
19494 /* end confdefs.h.  */
19495
19496 int
19497 main ()
19498 {
19499
19500              #ifndef __HP_aCC
19501                 choke me
19502              #endif
19503
19504   ;
19505   return 0;
19506 }
19507 _ACEOF
19508 rm -f conftest.$ac_objext
19509 if { (ac_try="$ac_compile"
19510 case "(($ac_try" in
19511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19512   *) ac_try_echo=$ac_try;;
19513 esac
19514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19515   (eval "$ac_compile") 2>conftest.er1
19516   ac_status=$?
19517   grep -v '^ *+' conftest.er1 >conftest.err
19518   rm -f conftest.er1
19519   cat conftest.err >&5
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); } && {
19522          test -z "$ac_cxx_werror_flag" ||
19523          test ! -s conftest.err
19524        } && test -s conftest.$ac_objext; then
19525   bakefile_cv_cxx_compiler___HP_aCC=yes
19526 else
19527   echo "$as_me: failed program was:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19529
19530         bakefile_cv_cxx_compiler___HP_aCC=no
19531
19532 fi
19533
19534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19535
19536
19537 fi
19538 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___HP_aCC" >&5
19539 echo "${ECHO_T}$bakefile_cv_cxx_compiler___HP_aCC" >&6; }
19540     if test "x$bakefile_cv_cxx_compiler___HP_aCC" = "xyes"; then
19541         :; HPCXX=yes
19542     else
19543         :;
19544     fi
19545     ac_ext=c
19546 ac_cpp='$CPP $CPPFLAGS'
19547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19550
19551
19552
19553                 ;;
19554
19555             OSF1)
19556
19557
19558     ac_ext=cpp
19559 ac_cpp='$CXXCPP $CPPFLAGS'
19560 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19561 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19562 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19563
19564     { echo "$as_me:$LINENO: checking whether we are using the Compaq C++ compiler" >&5
19565 echo $ECHO_N "checking whether we are using the Compaq C++ compiler... $ECHO_C" >&6; }
19566 if test "${bakefile_cv_cxx_compiler___DECCXX+set}" = set; then
19567   echo $ECHO_N "(cached) $ECHO_C" >&6
19568 else
19569   cat >conftest.$ac_ext <<_ACEOF
19570 /* confdefs.h.  */
19571 _ACEOF
19572 cat confdefs.h >>conftest.$ac_ext
19573 cat >>conftest.$ac_ext <<_ACEOF
19574 /* end confdefs.h.  */
19575
19576 int
19577 main ()
19578 {
19579
19580              #ifndef __DECCXX
19581                 choke me
19582              #endif
19583
19584   ;
19585   return 0;
19586 }
19587 _ACEOF
19588 rm -f conftest.$ac_objext
19589 if { (ac_try="$ac_compile"
19590 case "(($ac_try" in
19591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19592   *) ac_try_echo=$ac_try;;
19593 esac
19594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19595   (eval "$ac_compile") 2>conftest.er1
19596   ac_status=$?
19597   grep -v '^ *+' conftest.er1 >conftest.err
19598   rm -f conftest.er1
19599   cat conftest.err >&5
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); } && {
19602          test -z "$ac_cxx_werror_flag" ||
19603          test ! -s conftest.err
19604        } && test -s conftest.$ac_objext; then
19605   bakefile_cv_cxx_compiler___DECCXX=yes
19606 else
19607   echo "$as_me: failed program was:" >&5
19608 sed 's/^/| /' conftest.$ac_ext >&5
19609
19610         bakefile_cv_cxx_compiler___DECCXX=no
19611
19612 fi
19613
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615
19616
19617 fi
19618 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___DECCXX" >&5
19619 echo "${ECHO_T}$bakefile_cv_cxx_compiler___DECCXX" >&6; }
19620     if test "x$bakefile_cv_cxx_compiler___DECCXX" = "xyes"; then
19621         :; COMPAQCXX=yes
19622     else
19623         :;
19624     fi
19625     ac_ext=c
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19630
19631
19632
19633                 ;;
19634
19635             SunOS)
19636
19637
19638     ac_ext=cpp
19639 ac_cpp='$CXXCPP $CPPFLAGS'
19640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19643
19644     { echo "$as_me:$LINENO: checking whether we are using the Sun C++ compiler" >&5
19645 echo $ECHO_N "checking whether we are using the Sun C++ compiler... $ECHO_C" >&6; }
19646 if test "${bakefile_cv_cxx_compiler___SUNPRO_CC+set}" = set; then
19647   echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649   cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h.  */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h.  */
19655
19656 int
19657 main ()
19658 {
19659
19660              #ifndef __SUNPRO_CC
19661                 choke me
19662              #endif
19663
19664   ;
19665   return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext
19669 if { (ac_try="$ac_compile"
19670 case "(($ac_try" in
19671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672   *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675   (eval "$ac_compile") 2>conftest.er1
19676   ac_status=$?
19677   grep -v '^ *+' conftest.er1 >conftest.err
19678   rm -f conftest.er1
19679   cat conftest.err >&5
19680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681   (exit $ac_status); } && {
19682          test -z "$ac_cxx_werror_flag" ||
19683          test ! -s conftest.err
19684        } && test -s conftest.$ac_objext; then
19685   bakefile_cv_cxx_compiler___SUNPRO_CC=yes
19686 else
19687   echo "$as_me: failed program was:" >&5
19688 sed 's/^/| /' conftest.$ac_ext >&5
19689
19690         bakefile_cv_cxx_compiler___SUNPRO_CC=no
19691
19692 fi
19693
19694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19695
19696
19697 fi
19698 { echo "$as_me:$LINENO: result: $bakefile_cv_cxx_compiler___SUNPRO_CC" >&5
19699 echo "${ECHO_T}$bakefile_cv_cxx_compiler___SUNPRO_CC" >&6; }
19700     if test "x$bakefile_cv_cxx_compiler___SUNPRO_CC" = "xyes"; then
19701         :; SUNCXX=yes
19702     else
19703         :;
19704     fi
19705     ac_ext=c
19706 ac_cpp='$CPP $CPPFLAGS'
19707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19710
19711
19712
19713                 ;;
19714         esac
19715     fi
19716
19717
19718
19719 if test "$CXX" = "g++" -a "$GXX" != "yes"; then
19720     { { echo "$as_me:$LINENO: error: C++ compiler is needed to build wxWidgets" >&5
19721 echo "$as_me: error: C++ compiler is needed to build wxWidgets" >&2;}
19722    { (exit 1); exit 1; }; }
19723 fi
19724
19725 if test -n "$ac_tool_prefix"; then
19726   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
19727 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
19728 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19729 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19730 if test "${ac_cv_prog_RANLIB+set}" = set; then
19731   echo $ECHO_N "(cached) $ECHO_C" >&6
19732 else
19733   if test -n "$RANLIB"; then
19734   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
19735 else
19736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19737 for as_dir in $PATH
19738 do
19739   IFS=$as_save_IFS
19740   test -z "$as_dir" && as_dir=.
19741   for ac_exec_ext in '' $ac_executable_extensions; do
19742   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19743     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
19744     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19745     break 2
19746   fi
19747 done
19748 done
19749 IFS=$as_save_IFS
19750
19751 fi
19752 fi
19753 RANLIB=$ac_cv_prog_RANLIB
19754 if test -n "$RANLIB"; then
19755   { echo "$as_me:$LINENO: result: $RANLIB" >&5
19756 echo "${ECHO_T}$RANLIB" >&6; }
19757 else
19758   { echo "$as_me:$LINENO: result: no" >&5
19759 echo "${ECHO_T}no" >&6; }
19760 fi
19761
19762
19763 fi
19764 if test -z "$ac_cv_prog_RANLIB"; then
19765   ac_ct_RANLIB=$RANLIB
19766   # Extract the first word of "ranlib", so it can be a program name with args.
19767 set dummy ranlib; ac_word=$2
19768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19770 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
19771   echo $ECHO_N "(cached) $ECHO_C" >&6
19772 else
19773   if test -n "$ac_ct_RANLIB"; then
19774   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
19775 else
19776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19777 for as_dir in $PATH
19778 do
19779   IFS=$as_save_IFS
19780   test -z "$as_dir" && as_dir=.
19781   for ac_exec_ext in '' $ac_executable_extensions; do
19782   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19783     ac_cv_prog_ac_ct_RANLIB="ranlib"
19784     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19785     break 2
19786   fi
19787 done
19788 done
19789 IFS=$as_save_IFS
19790
19791 fi
19792 fi
19793 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
19794 if test -n "$ac_ct_RANLIB"; then
19795   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
19796 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
19797 else
19798   { echo "$as_me:$LINENO: result: no" >&5
19799 echo "${ECHO_T}no" >&6; }
19800 fi
19801
19802   if test "x$ac_ct_RANLIB" = x; then
19803     RANLIB=":"
19804   else
19805     case $cross_compiling:$ac_tool_warned in
19806 yes:)
19807 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19808 whose name does not start with the host triplet.  If you think this
19809 configuration is useful to you, please write to autoconf@gnu.org." >&5
19810 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19811 whose name does not start with the host triplet.  If you think this
19812 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19813 ac_tool_warned=yes ;;
19814 esac
19815     RANLIB=$ac_ct_RANLIB
19816   fi
19817 else
19818   RANLIB="$ac_cv_prog_RANLIB"
19819 fi
19820
19821
19822 if test "x$SUNCXX" != xyes; then
19823     if test -n "$ac_tool_prefix"; then
19824   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
19825 set dummy ${ac_tool_prefix}ar; ac_word=$2
19826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19828 if test "${ac_cv_prog_AR+set}" = set; then
19829   echo $ECHO_N "(cached) $ECHO_C" >&6
19830 else
19831   if test -n "$AR"; then
19832   ac_cv_prog_AR="$AR" # Let the user override the test.
19833 else
19834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19835 for as_dir in $PATH
19836 do
19837   IFS=$as_save_IFS
19838   test -z "$as_dir" && as_dir=.
19839   for ac_exec_ext in '' $ac_executable_extensions; do
19840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19841     ac_cv_prog_AR="${ac_tool_prefix}ar"
19842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19843     break 2
19844   fi
19845 done
19846 done
19847 IFS=$as_save_IFS
19848
19849 fi
19850 fi
19851 AR=$ac_cv_prog_AR
19852 if test -n "$AR"; then
19853   { echo "$as_me:$LINENO: result: $AR" >&5
19854 echo "${ECHO_T}$AR" >&6; }
19855 else
19856   { echo "$as_me:$LINENO: result: no" >&5
19857 echo "${ECHO_T}no" >&6; }
19858 fi
19859
19860
19861 fi
19862 if test -z "$ac_cv_prog_AR"; then
19863   ac_ct_AR=$AR
19864   # Extract the first word of "ar", so it can be a program name with args.
19865 set dummy ar; ac_word=$2
19866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
19867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
19868 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
19869   echo $ECHO_N "(cached) $ECHO_C" >&6
19870 else
19871   if test -n "$ac_ct_AR"; then
19872   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
19873 else
19874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19875 for as_dir in $PATH
19876 do
19877   IFS=$as_save_IFS
19878   test -z "$as_dir" && as_dir=.
19879   for ac_exec_ext in '' $ac_executable_extensions; do
19880   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19881     ac_cv_prog_ac_ct_AR="ar"
19882     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19883     break 2
19884   fi
19885 done
19886 done
19887 IFS=$as_save_IFS
19888
19889 fi
19890 fi
19891 ac_ct_AR=$ac_cv_prog_ac_ct_AR
19892 if test -n "$ac_ct_AR"; then
19893   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
19894 echo "${ECHO_T}$ac_ct_AR" >&6; }
19895 else
19896   { echo "$as_me:$LINENO: result: no" >&5
19897 echo "${ECHO_T}no" >&6; }
19898 fi
19899
19900   if test "x$ac_ct_AR" = x; then
19901     AR=""
19902   else
19903     case $cross_compiling:$ac_tool_warned in
19904 yes:)
19905 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
19906 whose name does not start with the host triplet.  If you think this
19907 configuration is useful to you, please write to autoconf@gnu.org." >&5
19908 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
19909 whose name does not start with the host triplet.  If you think this
19910 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
19911 ac_tool_warned=yes ;;
19912 esac
19913     AR=$ac_ct_AR
19914   fi
19915 else
19916   AR="$ac_cv_prog_AR"
19917 fi
19918
19919     if test "x$AR" = "x" ; then
19920         { { echo "$as_me:$LINENO: error: ar is needed to build wxWidgets" >&5
19921 echo "$as_me: error: ar is needed to build wxWidgets" >&2;}
19922    { (exit 1); exit 1; }; }
19923     fi
19924 fi
19925
19926 # Find a good install program.  We prefer a C program (faster),
19927 # so one script is as good as another.  But avoid the broken or
19928 # incompatible versions:
19929 # SysV /etc/install, /usr/sbin/install
19930 # SunOS /usr/etc/install
19931 # IRIX /sbin/install
19932 # AIX /bin/install
19933 # AmigaOS /C/install, which installs bootblocks on floppy discs
19934 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
19935 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
19936 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
19937 # OS/2's system install, which has a completely different semantic
19938 # ./install, which can be erroneously created by make from ./install.sh.
19939 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
19940 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
19941 if test -z "$INSTALL"; then
19942 if test "${ac_cv_path_install+set}" = set; then
19943   echo $ECHO_N "(cached) $ECHO_C" >&6
19944 else
19945   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19946 for as_dir in $PATH
19947 do
19948   IFS=$as_save_IFS
19949   test -z "$as_dir" && as_dir=.
19950   # Account for people who put trailing slashes in PATH elements.
19951 case $as_dir/ in
19952   ./ | .// | /cC/* | \
19953   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
19954   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
19955   /usr/ucb/* ) ;;
19956   *)
19957     # OSF1 and SCO ODT 3.0 have their own names for install.
19958     # Don't use installbsd from OSF since it installs stuff as root
19959     # by default.
19960     for ac_prog in ginstall scoinst install; do
19961       for ac_exec_ext in '' $ac_executable_extensions; do
19962         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
19963           if test $ac_prog = install &&
19964             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19965             # AIX install.  It has an incompatible calling convention.
19966             :
19967           elif test $ac_prog = install &&
19968             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
19969             # program-specific install script used by HP pwplus--don't use.
19970             :
19971           else
19972             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
19973             break 3
19974           fi
19975         fi
19976       done
19977     done
19978     ;;
19979 esac
19980 done
19981 IFS=$as_save_IFS
19982
19983
19984 fi
19985   if test "${ac_cv_path_install+set}" = set; then
19986     INSTALL=$ac_cv_path_install
19987   else
19988     # As a last resort, use the slow shell script.  Don't cache a
19989     # value for INSTALL within a source directory, because that will
19990     # break other packages using the cache if that directory is
19991     # removed, or if the value is a relative name.
19992     INSTALL=$ac_install_sh
19993   fi
19994 fi
19995 { echo "$as_me:$LINENO: result: $INSTALL" >&5
19996 echo "${ECHO_T}$INSTALL" >&6; }
19997
19998 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
19999 # It thinks the first close brace ends the variable substitution.
20000 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
20001
20002 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
20003
20004 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
20005
20006
20007 case ${INSTALL} in
20008   /* ) # Absolute
20009      ;;
20010   ?:* ) # Drive letter, considered as absolute.
20011      ;;
20012   *)
20013      INSTALL=`pwd`/${INSTALL} ;;
20014 esac
20015
20016 retest_macosx_linking=no
20017
20018 #if test "$wxUSE_MAC" = 1; then
20019     if test "x$wxUSE_UNIVERSAL_BINARY" != xno ; then
20020                         if test "x$wxUSE_UNIVERSAL_BINARY" == xyes; then
20021             # Implicitly turn on the new --with-macosx-sdk using the default
20022             # SDK which provides the behavior this option has always had.
20023             if test "x$wxUSE_MACOSX_SDK" = "x"; then
20024                 { echo "$as_me:$LINENO: WARNING: Enabling default SDK due to --enable-universal_binary." >&5
20025 echo "$as_me: WARNING: Enabling default SDK due to --enable-universal_binary." >&2;}
20026                 { echo "$as_me:$LINENO: WARNING: If you don't want this, specify --without-macosx-sdk" >&5
20027 echo "$as_me: WARNING: If you don't want this, specify --without-macosx-sdk" >&2;}
20028                 wxUSE_MACOSX_SDK=yes
20029             fi
20030         else
20031             # Complain to user if he specified an argument to --enable-universal_binary
20032             # and also 1) specified --with-macosx-sdk using the default (yes) or
20033             # 2) specified --with-macosx-sdk using a path or 3) specified
20034             # --without-macosx-sdk (no).
20035             if test "x$wxUSE_MACOSX_SDK" != "x" ; then
20036                 { { echo "$as_me:$LINENO: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20037 See \`config.log' for more details." >&5
20038 echo "$as_me: error: Please specify the new --with-macosx-sdk=PATH and do not specify an arg to --enable-universal_binary
20039 See \`config.log' for more details." >&2;}
20040    { (exit 1); exit 1; }; }
20041             else
20042                 # Put the SDK path into the wxUSE_MACOSX_SDK.  We don't have to
20043                 # special-case the empty string because the below test simply
20044                 # converts "no" to the empty string anyway.
20045                 wxUSE_MACOSX_SDK="$wxUSE_UNIVERSAL_BINARY"
20046                                 { echo "$as_me:$LINENO: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&5
20047 echo "$as_me: WARNING: Please use --with-macosx-sdk=PATH and --enable-universal_binary without an argument" >&2;}
20048             fi
20049         fi
20050                 OSX_UNIV_OPTS="-arch ppc -arch i386"
20051         CXXFLAGS="$OSX_UNIV_OPTS $CXXFLAGS"
20052         CFLAGS="$OSX_UNIV_OPTS $CFLAGS"
20053         LDFLAGS="$OSX_UNIV_OPTS $LDFLAGS"
20054                                                                                                                 retest_macosx_linking=yes
20055
20056                                         { echo "$as_me:$LINENO: WARNING: Disabling precompiled headers due to universal binary build." >&5
20057 echo "$as_me: WARNING: Disabling precompiled headers due to universal binary build." >&2;}
20058         bk_use_pch=no
20059     fi
20060 #fi
20061
20062 if test "x$wxUSE_MACOSX_SDK" = "xno"; then
20063     wxUSE_MACOSX_SDK=
20064 elif test "x$wxUSE_MACOSX_SDK" = "xyes"; then
20065     # TODO: Search for most recent SDK and use it.
20066     wxUSE_MACOSX_SDK="/Developer/SDKs/MacOSX10.4u.sdk"
20067 fi
20068
20069
20070 if test "x$wxUSE_MACOSX_SDK" != "x"; then
20071     { echo "$as_me:$LINENO: checking for SDK directory $wxUSE_MACOSX_SDK" >&5
20072 echo $ECHO_N "checking for SDK directory $wxUSE_MACOSX_SDK... $ECHO_C" >&6; }
20073     if ! test -d "$wxUSE_MACOSX_SDK"; then
20074         { { echo "$as_me:$LINENO: error: not found
20075 See \`config.log' for more details." >&5
20076 echo "$as_me: error: not found
20077 See \`config.log' for more details." >&2;}
20078    { (exit 1); exit 1; }; }
20079     else
20080         { echo "$as_me:$LINENO: result: exists" >&5
20081 echo "${ECHO_T}exists" >&6; }
20082     fi
20083     MACOSX_SDK_OPTS="-isysroot $wxUSE_MACOSX_SDK"
20084     eval "CC=\"$CC $MACOSX_SDK_OPTS\""
20085     eval "CXX=\"$CXX $MACOSX_SDK_OPTS\""
20086     eval "LD=\"$LD $MACOSX_SDK_OPTS\""
20087     retest_macosx_linking=yes
20088             fi
20089
20090 if test "x$wxUSE_MACOSX_VERSION_MIN" = "xno"; then
20091     wxUSE_MACOSX_VERSION_MIN=
20092 elif test "x$wxUSE_MACOSX_VERSION_MIN" = "xyes"; then
20093     if test "x$wxUSE_MACOSX_SDK" != "x"; then
20094         { echo "$as_me:$LINENO: checking SDK deployment version" >&5
20095 echo $ECHO_N "checking SDK deployment version... $ECHO_C" >&6; }
20096
20097         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/'`
20098
20099         if test "x$MACOSX_SDK_PLIST_VERSION_MIN" != "x"; then
20100             wxUSE_MACOSX_VERSION_MIN=$MACOSX_SDK_PLIST_VERSION_MIN
20101             { echo "$as_me:$LINENO: result: $wxUSE_MACOSX_VERSION_MIN" >&5
20102 echo "${ECHO_T}$wxUSE_MACOSX_VERSION_MIN" >&6; }
20103         else
20104             { echo "$as_me:$LINENO: WARNING: Could not determine deployment target from SDKSettings.plist" >&5
20105 echo "$as_me: WARNING: Could not determine deployment target from SDKSettings.plist" >&2;}
20106             wxUSE_MACOSX_VERSION_MIN=
20107         fi
20108     else
20109         wxUSE_MACOSX_VERSION_MIN=
20110     fi
20111 fi
20112
20113 if test "x$wxUSE_MACOSX_VERSION_MIN" != "x"; then
20114     MACOSX_VERSION_MIN_OPTS="-mmacosx-version-min=$wxUSE_MACOSX_VERSION_MIN"
20115     eval "CC=\"$CC $MACOSX_VERSION_MIN_OPTS\""
20116     eval "CXX=\"$CXX $MACOSX_VERSION_MIN_OPTS\""
20117     eval "LD=\"$LD $MACOSX_VERSION_MIN_OPTS\""
20118     retest_macosx_linking=yes
20119 fi
20120
20121 if test "x$retest_macosx_linking" = "xyes"; then
20122     ac_ext=c
20123 ac_cpp='$CPP $CPPFLAGS'
20124 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20125 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20126 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20127
20128     { echo "$as_me:$LINENO: checking if C compiler works with SDK/version options" >&5
20129 echo $ECHO_N "checking if C compiler works with SDK/version options... $ECHO_C" >&6; }
20130     cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136
20137 int
20138 main ()
20139 {
20140
20141   ;
20142   return 0;
20143 }
20144 _ACEOF
20145 rm -f conftest.$ac_objext conftest$ac_exeext
20146 if { (ac_try="$ac_link"
20147 case "(($ac_try" in
20148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20149   *) ac_try_echo=$ac_try;;
20150 esac
20151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20152   (eval "$ac_link") 2>conftest.er1
20153   ac_status=$?
20154   grep -v '^ *+' conftest.er1 >conftest.err
20155   rm -f conftest.er1
20156   cat conftest.err >&5
20157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20158   (exit $ac_status); } && {
20159          test -z "$ac_c_werror_flag" ||
20160          test ! -s conftest.err
20161        } && test -s conftest$ac_exeext &&
20162        $as_test_x conftest$ac_exeext; then
20163   { echo "$as_me:$LINENO: result: yes" >&5
20164 echo "${ECHO_T}yes" >&6; }
20165 else
20166   echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20168
20169         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20170 See \`config.log' for more details." >&5
20171 echo "$as_me: error: no.  Try a different SDK
20172 See \`config.log' for more details." >&2;}
20173    { (exit 1); exit 1; }; }; exit 1
20174 fi
20175
20176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20177       conftest$ac_exeext conftest.$ac_ext
20178     ac_ext=c
20179 ac_cpp='$CPP $CPPFLAGS'
20180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20183
20184
20185     ac_ext=cpp
20186 ac_cpp='$CXXCPP $CPPFLAGS'
20187 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20188 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20189 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20190
20191     { echo "$as_me:$LINENO: checking if C++ compiler works with SDK/version options" >&5
20192 echo $ECHO_N "checking if C++ compiler works with SDK/version options... $ECHO_C" >&6; }
20193     cat >conftest.$ac_ext <<_ACEOF
20194 /* confdefs.h.  */
20195 _ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h.  */
20199
20200 int
20201 main ()
20202 {
20203
20204   ;
20205   return 0;
20206 }
20207 _ACEOF
20208 rm -f conftest.$ac_objext conftest$ac_exeext
20209 if { (ac_try="$ac_link"
20210 case "(($ac_try" in
20211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20212   *) ac_try_echo=$ac_try;;
20213 esac
20214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20215   (eval "$ac_link") 2>conftest.er1
20216   ac_status=$?
20217   grep -v '^ *+' conftest.er1 >conftest.err
20218   rm -f conftest.er1
20219   cat conftest.err >&5
20220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20221   (exit $ac_status); } && {
20222          test -z "$ac_cxx_werror_flag" ||
20223          test ! -s conftest.err
20224        } && test -s conftest$ac_exeext &&
20225        $as_test_x conftest$ac_exeext; then
20226   { echo "$as_me:$LINENO: result: yes" >&5
20227 echo "${ECHO_T}yes" >&6; }
20228 else
20229   echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232         { { echo "$as_me:$LINENO: error: no.  Try a different SDK
20233 See \`config.log' for more details." >&5
20234 echo "$as_me: error: no.  Try a different SDK
20235 See \`config.log' for more details." >&2;}
20236    { (exit 1); exit 1; }; }; exit 1
20237 fi
20238
20239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20240       conftest$ac_exeext conftest.$ac_ext
20241     ac_ext=c
20242 ac_cpp='$CPP $CPPFLAGS'
20243 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20244 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20245 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20246
20247 fi
20248
20249
20250 case "${host}" in
20251
20252                 *-*-darwin* )
20253         INSTALL_PROGRAM="cp -fp"
20254         INSTALL_DATA="cp -fp"
20255         ;;
20256     *)
20257         ;;
20258 esac
20259
20260 if test -n "$ac_tool_prefix"; then
20261   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
20262 set dummy ${ac_tool_prefix}strip; ac_word=$2
20263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20265 if test "${ac_cv_prog_STRIP+set}" = set; then
20266   echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268   if test -n "$STRIP"; then
20269   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
20270 else
20271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20272 for as_dir in $PATH
20273 do
20274   IFS=$as_save_IFS
20275   test -z "$as_dir" && as_dir=.
20276   for ac_exec_ext in '' $ac_executable_extensions; do
20277   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20278     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
20279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20280     break 2
20281   fi
20282 done
20283 done
20284 IFS=$as_save_IFS
20285
20286 fi
20287 fi
20288 STRIP=$ac_cv_prog_STRIP
20289 if test -n "$STRIP"; then
20290   { echo "$as_me:$LINENO: result: $STRIP" >&5
20291 echo "${ECHO_T}$STRIP" >&6; }
20292 else
20293   { echo "$as_me:$LINENO: result: no" >&5
20294 echo "${ECHO_T}no" >&6; }
20295 fi
20296
20297
20298 fi
20299 if test -z "$ac_cv_prog_STRIP"; then
20300   ac_ct_STRIP=$STRIP
20301   # Extract the first word of "strip", so it can be a program name with args.
20302 set dummy strip; ac_word=$2
20303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20305 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
20306   echo $ECHO_N "(cached) $ECHO_C" >&6
20307 else
20308   if test -n "$ac_ct_STRIP"; then
20309   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
20310 else
20311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20312 for as_dir in $PATH
20313 do
20314   IFS=$as_save_IFS
20315   test -z "$as_dir" && as_dir=.
20316   for ac_exec_ext in '' $ac_executable_extensions; do
20317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20318     ac_cv_prog_ac_ct_STRIP="strip"
20319     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20320     break 2
20321   fi
20322 done
20323 done
20324 IFS=$as_save_IFS
20325
20326 fi
20327 fi
20328 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
20329 if test -n "$ac_ct_STRIP"; then
20330   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
20331 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
20332 else
20333   { echo "$as_me:$LINENO: result: no" >&5
20334 echo "${ECHO_T}no" >&6; }
20335 fi
20336
20337   if test "x$ac_ct_STRIP" = x; then
20338     STRIP="true"
20339   else
20340     case $cross_compiling:$ac_tool_warned in
20341 yes:)
20342 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20343 whose name does not start with the host triplet.  If you think this
20344 configuration is useful to you, please write to autoconf@gnu.org." >&5
20345 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20346 whose name does not start with the host triplet.  If you think this
20347 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20348 ac_tool_warned=yes ;;
20349 esac
20350     STRIP=$ac_ct_STRIP
20351   fi
20352 else
20353   STRIP="$ac_cv_prog_STRIP"
20354 fi
20355
20356
20357 if test "$wxUSE_WINE" = "yes"; then
20358     if test -n "$ac_tool_prefix"; then
20359   # Extract the first word of "${ac_tool_prefix}wrc", so it can be a program name with args.
20360 set dummy ${ac_tool_prefix}wrc; ac_word=$2
20361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20363 if test "${ac_cv_prog_WINDRES+set}" = set; then
20364   echo $ECHO_N "(cached) $ECHO_C" >&6
20365 else
20366   if test -n "$WINDRES"; then
20367   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20368 else
20369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20370 for as_dir in $PATH
20371 do
20372   IFS=$as_save_IFS
20373   test -z "$as_dir" && as_dir=.
20374   for ac_exec_ext in '' $ac_executable_extensions; do
20375   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20376     ac_cv_prog_WINDRES="${ac_tool_prefix}wrc"
20377     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20378     break 2
20379   fi
20380 done
20381 done
20382 IFS=$as_save_IFS
20383
20384 fi
20385 fi
20386 WINDRES=$ac_cv_prog_WINDRES
20387 if test -n "$WINDRES"; then
20388   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20389 echo "${ECHO_T}$WINDRES" >&6; }
20390 else
20391   { echo "$as_me:$LINENO: result: no" >&5
20392 echo "${ECHO_T}no" >&6; }
20393 fi
20394
20395
20396 fi
20397 if test -z "$ac_cv_prog_WINDRES"; then
20398   ac_ct_WINDRES=$WINDRES
20399   # Extract the first word of "wrc", so it can be a program name with args.
20400 set dummy wrc; ac_word=$2
20401 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20402 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20403 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20404   echo $ECHO_N "(cached) $ECHO_C" >&6
20405 else
20406   if test -n "$ac_ct_WINDRES"; then
20407   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20408 else
20409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20410 for as_dir in $PATH
20411 do
20412   IFS=$as_save_IFS
20413   test -z "$as_dir" && as_dir=.
20414   for ac_exec_ext in '' $ac_executable_extensions; do
20415   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20416     ac_cv_prog_ac_ct_WINDRES="wrc"
20417     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20418     break 2
20419   fi
20420 done
20421 done
20422 IFS=$as_save_IFS
20423
20424 fi
20425 fi
20426 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20427 if test -n "$ac_ct_WINDRES"; then
20428   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20429 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20430 else
20431   { echo "$as_me:$LINENO: result: no" >&5
20432 echo "${ECHO_T}no" >&6; }
20433 fi
20434
20435   if test "x$ac_ct_WINDRES" = x; then
20436     WINDRES=""
20437   else
20438     case $cross_compiling:$ac_tool_warned in
20439 yes:)
20440 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20441 whose name does not start with the host triplet.  If you think this
20442 configuration is useful to you, please write to autoconf@gnu.org." >&5
20443 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20444 whose name does not start with the host triplet.  If you think this
20445 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20446 ac_tool_warned=yes ;;
20447 esac
20448     WINDRES=$ac_ct_WINDRES
20449   fi
20450 else
20451   WINDRES="$ac_cv_prog_WINDRES"
20452 fi
20453
20454     RESCOMP="$WINDRES"
20455 else
20456     case "${host}" in
20457     *-*-cygwin* | *-*-mingw32* )
20458                                 if test -n "$ac_tool_prefix"; then
20459   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
20460 set dummy ${ac_tool_prefix}windres; ac_word=$2
20461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20463 if test "${ac_cv_prog_WINDRES+set}" = set; then
20464   echo $ECHO_N "(cached) $ECHO_C" >&6
20465 else
20466   if test -n "$WINDRES"; then
20467   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
20468 else
20469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20470 for as_dir in $PATH
20471 do
20472   IFS=$as_save_IFS
20473   test -z "$as_dir" && as_dir=.
20474   for ac_exec_ext in '' $ac_executable_extensions; do
20475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20476     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
20477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20478     break 2
20479   fi
20480 done
20481 done
20482 IFS=$as_save_IFS
20483
20484 fi
20485 fi
20486 WINDRES=$ac_cv_prog_WINDRES
20487 if test -n "$WINDRES"; then
20488   { echo "$as_me:$LINENO: result: $WINDRES" >&5
20489 echo "${ECHO_T}$WINDRES" >&6; }
20490 else
20491   { echo "$as_me:$LINENO: result: no" >&5
20492 echo "${ECHO_T}no" >&6; }
20493 fi
20494
20495
20496 fi
20497 if test -z "$ac_cv_prog_WINDRES"; then
20498   ac_ct_WINDRES=$WINDRES
20499   # Extract the first word of "windres", so it can be a program name with args.
20500 set dummy windres; ac_word=$2
20501 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20502 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20503 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
20504   echo $ECHO_N "(cached) $ECHO_C" >&6
20505 else
20506   if test -n "$ac_ct_WINDRES"; then
20507   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
20508 else
20509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20510 for as_dir in $PATH
20511 do
20512   IFS=$as_save_IFS
20513   test -z "$as_dir" && as_dir=.
20514   for ac_exec_ext in '' $ac_executable_extensions; do
20515   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20516     ac_cv_prog_ac_ct_WINDRES="windres"
20517     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20518     break 2
20519   fi
20520 done
20521 done
20522 IFS=$as_save_IFS
20523
20524 fi
20525 fi
20526 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
20527 if test -n "$ac_ct_WINDRES"; then
20528   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
20529 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
20530 else
20531   { echo "$as_me:$LINENO: result: no" >&5
20532 echo "${ECHO_T}no" >&6; }
20533 fi
20534
20535   if test "x$ac_ct_WINDRES" = x; then
20536     WINDRES=""
20537   else
20538     case $cross_compiling:$ac_tool_warned in
20539 yes:)
20540 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20541 whose name does not start with the host triplet.  If you think this
20542 configuration is useful to you, please write to autoconf@gnu.org." >&5
20543 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20544 whose name does not start with the host triplet.  If you think this
20545 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20546 ac_tool_warned=yes ;;
20547 esac
20548     WINDRES=$ac_ct_WINDRES
20549   fi
20550 else
20551   WINDRES="$ac_cv_prog_WINDRES"
20552 fi
20553
20554         RESCOMP="$WINDRES"
20555         if test -n "$ac_tool_prefix"; then
20556   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
20557 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
20558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20560 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
20561   echo $ECHO_N "(cached) $ECHO_C" >&6
20562 else
20563   if test -n "$DLLTOOL"; then
20564   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
20565 else
20566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20567 for as_dir in $PATH
20568 do
20569   IFS=$as_save_IFS
20570   test -z "$as_dir" && as_dir=.
20571   for ac_exec_ext in '' $ac_executable_extensions; do
20572   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20573     ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
20574     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20575     break 2
20576   fi
20577 done
20578 done
20579 IFS=$as_save_IFS
20580
20581 fi
20582 fi
20583 DLLTOOL=$ac_cv_prog_DLLTOOL
20584 if test -n "$DLLTOOL"; then
20585   { echo "$as_me:$LINENO: result: $DLLTOOL" >&5
20586 echo "${ECHO_T}$DLLTOOL" >&6; }
20587 else
20588   { echo "$as_me:$LINENO: result: no" >&5
20589 echo "${ECHO_T}no" >&6; }
20590 fi
20591
20592
20593 fi
20594 if test -z "$ac_cv_prog_DLLTOOL"; then
20595   ac_ct_DLLTOOL=$DLLTOOL
20596   # Extract the first word of "dlltool", so it can be a program name with args.
20597 set dummy dlltool; ac_word=$2
20598 { echo "$as_me:$LINENO: checking for $ac_word" >&5
20599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
20600 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
20601   echo $ECHO_N "(cached) $ECHO_C" >&6
20602 else
20603   if test -n "$ac_ct_DLLTOOL"; then
20604   ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
20605 else
20606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20607 for as_dir in $PATH
20608 do
20609   IFS=$as_save_IFS
20610   test -z "$as_dir" && as_dir=.
20611   for ac_exec_ext in '' $ac_executable_extensions; do
20612   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20613     ac_cv_prog_ac_ct_DLLTOOL="dlltool"
20614     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20615     break 2
20616   fi
20617 done
20618 done
20619 IFS=$as_save_IFS
20620
20621 fi
20622 fi
20623 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
20624 if test -n "$ac_ct_DLLTOOL"; then
20625   { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
20626 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; }
20627 else
20628   { echo "$as_me:$LINENO: result: no" >&5
20629 echo "${ECHO_T}no" >&6; }
20630 fi
20631
20632   if test "x$ac_ct_DLLTOOL" = x; then
20633     DLLTOOL=""
20634   else
20635     case $cross_compiling:$ac_tool_warned in
20636 yes:)
20637 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
20638 whose name does not start with the host triplet.  If you think this
20639 configuration is useful to you, please write to autoconf@gnu.org." >&5
20640 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
20641 whose name does not start with the host triplet.  If you think this
20642 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
20643 ac_tool_warned=yes ;;
20644 esac
20645     DLLTOOL=$ac_ct_DLLTOOL
20646   fi
20647 else
20648   DLLTOOL="$ac_cv_prog_DLLTOOL"
20649 fi
20650
20651         ;;
20652     esac
20653 fi
20654
20655 { echo "$as_me:$LINENO: checking if make is GNU make" >&5
20656 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
20657 if test "${wx_cv_prog_makeisgnu+set}" = set; then
20658   echo $ECHO_N "(cached) $ECHO_C" >&6
20659 else
20660
20661     if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
20662             $EGREP -s GNU > /dev/null); then
20663         wx_cv_prog_makeisgnu="yes"
20664     else
20665         wx_cv_prog_makeisgnu="no"
20666     fi
20667
20668 fi
20669 { echo "$as_me:$LINENO: result: $wx_cv_prog_makeisgnu" >&5
20670 echo "${ECHO_T}$wx_cv_prog_makeisgnu" >&6; }
20671
20672 if test "x$wx_cv_prog_makeisgnu" = "xyes"; then
20673     IF_GNU_MAKE=""
20674 else
20675     IF_GNU_MAKE="#"
20676 fi
20677
20678
20679
20680 if test "x$wx_cv_prog_makeisgnu" != "xyes"; then
20681 { echo "$as_me:$LINENO: checking if make supports VPATH" >&5
20682 echo $ECHO_N "checking if make supports VPATH... $ECHO_C" >&6; }
20683 if test "${wx_cv_prog_makevpath+set}" = set; then
20684   echo $ECHO_N "(cached) $ECHO_C" >&6
20685 else
20686
20687 cat - << EOF > confMake
20688 check : file
20689         cp \$? \$@
20690         cp \$? final_file
20691 EOF
20692
20693 if test ! -d sub ; then
20694   mkdir sub
20695 fi
20696 echo dummy > sub/file
20697 ${MAKE-make} -f confMake VPATH=sub 2>&5 > /dev/null
20698 RESULT=$?
20699 rm -f sub/file check final_file confMake
20700 rmdir sub
20701 if test "$RESULT" = 0; then
20702   wx_cv_prog_makevpath="yes"
20703 else
20704   wx_cv_prog_makevpath="no"
20705 fi
20706
20707 fi
20708 { echo "$as_me:$LINENO: result: $wx_cv_prog_makevpath" >&5
20709 echo "${ECHO_T}$wx_cv_prog_makevpath" >&6; }
20710
20711 if test "x$wx_cv_prog_makevpath" != "xyes"; then
20712 { { echo "$as_me:$LINENO: error:
20713 You need a make-utility that is able to use the variable
20714 VPATH correctly.
20715 If your version of make does not support VPATH correctly,
20716 please install GNU-make (possibly as gmake), and start
20717 configure with the following command:
20718 export MAKE=gmake; ./configure  for sh-type shells
20719 setenv MAKE gmake; ./configure  for csh-type shells
20720 Also please do remember to use gmake in this case every time
20721 you are trying to compile.
20722 " >&5
20723 echo "$as_me: error:
20724 You need a make-utility that is able to use the variable
20725 VPATH correctly.
20726 If your version of make does not support VPATH correctly,
20727 please install GNU-make (possibly as gmake), and start
20728 configure with the following command:
20729 export MAKE=gmake; ./configure  for sh-type shells
20730 setenv MAKE gmake; ./configure  for csh-type shells
20731 Also please do remember to use gmake in this case every time
20732 you are trying to compile.
20733 " >&2;}
20734    { (exit 1); exit 1; }; }
20735 fi fi
20736 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
20737 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
20738 LN_S=$as_ln_s
20739 if test "$LN_S" = "ln -s"; then
20740   { echo "$as_me:$LINENO: result: yes" >&5
20741 echo "${ECHO_T}yes" >&6; }
20742 else
20743   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
20744 echo "${ECHO_T}no, using $LN_S" >&6; }
20745 fi
20746
20747
20748
20749
20750 if test "x$XLCXX" = "xyes" -a "x$USE_AIX" = "x1"; then
20751     CXXFLAGS="-qunique $CXXFLAGS"
20752 fi
20753
20754 case "${host}" in
20755   powerpc-*-darwin* )
20756     { echo "$as_me:$LINENO: checking if __POWERPC__ is already defined" >&5
20757 echo $ECHO_N "checking if __POWERPC__ is already defined... $ECHO_C" >&6; }
20758     cat >conftest.$ac_ext <<_ACEOF
20759 /* confdefs.h.  */
20760 _ACEOF
20761 cat confdefs.h >>conftest.$ac_ext
20762 cat >>conftest.$ac_ext <<_ACEOF
20763 /* end confdefs.h.  */
20764
20765 int
20766 main ()
20767 {
20768 #ifndef __POWERPC__
20769         choke me for lack of PowerPC
20770 #endif
20771
20772   ;
20773   return 0;
20774 }
20775 _ACEOF
20776 rm -f conftest.$ac_objext
20777 if { (ac_try="$ac_compile"
20778 case "(($ac_try" in
20779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20780   *) ac_try_echo=$ac_try;;
20781 esac
20782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20783   (eval "$ac_compile") 2>conftest.er1
20784   ac_status=$?
20785   grep -v '^ *+' conftest.er1 >conftest.err
20786   rm -f conftest.er1
20787   cat conftest.err >&5
20788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20789   (exit $ac_status); } && {
20790          test -z "$ac_c_werror_flag" ||
20791          test ! -s conftest.err
20792        } && test -s conftest.$ac_objext; then
20793   { echo "$as_me:$LINENO: result: yes" >&5
20794 echo "${ECHO_T}yes" >&6; }
20795 else
20796   echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799         { echo "$as_me:$LINENO: result: no" >&5
20800 echo "${ECHO_T}no" >&6; }
20801         cat >>confdefs.h <<\_ACEOF
20802 #define __POWERPC__ 1
20803 _ACEOF
20804
20805
20806 fi
20807
20808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20809   ;;
20810 esac
20811
20812 case "${host}" in
20813   *-*-darwin* )
20814     { echo "$as_me:$LINENO: checking if CoreFoundation/CFBase.h is usable" >&5
20815 echo $ECHO_N "checking if CoreFoundation/CFBase.h is usable... $ECHO_C" >&6; }
20816     cat >conftest.$ac_ext <<_ACEOF
20817 /* confdefs.h.  */
20818 _ACEOF
20819 cat confdefs.h >>conftest.$ac_ext
20820 cat >>conftest.$ac_ext <<_ACEOF
20821 /* end confdefs.h.  */
20822 #include <CoreFoundation/CFBase.h>
20823
20824 int
20825 main ()
20826 {
20827
20828   ;
20829   return 0;
20830 }
20831 _ACEOF
20832 rm -f conftest.$ac_objext
20833 if { (ac_try="$ac_compile"
20834 case "(($ac_try" in
20835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836   *) ac_try_echo=$ac_try;;
20837 esac
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839   (eval "$ac_compile") 2>conftest.er1
20840   ac_status=$?
20841   grep -v '^ *+' conftest.er1 >conftest.err
20842   rm -f conftest.er1
20843   cat conftest.err >&5
20844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20845   (exit $ac_status); } && {
20846          test -z "$ac_c_werror_flag" ||
20847          test ! -s conftest.err
20848        } && test -s conftest.$ac_objext; then
20849   { echo "$as_me:$LINENO: result: yes" >&5
20850 echo "${ECHO_T}yes" >&6; }
20851 else
20852   echo "$as_me: failed program was:" >&5
20853 sed 's/^/| /' conftest.$ac_ext >&5
20854
20855         { echo "$as_me:$LINENO: result: no" >&5
20856 echo "${ECHO_T}no" >&6; }
20857         { echo "$as_me:$LINENO: checking if __CF_USE_FRAMEWORK_INCLUDES__ is required" >&5
20858 echo $ECHO_N "checking if __CF_USE_FRAMEWORK_INCLUDES__ is required... $ECHO_C" >&6; }
20859         cat >conftest.$ac_ext <<_ACEOF
20860 /* confdefs.h.  */
20861 _ACEOF
20862 cat confdefs.h >>conftest.$ac_ext
20863 cat >>conftest.$ac_ext <<_ACEOF
20864 /* end confdefs.h.  */
20865 #define __CF_USE_FRAMEWORK_INCLUDES__
20866 #include <CoreFoundation/CFBase.h>
20867
20868 int
20869 main ()
20870 {
20871
20872   ;
20873   return 0;
20874 }
20875 _ACEOF
20876 rm -f conftest.$ac_objext
20877 if { (ac_try="$ac_compile"
20878 case "(($ac_try" in
20879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20880   *) ac_try_echo=$ac_try;;
20881 esac
20882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20883   (eval "$ac_compile") 2>conftest.er1
20884   ac_status=$?
20885   grep -v '^ *+' conftest.er1 >conftest.err
20886   rm -f conftest.er1
20887   cat conftest.err >&5
20888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20889   (exit $ac_status); } && {
20890          test -z "$ac_c_werror_flag" ||
20891          test ! -s conftest.err
20892        } && test -s conftest.$ac_objext; then
20893   { echo "$as_me:$LINENO: result: yes" >&5
20894 echo "${ECHO_T}yes" >&6; }
20895                         CPPFLAGS="-D__CF_USE_FRAMEWORK_INCLUDES__ $CPPFLAGS"
20896 else
20897   echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20899
20900         { { echo "$as_me:$LINENO: error: no.  CoreFoundation not available.
20901 See \`config.log' for more details." >&5
20902 echo "$as_me: error: no.  CoreFoundation not available.
20903 See \`config.log' for more details." >&2;}
20904    { (exit 1); exit 1; }; }
20905
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909
20910
20911 fi
20912
20913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20914   ;;
20915 esac
20916
20917 wants_win32=0
20918 doesnt_want_win32=0
20919 case "${host}" in
20920   *-*-cygwin*)
20921       if test "$wxUSE_MSW" = 1 ; then
20922         wants_win32=1
20923       else
20924                         { echo "$as_me:$LINENO: checking if -mno-cygwin is in effect" >&5
20925 echo $ECHO_N "checking if -mno-cygwin is in effect... $ECHO_C" >&6; }
20926 if test "${wx_cv_nocygwin+set}" = set; then
20927   echo $ECHO_N "(cached) $ECHO_C" >&6
20928 else
20929
20930                 cat >conftest.$ac_ext <<_ACEOF
20931 /* confdefs.h.  */
20932 _ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h.  */
20936
20937 int
20938 main ()
20939 {
20940
20941                         #ifdef __MINGW32__
20942                             choke me
20943                         #endif
20944
20945   ;
20946   return 0;
20947 }
20948 _ACEOF
20949 rm -f conftest.$ac_objext
20950 if { (ac_try="$ac_compile"
20951 case "(($ac_try" in
20952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20953   *) ac_try_echo=$ac_try;;
20954 esac
20955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20956   (eval "$ac_compile") 2>conftest.er1
20957   ac_status=$?
20958   grep -v '^ *+' conftest.er1 >conftest.err
20959   rm -f conftest.er1
20960   cat conftest.err >&5
20961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20962   (exit $ac_status); } && {
20963          test -z "$ac_c_werror_flag" ||
20964          test ! -s conftest.err
20965        } && test -s conftest.$ac_objext; then
20966   wx_cv_nocygwin=no
20967 else
20968   echo "$as_me: failed program was:" >&5
20969 sed 's/^/| /' conftest.$ac_ext >&5
20970
20971         wx_cv_nocygwin=yes
20972
20973 fi
20974
20975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20976
20977
20978 fi
20979 { echo "$as_me:$LINENO: result: $wx_cv_nocygwin" >&5
20980 echo "${ECHO_T}$wx_cv_nocygwin" >&6; }
20981
20982         if test "$wx_cv_nocygwin" = "yes"; then
20983             wants_win32=1
20984         else
20985             doesnt_want_win32=1
20986         fi
20987       fi
20988       if test "$wants_win32" = 1 ; then
20989         BAKEFILE_FORCE_PLATFORM=win32
20990       fi
20991   ;;
20992   *-*-mingw*)
20993       wants_win32=1
20994   ;;
20995 esac
20996
20997 if test "$wxUSE_WINE" = "yes"; then
20998     wants_win32=1
20999     LDFLAGS_GUI="-mwindows"
21000 fi
21001
21002 if test "$wants_win32" = 1 ; then
21003     USE_UNIX=0
21004     USE_WIN32=1
21005     cat >>confdefs.h <<\_ACEOF
21006 #define __WIN32__ 1
21007 _ACEOF
21008
21009     cat >>confdefs.h <<\_ACEOF
21010 #define __WIN95__ 1
21011 _ACEOF
21012
21013     cat >>confdefs.h <<\_ACEOF
21014 #define __WINDOWS__ 1
21015 _ACEOF
21016
21017     cat >>confdefs.h <<\_ACEOF
21018 #define __GNUWIN32__ 1
21019 _ACEOF
21020
21021     cat >>confdefs.h <<\_ACEOF
21022 #define STRICT 1
21023 _ACEOF
21024
21025 fi
21026 if test "$doesnt_want_win32" = 1 ; then
21027     USE_UNIX=1
21028     USE_WIN32=0
21029 fi
21030
21031 if test "$USE_UNIX" = 1 ; then
21032     wxUSE_UNIX=yes
21033     cat >>confdefs.h <<\_ACEOF
21034 #define __UNIX__ 1
21035 _ACEOF
21036
21037 fi
21038
21039 case "${host}" in
21040   *-pc-os2_emx | *-pc-os2-emx )
21041                                                       if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_GTK" = 1 -o "$wxUSE_X11" = 1; then
21042                               { echo "$as_me:$LINENO: checking for drand48 in -lcExt" >&5
21043 echo $ECHO_N "checking for drand48 in -lcExt... $ECHO_C" >&6; }
21044 if test "${ac_cv_lib_cExt_drand48+set}" = set; then
21045   echo $ECHO_N "(cached) $ECHO_C" >&6
21046 else
21047   ac_check_lib_save_LIBS=$LIBS
21048 LIBS="-lcExt  $LIBS"
21049 cat >conftest.$ac_ext <<_ACEOF
21050 /* confdefs.h.  */
21051 _ACEOF
21052 cat confdefs.h >>conftest.$ac_ext
21053 cat >>conftest.$ac_ext <<_ACEOF
21054 /* end confdefs.h.  */
21055
21056 /* Override any GCC internal prototype to avoid an error.
21057    Use char because int might match the return type of a GCC
21058    builtin and then its argument prototype would still apply.  */
21059 #ifdef __cplusplus
21060 extern "C"
21061 #endif
21062 char drand48 ();
21063 int
21064 main ()
21065 {
21066 return drand48 ();
21067   ;
21068   return 0;
21069 }
21070 _ACEOF
21071 rm -f conftest.$ac_objext conftest$ac_exeext
21072 if { (ac_try="$ac_link"
21073 case "(($ac_try" in
21074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21075   *) ac_try_echo=$ac_try;;
21076 esac
21077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21078   (eval "$ac_link") 2>conftest.er1
21079   ac_status=$?
21080   grep -v '^ *+' conftest.er1 >conftest.err
21081   rm -f conftest.er1
21082   cat conftest.err >&5
21083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084   (exit $ac_status); } && {
21085          test -z "$ac_c_werror_flag" ||
21086          test ! -s conftest.err
21087        } && test -s conftest$ac_exeext &&
21088        $as_test_x conftest$ac_exeext; then
21089   ac_cv_lib_cExt_drand48=yes
21090 else
21091   echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094         ac_cv_lib_cExt_drand48=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21098       conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21100 fi
21101 { echo "$as_me:$LINENO: result: $ac_cv_lib_cExt_drand48" >&5
21102 echo "${ECHO_T}$ac_cv_lib_cExt_drand48" >&6; }
21103 if test $ac_cv_lib_cExt_drand48 = yes; then
21104   LIBS="$LIBS -lcExt"
21105 fi
21106
21107       else
21108                     RESPROGRAMOBJ="\${top_srcdir}/include/wx/os2/wx.res"
21109       fi
21110                                     { echo "$as_me:$LINENO: checking for gcc/libc version" >&5
21111 echo $ECHO_N "checking for gcc/libc version... $ECHO_C" >&6; }
21112 if test "${wx_cv_gccversion+set}" = set; then
21113   echo $ECHO_N "(cached) $ECHO_C" >&6
21114 else
21115
21116           if test "$cross_compiling" = yes; then
21117                 wx_cv_gccversion="EMX2"
21118
21119 else
21120   cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h.  */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h.  */
21126
21127                   #include <stdio.h>
21128
21129                   int main()
21130                   {
21131                       FILE *f=fopen("conftestval", "w");
21132                       if (!f) exit(1);
21133                       fprintf(f,
21134                   #if (__GNUC__ < 3)
21135                               "EMX2"
21136                   #elif (__GNUC__==3) && ((__GNUC_MINOR__ < 2) || ((__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__<2)))
21137                               "EMX3"
21138                   #elif (__GNUC__==3) && (__GNUC_MINOR__==2) && (__GNUC_PATCHLEVEL__==2)
21139                               "Innotek5"
21140                   #else
21141                               "Innotek6"
21142                   #endif
21143                       );
21144                       exit(0);
21145                   }
21146
21147 _ACEOF
21148 rm -f conftest$ac_exeext
21149 if { (ac_try="$ac_link"
21150 case "(($ac_try" in
21151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152   *) ac_try_echo=$ac_try;;
21153 esac
21154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21155   (eval "$ac_link") 2>&5
21156   ac_status=$?
21157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21159   { (case "(($ac_try" in
21160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161   *) ac_try_echo=$ac_try;;
21162 esac
21163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21164   (eval "$ac_try") 2>&5
21165   ac_status=$?
21166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21167   (exit $ac_status); }; }; then
21168   wx_cv_gccversion=`cat conftestval`
21169 else
21170   echo "$as_me: program exited with status $ac_status" >&5
21171 echo "$as_me: failed program was:" >&5
21172 sed 's/^/| /' conftest.$ac_ext >&5
21173
21174 ( exit $ac_status )
21175 wx_cv_gccversion="EMX2"
21176 fi
21177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21178 fi
21179
21180
21181
21182 fi
21183 { echo "$as_me:$LINENO: result: $wx_cv_gccversion" >&5
21184 echo "${ECHO_T}$wx_cv_gccversion" >&6; }
21185       if test "$wx_cv_gccversion" = "EMX2"; then
21186           LIBS="$LIBS -lstdcpp"
21187           LDFLAGS="$LDFLAGS -Zsysv-signals"
21188       else
21189           if test "$wx_cv_gccversion" = "EMX3"; then
21190               LIBS="$LIBS -lstdcxx -lgcc"
21191               LDFLAGS="$LDFLAGS -Zsysv-signals"
21192           else
21193               LIBS="$LIBS -lstdc++"
21194           fi
21195       fi
21196       if test "$wxUSE_SHARED" = "yes" -a "$wxUSE_OMF" = "no"; then
21197         { echo "$as_me:$LINENO: WARNING: Building DLLs requires OMF mode, enabled" >&5
21198 echo "$as_me: WARNING: Building DLLs requires OMF mode, enabled" >&2;}
21199         wxUSE_OMF=yes
21200         enable_omf=yes
21201       fi
21202         ;;
21203   *)
21204
21205       { echo "$as_me:$LINENO: checking for strcasecmp() in string.h" >&5
21206 echo $ECHO_N "checking for strcasecmp() in string.h... $ECHO_C" >&6; }
21207 if test "${ac_cv_string_strcasecmp+set}" = set; then
21208   echo $ECHO_N "(cached) $ECHO_C" >&6
21209 else
21210
21211           cat >conftest.$ac_ext <<_ACEOF
21212 /* confdefs.h.  */
21213 _ACEOF
21214 cat confdefs.h >>conftest.$ac_ext
21215 cat >>conftest.$ac_ext <<_ACEOF
21216 /* end confdefs.h.  */
21217
21218               #include <string.h>
21219
21220 int
21221 main ()
21222 {
21223
21224                   strcasecmp("foo", "bar");
21225
21226   ;
21227   return 0;
21228 }
21229 _ACEOF
21230 rm -f conftest.$ac_objext conftest$ac_exeext
21231 if { (ac_try="$ac_link"
21232 case "(($ac_try" in
21233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21234   *) ac_try_echo=$ac_try;;
21235 esac
21236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21237   (eval "$ac_link") 2>conftest.er1
21238   ac_status=$?
21239   grep -v '^ *+' conftest.er1 >conftest.err
21240   rm -f conftest.er1
21241   cat conftest.err >&5
21242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243   (exit $ac_status); } && {
21244          test -z "$ac_c_werror_flag" ||
21245          test ! -s conftest.err
21246        } && test -s conftest$ac_exeext &&
21247        $as_test_x conftest$ac_exeext; then
21248   ac_cv_string_strcasecmp=yes
21249 else
21250   echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253         ac_cv_string_strcasecmp=no
21254
21255 fi
21256
21257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21258       conftest$ac_exeext conftest.$ac_ext
21259
21260 fi
21261 { echo "$as_me:$LINENO: result: $ac_cv_string_strcasecmp" >&5
21262 echo "${ECHO_T}$ac_cv_string_strcasecmp" >&6; }
21263
21264       if test x"$ac_cv_string_strcasecmp" = "xyes"; then
21265           cat >>confdefs.h <<\_ACEOF
21266 #define HAVE_STRCASECMP_IN_STRING_H 1
21267 _ACEOF
21268
21269       else
21270           { echo "$as_me:$LINENO: checking for strcasecmp() in strings.h" >&5
21271 echo $ECHO_N "checking for strcasecmp() in strings.h... $ECHO_C" >&6; }
21272 if test "${ac_cv_strings_strcasecmp+set}" = set; then
21273   echo $ECHO_N "(cached) $ECHO_C" >&6
21274 else
21275
21276               cat >conftest.$ac_ext <<_ACEOF
21277 /* confdefs.h.  */
21278 _ACEOF
21279 cat confdefs.h >>conftest.$ac_ext
21280 cat >>conftest.$ac_ext <<_ACEOF
21281 /* end confdefs.h.  */
21282
21283                   #include <strings.h>
21284
21285 int
21286 main ()
21287 {
21288
21289                       strcasecmp("foo", "bar");
21290
21291   ;
21292   return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext conftest$ac_exeext
21296 if { (ac_try="$ac_link"
21297 case "(($ac_try" in
21298   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299   *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302   (eval "$ac_link") 2>conftest.er1
21303   ac_status=$?
21304   grep -v '^ *+' conftest.er1 >conftest.err
21305   rm -f conftest.er1
21306   cat conftest.err >&5
21307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308   (exit $ac_status); } && {
21309          test -z "$ac_c_werror_flag" ||
21310          test ! -s conftest.err
21311        } && test -s conftest$ac_exeext &&
21312        $as_test_x conftest$ac_exeext; then
21313   ac_cv_strings_strcasecmp=yes
21314 else
21315   echo "$as_me: failed program was:" >&5
21316 sed 's/^/| /' conftest.$ac_ext >&5
21317
21318         ac_cv_strings_strcasecmp=no
21319
21320 fi
21321
21322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21323       conftest$ac_exeext conftest.$ac_ext
21324
21325 fi
21326 { echo "$as_me:$LINENO: result: $ac_cv_strings_strcasecmp" >&5
21327 echo "${ECHO_T}$ac_cv_strings_strcasecmp" >&6; }
21328
21329           if test x"$ac_cv_strings_strcasecmp" = "xyes"; then
21330               cat >>confdefs.h <<\_ACEOF
21331 #define HAVE_STRCASECMP_IN_STRINGS_H 1
21332 _ACEOF
21333
21334           else
21335               { { echo "$as_me:$LINENO: error: No case-insensitive string comparison function found." >&5
21336 echo "$as_me: error: No case-insensitive string comparison function found." >&2;}
21337    { (exit 1); exit 1; }; }
21338           fi
21339       fi
21340
21341         ;;
21342 esac
21343
21344
21345 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21346 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
21347 if test "${ac_cv_header_stdc+set}" = set; then
21348   echo $ECHO_N "(cached) $ECHO_C" >&6
21349 else
21350   cat >conftest.$ac_ext <<_ACEOF
21351 /* confdefs.h.  */
21352 _ACEOF
21353 cat confdefs.h >>conftest.$ac_ext
21354 cat >>conftest.$ac_ext <<_ACEOF
21355 /* end confdefs.h.  */
21356 #include <stdlib.h>
21357 #include <stdarg.h>
21358 #include <string.h>
21359 #include <float.h>
21360
21361 int
21362 main ()
21363 {
21364
21365   ;
21366   return 0;
21367 }
21368 _ACEOF
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373   *) ac_try_echo=$ac_try;;
21374 esac
21375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21376   (eval "$ac_compile") 2>conftest.er1
21377   ac_status=$?
21378   grep -v '^ *+' conftest.er1 >conftest.err
21379   rm -f conftest.er1
21380   cat conftest.err >&5
21381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21382   (exit $ac_status); } && {
21383          test -z "$ac_c_werror_flag" ||
21384          test ! -s conftest.err
21385        } && test -s conftest.$ac_objext; then
21386   ac_cv_header_stdc=yes
21387 else
21388   echo "$as_me: failed program was:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21390
21391         ac_cv_header_stdc=no
21392 fi
21393
21394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395
21396 if test $ac_cv_header_stdc = yes; then
21397   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21398   cat >conftest.$ac_ext <<_ACEOF
21399 /* confdefs.h.  */
21400 _ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h.  */
21404 #include <string.h>
21405
21406 _ACEOF
21407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21408   $EGREP "memchr" >/dev/null 2>&1; then
21409   :
21410 else
21411   ac_cv_header_stdc=no
21412 fi
21413 rm -f conftest*
21414
21415 fi
21416
21417 if test $ac_cv_header_stdc = yes; then
21418   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21419   cat >conftest.$ac_ext <<_ACEOF
21420 /* confdefs.h.  */
21421 _ACEOF
21422 cat confdefs.h >>conftest.$ac_ext
21423 cat >>conftest.$ac_ext <<_ACEOF
21424 /* end confdefs.h.  */
21425 #include <stdlib.h>
21426
21427 _ACEOF
21428 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21429   $EGREP "free" >/dev/null 2>&1; then
21430   :
21431 else
21432   ac_cv_header_stdc=no
21433 fi
21434 rm -f conftest*
21435
21436 fi
21437
21438 if test $ac_cv_header_stdc = yes; then
21439   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21440   if test "$cross_compiling" = yes; then
21441   :
21442 else
21443   cat >conftest.$ac_ext <<_ACEOF
21444 /* confdefs.h.  */
21445 _ACEOF
21446 cat confdefs.h >>conftest.$ac_ext
21447 cat >>conftest.$ac_ext <<_ACEOF
21448 /* end confdefs.h.  */
21449 #include <ctype.h>
21450 #include <stdlib.h>
21451 #if ((' ' & 0x0FF) == 0x020)
21452 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21453 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21454 #else
21455 # define ISLOWER(c) \
21456                    (('a' <= (c) && (c) <= 'i') \
21457                      || ('j' <= (c) && (c) <= 'r') \
21458                      || ('s' <= (c) && (c) <= 'z'))
21459 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21460 #endif
21461
21462 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21463 int
21464 main ()
21465 {
21466   int i;
21467   for (i = 0; i < 256; i++)
21468     if (XOR (islower (i), ISLOWER (i))
21469         || toupper (i) != TOUPPER (i))
21470       return 2;
21471   return 0;
21472 }
21473 _ACEOF
21474 rm -f conftest$ac_exeext
21475 if { (ac_try="$ac_link"
21476 case "(($ac_try" in
21477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478   *) ac_try_echo=$ac_try;;
21479 esac
21480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21481   (eval "$ac_link") 2>&5
21482   ac_status=$?
21483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21484   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21485   { (case "(($ac_try" in
21486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487   *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490   (eval "$ac_try") 2>&5
21491   ac_status=$?
21492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21493   (exit $ac_status); }; }; then
21494   :
21495 else
21496   echo "$as_me: program exited with status $ac_status" >&5
21497 echo "$as_me: failed program was:" >&5
21498 sed 's/^/| /' conftest.$ac_ext >&5
21499
21500 ( exit $ac_status )
21501 ac_cv_header_stdc=no
21502 fi
21503 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21504 fi
21505
21506
21507 fi
21508 fi
21509 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21510 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
21511 if test $ac_cv_header_stdc = yes; then
21512
21513 cat >>confdefs.h <<\_ACEOF
21514 #define STDC_HEADERS 1
21515 _ACEOF
21516
21517 fi
21518
21519 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
21520
21521
21522
21523
21524
21525
21526
21527
21528
21529 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
21530                   inttypes.h stdint.h unistd.h
21531 do
21532 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21536   echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538   cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h.  */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h.  */
21544 $ac_includes_default
21545
21546 #include <$ac_header>
21547 _ACEOF
21548 rm -f conftest.$ac_objext
21549 if { (ac_try="$ac_compile"
21550 case "(($ac_try" in
21551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21552   *) ac_try_echo=$ac_try;;
21553 esac
21554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21555   (eval "$ac_compile") 2>conftest.er1
21556   ac_status=$?
21557   grep -v '^ *+' conftest.er1 >conftest.err
21558   rm -f conftest.er1
21559   cat conftest.err >&5
21560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21561   (exit $ac_status); } && {
21562          test -z "$ac_c_werror_flag" ||
21563          test ! -s conftest.err
21564        } && test -s conftest.$ac_objext; then
21565   eval "$as_ac_Header=yes"
21566 else
21567   echo "$as_me: failed program was:" >&5
21568 sed 's/^/| /' conftest.$ac_ext >&5
21569
21570         eval "$as_ac_Header=no"
21571 fi
21572
21573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21574 fi
21575 ac_res=`eval echo '${'$as_ac_Header'}'`
21576                { echo "$as_me:$LINENO: result: $ac_res" >&5
21577 echo "${ECHO_T}$ac_res" >&6; }
21578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21579   cat >>confdefs.h <<_ACEOF
21580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21581 _ACEOF
21582
21583 fi
21584
21585 done
21586
21587
21588
21589
21590
21591
21592
21593
21594 for ac_header in stdlib.h fnmatch.h langinfo.h malloc.h unistd.h wchar.h
21595 do
21596 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21600   echo $ECHO_N "(cached) $ECHO_C" >&6
21601 else
21602   cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609
21610 #include <$ac_header>
21611 _ACEOF
21612 rm -f conftest.$ac_objext
21613 if { (ac_try="$ac_compile"
21614 case "(($ac_try" in
21615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21616   *) ac_try_echo=$ac_try;;
21617 esac
21618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21619   (eval "$ac_compile") 2>conftest.er1
21620   ac_status=$?
21621   grep -v '^ *+' conftest.er1 >conftest.err
21622   rm -f conftest.er1
21623   cat conftest.err >&5
21624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21625   (exit $ac_status); } && {
21626          test -z "$ac_c_werror_flag" ||
21627          test ! -s conftest.err
21628        } && test -s conftest.$ac_objext; then
21629   eval "$as_ac_Header=yes"
21630 else
21631   echo "$as_me: failed program was:" >&5
21632 sed 's/^/| /' conftest.$ac_ext >&5
21633
21634         eval "$as_ac_Header=no"
21635 fi
21636
21637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21638 fi
21639 ac_res=`eval echo '${'$as_ac_Header'}'`
21640                { echo "$as_me:$LINENO: result: $ac_res" >&5
21641 echo "${ECHO_T}$ac_res" >&6; }
21642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21643   cat >>confdefs.h <<_ACEOF
21644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21645 _ACEOF
21646
21647 fi
21648
21649 done
21650
21651
21652 if test "$ac_cv_header_wchar_h" != "yes"; then
21653
21654 for ac_header in wcstr.h
21655 do
21656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21660   echo $ECHO_N "(cached) $ECHO_C" >&6
21661 else
21662   cat >conftest.$ac_ext <<_ACEOF
21663 /* confdefs.h.  */
21664 _ACEOF
21665 cat confdefs.h >>conftest.$ac_ext
21666 cat >>conftest.$ac_ext <<_ACEOF
21667 /* end confdefs.h.  */
21668 $ac_includes_default
21669
21670 #include <$ac_header>
21671 _ACEOF
21672 rm -f conftest.$ac_objext
21673 if { (ac_try="$ac_compile"
21674 case "(($ac_try" in
21675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21676   *) ac_try_echo=$ac_try;;
21677 esac
21678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21679   (eval "$ac_compile") 2>conftest.er1
21680   ac_status=$?
21681   grep -v '^ *+' conftest.er1 >conftest.err
21682   rm -f conftest.er1
21683   cat conftest.err >&5
21684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21685   (exit $ac_status); } && {
21686          test -z "$ac_c_werror_flag" ||
21687          test ! -s conftest.err
21688        } && test -s conftest.$ac_objext; then
21689   eval "$as_ac_Header=yes"
21690 else
21691   echo "$as_me: failed program was:" >&5
21692 sed 's/^/| /' conftest.$ac_ext >&5
21693
21694         eval "$as_ac_Header=no"
21695 fi
21696
21697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21698 fi
21699 ac_res=`eval echo '${'$as_ac_Header'}'`
21700                { echo "$as_me:$LINENO: result: $ac_res" >&5
21701 echo "${ECHO_T}$ac_res" >&6; }
21702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21703   cat >>confdefs.h <<_ACEOF
21704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21705 _ACEOF
21706
21707 fi
21708
21709 done
21710
21711 fi
21712
21713 case "${host}" in
21714   *-pc-os2_emx | *-pc-os2-emx )
21715                   if test $ac_cv_header_langinfo_h = "yes" \
21716                 -a \(   "$wx_cv_gccversion" = "EMX2" \
21717                      -o "$wx_cv_gccversion" = "EMX3" \
21718                      -o "$wx_cv_gccversion" = "Innotek5" \); then
21719           LIBS="$LIBS -lintl"
21720       fi
21721   ;;
21722 esac
21723
21724 if test "$USE_UNIX" = 1 ; then
21725
21726 for ac_header in sys/select.h
21727 do
21728 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21732   echo $ECHO_N "(cached) $ECHO_C" >&6
21733 else
21734   cat >conftest.$ac_ext <<_ACEOF
21735 /* confdefs.h.  */
21736 _ACEOF
21737 cat confdefs.h >>conftest.$ac_ext
21738 cat >>conftest.$ac_ext <<_ACEOF
21739 /* end confdefs.h.  */
21740 $ac_includes_default
21741
21742 #include <$ac_header>
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748   *) ac_try_echo=$ac_try;;
21749 esac
21750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21751   (eval "$ac_compile") 2>conftest.er1
21752   ac_status=$?
21753   grep -v '^ *+' conftest.er1 >conftest.err
21754   rm -f conftest.er1
21755   cat conftest.err >&5
21756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21757   (exit $ac_status); } && {
21758          test -z "$ac_c_werror_flag" ||
21759          test ! -s conftest.err
21760        } && test -s conftest.$ac_objext; then
21761   eval "$as_ac_Header=yes"
21762 else
21763   echo "$as_me: failed program was:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21765
21766         eval "$as_ac_Header=no"
21767 fi
21768
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 fi
21771 ac_res=`eval echo '${'$as_ac_Header'}'`
21772                { echo "$as_me:$LINENO: result: $ac_res" >&5
21773 echo "${ECHO_T}$ac_res" >&6; }
21774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21775   cat >>confdefs.h <<_ACEOF
21776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21777 _ACEOF
21778
21779 fi
21780
21781 done
21782
21783 fi
21784
21785
21786 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21787 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
21788 if test "${ac_cv_c_const+set}" = set; then
21789   echo $ECHO_N "(cached) $ECHO_C" >&6
21790 else
21791   cat >conftest.$ac_ext <<_ACEOF
21792 /* confdefs.h.  */
21793 _ACEOF
21794 cat confdefs.h >>conftest.$ac_ext
21795 cat >>conftest.$ac_ext <<_ACEOF
21796 /* end confdefs.h.  */
21797
21798 int
21799 main ()
21800 {
21801 /* FIXME: Include the comments suggested by Paul. */
21802 #ifndef __cplusplus
21803   /* Ultrix mips cc rejects this.  */
21804   typedef int charset[2];
21805   const charset cs;
21806   /* SunOS 4.1.1 cc rejects this.  */
21807   char const *const *pcpcc;
21808   char **ppc;
21809   /* NEC SVR4.0.2 mips cc rejects this.  */
21810   struct point {int x, y;};
21811   static struct point const zero = {0,0};
21812   /* AIX XL C 1.02.0.0 rejects this.
21813      It does not let you subtract one const X* pointer from another in
21814      an arm of an if-expression whose if-part is not a constant
21815      expression */
21816   const char *g = "string";
21817   pcpcc = &g + (g ? g-g : 0);
21818   /* HPUX 7.0 cc rejects these. */
21819   ++pcpcc;
21820   ppc = (char**) pcpcc;
21821   pcpcc = (char const *const *) ppc;
21822   { /* SCO 3.2v4 cc rejects this.  */
21823     char *t;
21824     char const *s = 0 ? (char *) 0 : (char const *) 0;
21825
21826     *t++ = 0;
21827     if (s) return 0;
21828   }
21829   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
21830     int x[] = {25, 17};
21831     const int *foo = &x[0];
21832     ++foo;
21833   }
21834   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21835     typedef const int *iptr;
21836     iptr p = 0;
21837     ++p;
21838   }
21839   { /* AIX XL C 1.02.0.0 rejects this saying
21840        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21841     struct s { int j; const int *ap[3]; };
21842     struct s *b; b->j = 5;
21843   }
21844   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21845     const int foo = 10;
21846     if (!foo) return 0;
21847   }
21848   return !cs[0] && !zero.x;
21849 #endif
21850
21851   ;
21852   return 0;
21853 }
21854 _ACEOF
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859   *) ac_try_echo=$ac_try;;
21860 esac
21861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21862   (eval "$ac_compile") 2>conftest.er1
21863   ac_status=$?
21864   grep -v '^ *+' conftest.er1 >conftest.err
21865   rm -f conftest.er1
21866   cat conftest.err >&5
21867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21868   (exit $ac_status); } && {
21869          test -z "$ac_c_werror_flag" ||
21870          test ! -s conftest.err
21871        } && test -s conftest.$ac_objext; then
21872   ac_cv_c_const=yes
21873 else
21874   echo "$as_me: failed program was:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21876
21877         ac_cv_c_const=no
21878 fi
21879
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 fi
21882 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21883 echo "${ECHO_T}$ac_cv_c_const" >&6; }
21884 if test $ac_cv_c_const = no; then
21885
21886 cat >>confdefs.h <<\_ACEOF
21887 #define const
21888 _ACEOF
21889
21890 fi
21891
21892 { echo "$as_me:$LINENO: checking for inline" >&5
21893 echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
21894 if test "${ac_cv_c_inline+set}" = set; then
21895   echo $ECHO_N "(cached) $ECHO_C" >&6
21896 else
21897   ac_cv_c_inline=no
21898 for ac_kw in inline __inline__ __inline; do
21899   cat >conftest.$ac_ext <<_ACEOF
21900 /* confdefs.h.  */
21901 _ACEOF
21902 cat confdefs.h >>conftest.$ac_ext
21903 cat >>conftest.$ac_ext <<_ACEOF
21904 /* end confdefs.h.  */
21905 #ifndef __cplusplus
21906 typedef int foo_t;
21907 static $ac_kw foo_t static_foo () {return 0; }
21908 $ac_kw foo_t foo () {return 0; }
21909 #endif
21910
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916   *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919   (eval "$ac_compile") 2>conftest.er1
21920   ac_status=$?
21921   grep -v '^ *+' conftest.er1 >conftest.err
21922   rm -f conftest.er1
21923   cat conftest.err >&5
21924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925   (exit $ac_status); } && {
21926          test -z "$ac_c_werror_flag" ||
21927          test ! -s conftest.err
21928        } && test -s conftest.$ac_objext; then
21929   ac_cv_c_inline=$ac_kw
21930 else
21931   echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934
21935 fi
21936
21937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938   test "$ac_cv_c_inline" != no && break
21939 done
21940
21941 fi
21942 { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
21943 echo "${ECHO_T}$ac_cv_c_inline" >&6; }
21944
21945
21946 case $ac_cv_c_inline in
21947   inline | yes) ;;
21948   *)
21949     case $ac_cv_c_inline in
21950       no) ac_val=;;
21951       *) ac_val=$ac_cv_c_inline;;
21952     esac
21953     cat >>confdefs.h <<_ACEOF
21954 #ifndef __cplusplus
21955 #define inline $ac_val
21956 #endif
21957 _ACEOF
21958     ;;
21959 esac
21960
21961
21962 { echo "$as_me:$LINENO: checking for short" >&5
21963 echo $ECHO_N "checking for short... $ECHO_C" >&6; }
21964 if test "${ac_cv_type_short+set}" = set; then
21965   echo $ECHO_N "(cached) $ECHO_C" >&6
21966 else
21967   cat >conftest.$ac_ext <<_ACEOF
21968 /* confdefs.h.  */
21969 _ACEOF
21970 cat confdefs.h >>conftest.$ac_ext
21971 cat >>conftest.$ac_ext <<_ACEOF
21972 /* end confdefs.h.  */
21973 $ac_includes_default
21974 typedef short ac__type_new_;
21975 int
21976 main ()
21977 {
21978 if ((ac__type_new_ *) 0)
21979   return 0;
21980 if (sizeof (ac__type_new_))
21981   return 0;
21982   ;
21983   return 0;
21984 }
21985 _ACEOF
21986 rm -f conftest.$ac_objext
21987 if { (ac_try="$ac_compile"
21988 case "(($ac_try" in
21989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21990   *) ac_try_echo=$ac_try;;
21991 esac
21992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21993   (eval "$ac_compile") 2>conftest.er1
21994   ac_status=$?
21995   grep -v '^ *+' conftest.er1 >conftest.err
21996   rm -f conftest.er1
21997   cat conftest.err >&5
21998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
21999   (exit $ac_status); } && {
22000          test -z "$ac_c_werror_flag" ||
22001          test ! -s conftest.err
22002        } && test -s conftest.$ac_objext; then
22003   ac_cv_type_short=yes
22004 else
22005   echo "$as_me: failed program was:" >&5
22006 sed 's/^/| /' conftest.$ac_ext >&5
22007
22008         ac_cv_type_short=no
22009 fi
22010
22011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22012 fi
22013 { echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22014 echo "${ECHO_T}$ac_cv_type_short" >&6; }
22015
22016 # The cast to long int works around a bug in the HP C Compiler
22017 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22018 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22019 # This bug is HP SR number 8606223364.
22020 { echo "$as_me:$LINENO: checking size of short" >&5
22021 echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
22022 if test "${ac_cv_sizeof_short+set}" = set; then
22023   echo $ECHO_N "(cached) $ECHO_C" >&6
22024 else
22025   if test "$cross_compiling" = yes; then
22026   # Depending upon the size, compute the lo and hi bounds.
22027 cat >conftest.$ac_ext <<_ACEOF
22028 /* confdefs.h.  */
22029 _ACEOF
22030 cat confdefs.h >>conftest.$ac_ext
22031 cat >>conftest.$ac_ext <<_ACEOF
22032 /* end confdefs.h.  */
22033 $ac_includes_default
22034    typedef short ac__type_sizeof_;
22035 int
22036 main ()
22037 {
22038 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22039 test_array [0] = 0
22040
22041   ;
22042   return 0;
22043 }
22044 _ACEOF
22045 rm -f conftest.$ac_objext
22046 if { (ac_try="$ac_compile"
22047 case "(($ac_try" in
22048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049   *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052   (eval "$ac_compile") 2>conftest.er1
22053   ac_status=$?
22054   grep -v '^ *+' conftest.er1 >conftest.err
22055   rm -f conftest.er1
22056   cat conftest.err >&5
22057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22058   (exit $ac_status); } && {
22059          test -z "$ac_c_werror_flag" ||
22060          test ! -s conftest.err
22061        } && test -s conftest.$ac_objext; then
22062   ac_lo=0 ac_mid=0
22063   while :; do
22064     cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h.  */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h.  */
22070 $ac_includes_default
22071    typedef short ac__type_sizeof_;
22072 int
22073 main ()
22074 {
22075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22076 test_array [0] = 0
22077
22078   ;
22079   return 0;
22080 }
22081 _ACEOF
22082 rm -f conftest.$ac_objext
22083 if { (ac_try="$ac_compile"
22084 case "(($ac_try" in
22085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22086   *) ac_try_echo=$ac_try;;
22087 esac
22088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22089   (eval "$ac_compile") 2>conftest.er1
22090   ac_status=$?
22091   grep -v '^ *+' conftest.er1 >conftest.err
22092   rm -f conftest.er1
22093   cat conftest.err >&5
22094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22095   (exit $ac_status); } && {
22096          test -z "$ac_c_werror_flag" ||
22097          test ! -s conftest.err
22098        } && test -s conftest.$ac_objext; then
22099   ac_hi=$ac_mid; break
22100 else
22101   echo "$as_me: failed program was:" >&5
22102 sed 's/^/| /' conftest.$ac_ext >&5
22103
22104         ac_lo=`expr $ac_mid + 1`
22105                         if test $ac_lo -le $ac_mid; then
22106                           ac_lo= ac_hi=
22107                           break
22108                         fi
22109                         ac_mid=`expr 2 '*' $ac_mid + 1`
22110 fi
22111
22112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22113   done
22114 else
22115   echo "$as_me: failed program was:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22117
22118         cat >conftest.$ac_ext <<_ACEOF
22119 /* confdefs.h.  */
22120 _ACEOF
22121 cat confdefs.h >>conftest.$ac_ext
22122 cat >>conftest.$ac_ext <<_ACEOF
22123 /* end confdefs.h.  */
22124 $ac_includes_default
22125    typedef short ac__type_sizeof_;
22126 int
22127 main ()
22128 {
22129 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22130 test_array [0] = 0
22131
22132   ;
22133   return 0;
22134 }
22135 _ACEOF
22136 rm -f conftest.$ac_objext
22137 if { (ac_try="$ac_compile"
22138 case "(($ac_try" in
22139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22140   *) ac_try_echo=$ac_try;;
22141 esac
22142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22143   (eval "$ac_compile") 2>conftest.er1
22144   ac_status=$?
22145   grep -v '^ *+' conftest.er1 >conftest.err
22146   rm -f conftest.er1
22147   cat conftest.err >&5
22148   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22149   (exit $ac_status); } && {
22150          test -z "$ac_c_werror_flag" ||
22151          test ! -s conftest.err
22152        } && test -s conftest.$ac_objext; then
22153   ac_hi=-1 ac_mid=-1
22154   while :; do
22155     cat >conftest.$ac_ext <<_ACEOF
22156 /* confdefs.h.  */
22157 _ACEOF
22158 cat confdefs.h >>conftest.$ac_ext
22159 cat >>conftest.$ac_ext <<_ACEOF
22160 /* end confdefs.h.  */
22161 $ac_includes_default
22162    typedef short ac__type_sizeof_;
22163 int
22164 main ()
22165 {
22166 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22167 test_array [0] = 0
22168
22169   ;
22170   return 0;
22171 }
22172 _ACEOF
22173 rm -f conftest.$ac_objext
22174 if { (ac_try="$ac_compile"
22175 case "(($ac_try" in
22176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22177   *) ac_try_echo=$ac_try;;
22178 esac
22179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22180   (eval "$ac_compile") 2>conftest.er1
22181   ac_status=$?
22182   grep -v '^ *+' conftest.er1 >conftest.err
22183   rm -f conftest.er1
22184   cat conftest.err >&5
22185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22186   (exit $ac_status); } && {
22187          test -z "$ac_c_werror_flag" ||
22188          test ! -s conftest.err
22189        } && test -s conftest.$ac_objext; then
22190   ac_lo=$ac_mid; break
22191 else
22192   echo "$as_me: failed program was:" >&5
22193 sed 's/^/| /' conftest.$ac_ext >&5
22194
22195         ac_hi=`expr '(' $ac_mid ')' - 1`
22196                         if test $ac_mid -le $ac_hi; then
22197                           ac_lo= ac_hi=
22198                           break
22199                         fi
22200                         ac_mid=`expr 2 '*' $ac_mid`
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204   done
22205 else
22206   echo "$as_me: failed program was:" >&5
22207 sed 's/^/| /' conftest.$ac_ext >&5
22208
22209         ac_lo= ac_hi=
22210 fi
22211
22212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22213 fi
22214
22215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22216 # Binary search between lo and hi bounds.
22217 while test "x$ac_lo" != "x$ac_hi"; do
22218   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22219   cat >conftest.$ac_ext <<_ACEOF
22220 /* confdefs.h.  */
22221 _ACEOF
22222 cat confdefs.h >>conftest.$ac_ext
22223 cat >>conftest.$ac_ext <<_ACEOF
22224 /* end confdefs.h.  */
22225 $ac_includes_default
22226    typedef short ac__type_sizeof_;
22227 int
22228 main ()
22229 {
22230 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22231 test_array [0] = 0
22232
22233   ;
22234   return 0;
22235 }
22236 _ACEOF
22237 rm -f conftest.$ac_objext
22238 if { (ac_try="$ac_compile"
22239 case "(($ac_try" in
22240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241   *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244   (eval "$ac_compile") 2>conftest.er1
22245   ac_status=$?
22246   grep -v '^ *+' conftest.er1 >conftest.err
22247   rm -f conftest.er1
22248   cat conftest.err >&5
22249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250   (exit $ac_status); } && {
22251          test -z "$ac_c_werror_flag" ||
22252          test ! -s conftest.err
22253        } && test -s conftest.$ac_objext; then
22254   ac_hi=$ac_mid
22255 else
22256   echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259         ac_lo=`expr '(' $ac_mid ')' + 1`
22260 fi
22261
22262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22263 done
22264 case $ac_lo in
22265 ?*) ac_cv_sizeof_short=$ac_lo;;
22266 '') if test "$ac_cv_type_short" = yes; then
22267      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22268 See \`config.log' for more details." >&5
22269 echo "$as_me: error: cannot compute sizeof (short)
22270 See \`config.log' for more details." >&2;}
22271    { (exit 77); exit 77; }; }
22272    else
22273      ac_cv_sizeof_short=0
22274    fi ;;
22275 esac
22276 else
22277   cat >conftest.$ac_ext <<_ACEOF
22278 /* confdefs.h.  */
22279 _ACEOF
22280 cat confdefs.h >>conftest.$ac_ext
22281 cat >>conftest.$ac_ext <<_ACEOF
22282 /* end confdefs.h.  */
22283 $ac_includes_default
22284    typedef short ac__type_sizeof_;
22285 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22286 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22287 #include <stdio.h>
22288 #include <stdlib.h>
22289 int
22290 main ()
22291 {
22292
22293   FILE *f = fopen ("conftest.val", "w");
22294   if (! f)
22295     return 1;
22296   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22297     {
22298       long int i = longval ();
22299       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22300         return 1;
22301       fprintf (f, "%ld\n", i);
22302     }
22303   else
22304     {
22305       unsigned long int i = ulongval ();
22306       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22307         return 1;
22308       fprintf (f, "%lu\n", i);
22309     }
22310   return ferror (f) || fclose (f) != 0;
22311
22312   ;
22313   return 0;
22314 }
22315 _ACEOF
22316 rm -f conftest$ac_exeext
22317 if { (ac_try="$ac_link"
22318 case "(($ac_try" in
22319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22320   *) ac_try_echo=$ac_try;;
22321 esac
22322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22323   (eval "$ac_link") 2>&5
22324   ac_status=$?
22325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22327   { (case "(($ac_try" in
22328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22329   *) ac_try_echo=$ac_try;;
22330 esac
22331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22332   (eval "$ac_try") 2>&5
22333   ac_status=$?
22334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22335   (exit $ac_status); }; }; then
22336   ac_cv_sizeof_short=`cat conftest.val`
22337 else
22338   echo "$as_me: program exited with status $ac_status" >&5
22339 echo "$as_me: failed program was:" >&5
22340 sed 's/^/| /' conftest.$ac_ext >&5
22341
22342 ( exit $ac_status )
22343 if test "$ac_cv_type_short" = yes; then
22344      { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
22345 See \`config.log' for more details." >&5
22346 echo "$as_me: error: cannot compute sizeof (short)
22347 See \`config.log' for more details." >&2;}
22348    { (exit 77); exit 77; }; }
22349    else
22350      ac_cv_sizeof_short=0
22351    fi
22352 fi
22353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22354 fi
22355 rm -f conftest.val
22356 fi
22357 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22358 echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
22359
22360
22361
22362 cat >>confdefs.h <<_ACEOF
22363 #define SIZEOF_SHORT $ac_cv_sizeof_short
22364 _ACEOF
22365
22366
22367 { echo "$as_me:$LINENO: checking for void *" >&5
22368 echo $ECHO_N "checking for void *... $ECHO_C" >&6; }
22369 if test "${ac_cv_type_void_p+set}" = set; then
22370   echo $ECHO_N "(cached) $ECHO_C" >&6
22371 else
22372   cat >conftest.$ac_ext <<_ACEOF
22373 /* confdefs.h.  */
22374 _ACEOF
22375 cat confdefs.h >>conftest.$ac_ext
22376 cat >>conftest.$ac_ext <<_ACEOF
22377 /* end confdefs.h.  */
22378 $ac_includes_default
22379 typedef void * ac__type_new_;
22380 int
22381 main ()
22382 {
22383 if ((ac__type_new_ *) 0)
22384   return 0;
22385 if (sizeof (ac__type_new_))
22386   return 0;
22387   ;
22388   return 0;
22389 }
22390 _ACEOF
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395   *) ac_try_echo=$ac_try;;
22396 esac
22397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22398   (eval "$ac_compile") 2>conftest.er1
22399   ac_status=$?
22400   grep -v '^ *+' conftest.er1 >conftest.err
22401   rm -f conftest.er1
22402   cat conftest.err >&5
22403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404   (exit $ac_status); } && {
22405          test -z "$ac_c_werror_flag" ||
22406          test ! -s conftest.err
22407        } && test -s conftest.$ac_objext; then
22408   ac_cv_type_void_p=yes
22409 else
22410   echo "$as_me: failed program was:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22412
22413         ac_cv_type_void_p=no
22414 fi
22415
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 fi
22418 { echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5
22419 echo "${ECHO_T}$ac_cv_type_void_p" >&6; }
22420
22421 # The cast to long int works around a bug in the HP C Compiler
22422 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22423 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22424 # This bug is HP SR number 8606223364.
22425 { echo "$as_me:$LINENO: checking size of void *" >&5
22426 echo $ECHO_N "checking size of void *... $ECHO_C" >&6; }
22427 if test "${ac_cv_sizeof_void_p+set}" = set; then
22428   echo $ECHO_N "(cached) $ECHO_C" >&6
22429 else
22430   if test "$cross_compiling" = yes; then
22431   # Depending upon the size, compute the lo and hi bounds.
22432 cat >conftest.$ac_ext <<_ACEOF
22433 /* confdefs.h.  */
22434 _ACEOF
22435 cat confdefs.h >>conftest.$ac_ext
22436 cat >>conftest.$ac_ext <<_ACEOF
22437 /* end confdefs.h.  */
22438 $ac_includes_default
22439    typedef void * ac__type_sizeof_;
22440 int
22441 main ()
22442 {
22443 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22444 test_array [0] = 0
22445
22446   ;
22447   return 0;
22448 }
22449 _ACEOF
22450 rm -f conftest.$ac_objext
22451 if { (ac_try="$ac_compile"
22452 case "(($ac_try" in
22453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454   *) ac_try_echo=$ac_try;;
22455 esac
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457   (eval "$ac_compile") 2>conftest.er1
22458   ac_status=$?
22459   grep -v '^ *+' conftest.er1 >conftest.err
22460   rm -f conftest.er1
22461   cat conftest.err >&5
22462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463   (exit $ac_status); } && {
22464          test -z "$ac_c_werror_flag" ||
22465          test ! -s conftest.err
22466        } && test -s conftest.$ac_objext; then
22467   ac_lo=0 ac_mid=0
22468   while :; do
22469     cat >conftest.$ac_ext <<_ACEOF
22470 /* confdefs.h.  */
22471 _ACEOF
22472 cat confdefs.h >>conftest.$ac_ext
22473 cat >>conftest.$ac_ext <<_ACEOF
22474 /* end confdefs.h.  */
22475 $ac_includes_default
22476    typedef void * ac__type_sizeof_;
22477 int
22478 main ()
22479 {
22480 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22481 test_array [0] = 0
22482
22483   ;
22484   return 0;
22485 }
22486 _ACEOF
22487 rm -f conftest.$ac_objext
22488 if { (ac_try="$ac_compile"
22489 case "(($ac_try" in
22490   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22491   *) ac_try_echo=$ac_try;;
22492 esac
22493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22494   (eval "$ac_compile") 2>conftest.er1
22495   ac_status=$?
22496   grep -v '^ *+' conftest.er1 >conftest.err
22497   rm -f conftest.er1
22498   cat conftest.err >&5
22499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22500   (exit $ac_status); } && {
22501          test -z "$ac_c_werror_flag" ||
22502          test ! -s conftest.err
22503        } && test -s conftest.$ac_objext; then
22504   ac_hi=$ac_mid; break
22505 else
22506   echo "$as_me: failed program was:" >&5
22507 sed 's/^/| /' conftest.$ac_ext >&5
22508
22509         ac_lo=`expr $ac_mid + 1`
22510                         if test $ac_lo -le $ac_mid; then
22511                           ac_lo= ac_hi=
22512                           break
22513                         fi
22514                         ac_mid=`expr 2 '*' $ac_mid + 1`
22515 fi
22516
22517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22518   done
22519 else
22520   echo "$as_me: failed program was:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22522
22523         cat >conftest.$ac_ext <<_ACEOF
22524 /* confdefs.h.  */
22525 _ACEOF
22526 cat confdefs.h >>conftest.$ac_ext
22527 cat >>conftest.$ac_ext <<_ACEOF
22528 /* end confdefs.h.  */
22529 $ac_includes_default
22530    typedef void * ac__type_sizeof_;
22531 int
22532 main ()
22533 {
22534 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22535 test_array [0] = 0
22536
22537   ;
22538   return 0;
22539 }
22540 _ACEOF
22541 rm -f conftest.$ac_objext
22542 if { (ac_try="$ac_compile"
22543 case "(($ac_try" in
22544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22545   *) ac_try_echo=$ac_try;;
22546 esac
22547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22548   (eval "$ac_compile") 2>conftest.er1
22549   ac_status=$?
22550   grep -v '^ *+' conftest.er1 >conftest.err
22551   rm -f conftest.er1
22552   cat conftest.err >&5
22553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22554   (exit $ac_status); } && {
22555          test -z "$ac_c_werror_flag" ||
22556          test ! -s conftest.err
22557        } && test -s conftest.$ac_objext; then
22558   ac_hi=-1 ac_mid=-1
22559   while :; do
22560     cat >conftest.$ac_ext <<_ACEOF
22561 /* confdefs.h.  */
22562 _ACEOF
22563 cat confdefs.h >>conftest.$ac_ext
22564 cat >>conftest.$ac_ext <<_ACEOF
22565 /* end confdefs.h.  */
22566 $ac_includes_default
22567    typedef void * ac__type_sizeof_;
22568 int
22569 main ()
22570 {
22571 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22572 test_array [0] = 0
22573
22574   ;
22575   return 0;
22576 }
22577 _ACEOF
22578 rm -f conftest.$ac_objext
22579 if { (ac_try="$ac_compile"
22580 case "(($ac_try" in
22581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582   *) ac_try_echo=$ac_try;;
22583 esac
22584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22585   (eval "$ac_compile") 2>conftest.er1
22586   ac_status=$?
22587   grep -v '^ *+' conftest.er1 >conftest.err
22588   rm -f conftest.er1
22589   cat conftest.err >&5
22590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22591   (exit $ac_status); } && {
22592          test -z "$ac_c_werror_flag" ||
22593          test ! -s conftest.err
22594        } && test -s conftest.$ac_objext; then
22595   ac_lo=$ac_mid; break
22596 else
22597   echo "$as_me: failed program was:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22599
22600         ac_hi=`expr '(' $ac_mid ')' - 1`
22601                         if test $ac_mid -le $ac_hi; then
22602                           ac_lo= ac_hi=
22603                           break
22604                         fi
22605                         ac_mid=`expr 2 '*' $ac_mid`
22606 fi
22607
22608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22609   done
22610 else
22611   echo "$as_me: failed program was:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22613
22614         ac_lo= ac_hi=
22615 fi
22616
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 fi
22619
22620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22621 # Binary search between lo and hi bounds.
22622 while test "x$ac_lo" != "x$ac_hi"; do
22623   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22624   cat >conftest.$ac_ext <<_ACEOF
22625 /* confdefs.h.  */
22626 _ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h.  */
22630 $ac_includes_default
22631    typedef void * ac__type_sizeof_;
22632 int
22633 main ()
22634 {
22635 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22636 test_array [0] = 0
22637
22638   ;
22639   return 0;
22640 }
22641 _ACEOF
22642 rm -f conftest.$ac_objext
22643 if { (ac_try="$ac_compile"
22644 case "(($ac_try" in
22645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22646   *) ac_try_echo=$ac_try;;
22647 esac
22648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22649   (eval "$ac_compile") 2>conftest.er1
22650   ac_status=$?
22651   grep -v '^ *+' conftest.er1 >conftest.err
22652   rm -f conftest.er1
22653   cat conftest.err >&5
22654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22655   (exit $ac_status); } && {
22656          test -z "$ac_c_werror_flag" ||
22657          test ! -s conftest.err
22658        } && test -s conftest.$ac_objext; then
22659   ac_hi=$ac_mid
22660 else
22661   echo "$as_me: failed program was:" >&5
22662 sed 's/^/| /' conftest.$ac_ext >&5
22663
22664         ac_lo=`expr '(' $ac_mid ')' + 1`
22665 fi
22666
22667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22668 done
22669 case $ac_lo in
22670 ?*) ac_cv_sizeof_void_p=$ac_lo;;
22671 '') if test "$ac_cv_type_void_p" = yes; then
22672      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22673 See \`config.log' for more details." >&5
22674 echo "$as_me: error: cannot compute sizeof (void *)
22675 See \`config.log' for more details." >&2;}
22676    { (exit 77); exit 77; }; }
22677    else
22678      ac_cv_sizeof_void_p=0
22679    fi ;;
22680 esac
22681 else
22682   cat >conftest.$ac_ext <<_ACEOF
22683 /* confdefs.h.  */
22684 _ACEOF
22685 cat confdefs.h >>conftest.$ac_ext
22686 cat >>conftest.$ac_ext <<_ACEOF
22687 /* end confdefs.h.  */
22688 $ac_includes_default
22689    typedef void * ac__type_sizeof_;
22690 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
22691 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
22692 #include <stdio.h>
22693 #include <stdlib.h>
22694 int
22695 main ()
22696 {
22697
22698   FILE *f = fopen ("conftest.val", "w");
22699   if (! f)
22700     return 1;
22701   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
22702     {
22703       long int i = longval ();
22704       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22705         return 1;
22706       fprintf (f, "%ld\n", i);
22707     }
22708   else
22709     {
22710       unsigned long int i = ulongval ();
22711       if (i != ((long int) (sizeof (ac__type_sizeof_))))
22712         return 1;
22713       fprintf (f, "%lu\n", i);
22714     }
22715   return ferror (f) || fclose (f) != 0;
22716
22717   ;
22718   return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest$ac_exeext
22722 if { (ac_try="$ac_link"
22723 case "(($ac_try" in
22724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725   *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728   (eval "$ac_link") 2>&5
22729   ac_status=$?
22730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22731   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22732   { (case "(($ac_try" in
22733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22734   *) ac_try_echo=$ac_try;;
22735 esac
22736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22737   (eval "$ac_try") 2>&5
22738   ac_status=$?
22739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22740   (exit $ac_status); }; }; then
22741   ac_cv_sizeof_void_p=`cat conftest.val`
22742 else
22743   echo "$as_me: program exited with status $ac_status" >&5
22744 echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ( exit $ac_status )
22748 if test "$ac_cv_type_void_p" = yes; then
22749      { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *)
22750 See \`config.log' for more details." >&5
22751 echo "$as_me: error: cannot compute sizeof (void *)
22752 See \`config.log' for more details." >&2;}
22753    { (exit 77); exit 77; }; }
22754    else
22755      ac_cv_sizeof_void_p=0
22756    fi
22757 fi
22758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22759 fi
22760 rm -f conftest.val
22761 fi
22762 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5
22763 echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6; }
22764
22765
22766
22767 cat >>confdefs.h <<_ACEOF
22768 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
22769 _ACEOF
22770
22771
22772 { echo "$as_me:$LINENO: checking for int" >&5
22773 echo $ECHO_N "checking for int... $ECHO_C" >&6; }
22774 if test "${ac_cv_type_int+set}" = set; then
22775   echo $ECHO_N "(cached) $ECHO_C" >&6
22776 else
22777   cat >conftest.$ac_ext <<_ACEOF
22778 /* confdefs.h.  */
22779 _ACEOF
22780 cat confdefs.h >>conftest.$ac_ext
22781 cat >>conftest.$ac_ext <<_ACEOF
22782 /* end confdefs.h.  */
22783 $ac_includes_default
22784 typedef int ac__type_new_;
22785 int
22786 main ()
22787 {
22788 if ((ac__type_new_ *) 0)
22789   return 0;
22790 if (sizeof (ac__type_new_))
22791   return 0;
22792   ;
22793   return 0;
22794 }
22795 _ACEOF
22796 rm -f conftest.$ac_objext
22797 if { (ac_try="$ac_compile"
22798 case "(($ac_try" in
22799   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22800   *) ac_try_echo=$ac_try;;
22801 esac
22802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22803   (eval "$ac_compile") 2>conftest.er1
22804   ac_status=$?
22805   grep -v '^ *+' conftest.er1 >conftest.err
22806   rm -f conftest.er1
22807   cat conftest.err >&5
22808   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22809   (exit $ac_status); } && {
22810          test -z "$ac_c_werror_flag" ||
22811          test ! -s conftest.err
22812        } && test -s conftest.$ac_objext; then
22813   ac_cv_type_int=yes
22814 else
22815   echo "$as_me: failed program was:" >&5
22816 sed 's/^/| /' conftest.$ac_ext >&5
22817
22818         ac_cv_type_int=no
22819 fi
22820
22821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22822 fi
22823 { echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22824 echo "${ECHO_T}$ac_cv_type_int" >&6; }
22825
22826 # The cast to long int works around a bug in the HP C Compiler
22827 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22828 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22829 # This bug is HP SR number 8606223364.
22830 { echo "$as_me:$LINENO: checking size of int" >&5
22831 echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
22832 if test "${ac_cv_sizeof_int+set}" = set; then
22833   echo $ECHO_N "(cached) $ECHO_C" >&6
22834 else
22835   if test "$cross_compiling" = yes; then
22836   # Depending upon the size, compute the lo and hi bounds.
22837 cat >conftest.$ac_ext <<_ACEOF
22838 /* confdefs.h.  */
22839 _ACEOF
22840 cat confdefs.h >>conftest.$ac_ext
22841 cat >>conftest.$ac_ext <<_ACEOF
22842 /* end confdefs.h.  */
22843 $ac_includes_default
22844    typedef int ac__type_sizeof_;
22845 int
22846 main ()
22847 {
22848 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
22849 test_array [0] = 0
22850
22851   ;
22852   return 0;
22853 }
22854 _ACEOF
22855 rm -f conftest.$ac_objext
22856 if { (ac_try="$ac_compile"
22857 case "(($ac_try" in
22858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22859   *) ac_try_echo=$ac_try;;
22860 esac
22861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22862   (eval "$ac_compile") 2>conftest.er1
22863   ac_status=$?
22864   grep -v '^ *+' conftest.er1 >conftest.err
22865   rm -f conftest.er1
22866   cat conftest.err >&5
22867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22868   (exit $ac_status); } && {
22869          test -z "$ac_c_werror_flag" ||
22870          test ! -s conftest.err
22871        } && test -s conftest.$ac_objext; then
22872   ac_lo=0 ac_mid=0
22873   while :; do
22874     cat >conftest.$ac_ext <<_ACEOF
22875 /* confdefs.h.  */
22876 _ACEOF
22877 cat confdefs.h >>conftest.$ac_ext
22878 cat >>conftest.$ac_ext <<_ACEOF
22879 /* end confdefs.h.  */
22880 $ac_includes_default
22881    typedef int ac__type_sizeof_;
22882 int
22883 main ()
22884 {
22885 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
22886 test_array [0] = 0
22887
22888   ;
22889   return 0;
22890 }
22891 _ACEOF
22892 rm -f conftest.$ac_objext
22893 if { (ac_try="$ac_compile"
22894 case "(($ac_try" in
22895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22896   *) ac_try_echo=$ac_try;;
22897 esac
22898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22899   (eval "$ac_compile") 2>conftest.er1
22900   ac_status=$?
22901   grep -v '^ *+' conftest.er1 >conftest.err
22902   rm -f conftest.er1
22903   cat conftest.err >&5
22904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22905   (exit $ac_status); } && {
22906          test -z "$ac_c_werror_flag" ||
22907          test ! -s conftest.err
22908        } && test -s conftest.$ac_objext; then
22909   ac_hi=$ac_mid; break
22910 else
22911   echo "$as_me: failed program was:" >&5
22912 sed 's/^/| /' conftest.$ac_ext >&5
22913
22914         ac_lo=`expr $ac_mid + 1`
22915                         if test $ac_lo -le $ac_mid; then
22916                           ac_lo= ac_hi=
22917                           break
22918                         fi
22919                         ac_mid=`expr 2 '*' $ac_mid + 1`
22920 fi
22921
22922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923   done
22924 else
22925   echo "$as_me: failed program was:" >&5
22926 sed 's/^/| /' conftest.$ac_ext >&5
22927
22928         cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934 $ac_includes_default
22935    typedef int ac__type_sizeof_;
22936 int
22937 main ()
22938 {
22939 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
22940 test_array [0] = 0
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 rm -f conftest.$ac_objext
22947 if { (ac_try="$ac_compile"
22948 case "(($ac_try" in
22949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22950   *) ac_try_echo=$ac_try;;
22951 esac
22952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22953   (eval "$ac_compile") 2>conftest.er1
22954   ac_status=$?
22955   grep -v '^ *+' conftest.er1 >conftest.err
22956   rm -f conftest.er1
22957   cat conftest.err >&5
22958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22959   (exit $ac_status); } && {
22960          test -z "$ac_c_werror_flag" ||
22961          test ! -s conftest.err
22962        } && test -s conftest.$ac_objext; then
22963   ac_hi=-1 ac_mid=-1
22964   while :; do
22965     cat >conftest.$ac_ext <<_ACEOF
22966 /* confdefs.h.  */
22967 _ACEOF
22968 cat confdefs.h >>conftest.$ac_ext
22969 cat >>conftest.$ac_ext <<_ACEOF
22970 /* end confdefs.h.  */
22971 $ac_includes_default
22972    typedef int ac__type_sizeof_;
22973 int
22974 main ()
22975 {
22976 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
22977 test_array [0] = 0
22978
22979   ;
22980   return 0;
22981 }
22982 _ACEOF
22983 rm -f conftest.$ac_objext
22984 if { (ac_try="$ac_compile"
22985 case "(($ac_try" in
22986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22987   *) ac_try_echo=$ac_try;;
22988 esac
22989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22990   (eval "$ac_compile") 2>conftest.er1
22991   ac_status=$?
22992   grep -v '^ *+' conftest.er1 >conftest.err
22993   rm -f conftest.er1
22994   cat conftest.err >&5
22995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22996   (exit $ac_status); } && {
22997          test -z "$ac_c_werror_flag" ||
22998          test ! -s conftest.err
22999        } && test -s conftest.$ac_objext; then
23000   ac_lo=$ac_mid; break
23001 else
23002   echo "$as_me: failed program was:" >&5
23003 sed 's/^/| /' conftest.$ac_ext >&5
23004
23005         ac_hi=`expr '(' $ac_mid ')' - 1`
23006                         if test $ac_mid -le $ac_hi; then
23007                           ac_lo= ac_hi=
23008                           break
23009                         fi
23010                         ac_mid=`expr 2 '*' $ac_mid`
23011 fi
23012
23013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23014   done
23015 else
23016   echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019         ac_lo= ac_hi=
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023 fi
23024
23025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23026 # Binary search between lo and hi bounds.
23027 while test "x$ac_lo" != "x$ac_hi"; do
23028   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23029   cat >conftest.$ac_ext <<_ACEOF
23030 /* confdefs.h.  */
23031 _ACEOF
23032 cat confdefs.h >>conftest.$ac_ext
23033 cat >>conftest.$ac_ext <<_ACEOF
23034 /* end confdefs.h.  */
23035 $ac_includes_default
23036    typedef int ac__type_sizeof_;
23037 int
23038 main ()
23039 {
23040 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23041 test_array [0] = 0
23042
23043   ;
23044   return 0;
23045 }
23046 _ACEOF
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
23049 case "(($ac_try" in
23050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051   *) ac_try_echo=$ac_try;;
23052 esac
23053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23054   (eval "$ac_compile") 2>conftest.er1
23055   ac_status=$?
23056   grep -v '^ *+' conftest.er1 >conftest.err
23057   rm -f conftest.er1
23058   cat conftest.err >&5
23059   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23060   (exit $ac_status); } && {
23061          test -z "$ac_c_werror_flag" ||
23062          test ! -s conftest.err
23063        } && test -s conftest.$ac_objext; then
23064   ac_hi=$ac_mid
23065 else
23066   echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069         ac_lo=`expr '(' $ac_mid ')' + 1`
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 done
23074 case $ac_lo in
23075 ?*) ac_cv_sizeof_int=$ac_lo;;
23076 '') if test "$ac_cv_type_int" = yes; then
23077      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23078 See \`config.log' for more details." >&5
23079 echo "$as_me: error: cannot compute sizeof (int)
23080 See \`config.log' for more details." >&2;}
23081    { (exit 77); exit 77; }; }
23082    else
23083      ac_cv_sizeof_int=0
23084    fi ;;
23085 esac
23086 else
23087   cat >conftest.$ac_ext <<_ACEOF
23088 /* confdefs.h.  */
23089 _ACEOF
23090 cat confdefs.h >>conftest.$ac_ext
23091 cat >>conftest.$ac_ext <<_ACEOF
23092 /* end confdefs.h.  */
23093 $ac_includes_default
23094    typedef int ac__type_sizeof_;
23095 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23096 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23097 #include <stdio.h>
23098 #include <stdlib.h>
23099 int
23100 main ()
23101 {
23102
23103   FILE *f = fopen ("conftest.val", "w");
23104   if (! f)
23105     return 1;
23106   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23107     {
23108       long int i = longval ();
23109       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23110         return 1;
23111       fprintf (f, "%ld\n", i);
23112     }
23113   else
23114     {
23115       unsigned long int i = ulongval ();
23116       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23117         return 1;
23118       fprintf (f, "%lu\n", i);
23119     }
23120   return ferror (f) || fclose (f) != 0;
23121
23122   ;
23123   return 0;
23124 }
23125 _ACEOF
23126 rm -f conftest$ac_exeext
23127 if { (ac_try="$ac_link"
23128 case "(($ac_try" in
23129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23130   *) ac_try_echo=$ac_try;;
23131 esac
23132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23133   (eval "$ac_link") 2>&5
23134   ac_status=$?
23135   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23136   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23137   { (case "(($ac_try" in
23138   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23139   *) ac_try_echo=$ac_try;;
23140 esac
23141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23142   (eval "$ac_try") 2>&5
23143   ac_status=$?
23144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23145   (exit $ac_status); }; }; then
23146   ac_cv_sizeof_int=`cat conftest.val`
23147 else
23148   echo "$as_me: program exited with status $ac_status" >&5
23149 echo "$as_me: failed program was:" >&5
23150 sed 's/^/| /' conftest.$ac_ext >&5
23151
23152 ( exit $ac_status )
23153 if test "$ac_cv_type_int" = yes; then
23154      { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
23155 See \`config.log' for more details." >&5
23156 echo "$as_me: error: cannot compute sizeof (int)
23157 See \`config.log' for more details." >&2;}
23158    { (exit 77); exit 77; }; }
23159    else
23160      ac_cv_sizeof_int=0
23161    fi
23162 fi
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23164 fi
23165 rm -f conftest.val
23166 fi
23167 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23168 echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
23169
23170
23171
23172 cat >>confdefs.h <<_ACEOF
23173 #define SIZEOF_INT $ac_cv_sizeof_int
23174 _ACEOF
23175
23176
23177 { echo "$as_me:$LINENO: checking for long" >&5
23178 echo $ECHO_N "checking for long... $ECHO_C" >&6; }
23179 if test "${ac_cv_type_long+set}" = set; then
23180   echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182   cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h.  */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h.  */
23188 $ac_includes_default
23189 typedef long ac__type_new_;
23190 int
23191 main ()
23192 {
23193 if ((ac__type_new_ *) 0)
23194   return 0;
23195 if (sizeof (ac__type_new_))
23196   return 0;
23197   ;
23198   return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205   *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208   (eval "$ac_compile") 2>conftest.er1
23209   ac_status=$?
23210   grep -v '^ *+' conftest.er1 >conftest.err
23211   rm -f conftest.er1
23212   cat conftest.err >&5
23213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214   (exit $ac_status); } && {
23215          test -z "$ac_c_werror_flag" ||
23216          test ! -s conftest.err
23217        } && test -s conftest.$ac_objext; then
23218   ac_cv_type_long=yes
23219 else
23220   echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223         ac_cv_type_long=no
23224 fi
23225
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 fi
23228 { echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23229 echo "${ECHO_T}$ac_cv_type_long" >&6; }
23230
23231 # The cast to long int works around a bug in the HP C Compiler
23232 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23233 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23234 # This bug is HP SR number 8606223364.
23235 { echo "$as_me:$LINENO: checking size of long" >&5
23236 echo $ECHO_N "checking size of long... $ECHO_C" >&6; }
23237 if test "${ac_cv_sizeof_long+set}" = set; then
23238   echo $ECHO_N "(cached) $ECHO_C" >&6
23239 else
23240   if test "$cross_compiling" = yes; then
23241   # Depending upon the size, compute the lo and hi bounds.
23242 cat >conftest.$ac_ext <<_ACEOF
23243 /* confdefs.h.  */
23244 _ACEOF
23245 cat confdefs.h >>conftest.$ac_ext
23246 cat >>conftest.$ac_ext <<_ACEOF
23247 /* end confdefs.h.  */
23248 $ac_includes_default
23249    typedef long ac__type_sizeof_;
23250 int
23251 main ()
23252 {
23253 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23254 test_array [0] = 0
23255
23256   ;
23257   return 0;
23258 }
23259 _ACEOF
23260 rm -f conftest.$ac_objext
23261 if { (ac_try="$ac_compile"
23262 case "(($ac_try" in
23263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23264   *) ac_try_echo=$ac_try;;
23265 esac
23266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23267   (eval "$ac_compile") 2>conftest.er1
23268   ac_status=$?
23269   grep -v '^ *+' conftest.er1 >conftest.err
23270   rm -f conftest.er1
23271   cat conftest.err >&5
23272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23273   (exit $ac_status); } && {
23274          test -z "$ac_c_werror_flag" ||
23275          test ! -s conftest.err
23276        } && test -s conftest.$ac_objext; then
23277   ac_lo=0 ac_mid=0
23278   while :; do
23279     cat >conftest.$ac_ext <<_ACEOF
23280 /* confdefs.h.  */
23281 _ACEOF
23282 cat confdefs.h >>conftest.$ac_ext
23283 cat >>conftest.$ac_ext <<_ACEOF
23284 /* end confdefs.h.  */
23285 $ac_includes_default
23286    typedef long ac__type_sizeof_;
23287 int
23288 main ()
23289 {
23290 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23291 test_array [0] = 0
23292
23293   ;
23294   return 0;
23295 }
23296 _ACEOF
23297 rm -f conftest.$ac_objext
23298 if { (ac_try="$ac_compile"
23299 case "(($ac_try" in
23300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23301   *) ac_try_echo=$ac_try;;
23302 esac
23303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23304   (eval "$ac_compile") 2>conftest.er1
23305   ac_status=$?
23306   grep -v '^ *+' conftest.er1 >conftest.err
23307   rm -f conftest.er1
23308   cat conftest.err >&5
23309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23310   (exit $ac_status); } && {
23311          test -z "$ac_c_werror_flag" ||
23312          test ! -s conftest.err
23313        } && test -s conftest.$ac_objext; then
23314   ac_hi=$ac_mid; break
23315 else
23316   echo "$as_me: failed program was:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23318
23319         ac_lo=`expr $ac_mid + 1`
23320                         if test $ac_lo -le $ac_mid; then
23321                           ac_lo= ac_hi=
23322                           break
23323                         fi
23324                         ac_mid=`expr 2 '*' $ac_mid + 1`
23325 fi
23326
23327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23328   done
23329 else
23330   echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333         cat >conftest.$ac_ext <<_ACEOF
23334 /* confdefs.h.  */
23335 _ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h.  */
23339 $ac_includes_default
23340    typedef long ac__type_sizeof_;
23341 int
23342 main ()
23343 {
23344 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23345 test_array [0] = 0
23346
23347   ;
23348   return 0;
23349 }
23350 _ACEOF
23351 rm -f conftest.$ac_objext
23352 if { (ac_try="$ac_compile"
23353 case "(($ac_try" in
23354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23355   *) ac_try_echo=$ac_try;;
23356 esac
23357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23358   (eval "$ac_compile") 2>conftest.er1
23359   ac_status=$?
23360   grep -v '^ *+' conftest.er1 >conftest.err
23361   rm -f conftest.er1
23362   cat conftest.err >&5
23363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23364   (exit $ac_status); } && {
23365          test -z "$ac_c_werror_flag" ||
23366          test ! -s conftest.err
23367        } && test -s conftest.$ac_objext; then
23368   ac_hi=-1 ac_mid=-1
23369   while :; do
23370     cat >conftest.$ac_ext <<_ACEOF
23371 /* confdefs.h.  */
23372 _ACEOF
23373 cat confdefs.h >>conftest.$ac_ext
23374 cat >>conftest.$ac_ext <<_ACEOF
23375 /* end confdefs.h.  */
23376 $ac_includes_default
23377    typedef long ac__type_sizeof_;
23378 int
23379 main ()
23380 {
23381 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23382 test_array [0] = 0
23383
23384   ;
23385   return 0;
23386 }
23387 _ACEOF
23388 rm -f conftest.$ac_objext
23389 if { (ac_try="$ac_compile"
23390 case "(($ac_try" in
23391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23392   *) ac_try_echo=$ac_try;;
23393 esac
23394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23395   (eval "$ac_compile") 2>conftest.er1
23396   ac_status=$?
23397   grep -v '^ *+' conftest.er1 >conftest.err
23398   rm -f conftest.er1
23399   cat conftest.err >&5
23400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23401   (exit $ac_status); } && {
23402          test -z "$ac_c_werror_flag" ||
23403          test ! -s conftest.err
23404        } && test -s conftest.$ac_objext; then
23405   ac_lo=$ac_mid; break
23406 else
23407   echo "$as_me: failed program was:" >&5
23408 sed 's/^/| /' conftest.$ac_ext >&5
23409
23410         ac_hi=`expr '(' $ac_mid ')' - 1`
23411                         if test $ac_mid -le $ac_hi; then
23412                           ac_lo= ac_hi=
23413                           break
23414                         fi
23415                         ac_mid=`expr 2 '*' $ac_mid`
23416 fi
23417
23418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23419   done
23420 else
23421   echo "$as_me: failed program was:" >&5
23422 sed 's/^/| /' conftest.$ac_ext >&5
23423
23424         ac_lo= ac_hi=
23425 fi
23426
23427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23428 fi
23429
23430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23431 # Binary search between lo and hi bounds.
23432 while test "x$ac_lo" != "x$ac_hi"; do
23433   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23434   cat >conftest.$ac_ext <<_ACEOF
23435 /* confdefs.h.  */
23436 _ACEOF
23437 cat confdefs.h >>conftest.$ac_ext
23438 cat >>conftest.$ac_ext <<_ACEOF
23439 /* end confdefs.h.  */
23440 $ac_includes_default
23441    typedef long ac__type_sizeof_;
23442 int
23443 main ()
23444 {
23445 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23446 test_array [0] = 0
23447
23448   ;
23449   return 0;
23450 }
23451 _ACEOF
23452 rm -f conftest.$ac_objext
23453 if { (ac_try="$ac_compile"
23454 case "(($ac_try" in
23455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23456   *) ac_try_echo=$ac_try;;
23457 esac
23458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23459   (eval "$ac_compile") 2>conftest.er1
23460   ac_status=$?
23461   grep -v '^ *+' conftest.er1 >conftest.err
23462   rm -f conftest.er1
23463   cat conftest.err >&5
23464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23465   (exit $ac_status); } && {
23466          test -z "$ac_c_werror_flag" ||
23467          test ! -s conftest.err
23468        } && test -s conftest.$ac_objext; then
23469   ac_hi=$ac_mid
23470 else
23471   echo "$as_me: failed program was:" >&5
23472 sed 's/^/| /' conftest.$ac_ext >&5
23473
23474         ac_lo=`expr '(' $ac_mid ')' + 1`
23475 fi
23476
23477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23478 done
23479 case $ac_lo in
23480 ?*) ac_cv_sizeof_long=$ac_lo;;
23481 '') if test "$ac_cv_type_long" = yes; then
23482      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23483 See \`config.log' for more details." >&5
23484 echo "$as_me: error: cannot compute sizeof (long)
23485 See \`config.log' for more details." >&2;}
23486    { (exit 77); exit 77; }; }
23487    else
23488      ac_cv_sizeof_long=0
23489    fi ;;
23490 esac
23491 else
23492   cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h.  */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h.  */
23498 $ac_includes_default
23499    typedef long ac__type_sizeof_;
23500 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23501 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23502 #include <stdio.h>
23503 #include <stdlib.h>
23504 int
23505 main ()
23506 {
23507
23508   FILE *f = fopen ("conftest.val", "w");
23509   if (! f)
23510     return 1;
23511   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23512     {
23513       long int i = longval ();
23514       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23515         return 1;
23516       fprintf (f, "%ld\n", i);
23517     }
23518   else
23519     {
23520       unsigned long int i = ulongval ();
23521       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23522         return 1;
23523       fprintf (f, "%lu\n", i);
23524     }
23525   return ferror (f) || fclose (f) != 0;
23526
23527   ;
23528   return 0;
23529 }
23530 _ACEOF
23531 rm -f conftest$ac_exeext
23532 if { (ac_try="$ac_link"
23533 case "(($ac_try" in
23534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535   *) ac_try_echo=$ac_try;;
23536 esac
23537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23538   (eval "$ac_link") 2>&5
23539   ac_status=$?
23540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23542   { (case "(($ac_try" in
23543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23544   *) ac_try_echo=$ac_try;;
23545 esac
23546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23547   (eval "$ac_try") 2>&5
23548   ac_status=$?
23549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23550   (exit $ac_status); }; }; then
23551   ac_cv_sizeof_long=`cat conftest.val`
23552 else
23553   echo "$as_me: program exited with status $ac_status" >&5
23554 echo "$as_me: failed program was:" >&5
23555 sed 's/^/| /' conftest.$ac_ext >&5
23556
23557 ( exit $ac_status )
23558 if test "$ac_cv_type_long" = yes; then
23559      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long)
23560 See \`config.log' for more details." >&5
23561 echo "$as_me: error: cannot compute sizeof (long)
23562 See \`config.log' for more details." >&2;}
23563    { (exit 77); exit 77; }; }
23564    else
23565      ac_cv_sizeof_long=0
23566    fi
23567 fi
23568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23569 fi
23570 rm -f conftest.val
23571 fi
23572 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
23573 echo "${ECHO_T}$ac_cv_sizeof_long" >&6; }
23574
23575
23576
23577 cat >>confdefs.h <<_ACEOF
23578 #define SIZEOF_LONG $ac_cv_sizeof_long
23579 _ACEOF
23580
23581
23582 { echo "$as_me:$LINENO: checking for size_t" >&5
23583 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23584 if test "${ac_cv_type_size_t+set}" = set; then
23585   echo $ECHO_N "(cached) $ECHO_C" >&6
23586 else
23587   cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h.  */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h.  */
23593 $ac_includes_default
23594 typedef size_t ac__type_new_;
23595 int
23596 main ()
23597 {
23598 if ((ac__type_new_ *) 0)
23599   return 0;
23600 if (sizeof (ac__type_new_))
23601   return 0;
23602   ;
23603   return 0;
23604 }
23605 _ACEOF
23606 rm -f conftest.$ac_objext
23607 if { (ac_try="$ac_compile"
23608 case "(($ac_try" in
23609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23610   *) ac_try_echo=$ac_try;;
23611 esac
23612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23613   (eval "$ac_compile") 2>conftest.er1
23614   ac_status=$?
23615   grep -v '^ *+' conftest.er1 >conftest.err
23616   rm -f conftest.er1
23617   cat conftest.err >&5
23618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23619   (exit $ac_status); } && {
23620          test -z "$ac_c_werror_flag" ||
23621          test ! -s conftest.err
23622        } && test -s conftest.$ac_objext; then
23623   ac_cv_type_size_t=yes
23624 else
23625   echo "$as_me: failed program was:" >&5
23626 sed 's/^/| /' conftest.$ac_ext >&5
23627
23628         ac_cv_type_size_t=no
23629 fi
23630
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23632 fi
23633 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23634 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23635
23636 # The cast to long int works around a bug in the HP C Compiler
23637 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23638 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23639 # This bug is HP SR number 8606223364.
23640 { echo "$as_me:$LINENO: checking size of size_t" >&5
23641 echo $ECHO_N "checking size of size_t... $ECHO_C" >&6; }
23642 if test "${ac_cv_sizeof_size_t+set}" = set; then
23643   echo $ECHO_N "(cached) $ECHO_C" >&6
23644 else
23645   if test "$cross_compiling" = yes; then
23646   # Depending upon the size, compute the lo and hi bounds.
23647 cat >conftest.$ac_ext <<_ACEOF
23648 /* confdefs.h.  */
23649 _ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h.  */
23653 $ac_includes_default
23654    typedef size_t ac__type_sizeof_;
23655 int
23656 main ()
23657 {
23658 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
23659 test_array [0] = 0
23660
23661   ;
23662   return 0;
23663 }
23664 _ACEOF
23665 rm -f conftest.$ac_objext
23666 if { (ac_try="$ac_compile"
23667 case "(($ac_try" in
23668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23669   *) ac_try_echo=$ac_try;;
23670 esac
23671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23672   (eval "$ac_compile") 2>conftest.er1
23673   ac_status=$?
23674   grep -v '^ *+' conftest.er1 >conftest.err
23675   rm -f conftest.er1
23676   cat conftest.err >&5
23677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678   (exit $ac_status); } && {
23679          test -z "$ac_c_werror_flag" ||
23680          test ! -s conftest.err
23681        } && test -s conftest.$ac_objext; then
23682   ac_lo=0 ac_mid=0
23683   while :; do
23684     cat >conftest.$ac_ext <<_ACEOF
23685 /* confdefs.h.  */
23686 _ACEOF
23687 cat confdefs.h >>conftest.$ac_ext
23688 cat >>conftest.$ac_ext <<_ACEOF
23689 /* end confdefs.h.  */
23690 $ac_includes_default
23691    typedef size_t ac__type_sizeof_;
23692 int
23693 main ()
23694 {
23695 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23696 test_array [0] = 0
23697
23698   ;
23699   return 0;
23700 }
23701 _ACEOF
23702 rm -f conftest.$ac_objext
23703 if { (ac_try="$ac_compile"
23704 case "(($ac_try" in
23705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23706   *) ac_try_echo=$ac_try;;
23707 esac
23708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23709   (eval "$ac_compile") 2>conftest.er1
23710   ac_status=$?
23711   grep -v '^ *+' conftest.er1 >conftest.err
23712   rm -f conftest.er1
23713   cat conftest.err >&5
23714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23715   (exit $ac_status); } && {
23716          test -z "$ac_c_werror_flag" ||
23717          test ! -s conftest.err
23718        } && test -s conftest.$ac_objext; then
23719   ac_hi=$ac_mid; break
23720 else
23721   echo "$as_me: failed program was:" >&5
23722 sed 's/^/| /' conftest.$ac_ext >&5
23723
23724         ac_lo=`expr $ac_mid + 1`
23725                         if test $ac_lo -le $ac_mid; then
23726                           ac_lo= ac_hi=
23727                           break
23728                         fi
23729                         ac_mid=`expr 2 '*' $ac_mid + 1`
23730 fi
23731
23732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23733   done
23734 else
23735   echo "$as_me: failed program was:" >&5
23736 sed 's/^/| /' conftest.$ac_ext >&5
23737
23738         cat >conftest.$ac_ext <<_ACEOF
23739 /* confdefs.h.  */
23740 _ACEOF
23741 cat confdefs.h >>conftest.$ac_ext
23742 cat >>conftest.$ac_ext <<_ACEOF
23743 /* end confdefs.h.  */
23744 $ac_includes_default
23745    typedef size_t ac__type_sizeof_;
23746 int
23747 main ()
23748 {
23749 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
23750 test_array [0] = 0
23751
23752   ;
23753   return 0;
23754 }
23755 _ACEOF
23756 rm -f conftest.$ac_objext
23757 if { (ac_try="$ac_compile"
23758 case "(($ac_try" in
23759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23760   *) ac_try_echo=$ac_try;;
23761 esac
23762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23763   (eval "$ac_compile") 2>conftest.er1
23764   ac_status=$?
23765   grep -v '^ *+' conftest.er1 >conftest.err
23766   rm -f conftest.er1
23767   cat conftest.err >&5
23768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23769   (exit $ac_status); } && {
23770          test -z "$ac_c_werror_flag" ||
23771          test ! -s conftest.err
23772        } && test -s conftest.$ac_objext; then
23773   ac_hi=-1 ac_mid=-1
23774   while :; do
23775     cat >conftest.$ac_ext <<_ACEOF
23776 /* confdefs.h.  */
23777 _ACEOF
23778 cat confdefs.h >>conftest.$ac_ext
23779 cat >>conftest.$ac_ext <<_ACEOF
23780 /* end confdefs.h.  */
23781 $ac_includes_default
23782    typedef size_t ac__type_sizeof_;
23783 int
23784 main ()
23785 {
23786 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
23787 test_array [0] = 0
23788
23789   ;
23790   return 0;
23791 }
23792 _ACEOF
23793 rm -f conftest.$ac_objext
23794 if { (ac_try="$ac_compile"
23795 case "(($ac_try" in
23796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23797   *) ac_try_echo=$ac_try;;
23798 esac
23799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23800   (eval "$ac_compile") 2>conftest.er1
23801   ac_status=$?
23802   grep -v '^ *+' conftest.er1 >conftest.err
23803   rm -f conftest.er1
23804   cat conftest.err >&5
23805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); } && {
23807          test -z "$ac_c_werror_flag" ||
23808          test ! -s conftest.err
23809        } && test -s conftest.$ac_objext; then
23810   ac_lo=$ac_mid; break
23811 else
23812   echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815         ac_hi=`expr '(' $ac_mid ')' - 1`
23816                         if test $ac_mid -le $ac_hi; then
23817                           ac_lo= ac_hi=
23818                           break
23819                         fi
23820                         ac_mid=`expr 2 '*' $ac_mid`
23821 fi
23822
23823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23824   done
23825 else
23826   echo "$as_me: failed program was:" >&5
23827 sed 's/^/| /' conftest.$ac_ext >&5
23828
23829         ac_lo= ac_hi=
23830 fi
23831
23832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23833 fi
23834
23835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23836 # Binary search between lo and hi bounds.
23837 while test "x$ac_lo" != "x$ac_hi"; do
23838   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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 size_t ac__type_sizeof_;
23847 int
23848 main ()
23849 {
23850 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
23851 test_array [0] = 0
23852
23853   ;
23854   return 0;
23855 }
23856 _ACEOF
23857 rm -f conftest.$ac_objext
23858 if { (ac_try="$ac_compile"
23859 case "(($ac_try" in
23860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23861   *) ac_try_echo=$ac_try;;
23862 esac
23863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23864   (eval "$ac_compile") 2>conftest.er1
23865   ac_status=$?
23866   grep -v '^ *+' conftest.er1 >conftest.err
23867   rm -f conftest.er1
23868   cat conftest.err >&5
23869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23870   (exit $ac_status); } && {
23871          test -z "$ac_c_werror_flag" ||
23872          test ! -s conftest.err
23873        } && test -s conftest.$ac_objext; then
23874   ac_hi=$ac_mid
23875 else
23876   echo "$as_me: failed program was:" >&5
23877 sed 's/^/| /' conftest.$ac_ext >&5
23878
23879         ac_lo=`expr '(' $ac_mid ')' + 1`
23880 fi
23881
23882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23883 done
23884 case $ac_lo in
23885 ?*) ac_cv_sizeof_size_t=$ac_lo;;
23886 '') if test "$ac_cv_type_size_t" = yes; then
23887      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23888 See \`config.log' for more details." >&5
23889 echo "$as_me: error: cannot compute sizeof (size_t)
23890 See \`config.log' for more details." >&2;}
23891    { (exit 77); exit 77; }; }
23892    else
23893      ac_cv_sizeof_size_t=0
23894    fi ;;
23895 esac
23896 else
23897   cat >conftest.$ac_ext <<_ACEOF
23898 /* confdefs.h.  */
23899 _ACEOF
23900 cat confdefs.h >>conftest.$ac_ext
23901 cat >>conftest.$ac_ext <<_ACEOF
23902 /* end confdefs.h.  */
23903 $ac_includes_default
23904    typedef size_t ac__type_sizeof_;
23905 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
23906 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
23907 #include <stdio.h>
23908 #include <stdlib.h>
23909 int
23910 main ()
23911 {
23912
23913   FILE *f = fopen ("conftest.val", "w");
23914   if (! f)
23915     return 1;
23916   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
23917     {
23918       long int i = longval ();
23919       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23920         return 1;
23921       fprintf (f, "%ld\n", i);
23922     }
23923   else
23924     {
23925       unsigned long int i = ulongval ();
23926       if (i != ((long int) (sizeof (ac__type_sizeof_))))
23927         return 1;
23928       fprintf (f, "%lu\n", i);
23929     }
23930   return ferror (f) || fclose (f) != 0;
23931
23932   ;
23933   return 0;
23934 }
23935 _ACEOF
23936 rm -f conftest$ac_exeext
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940   *) ac_try_echo=$ac_try;;
23941 esac
23942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23943   (eval "$ac_link") 2>&5
23944   ac_status=$?
23945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23947   { (case "(($ac_try" in
23948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949   *) ac_try_echo=$ac_try;;
23950 esac
23951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23952   (eval "$ac_try") 2>&5
23953   ac_status=$?
23954   echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955   (exit $ac_status); }; }; then
23956   ac_cv_sizeof_size_t=`cat conftest.val`
23957 else
23958   echo "$as_me: program exited with status $ac_status" >&5
23959 echo "$as_me: failed program was:" >&5
23960 sed 's/^/| /' conftest.$ac_ext >&5
23961
23962 ( exit $ac_status )
23963 if test "$ac_cv_type_size_t" = yes; then
23964      { { echo "$as_me:$LINENO: error: cannot compute sizeof (size_t)
23965 See \`config.log' for more details." >&5
23966 echo "$as_me: error: cannot compute sizeof (size_t)
23967 See \`config.log' for more details." >&2;}
23968    { (exit 77); exit 77; }; }
23969    else
23970      ac_cv_sizeof_size_t=0
23971    fi
23972 fi
23973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23974 fi
23975 rm -f conftest.val
23976 fi
23977 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_size_t" >&5
23978 echo "${ECHO_T}$ac_cv_sizeof_size_t" >&6; }
23979
23980
23981
23982 cat >>confdefs.h <<_ACEOF
23983 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23984 _ACEOF
23985
23986
23987
23988 case "${host}" in
23989     arm-*-linux* )
23990         { echo "$as_me:$LINENO: checking for long long" >&5
23991 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
23992 if test "${ac_cv_type_long_long+set}" = set; then
23993   echo $ECHO_N "(cached) $ECHO_C" >&6
23994 else
23995   cat >conftest.$ac_ext <<_ACEOF
23996 /* confdefs.h.  */
23997 _ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h.  */
24001 $ac_includes_default
24002 typedef long long ac__type_new_;
24003 int
24004 main ()
24005 {
24006 if ((ac__type_new_ *) 0)
24007   return 0;
24008 if (sizeof (ac__type_new_))
24009   return 0;
24010   ;
24011   return 0;
24012 }
24013 _ACEOF
24014 rm -f conftest.$ac_objext
24015 if { (ac_try="$ac_compile"
24016 case "(($ac_try" in
24017   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24018   *) ac_try_echo=$ac_try;;
24019 esac
24020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24021   (eval "$ac_compile") 2>conftest.er1
24022   ac_status=$?
24023   grep -v '^ *+' conftest.er1 >conftest.err
24024   rm -f conftest.er1
24025   cat conftest.err >&5
24026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24027   (exit $ac_status); } && {
24028          test -z "$ac_c_werror_flag" ||
24029          test ! -s conftest.err
24030        } && test -s conftest.$ac_objext; then
24031   ac_cv_type_long_long=yes
24032 else
24033   echo "$as_me: failed program was:" >&5
24034 sed 's/^/| /' conftest.$ac_ext >&5
24035
24036         ac_cv_type_long_long=no
24037 fi
24038
24039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24040 fi
24041 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24042 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24043
24044 # The cast to long int works around a bug in the HP C Compiler
24045 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24046 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24047 # This bug is HP SR number 8606223364.
24048 { echo "$as_me:$LINENO: checking size of long long" >&5
24049 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24050 if test "${ac_cv_sizeof_long_long+set}" = set; then
24051   echo $ECHO_N "(cached) $ECHO_C" >&6
24052 else
24053   if test "$cross_compiling" = yes; then
24054   # Depending upon the size, compute the lo and hi bounds.
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061 $ac_includes_default
24062    typedef long long ac__type_sizeof_;
24063 int
24064 main ()
24065 {
24066 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24067 test_array [0] = 0
24068
24069   ;
24070   return 0;
24071 }
24072 _ACEOF
24073 rm -f conftest.$ac_objext
24074 if { (ac_try="$ac_compile"
24075 case "(($ac_try" in
24076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077   *) ac_try_echo=$ac_try;;
24078 esac
24079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24080   (eval "$ac_compile") 2>conftest.er1
24081   ac_status=$?
24082   grep -v '^ *+' conftest.er1 >conftest.err
24083   rm -f conftest.er1
24084   cat conftest.err >&5
24085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24086   (exit $ac_status); } && {
24087          test -z "$ac_c_werror_flag" ||
24088          test ! -s conftest.err
24089        } && test -s conftest.$ac_objext; then
24090   ac_lo=0 ac_mid=0
24091   while :; do
24092     cat >conftest.$ac_ext <<_ACEOF
24093 /* confdefs.h.  */
24094 _ACEOF
24095 cat confdefs.h >>conftest.$ac_ext
24096 cat >>conftest.$ac_ext <<_ACEOF
24097 /* end confdefs.h.  */
24098 $ac_includes_default
24099    typedef long long ac__type_sizeof_;
24100 int
24101 main ()
24102 {
24103 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24104 test_array [0] = 0
24105
24106   ;
24107   return 0;
24108 }
24109 _ACEOF
24110 rm -f conftest.$ac_objext
24111 if { (ac_try="$ac_compile"
24112 case "(($ac_try" in
24113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24114   *) ac_try_echo=$ac_try;;
24115 esac
24116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24117   (eval "$ac_compile") 2>conftest.er1
24118   ac_status=$?
24119   grep -v '^ *+' conftest.er1 >conftest.err
24120   rm -f conftest.er1
24121   cat conftest.err >&5
24122   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123   (exit $ac_status); } && {
24124          test -z "$ac_c_werror_flag" ||
24125          test ! -s conftest.err
24126        } && test -s conftest.$ac_objext; then
24127   ac_hi=$ac_mid; break
24128 else
24129   echo "$as_me: failed program was:" >&5
24130 sed 's/^/| /' conftest.$ac_ext >&5
24131
24132         ac_lo=`expr $ac_mid + 1`
24133                         if test $ac_lo -le $ac_mid; then
24134                           ac_lo= ac_hi=
24135                           break
24136                         fi
24137                         ac_mid=`expr 2 '*' $ac_mid + 1`
24138 fi
24139
24140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24141   done
24142 else
24143   echo "$as_me: failed program was:" >&5
24144 sed 's/^/| /' conftest.$ac_ext >&5
24145
24146         cat >conftest.$ac_ext <<_ACEOF
24147 /* confdefs.h.  */
24148 _ACEOF
24149 cat confdefs.h >>conftest.$ac_ext
24150 cat >>conftest.$ac_ext <<_ACEOF
24151 /* end confdefs.h.  */
24152 $ac_includes_default
24153    typedef long long ac__type_sizeof_;
24154 int
24155 main ()
24156 {
24157 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24158 test_array [0] = 0
24159
24160   ;
24161   return 0;
24162 }
24163 _ACEOF
24164 rm -f conftest.$ac_objext
24165 if { (ac_try="$ac_compile"
24166 case "(($ac_try" in
24167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24168   *) ac_try_echo=$ac_try;;
24169 esac
24170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24171   (eval "$ac_compile") 2>conftest.er1
24172   ac_status=$?
24173   grep -v '^ *+' conftest.er1 >conftest.err
24174   rm -f conftest.er1
24175   cat conftest.err >&5
24176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24177   (exit $ac_status); } && {
24178          test -z "$ac_c_werror_flag" ||
24179          test ! -s conftest.err
24180        } && test -s conftest.$ac_objext; then
24181   ac_hi=-1 ac_mid=-1
24182   while :; do
24183     cat >conftest.$ac_ext <<_ACEOF
24184 /* confdefs.h.  */
24185 _ACEOF
24186 cat confdefs.h >>conftest.$ac_ext
24187 cat >>conftest.$ac_ext <<_ACEOF
24188 /* end confdefs.h.  */
24189 $ac_includes_default
24190    typedef long long ac__type_sizeof_;
24191 int
24192 main ()
24193 {
24194 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24195 test_array [0] = 0
24196
24197   ;
24198   return 0;
24199 }
24200 _ACEOF
24201 rm -f conftest.$ac_objext
24202 if { (ac_try="$ac_compile"
24203 case "(($ac_try" in
24204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24205   *) ac_try_echo=$ac_try;;
24206 esac
24207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24208   (eval "$ac_compile") 2>conftest.er1
24209   ac_status=$?
24210   grep -v '^ *+' conftest.er1 >conftest.err
24211   rm -f conftest.er1
24212   cat conftest.err >&5
24213   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24214   (exit $ac_status); } && {
24215          test -z "$ac_c_werror_flag" ||
24216          test ! -s conftest.err
24217        } && test -s conftest.$ac_objext; then
24218   ac_lo=$ac_mid; break
24219 else
24220   echo "$as_me: failed program was:" >&5
24221 sed 's/^/| /' conftest.$ac_ext >&5
24222
24223         ac_hi=`expr '(' $ac_mid ')' - 1`
24224                         if test $ac_mid -le $ac_hi; then
24225                           ac_lo= ac_hi=
24226                           break
24227                         fi
24228                         ac_mid=`expr 2 '*' $ac_mid`
24229 fi
24230
24231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24232   done
24233 else
24234   echo "$as_me: failed program was:" >&5
24235 sed 's/^/| /' conftest.$ac_ext >&5
24236
24237         ac_lo= ac_hi=
24238 fi
24239
24240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24241 fi
24242
24243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24244 # Binary search between lo and hi bounds.
24245 while test "x$ac_lo" != "x$ac_hi"; do
24246   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24247   cat >conftest.$ac_ext <<_ACEOF
24248 /* confdefs.h.  */
24249 _ACEOF
24250 cat confdefs.h >>conftest.$ac_ext
24251 cat >>conftest.$ac_ext <<_ACEOF
24252 /* end confdefs.h.  */
24253 $ac_includes_default
24254    typedef long long ac__type_sizeof_;
24255 int
24256 main ()
24257 {
24258 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24259 test_array [0] = 0
24260
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_hi=$ac_mid
24283 else
24284   echo "$as_me: failed program was:" >&5
24285 sed 's/^/| /' conftest.$ac_ext >&5
24286
24287         ac_lo=`expr '(' $ac_mid ')' + 1`
24288 fi
24289
24290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24291 done
24292 case $ac_lo in
24293 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24294 '') if test "$ac_cv_type_long_long" = yes; then
24295      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24296 See \`config.log' for more details." >&5
24297 echo "$as_me: error: cannot compute sizeof (long long)
24298 See \`config.log' for more details." >&2;}
24299    { (exit 77); exit 77; }; }
24300    else
24301      ac_cv_sizeof_long_long=0
24302    fi ;;
24303 esac
24304 else
24305   cat >conftest.$ac_ext <<_ACEOF
24306 /* confdefs.h.  */
24307 _ACEOF
24308 cat confdefs.h >>conftest.$ac_ext
24309 cat >>conftest.$ac_ext <<_ACEOF
24310 /* end confdefs.h.  */
24311 $ac_includes_default
24312    typedef long long ac__type_sizeof_;
24313 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24314 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24315 #include <stdio.h>
24316 #include <stdlib.h>
24317 int
24318 main ()
24319 {
24320
24321   FILE *f = fopen ("conftest.val", "w");
24322   if (! f)
24323     return 1;
24324   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24325     {
24326       long int i = longval ();
24327       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24328         return 1;
24329       fprintf (f, "%ld\n", i);
24330     }
24331   else
24332     {
24333       unsigned long int i = ulongval ();
24334       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24335         return 1;
24336       fprintf (f, "%lu\n", i);
24337     }
24338   return ferror (f) || fclose (f) != 0;
24339
24340   ;
24341   return 0;
24342 }
24343 _ACEOF
24344 rm -f conftest$ac_exeext
24345 if { (ac_try="$ac_link"
24346 case "(($ac_try" in
24347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24348   *) ac_try_echo=$ac_try;;
24349 esac
24350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24351   (eval "$ac_link") 2>&5
24352   ac_status=$?
24353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24354   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24355   { (case "(($ac_try" in
24356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24357   *) ac_try_echo=$ac_try;;
24358 esac
24359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24360   (eval "$ac_try") 2>&5
24361   ac_status=$?
24362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363   (exit $ac_status); }; }; then
24364   ac_cv_sizeof_long_long=`cat conftest.val`
24365 else
24366   echo "$as_me: program exited with status $ac_status" >&5
24367 echo "$as_me: failed program was:" >&5
24368 sed 's/^/| /' conftest.$ac_ext >&5
24369
24370 ( exit $ac_status )
24371 if test "$ac_cv_type_long_long" = yes; then
24372      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24373 See \`config.log' for more details." >&5
24374 echo "$as_me: error: cannot compute sizeof (long long)
24375 See \`config.log' for more details." >&2;}
24376    { (exit 77); exit 77; }; }
24377    else
24378      ac_cv_sizeof_long_long=0
24379    fi
24380 fi
24381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24382 fi
24383 rm -f conftest.val
24384 fi
24385 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24386 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24387
24388
24389
24390 cat >>confdefs.h <<_ACEOF
24391 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24392 _ACEOF
24393
24394
24395     ;;
24396     *-hp-hpux* )
24397         { echo "$as_me:$LINENO: checking for long long" >&5
24398 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24399 if test "${ac_cv_type_long_long+set}" = set; then
24400   echo $ECHO_N "(cached) $ECHO_C" >&6
24401 else
24402   cat >conftest.$ac_ext <<_ACEOF
24403 /* confdefs.h.  */
24404 _ACEOF
24405 cat confdefs.h >>conftest.$ac_ext
24406 cat >>conftest.$ac_ext <<_ACEOF
24407 /* end confdefs.h.  */
24408 $ac_includes_default
24409 typedef long long ac__type_new_;
24410 int
24411 main ()
24412 {
24413 if ((ac__type_new_ *) 0)
24414   return 0;
24415 if (sizeof (ac__type_new_))
24416   return 0;
24417   ;
24418   return 0;
24419 }
24420 _ACEOF
24421 rm -f conftest.$ac_objext
24422 if { (ac_try="$ac_compile"
24423 case "(($ac_try" in
24424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24425   *) ac_try_echo=$ac_try;;
24426 esac
24427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24428   (eval "$ac_compile") 2>conftest.er1
24429   ac_status=$?
24430   grep -v '^ *+' conftest.er1 >conftest.err
24431   rm -f conftest.er1
24432   cat conftest.err >&5
24433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24434   (exit $ac_status); } && {
24435          test -z "$ac_c_werror_flag" ||
24436          test ! -s conftest.err
24437        } && test -s conftest.$ac_objext; then
24438   ac_cv_type_long_long=yes
24439 else
24440   echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443         ac_cv_type_long_long=no
24444 fi
24445
24446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24447 fi
24448 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24449 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24450
24451 # The cast to long int works around a bug in the HP C Compiler
24452 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24453 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24454 # This bug is HP SR number 8606223364.
24455 { echo "$as_me:$LINENO: checking size of long long" >&5
24456 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24457 if test "${ac_cv_sizeof_long_long+set}" = set; then
24458   echo $ECHO_N "(cached) $ECHO_C" >&6
24459 else
24460   if test "$cross_compiling" = yes; then
24461   # Depending upon the size, compute the lo and hi bounds.
24462 cat >conftest.$ac_ext <<_ACEOF
24463 /* confdefs.h.  */
24464 _ACEOF
24465 cat confdefs.h >>conftest.$ac_ext
24466 cat >>conftest.$ac_ext <<_ACEOF
24467 /* end confdefs.h.  */
24468 $ac_includes_default
24469    typedef long long ac__type_sizeof_;
24470 int
24471 main ()
24472 {
24473 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24474 test_array [0] = 0
24475
24476   ;
24477   return 0;
24478 }
24479 _ACEOF
24480 rm -f conftest.$ac_objext
24481 if { (ac_try="$ac_compile"
24482 case "(($ac_try" in
24483   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24484   *) ac_try_echo=$ac_try;;
24485 esac
24486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24487   (eval "$ac_compile") 2>conftest.er1
24488   ac_status=$?
24489   grep -v '^ *+' conftest.er1 >conftest.err
24490   rm -f conftest.er1
24491   cat conftest.err >&5
24492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24493   (exit $ac_status); } && {
24494          test -z "$ac_c_werror_flag" ||
24495          test ! -s conftest.err
24496        } && test -s conftest.$ac_objext; then
24497   ac_lo=0 ac_mid=0
24498   while :; do
24499     cat >conftest.$ac_ext <<_ACEOF
24500 /* confdefs.h.  */
24501 _ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h.  */
24505 $ac_includes_default
24506    typedef long long ac__type_sizeof_;
24507 int
24508 main ()
24509 {
24510 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24511 test_array [0] = 0
24512
24513   ;
24514   return 0;
24515 }
24516 _ACEOF
24517 rm -f conftest.$ac_objext
24518 if { (ac_try="$ac_compile"
24519 case "(($ac_try" in
24520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24521   *) ac_try_echo=$ac_try;;
24522 esac
24523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24524   (eval "$ac_compile") 2>conftest.er1
24525   ac_status=$?
24526   grep -v '^ *+' conftest.er1 >conftest.err
24527   rm -f conftest.er1
24528   cat conftest.err >&5
24529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24530   (exit $ac_status); } && {
24531          test -z "$ac_c_werror_flag" ||
24532          test ! -s conftest.err
24533        } && test -s conftest.$ac_objext; then
24534   ac_hi=$ac_mid; break
24535 else
24536   echo "$as_me: failed program was:" >&5
24537 sed 's/^/| /' conftest.$ac_ext >&5
24538
24539         ac_lo=`expr $ac_mid + 1`
24540                         if test $ac_lo -le $ac_mid; then
24541                           ac_lo= ac_hi=
24542                           break
24543                         fi
24544                         ac_mid=`expr 2 '*' $ac_mid + 1`
24545 fi
24546
24547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24548   done
24549 else
24550   echo "$as_me: failed program was:" >&5
24551 sed 's/^/| /' conftest.$ac_ext >&5
24552
24553         cat >conftest.$ac_ext <<_ACEOF
24554 /* confdefs.h.  */
24555 _ACEOF
24556 cat confdefs.h >>conftest.$ac_ext
24557 cat >>conftest.$ac_ext <<_ACEOF
24558 /* end confdefs.h.  */
24559 $ac_includes_default
24560    typedef long long ac__type_sizeof_;
24561 int
24562 main ()
24563 {
24564 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24565 test_array [0] = 0
24566
24567   ;
24568   return 0;
24569 }
24570 _ACEOF
24571 rm -f conftest.$ac_objext
24572 if { (ac_try="$ac_compile"
24573 case "(($ac_try" in
24574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24575   *) ac_try_echo=$ac_try;;
24576 esac
24577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24578   (eval "$ac_compile") 2>conftest.er1
24579   ac_status=$?
24580   grep -v '^ *+' conftest.er1 >conftest.err
24581   rm -f conftest.er1
24582   cat conftest.err >&5
24583   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24584   (exit $ac_status); } && {
24585          test -z "$ac_c_werror_flag" ||
24586          test ! -s conftest.err
24587        } && test -s conftest.$ac_objext; then
24588   ac_hi=-1 ac_mid=-1
24589   while :; do
24590     cat >conftest.$ac_ext <<_ACEOF
24591 /* confdefs.h.  */
24592 _ACEOF
24593 cat confdefs.h >>conftest.$ac_ext
24594 cat >>conftest.$ac_ext <<_ACEOF
24595 /* end confdefs.h.  */
24596 $ac_includes_default
24597    typedef long long ac__type_sizeof_;
24598 int
24599 main ()
24600 {
24601 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
24602 test_array [0] = 0
24603
24604   ;
24605   return 0;
24606 }
24607 _ACEOF
24608 rm -f conftest.$ac_objext
24609 if { (ac_try="$ac_compile"
24610 case "(($ac_try" in
24611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24612   *) ac_try_echo=$ac_try;;
24613 esac
24614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24615   (eval "$ac_compile") 2>conftest.er1
24616   ac_status=$?
24617   grep -v '^ *+' conftest.er1 >conftest.err
24618   rm -f conftest.er1
24619   cat conftest.err >&5
24620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24621   (exit $ac_status); } && {
24622          test -z "$ac_c_werror_flag" ||
24623          test ! -s conftest.err
24624        } && test -s conftest.$ac_objext; then
24625   ac_lo=$ac_mid; break
24626 else
24627   echo "$as_me: failed program was:" >&5
24628 sed 's/^/| /' conftest.$ac_ext >&5
24629
24630         ac_hi=`expr '(' $ac_mid ')' - 1`
24631                         if test $ac_mid -le $ac_hi; then
24632                           ac_lo= ac_hi=
24633                           break
24634                         fi
24635                         ac_mid=`expr 2 '*' $ac_mid`
24636 fi
24637
24638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24639   done
24640 else
24641   echo "$as_me: failed program was:" >&5
24642 sed 's/^/| /' conftest.$ac_ext >&5
24643
24644         ac_lo= ac_hi=
24645 fi
24646
24647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24648 fi
24649
24650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24651 # Binary search between lo and hi bounds.
24652 while test "x$ac_lo" != "x$ac_hi"; do
24653   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24654   cat >conftest.$ac_ext <<_ACEOF
24655 /* confdefs.h.  */
24656 _ACEOF
24657 cat confdefs.h >>conftest.$ac_ext
24658 cat >>conftest.$ac_ext <<_ACEOF
24659 /* end confdefs.h.  */
24660 $ac_includes_default
24661    typedef long long ac__type_sizeof_;
24662 int
24663 main ()
24664 {
24665 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24666 test_array [0] = 0
24667
24668   ;
24669   return 0;
24670 }
24671 _ACEOF
24672 rm -f conftest.$ac_objext
24673 if { (ac_try="$ac_compile"
24674 case "(($ac_try" in
24675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24676   *) ac_try_echo=$ac_try;;
24677 esac
24678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24679   (eval "$ac_compile") 2>conftest.er1
24680   ac_status=$?
24681   grep -v '^ *+' conftest.er1 >conftest.err
24682   rm -f conftest.er1
24683   cat conftest.err >&5
24684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24685   (exit $ac_status); } && {
24686          test -z "$ac_c_werror_flag" ||
24687          test ! -s conftest.err
24688        } && test -s conftest.$ac_objext; then
24689   ac_hi=$ac_mid
24690 else
24691   echo "$as_me: failed program was:" >&5
24692 sed 's/^/| /' conftest.$ac_ext >&5
24693
24694         ac_lo=`expr '(' $ac_mid ')' + 1`
24695 fi
24696
24697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698 done
24699 case $ac_lo in
24700 ?*) ac_cv_sizeof_long_long=$ac_lo;;
24701 '') if test "$ac_cv_type_long_long" = yes; then
24702      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24703 See \`config.log' for more details." >&5
24704 echo "$as_me: error: cannot compute sizeof (long long)
24705 See \`config.log' for more details." >&2;}
24706    { (exit 77); exit 77; }; }
24707    else
24708      ac_cv_sizeof_long_long=0
24709    fi ;;
24710 esac
24711 else
24712   cat >conftest.$ac_ext <<_ACEOF
24713 /* confdefs.h.  */
24714 _ACEOF
24715 cat confdefs.h >>conftest.$ac_ext
24716 cat >>conftest.$ac_ext <<_ACEOF
24717 /* end confdefs.h.  */
24718 $ac_includes_default
24719    typedef long long ac__type_sizeof_;
24720 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
24721 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
24722 #include <stdio.h>
24723 #include <stdlib.h>
24724 int
24725 main ()
24726 {
24727
24728   FILE *f = fopen ("conftest.val", "w");
24729   if (! f)
24730     return 1;
24731   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
24732     {
24733       long int i = longval ();
24734       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24735         return 1;
24736       fprintf (f, "%ld\n", i);
24737     }
24738   else
24739     {
24740       unsigned long int i = ulongval ();
24741       if (i != ((long int) (sizeof (ac__type_sizeof_))))
24742         return 1;
24743       fprintf (f, "%lu\n", i);
24744     }
24745   return ferror (f) || fclose (f) != 0;
24746
24747   ;
24748   return 0;
24749 }
24750 _ACEOF
24751 rm -f conftest$ac_exeext
24752 if { (ac_try="$ac_link"
24753 case "(($ac_try" in
24754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755   *) ac_try_echo=$ac_try;;
24756 esac
24757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24758   (eval "$ac_link") 2>&5
24759   ac_status=$?
24760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24761   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24762   { (case "(($ac_try" in
24763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24764   *) ac_try_echo=$ac_try;;
24765 esac
24766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24767   (eval "$ac_try") 2>&5
24768   ac_status=$?
24769   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24770   (exit $ac_status); }; }; then
24771   ac_cv_sizeof_long_long=`cat conftest.val`
24772 else
24773   echo "$as_me: program exited with status $ac_status" >&5
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777 ( exit $ac_status )
24778 if test "$ac_cv_type_long_long" = yes; then
24779      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
24780 See \`config.log' for more details." >&5
24781 echo "$as_me: error: cannot compute sizeof (long long)
24782 See \`config.log' for more details." >&2;}
24783    { (exit 77); exit 77; }; }
24784    else
24785      ac_cv_sizeof_long_long=0
24786    fi
24787 fi
24788 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24789 fi
24790 rm -f conftest.val
24791 fi
24792 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
24793 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
24794
24795
24796
24797 cat >>confdefs.h <<_ACEOF
24798 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24799 _ACEOF
24800
24801
24802         if test "$ac_cv_sizeof_long_long" != "0"; then
24803                         CPPFLAGS="-D_INCLUDE_LONGLONG $CPPFLAGS"
24804         fi
24805     ;;
24806     * )
24807         { echo "$as_me:$LINENO: checking for long long" >&5
24808 echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
24809 if test "${ac_cv_type_long_long+set}" = set; then
24810   echo $ECHO_N "(cached) $ECHO_C" >&6
24811 else
24812   cat >conftest.$ac_ext <<_ACEOF
24813 /* confdefs.h.  */
24814 _ACEOF
24815 cat confdefs.h >>conftest.$ac_ext
24816 cat >>conftest.$ac_ext <<_ACEOF
24817 /* end confdefs.h.  */
24818 $ac_includes_default
24819 typedef long long ac__type_new_;
24820 int
24821 main ()
24822 {
24823 if ((ac__type_new_ *) 0)
24824   return 0;
24825 if (sizeof (ac__type_new_))
24826   return 0;
24827   ;
24828   return 0;
24829 }
24830 _ACEOF
24831 rm -f conftest.$ac_objext
24832 if { (ac_try="$ac_compile"
24833 case "(($ac_try" in
24834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24835   *) ac_try_echo=$ac_try;;
24836 esac
24837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24838   (eval "$ac_compile") 2>conftest.er1
24839   ac_status=$?
24840   grep -v '^ *+' conftest.er1 >conftest.err
24841   rm -f conftest.er1
24842   cat conftest.err >&5
24843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24844   (exit $ac_status); } && {
24845          test -z "$ac_c_werror_flag" ||
24846          test ! -s conftest.err
24847        } && test -s conftest.$ac_objext; then
24848   ac_cv_type_long_long=yes
24849 else
24850   echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.$ac_ext >&5
24852
24853         ac_cv_type_long_long=no
24854 fi
24855
24856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24857 fi
24858 { echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
24859 echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
24860
24861 # The cast to long int works around a bug in the HP C Compiler
24862 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24863 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24864 # This bug is HP SR number 8606223364.
24865 { echo "$as_me:$LINENO: checking size of long long" >&5
24866 echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
24867 if test "${ac_cv_sizeof_long_long+set}" = set; then
24868   echo $ECHO_N "(cached) $ECHO_C" >&6
24869 else
24870   if test "$cross_compiling" = yes; then
24871   # Depending upon the size, compute the lo and hi bounds.
24872 cat >conftest.$ac_ext <<_ACEOF
24873 /* confdefs.h.  */
24874 _ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h.  */
24878 $ac_includes_default
24879    typedef long long ac__type_sizeof_;
24880 int
24881 main ()
24882 {
24883 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
24884 test_array [0] = 0
24885
24886   ;
24887   return 0;
24888 }
24889 _ACEOF
24890 rm -f conftest.$ac_objext
24891 if { (ac_try="$ac_compile"
24892 case "(($ac_try" in
24893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894   *) ac_try_echo=$ac_try;;
24895 esac
24896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24897   (eval "$ac_compile") 2>conftest.er1
24898   ac_status=$?
24899   grep -v '^ *+' conftest.er1 >conftest.err
24900   rm -f conftest.er1
24901   cat conftest.err >&5
24902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24903   (exit $ac_status); } && {
24904          test -z "$ac_c_werror_flag" ||
24905          test ! -s conftest.err
24906        } && test -s conftest.$ac_objext; then
24907   ac_lo=0 ac_mid=0
24908   while :; do
24909     cat >conftest.$ac_ext <<_ACEOF
24910 /* confdefs.h.  */
24911 _ACEOF
24912 cat confdefs.h >>conftest.$ac_ext
24913 cat >>conftest.$ac_ext <<_ACEOF
24914 /* end confdefs.h.  */
24915 $ac_includes_default
24916    typedef long long ac__type_sizeof_;
24917 int
24918 main ()
24919 {
24920 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
24921 test_array [0] = 0
24922
24923   ;
24924   return 0;
24925 }
24926 _ACEOF
24927 rm -f conftest.$ac_objext
24928 if { (ac_try="$ac_compile"
24929 case "(($ac_try" in
24930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24931   *) ac_try_echo=$ac_try;;
24932 esac
24933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24934   (eval "$ac_compile") 2>conftest.er1
24935   ac_status=$?
24936   grep -v '^ *+' conftest.er1 >conftest.err
24937   rm -f conftest.er1
24938   cat conftest.err >&5
24939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24940   (exit $ac_status); } && {
24941          test -z "$ac_c_werror_flag" ||
24942          test ! -s conftest.err
24943        } && test -s conftest.$ac_objext; then
24944   ac_hi=$ac_mid; break
24945 else
24946   echo "$as_me: failed program was:" >&5
24947 sed 's/^/| /' conftest.$ac_ext >&5
24948
24949         ac_lo=`expr $ac_mid + 1`
24950                         if test $ac_lo -le $ac_mid; then
24951                           ac_lo= ac_hi=
24952                           break
24953                         fi
24954                         ac_mid=`expr 2 '*' $ac_mid + 1`
24955 fi
24956
24957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24958   done
24959 else
24960   echo "$as_me: failed program was:" >&5
24961 sed 's/^/| /' conftest.$ac_ext >&5
24962
24963         cat >conftest.$ac_ext <<_ACEOF
24964 /* confdefs.h.  */
24965 _ACEOF
24966 cat confdefs.h >>conftest.$ac_ext
24967 cat >>conftest.$ac_ext <<_ACEOF
24968 /* end confdefs.h.  */
24969 $ac_includes_default
24970    typedef long long ac__type_sizeof_;
24971 int
24972 main ()
24973 {
24974 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
24975 test_array [0] = 0
24976
24977   ;
24978   return 0;
24979 }
24980 _ACEOF
24981 rm -f conftest.$ac_objext
24982 if { (ac_try="$ac_compile"
24983 case "(($ac_try" in
24984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24985   *) ac_try_echo=$ac_try;;
24986 esac
24987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24988   (eval "$ac_compile") 2>conftest.er1
24989   ac_status=$?
24990   grep -v '^ *+' conftest.er1 >conftest.err
24991   rm -f conftest.er1
24992   cat conftest.err >&5
24993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); } && {
24995          test -z "$ac_c_werror_flag" ||
24996          test ! -s conftest.err
24997        } && test -s conftest.$ac_objext; then
24998   ac_hi=-1 ac_mid=-1
24999   while :; do
25000     cat >conftest.$ac_ext <<_ACEOF
25001 /* confdefs.h.  */
25002 _ACEOF
25003 cat confdefs.h >>conftest.$ac_ext
25004 cat >>conftest.$ac_ext <<_ACEOF
25005 /* end confdefs.h.  */
25006 $ac_includes_default
25007    typedef long long ac__type_sizeof_;
25008 int
25009 main ()
25010 {
25011 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25012 test_array [0] = 0
25013
25014   ;
25015   return 0;
25016 }
25017 _ACEOF
25018 rm -f conftest.$ac_objext
25019 if { (ac_try="$ac_compile"
25020 case "(($ac_try" in
25021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25022   *) ac_try_echo=$ac_try;;
25023 esac
25024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25025   (eval "$ac_compile") 2>conftest.er1
25026   ac_status=$?
25027   grep -v '^ *+' conftest.er1 >conftest.err
25028   rm -f conftest.er1
25029   cat conftest.err >&5
25030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25031   (exit $ac_status); } && {
25032          test -z "$ac_c_werror_flag" ||
25033          test ! -s conftest.err
25034        } && test -s conftest.$ac_objext; then
25035   ac_lo=$ac_mid; break
25036 else
25037   echo "$as_me: failed program was:" >&5
25038 sed 's/^/| /' conftest.$ac_ext >&5
25039
25040         ac_hi=`expr '(' $ac_mid ')' - 1`
25041                         if test $ac_mid -le $ac_hi; then
25042                           ac_lo= ac_hi=
25043                           break
25044                         fi
25045                         ac_mid=`expr 2 '*' $ac_mid`
25046 fi
25047
25048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25049   done
25050 else
25051   echo "$as_me: failed program was:" >&5
25052 sed 's/^/| /' conftest.$ac_ext >&5
25053
25054         ac_lo= ac_hi=
25055 fi
25056
25057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 # Binary search between lo and hi bounds.
25062 while test "x$ac_lo" != "x$ac_hi"; do
25063   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25064   cat >conftest.$ac_ext <<_ACEOF
25065 /* confdefs.h.  */
25066 _ACEOF
25067 cat confdefs.h >>conftest.$ac_ext
25068 cat >>conftest.$ac_ext <<_ACEOF
25069 /* end confdefs.h.  */
25070 $ac_includes_default
25071    typedef long long ac__type_sizeof_;
25072 int
25073 main ()
25074 {
25075 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25076 test_array [0] = 0
25077
25078   ;
25079   return 0;
25080 }
25081 _ACEOF
25082 rm -f conftest.$ac_objext
25083 if { (ac_try="$ac_compile"
25084 case "(($ac_try" in
25085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25086   *) ac_try_echo=$ac_try;;
25087 esac
25088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25089   (eval "$ac_compile") 2>conftest.er1
25090   ac_status=$?
25091   grep -v '^ *+' conftest.er1 >conftest.err
25092   rm -f conftest.er1
25093   cat conftest.err >&5
25094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25095   (exit $ac_status); } && {
25096          test -z "$ac_c_werror_flag" ||
25097          test ! -s conftest.err
25098        } && test -s conftest.$ac_objext; then
25099   ac_hi=$ac_mid
25100 else
25101   echo "$as_me: failed program was:" >&5
25102 sed 's/^/| /' conftest.$ac_ext >&5
25103
25104         ac_lo=`expr '(' $ac_mid ')' + 1`
25105 fi
25106
25107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25108 done
25109 case $ac_lo in
25110 ?*) ac_cv_sizeof_long_long=$ac_lo;;
25111 '') if test "$ac_cv_type_long_long" = yes; then
25112      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25113 See \`config.log' for more details." >&5
25114 echo "$as_me: error: cannot compute sizeof (long long)
25115 See \`config.log' for more details." >&2;}
25116    { (exit 77); exit 77; }; }
25117    else
25118      ac_cv_sizeof_long_long=0
25119    fi ;;
25120 esac
25121 else
25122   cat >conftest.$ac_ext <<_ACEOF
25123 /* confdefs.h.  */
25124 _ACEOF
25125 cat confdefs.h >>conftest.$ac_ext
25126 cat >>conftest.$ac_ext <<_ACEOF
25127 /* end confdefs.h.  */
25128 $ac_includes_default
25129    typedef long long ac__type_sizeof_;
25130 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25131 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25132 #include <stdio.h>
25133 #include <stdlib.h>
25134 int
25135 main ()
25136 {
25137
25138   FILE *f = fopen ("conftest.val", "w");
25139   if (! f)
25140     return 1;
25141   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25142     {
25143       long int i = longval ();
25144       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25145         return 1;
25146       fprintf (f, "%ld\n", i);
25147     }
25148   else
25149     {
25150       unsigned long int i = ulongval ();
25151       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25152         return 1;
25153       fprintf (f, "%lu\n", i);
25154     }
25155   return ferror (f) || fclose (f) != 0;
25156
25157   ;
25158   return 0;
25159 }
25160 _ACEOF
25161 rm -f conftest$ac_exeext
25162 if { (ac_try="$ac_link"
25163 case "(($ac_try" in
25164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25165   *) ac_try_echo=$ac_try;;
25166 esac
25167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25168   (eval "$ac_link") 2>&5
25169   ac_status=$?
25170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25171   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25172   { (case "(($ac_try" in
25173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25174   *) ac_try_echo=$ac_try;;
25175 esac
25176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25177   (eval "$ac_try") 2>&5
25178   ac_status=$?
25179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25180   (exit $ac_status); }; }; then
25181   ac_cv_sizeof_long_long=`cat conftest.val`
25182 else
25183   echo "$as_me: program exited with status $ac_status" >&5
25184 echo "$as_me: failed program was:" >&5
25185 sed 's/^/| /' conftest.$ac_ext >&5
25186
25187 ( exit $ac_status )
25188 if test "$ac_cv_type_long_long" = yes; then
25189      { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
25190 See \`config.log' for more details." >&5
25191 echo "$as_me: error: cannot compute sizeof (long long)
25192 See \`config.log' for more details." >&2;}
25193    { (exit 77); exit 77; }; }
25194    else
25195      ac_cv_sizeof_long_long=0
25196    fi
25197 fi
25198 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25199 fi
25200 rm -f conftest.val
25201 fi
25202 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
25203 echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
25204
25205
25206
25207 cat >>confdefs.h <<_ACEOF
25208 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
25209 _ACEOF
25210
25211
25212 esac
25213
25214 { echo "$as_me:$LINENO: checking for wchar_t" >&5
25215 echo $ECHO_N "checking for wchar_t... $ECHO_C" >&6; }
25216 if test "${ac_cv_type_wchar_t+set}" = set; then
25217   echo $ECHO_N "(cached) $ECHO_C" >&6
25218 else
25219   cat >conftest.$ac_ext <<_ACEOF
25220 /* confdefs.h.  */
25221 _ACEOF
25222 cat confdefs.h >>conftest.$ac_ext
25223 cat >>conftest.$ac_ext <<_ACEOF
25224 /* end confdefs.h.  */
25225
25226         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25227         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25228         #  error "fake wchar_t"
25229         #endif
25230         #ifdef HAVE_WCHAR_H
25231         #  ifdef __CYGWIN__
25232         #    include <stddef.h>
25233         #  endif
25234         #  include <wchar.h>
25235         #endif
25236         #ifdef HAVE_STDLIB_H
25237         #  include <stdlib.h>
25238         #endif
25239         #include <stdio.h>
25240
25241
25242
25243 typedef wchar_t ac__type_new_;
25244 int
25245 main ()
25246 {
25247 if ((ac__type_new_ *) 0)
25248   return 0;
25249 if (sizeof (ac__type_new_))
25250   return 0;
25251   ;
25252   return 0;
25253 }
25254 _ACEOF
25255 rm -f conftest.$ac_objext
25256 if { (ac_try="$ac_compile"
25257 case "(($ac_try" in
25258   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25259   *) ac_try_echo=$ac_try;;
25260 esac
25261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25262   (eval "$ac_compile") 2>conftest.er1
25263   ac_status=$?
25264   grep -v '^ *+' conftest.er1 >conftest.err
25265   rm -f conftest.er1
25266   cat conftest.err >&5
25267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25268   (exit $ac_status); } && {
25269          test -z "$ac_c_werror_flag" ||
25270          test ! -s conftest.err
25271        } && test -s conftest.$ac_objext; then
25272   ac_cv_type_wchar_t=yes
25273 else
25274   echo "$as_me: failed program was:" >&5
25275 sed 's/^/| /' conftest.$ac_ext >&5
25276
25277         ac_cv_type_wchar_t=no
25278 fi
25279
25280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25281 fi
25282 { echo "$as_me:$LINENO: result: $ac_cv_type_wchar_t" >&5
25283 echo "${ECHO_T}$ac_cv_type_wchar_t" >&6; }
25284
25285 # The cast to long int works around a bug in the HP C Compiler
25286 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
25287 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
25288 # This bug is HP SR number 8606223364.
25289 { echo "$as_me:$LINENO: checking size of wchar_t" >&5
25290 echo $ECHO_N "checking size of wchar_t... $ECHO_C" >&6; }
25291 if test "${ac_cv_sizeof_wchar_t+set}" = set; then
25292   echo $ECHO_N "(cached) $ECHO_C" >&6
25293 else
25294   if test "$cross_compiling" = yes; then
25295   # Depending upon the size, compute the lo and hi bounds.
25296 cat >conftest.$ac_ext <<_ACEOF
25297 /* confdefs.h.  */
25298 _ACEOF
25299 cat confdefs.h >>conftest.$ac_ext
25300 cat >>conftest.$ac_ext <<_ACEOF
25301 /* end confdefs.h.  */
25302
25303         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25304         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25305         #  error "fake wchar_t"
25306         #endif
25307         #ifdef HAVE_WCHAR_H
25308         #  ifdef __CYGWIN__
25309         #    include <stddef.h>
25310         #  endif
25311         #  include <wchar.h>
25312         #endif
25313         #ifdef HAVE_STDLIB_H
25314         #  include <stdlib.h>
25315         #endif
25316         #include <stdio.h>
25317
25318
25319
25320    typedef wchar_t ac__type_sizeof_;
25321 int
25322 main ()
25323 {
25324 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
25325 test_array [0] = 0
25326
25327   ;
25328   return 0;
25329 }
25330 _ACEOF
25331 rm -f conftest.$ac_objext
25332 if { (ac_try="$ac_compile"
25333 case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25338   (eval "$ac_compile") 2>conftest.er1
25339   ac_status=$?
25340   grep -v '^ *+' conftest.er1 >conftest.err
25341   rm -f conftest.er1
25342   cat conftest.err >&5
25343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344   (exit $ac_status); } && {
25345          test -z "$ac_c_werror_flag" ||
25346          test ! -s conftest.err
25347        } && test -s conftest.$ac_objext; then
25348   ac_lo=0 ac_mid=0
25349   while :; do
25350     cat >conftest.$ac_ext <<_ACEOF
25351 /* confdefs.h.  */
25352 _ACEOF
25353 cat confdefs.h >>conftest.$ac_ext
25354 cat >>conftest.$ac_ext <<_ACEOF
25355 /* end confdefs.h.  */
25356
25357         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25358         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25359         #  error "fake wchar_t"
25360         #endif
25361         #ifdef HAVE_WCHAR_H
25362         #  ifdef __CYGWIN__
25363         #    include <stddef.h>
25364         #  endif
25365         #  include <wchar.h>
25366         #endif
25367         #ifdef HAVE_STDLIB_H
25368         #  include <stdlib.h>
25369         #endif
25370         #include <stdio.h>
25371
25372
25373
25374    typedef wchar_t ac__type_sizeof_;
25375 int
25376 main ()
25377 {
25378 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25379 test_array [0] = 0
25380
25381   ;
25382   return 0;
25383 }
25384 _ACEOF
25385 rm -f conftest.$ac_objext
25386 if { (ac_try="$ac_compile"
25387 case "(($ac_try" in
25388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389   *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392   (eval "$ac_compile") 2>conftest.er1
25393   ac_status=$?
25394   grep -v '^ *+' conftest.er1 >conftest.err
25395   rm -f conftest.er1
25396   cat conftest.err >&5
25397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25398   (exit $ac_status); } && {
25399          test -z "$ac_c_werror_flag" ||
25400          test ! -s conftest.err
25401        } && test -s conftest.$ac_objext; then
25402   ac_hi=$ac_mid; break
25403 else
25404   echo "$as_me: failed program was:" >&5
25405 sed 's/^/| /' conftest.$ac_ext >&5
25406
25407         ac_lo=`expr $ac_mid + 1`
25408                         if test $ac_lo -le $ac_mid; then
25409                           ac_lo= ac_hi=
25410                           break
25411                         fi
25412                         ac_mid=`expr 2 '*' $ac_mid + 1`
25413 fi
25414
25415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25416   done
25417 else
25418   echo "$as_me: failed program was:" >&5
25419 sed 's/^/| /' conftest.$ac_ext >&5
25420
25421         cat >conftest.$ac_ext <<_ACEOF
25422 /* confdefs.h.  */
25423 _ACEOF
25424 cat confdefs.h >>conftest.$ac_ext
25425 cat >>conftest.$ac_ext <<_ACEOF
25426 /* end confdefs.h.  */
25427
25428         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25429         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25430         #  error "fake wchar_t"
25431         #endif
25432         #ifdef HAVE_WCHAR_H
25433         #  ifdef __CYGWIN__
25434         #    include <stddef.h>
25435         #  endif
25436         #  include <wchar.h>
25437         #endif
25438         #ifdef HAVE_STDLIB_H
25439         #  include <stdlib.h>
25440         #endif
25441         #include <stdio.h>
25442
25443
25444
25445    typedef wchar_t ac__type_sizeof_;
25446 int
25447 main ()
25448 {
25449 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
25450 test_array [0] = 0
25451
25452   ;
25453   return 0;
25454 }
25455 _ACEOF
25456 rm -f conftest.$ac_objext
25457 if { (ac_try="$ac_compile"
25458 case "(($ac_try" in
25459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25460   *) ac_try_echo=$ac_try;;
25461 esac
25462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25463   (eval "$ac_compile") 2>conftest.er1
25464   ac_status=$?
25465   grep -v '^ *+' conftest.er1 >conftest.err
25466   rm -f conftest.er1
25467   cat conftest.err >&5
25468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469   (exit $ac_status); } && {
25470          test -z "$ac_c_werror_flag" ||
25471          test ! -s conftest.err
25472        } && test -s conftest.$ac_objext; then
25473   ac_hi=-1 ac_mid=-1
25474   while :; do
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 int
25501 main ()
25502 {
25503 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
25504 test_array [0] = 0
25505
25506   ;
25507   return 0;
25508 }
25509 _ACEOF
25510 rm -f conftest.$ac_objext
25511 if { (ac_try="$ac_compile"
25512 case "(($ac_try" in
25513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25514   *) ac_try_echo=$ac_try;;
25515 esac
25516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25517   (eval "$ac_compile") 2>conftest.er1
25518   ac_status=$?
25519   grep -v '^ *+' conftest.er1 >conftest.err
25520   rm -f conftest.er1
25521   cat conftest.err >&5
25522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25523   (exit $ac_status); } && {
25524          test -z "$ac_c_werror_flag" ||
25525          test ! -s conftest.err
25526        } && test -s conftest.$ac_objext; then
25527   ac_lo=$ac_mid; break
25528 else
25529   echo "$as_me: failed program was:" >&5
25530 sed 's/^/| /' conftest.$ac_ext >&5
25531
25532         ac_hi=`expr '(' $ac_mid ')' - 1`
25533                         if test $ac_mid -le $ac_hi; then
25534                           ac_lo= ac_hi=
25535                           break
25536                         fi
25537                         ac_mid=`expr 2 '*' $ac_mid`
25538 fi
25539
25540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25541   done
25542 else
25543   echo "$as_me: failed program was:" >&5
25544 sed 's/^/| /' conftest.$ac_ext >&5
25545
25546         ac_lo= ac_hi=
25547 fi
25548
25549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25550 fi
25551
25552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25553 # Binary search between lo and hi bounds.
25554 while test "x$ac_lo" != "x$ac_hi"; do
25555   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
25556   cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562
25563         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25564         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25565         #  error "fake wchar_t"
25566         #endif
25567         #ifdef HAVE_WCHAR_H
25568         #  ifdef __CYGWIN__
25569         #    include <stddef.h>
25570         #  endif
25571         #  include <wchar.h>
25572         #endif
25573         #ifdef HAVE_STDLIB_H
25574         #  include <stdlib.h>
25575         #endif
25576         #include <stdio.h>
25577
25578
25579
25580    typedef wchar_t ac__type_sizeof_;
25581 int
25582 main ()
25583 {
25584 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
25585 test_array [0] = 0
25586
25587   ;
25588   return 0;
25589 }
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595   *) ac_try_echo=$ac_try;;
25596 esac
25597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25598   (eval "$ac_compile") 2>conftest.er1
25599   ac_status=$?
25600   grep -v '^ *+' conftest.er1 >conftest.err
25601   rm -f conftest.er1
25602   cat conftest.err >&5
25603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25604   (exit $ac_status); } && {
25605          test -z "$ac_c_werror_flag" ||
25606          test ! -s conftest.err
25607        } && test -s conftest.$ac_objext; then
25608   ac_hi=$ac_mid
25609 else
25610   echo "$as_me: failed program was:" >&5
25611 sed 's/^/| /' conftest.$ac_ext >&5
25612
25613         ac_lo=`expr '(' $ac_mid ')' + 1`
25614 fi
25615
25616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25617 done
25618 case $ac_lo in
25619 ?*) ac_cv_sizeof_wchar_t=$ac_lo;;
25620 '') if test "$ac_cv_type_wchar_t" = yes; then
25621      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25622 See \`config.log' for more details." >&5
25623 echo "$as_me: error: cannot compute sizeof (wchar_t)
25624 See \`config.log' for more details." >&2;}
25625    { (exit 77); exit 77; }; }
25626    else
25627      ac_cv_sizeof_wchar_t=0
25628    fi ;;
25629 esac
25630 else
25631   cat >conftest.$ac_ext <<_ACEOF
25632 /* confdefs.h.  */
25633 _ACEOF
25634 cat confdefs.h >>conftest.$ac_ext
25635 cat >>conftest.$ac_ext <<_ACEOF
25636 /* end confdefs.h.  */
25637
25638         /* DJGPP's wchar_t is now a keyword in C++ (still not C though) */
25639         #if defined(__DJGPP__) && !( (__GNUC_MINOR__ >= 8 && __GNUC__ == 2 ) || __GNUC__ >= 3 )
25640         #  error "fake wchar_t"
25641         #endif
25642         #ifdef HAVE_WCHAR_H
25643         #  ifdef __CYGWIN__
25644         #    include <stddef.h>
25645         #  endif
25646         #  include <wchar.h>
25647         #endif
25648         #ifdef HAVE_STDLIB_H
25649         #  include <stdlib.h>
25650         #endif
25651         #include <stdio.h>
25652
25653
25654
25655    typedef wchar_t ac__type_sizeof_;
25656 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
25657 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
25658 #include <stdio.h>
25659 #include <stdlib.h>
25660 int
25661 main ()
25662 {
25663
25664   FILE *f = fopen ("conftest.val", "w");
25665   if (! f)
25666     return 1;
25667   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
25668     {
25669       long int i = longval ();
25670       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25671         return 1;
25672       fprintf (f, "%ld\n", i);
25673     }
25674   else
25675     {
25676       unsigned long int i = ulongval ();
25677       if (i != ((long int) (sizeof (ac__type_sizeof_))))
25678         return 1;
25679       fprintf (f, "%lu\n", i);
25680     }
25681   return ferror (f) || fclose (f) != 0;
25682
25683   ;
25684   return 0;
25685 }
25686 _ACEOF
25687 rm -f conftest$ac_exeext
25688 if { (ac_try="$ac_link"
25689 case "(($ac_try" in
25690   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25691   *) ac_try_echo=$ac_try;;
25692 esac
25693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25694   (eval "$ac_link") 2>&5
25695   ac_status=$?
25696   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25698   { (case "(($ac_try" in
25699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25700   *) ac_try_echo=$ac_try;;
25701 esac
25702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25703   (eval "$ac_try") 2>&5
25704   ac_status=$?
25705   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25706   (exit $ac_status); }; }; then
25707   ac_cv_sizeof_wchar_t=`cat conftest.val`
25708 else
25709   echo "$as_me: program exited with status $ac_status" >&5
25710 echo "$as_me: failed program was:" >&5
25711 sed 's/^/| /' conftest.$ac_ext >&5
25712
25713 ( exit $ac_status )
25714 if test "$ac_cv_type_wchar_t" = yes; then
25715      { { echo "$as_me:$LINENO: error: cannot compute sizeof (wchar_t)
25716 See \`config.log' for more details." >&5
25717 echo "$as_me: error: cannot compute sizeof (wchar_t)
25718 See \`config.log' for more details." >&2;}
25719    { (exit 77); exit 77; }; }
25720    else
25721      ac_cv_sizeof_wchar_t=0
25722    fi
25723 fi
25724 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25725 fi
25726 rm -f conftest.val
25727 fi
25728 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_wchar_t" >&5
25729 echo "${ECHO_T}$ac_cv_sizeof_wchar_t" >&6; }
25730
25731
25732
25733 cat >>confdefs.h <<_ACEOF
25734 #define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t
25735 _ACEOF
25736
25737
25738 if test "$ac_cv_sizeof_wchar_t" != "0"; then
25739     wxUSE_WCHAR_T=yes
25740 else
25741     wxUSE_WCHAR_T=no
25742 fi
25743
25744 { echo "$as_me:$LINENO: checking for va_copy" >&5
25745 echo $ECHO_N "checking for va_copy... $ECHO_C" >&6; }
25746 if test "${wx_cv_func_va_copy+set}" = set; then
25747   echo $ECHO_N "(cached) $ECHO_C" >&6
25748 else
25749
25750         ac_ext=cpp
25751 ac_cpp='$CXXCPP $CPPFLAGS'
25752 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25753 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25754 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25755
25756         cat >conftest.$ac_ext <<_ACEOF
25757
25758             #include <stdarg.h>
25759             void foo(char *f, ...)
25760             {
25761                 va_list ap1, ap2;
25762                 va_start(ap1, f);
25763                 va_copy(ap2, ap1);
25764                 va_end(ap2);
25765                 va_end(ap1);
25766             }
25767             int main()
25768             {
25769                 foo("hi", 17);
25770                 return 0;
25771             }
25772 _ACEOF
25773 rm -f conftest.$ac_objext conftest$ac_exeext
25774 if { (ac_try="$ac_link"
25775 case "(($ac_try" in
25776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25777   *) ac_try_echo=$ac_try;;
25778 esac
25779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25780   (eval "$ac_link") 2>conftest.er1
25781   ac_status=$?
25782   grep -v '^ *+' conftest.er1 >conftest.err
25783   rm -f conftest.er1
25784   cat conftest.err >&5
25785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25786   (exit $ac_status); } && {
25787          test -z "$ac_cxx_werror_flag" ||
25788          test ! -s conftest.err
25789        } && test -s conftest$ac_exeext &&
25790        $as_test_x conftest$ac_exeext; then
25791   wx_cv_func_va_copy=yes
25792 else
25793   echo "$as_me: failed program was:" >&5
25794 sed 's/^/| /' conftest.$ac_ext >&5
25795
25796         wx_cv_func_va_copy=no
25797
25798 fi
25799
25800 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25801       conftest$ac_exeext 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_func_va_copy" >&5
25812 echo "${ECHO_T}$wx_cv_func_va_copy" >&6; }
25813
25814 if test $wx_cv_func_va_copy = "yes"; then
25815     cat >>confdefs.h <<\_ACEOF
25816 #define HAVE_VA_COPY 1
25817 _ACEOF
25818
25819 else
25820         { echo "$as_me:$LINENO: checking if va_list can be copied by value" >&5
25821 echo $ECHO_N "checking if va_list can be copied by value... $ECHO_C" >&6; }
25822 if test "${wx_cv_type_va_list_lvalue+set}" = set; then
25823   echo $ECHO_N "(cached) $ECHO_C" >&6
25824 else
25825
25826             if test "$cross_compiling" = yes; then
25827                   wx_cv_type_va_list_lvalue=yes
25828
25829 else
25830   cat >conftest.$ac_ext <<_ACEOF
25831
25832                 #include <stdarg.h>
25833                 int foo(char *f, ...)
25834                 {
25835                     va_list ap1, ap2;
25836                     va_start(ap1, f);
25837                     ap2 = ap1;
25838                     if ( va_arg(ap1, int) != 17 || va_arg(ap2, int) != 17 )
25839                         return 1;
25840                     va_end(ap2);
25841                     va_end(ap1);
25842                     return 0;
25843                 }
25844                 int main()
25845                 {
25846                     return foo("hi", 17);
25847                 }
25848 _ACEOF
25849 rm -f conftest$ac_exeext
25850 if { (ac_try="$ac_link"
25851 case "(($ac_try" in
25852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25853   *) ac_try_echo=$ac_try;;
25854 esac
25855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25856   (eval "$ac_link") 2>&5
25857   ac_status=$?
25858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25859   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25860   { (case "(($ac_try" in
25861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25862   *) ac_try_echo=$ac_try;;
25863 esac
25864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25865   (eval "$ac_try") 2>&5
25866   ac_status=$?
25867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868   (exit $ac_status); }; }; then
25869   wx_cv_type_va_list_lvalue=yes
25870 else
25871   echo "$as_me: program exited with status $ac_status" >&5
25872 echo "$as_me: failed program was:" >&5
25873 sed 's/^/| /' conftest.$ac_ext >&5
25874
25875 ( exit $ac_status )
25876 wx_cv_type_va_list_lvalue=no
25877 fi
25878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25879 fi
25880
25881
25882
25883
25884 fi
25885 { echo "$as_me:$LINENO: result: $wx_cv_type_va_list_lvalue" >&5
25886 echo "${ECHO_T}$wx_cv_type_va_list_lvalue" >&6; }
25887
25888     if test $wx_cv_type_va_list_lvalue != "yes"; then
25889                         cat >>confdefs.h <<\_ACEOF
25890 #define VA_LIST_IS_ARRAY 1
25891 _ACEOF
25892
25893     fi
25894 fi
25895
25896 if test "$wxUSE_VARARG_MACROS" = "yes"; then
25897
25898 { echo "$as_me:$LINENO: checking whether the compiler supports variadic macros" >&5
25899 echo $ECHO_N "checking whether the compiler supports variadic macros... $ECHO_C" >&6; }
25900 if test "${wx_cv_have_variadic_macros+set}" = set; then
25901   echo $ECHO_N "(cached) $ECHO_C" >&6
25902 else
25903
25904                         ac_ext=cpp
25905 ac_cpp='$CXXCPP $CPPFLAGS'
25906 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25907 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25908 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25909
25910         cat >conftest.$ac_ext <<_ACEOF
25911 /* confdefs.h.  */
25912 _ACEOF
25913 cat confdefs.h >>conftest.$ac_ext
25914 cat >>conftest.$ac_ext <<_ACEOF
25915 /* end confdefs.h.  */
25916
25917                     #include <stdio.h>
25918                     #define test(fmt, ...) printf(fmt, __VA_ARGS__)
25919
25920 int
25921 main ()
25922 {
25923
25924                     test("%s %d %p", "test", 1, 0);
25925
25926
25927   ;
25928   return 0;
25929 }
25930 _ACEOF
25931 rm -f conftest.$ac_objext
25932 if { (ac_try="$ac_compile"
25933 case "(($ac_try" in
25934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935   *) ac_try_echo=$ac_try;;
25936 esac
25937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25938   (eval "$ac_compile") 2>conftest.er1
25939   ac_status=$?
25940   grep -v '^ *+' conftest.er1 >conftest.err
25941   rm -f conftest.er1
25942   cat conftest.err >&5
25943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
25944   (exit $ac_status); } && {
25945          test -z "$ac_cxx_werror_flag" ||
25946          test ! -s conftest.err
25947        } && test -s conftest.$ac_objext; then
25948   wx_cv_have_variadic_macros=yes
25949 else
25950   echo "$as_me: failed program was:" >&5
25951 sed 's/^/| /' conftest.$ac_ext >&5
25952
25953         wx_cv_have_variadic_macros=no
25954
25955 fi
25956
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958         ac_ext=c
25959 ac_cpp='$CPP $CPPFLAGS'
25960 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25961 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25962 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25963
25964
25965
25966 fi
25967 { echo "$as_me:$LINENO: result: $wx_cv_have_variadic_macros" >&5
25968 echo "${ECHO_T}$wx_cv_have_variadic_macros" >&6; }
25969
25970 if test $wx_cv_have_variadic_macros = "yes"; then
25971     cat >>confdefs.h <<\_ACEOF
25972 #define HAVE_VARIADIC_MACROS 1
25973 _ACEOF
25974
25975 fi
25976
25977 fi
25978 # Check whether --enable-largefile was given.
25979 if test "${enable_largefile+set}" = set; then
25980   enableval=$enable_largefile;
25981 fi
25982
25983 if test "$enable_largefile" != no; then
25984             wx_largefile=no
25985
25986     { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
25987 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
25988 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
25989   echo $ECHO_N "(cached) $ECHO_C" >&6
25990 else
25991
25992           cat >conftest.$ac_ext <<_ACEOF
25993 /* confdefs.h.  */
25994 _ACEOF
25995 cat confdefs.h >>conftest.$ac_ext
25996 cat >>conftest.$ac_ext <<_ACEOF
25997 /* end confdefs.h.  */
25998 #define _FILE_OFFSET_BITS 64
25999                           #include <sys/types.h>
26000 int
26001 main ()
26002 {
26003 typedef struct {
26004     unsigned int field: sizeof(off_t) == 8;
26005 } wxlf;
26006
26007   ;
26008   return 0;
26009 }
26010 _ACEOF
26011 rm -f conftest.$ac_objext
26012 if { (ac_try="$ac_compile"
26013 case "(($ac_try" in
26014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26015   *) ac_try_echo=$ac_try;;
26016 esac
26017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26018   (eval "$ac_compile") 2>conftest.er1
26019   ac_status=$?
26020   grep -v '^ *+' conftest.er1 >conftest.err
26021   rm -f conftest.er1
26022   cat conftest.err >&5
26023   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26024   (exit $ac_status); } && {
26025          test -z "$ac_c_werror_flag" ||
26026          test ! -s conftest.err
26027        } && test -s conftest.$ac_objext; then
26028   ac_cv_sys_file_offset_bits=64
26029 else
26030   echo "$as_me: failed program was:" >&5
26031 sed 's/^/| /' conftest.$ac_ext >&5
26032
26033         ac_cv_sys_file_offset_bits=no
26034 fi
26035
26036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26037
26038
26039 fi
26040 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
26041 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
26042
26043     if test "$ac_cv_sys_file_offset_bits" != no; then
26044         wx_largefile=yes
26045         cat >>confdefs.h <<_ACEOF
26046 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
26047 _ACEOF
26048
26049     fi
26050
26051     if test "x$wx_largefile" != "xyes"; then
26052
26053     { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
26054 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
26055 if test "${ac_cv_sys_large_files+set}" = set; then
26056   echo $ECHO_N "(cached) $ECHO_C" >&6
26057 else
26058
26059           cat >conftest.$ac_ext <<_ACEOF
26060 /* confdefs.h.  */
26061 _ACEOF
26062 cat confdefs.h >>conftest.$ac_ext
26063 cat >>conftest.$ac_ext <<_ACEOF
26064 /* end confdefs.h.  */
26065 #define _LARGE_FILES 1
26066                           #include <sys/types.h>
26067 int
26068 main ()
26069 {
26070 typedef struct {
26071     unsigned int field: sizeof(off_t) == 8;
26072 } wxlf;
26073
26074   ;
26075   return 0;
26076 }
26077 _ACEOF
26078 rm -f conftest.$ac_objext
26079 if { (ac_try="$ac_compile"
26080 case "(($ac_try" in
26081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26082   *) ac_try_echo=$ac_try;;
26083 esac
26084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26085   (eval "$ac_compile") 2>conftest.er1
26086   ac_status=$?
26087   grep -v '^ *+' conftest.er1 >conftest.err
26088   rm -f conftest.er1
26089   cat conftest.err >&5
26090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091   (exit $ac_status); } && {
26092          test -z "$ac_c_werror_flag" ||
26093          test ! -s conftest.err
26094        } && test -s conftest.$ac_objext; then
26095   ac_cv_sys_large_files=1
26096 else
26097   echo "$as_me: failed program was:" >&5
26098 sed 's/^/| /' conftest.$ac_ext >&5
26099
26100         ac_cv_sys_large_files=no
26101 fi
26102
26103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26104
26105
26106 fi
26107 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
26108 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
26109
26110     if test "$ac_cv_sys_large_files" != no; then
26111         wx_largefile=yes
26112         cat >>confdefs.h <<_ACEOF
26113 #define _LARGE_FILES $ac_cv_sys_large_files
26114 _ACEOF
26115
26116     fi
26117
26118     fi
26119
26120     { echo "$as_me:$LINENO: checking if large file support is available" >&5
26121 echo $ECHO_N "checking if large file support is available... $ECHO_C" >&6; }
26122     if test "x$wx_largefile" = "xyes"; then
26123         cat >>confdefs.h <<\_ACEOF
26124 #define HAVE_LARGEFILE_SUPPORT 1
26125 _ACEOF
26126
26127     fi
26128     { echo "$as_me:$LINENO: result: $wx_largefile" >&5
26129 echo "${ECHO_T}$wx_largefile" >&6; }
26130 fi
26131
26132
26133 if test "x$wx_largefile" = "xyes"; then
26134     if test "x$ac_cv_sys_file_offset_bits" = "x64"; then
26135         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES"
26136
26137                                                         if test "$USE_HPUX" = 1 -a "$GXX" = "yes"; then
26138             { echo "$as_me:$LINENO: checking if -D__STDC_EXT__ is required" >&5
26139 echo $ECHO_N "checking if -D__STDC_EXT__ is required... $ECHO_C" >&6; }
26140 if test "${wx_cv_STDC_EXT_required+set}" = set; then
26141   echo $ECHO_N "(cached) $ECHO_C" >&6
26142 else
26143
26144                     ac_ext=cpp
26145 ac_cpp='$CXXCPP $CPPFLAGS'
26146 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26147 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26148 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26149
26150                     cat >conftest.$ac_ext <<_ACEOF
26151 /* confdefs.h.  */
26152 _ACEOF
26153 cat confdefs.h >>conftest.$ac_ext
26154 cat >>conftest.$ac_ext <<_ACEOF
26155 /* end confdefs.h.  */
26156
26157 int
26158 main ()
26159 {
26160
26161                             #ifndef __STDC_EXT__
26162                                 choke me
26163                             #endif
26164
26165   ;
26166   return 0;
26167 }
26168 _ACEOF
26169 rm -f conftest.$ac_objext
26170 if { (ac_try="$ac_compile"
26171 case "(($ac_try" in
26172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26173   *) ac_try_echo=$ac_try;;
26174 esac
26175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26176   (eval "$ac_compile") 2>conftest.er1
26177   ac_status=$?
26178   grep -v '^ *+' conftest.er1 >conftest.err
26179   rm -f conftest.er1
26180   cat conftest.err >&5
26181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182   (exit $ac_status); } && {
26183          test -z "$ac_cxx_werror_flag" ||
26184          test ! -s conftest.err
26185        } && test -s conftest.$ac_objext; then
26186   wx_cv_STDC_EXT_required=no
26187 else
26188   echo "$as_me: failed program was:" >&5
26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191         wx_cv_STDC_EXT_required=yes
26192
26193 fi
26194
26195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26196                     ac_ext=c
26197 ac_cpp='$CPP $CPPFLAGS'
26198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26201
26202
26203
26204 fi
26205 { echo "$as_me:$LINENO: result: $wx_cv_STDC_EXT_required" >&5
26206 echo "${ECHO_T}$wx_cv_STDC_EXT_required" >&6; }
26207             if test "x$wx_cv_STDC_EXT_required" = "xyes"; then
26208                 WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -D__STDC_EXT__"
26209             fi
26210         fi
26211     else
26212         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGE_FILES"
26213     fi
26214         { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
26215 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
26216 if test "${ac_cv_sys_largefile_source+set}" = set; then
26217   echo $ECHO_N "(cached) $ECHO_C" >&6
26218 else
26219   while :; do
26220   cat >conftest.$ac_ext <<_ACEOF
26221 /* confdefs.h.  */
26222 _ACEOF
26223 cat confdefs.h >>conftest.$ac_ext
26224 cat >>conftest.$ac_ext <<_ACEOF
26225 /* end confdefs.h.  */
26226 #include <sys/types.h> /* for off_t */
26227      #include <stdio.h>
26228 int
26229 main ()
26230 {
26231 int (*fp) (FILE *, off_t, int) = fseeko;
26232      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26233   ;
26234   return 0;
26235 }
26236 _ACEOF
26237 rm -f conftest.$ac_objext conftest$ac_exeext
26238 if { (ac_try="$ac_link"
26239 case "(($ac_try" in
26240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26241   *) ac_try_echo=$ac_try;;
26242 esac
26243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26244   (eval "$ac_link") 2>conftest.er1
26245   ac_status=$?
26246   grep -v '^ *+' conftest.er1 >conftest.err
26247   rm -f conftest.er1
26248   cat conftest.err >&5
26249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26250   (exit $ac_status); } && {
26251          test -z "$ac_c_werror_flag" ||
26252          test ! -s conftest.err
26253        } && test -s conftest$ac_exeext &&
26254        $as_test_x conftest$ac_exeext; then
26255   ac_cv_sys_largefile_source=no; break
26256 else
26257   echo "$as_me: failed program was:" >&5
26258 sed 's/^/| /' conftest.$ac_ext >&5
26259
26260
26261 fi
26262
26263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26264       conftest$ac_exeext conftest.$ac_ext
26265   cat >conftest.$ac_ext <<_ACEOF
26266 /* confdefs.h.  */
26267 _ACEOF
26268 cat confdefs.h >>conftest.$ac_ext
26269 cat >>conftest.$ac_ext <<_ACEOF
26270 /* end confdefs.h.  */
26271 #define _LARGEFILE_SOURCE 1
26272 #include <sys/types.h> /* for off_t */
26273      #include <stdio.h>
26274 int
26275 main ()
26276 {
26277 int (*fp) (FILE *, off_t, int) = fseeko;
26278      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
26279   ;
26280   return 0;
26281 }
26282 _ACEOF
26283 rm -f conftest.$ac_objext conftest$ac_exeext
26284 if { (ac_try="$ac_link"
26285 case "(($ac_try" in
26286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26287   *) ac_try_echo=$ac_try;;
26288 esac
26289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26290   (eval "$ac_link") 2>conftest.er1
26291   ac_status=$?
26292   grep -v '^ *+' conftest.er1 >conftest.err
26293   rm -f conftest.er1
26294   cat conftest.err >&5
26295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296   (exit $ac_status); } && {
26297          test -z "$ac_c_werror_flag" ||
26298          test ! -s conftest.err
26299        } && test -s conftest$ac_exeext &&
26300        $as_test_x conftest$ac_exeext; then
26301   ac_cv_sys_largefile_source=1; break
26302 else
26303   echo "$as_me: failed program was:" >&5
26304 sed 's/^/| /' conftest.$ac_ext >&5
26305
26306
26307 fi
26308
26309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26310       conftest$ac_exeext conftest.$ac_ext
26311   ac_cv_sys_largefile_source=unknown
26312   break
26313 done
26314 fi
26315 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
26316 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
26317 case $ac_cv_sys_largefile_source in #(
26318   no | unknown) ;;
26319   *)
26320 cat >>confdefs.h <<_ACEOF
26321 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
26322 _ACEOF
26323 ;;
26324 esac
26325 rm -f conftest*
26326
26327 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
26328 # in glibc 2.1.3, but that breaks too many other things.
26329 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
26330 if test $ac_cv_sys_largefile_source != unknown; then
26331
26332 cat >>confdefs.h <<\_ACEOF
26333 #define HAVE_FSEEKO 1
26334 _ACEOF
26335
26336 fi
26337
26338     if test "$ac_cv_sys_largefile_source" != no; then
26339         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_LARGEFILE_SOURCE=$ac_cv_sys_largefile_source"
26340     fi
26341 fi
26342
26343 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
26344 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
26345 if test "${ac_cv_c_bigendian+set}" = set; then
26346   echo $ECHO_N "(cached) $ECHO_C" >&6
26347 else
26348   ac_cv_c_bigendian=unknown
26349 # See if sys/param.h defines the BYTE_ORDER macro.
26350 cat >conftest.$ac_ext <<_ACEOF
26351 /* confdefs.h.  */
26352 _ACEOF
26353 cat confdefs.h >>conftest.$ac_ext
26354 cat >>conftest.$ac_ext <<_ACEOF
26355 /* end confdefs.h.  */
26356 #include <sys/types.h>
26357 #include <sys/param.h>
26358 int
26359 main ()
26360 {
26361
26362 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
26363  bogus endian macros
26364 #endif
26365   ;
26366   return 0;
26367 }
26368 _ACEOF
26369 rm -f conftest.$ac_objext
26370 if { (ac_try="$ac_compile"
26371 case "(($ac_try" in
26372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26373   *) ac_try_echo=$ac_try;;
26374 esac
26375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26376   (eval "$ac_compile") 2>conftest.er1
26377   ac_status=$?
26378   grep -v '^ *+' conftest.er1 >conftest.err
26379   rm -f conftest.er1
26380   cat conftest.err >&5
26381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26382   (exit $ac_status); } && {
26383          test -z "$ac_c_werror_flag" ||
26384          test ! -s conftest.err
26385        } && test -s conftest.$ac_objext; then
26386   # It does; now see whether it defined to BIG_ENDIAN or not.
26387 cat >conftest.$ac_ext <<_ACEOF
26388 /* confdefs.h.  */
26389 _ACEOF
26390 cat confdefs.h >>conftest.$ac_ext
26391 cat >>conftest.$ac_ext <<_ACEOF
26392 /* end confdefs.h.  */
26393 #include <sys/types.h>
26394 #include <sys/param.h>
26395 int
26396 main ()
26397 {
26398
26399 #if BYTE_ORDER != BIG_ENDIAN
26400  not big endian
26401 #endif
26402   ;
26403   return 0;
26404 }
26405 _ACEOF
26406 rm -f conftest.$ac_objext
26407 if { (ac_try="$ac_compile"
26408 case "(($ac_try" in
26409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26410   *) ac_try_echo=$ac_try;;
26411 esac
26412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26413   (eval "$ac_compile") 2>conftest.er1
26414   ac_status=$?
26415   grep -v '^ *+' conftest.er1 >conftest.err
26416   rm -f conftest.er1
26417   cat conftest.err >&5
26418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26419   (exit $ac_status); } && {
26420          test -z "$ac_c_werror_flag" ||
26421          test ! -s conftest.err
26422        } && test -s conftest.$ac_objext; then
26423   ac_cv_c_bigendian=yes
26424 else
26425   echo "$as_me: failed program was:" >&5
26426 sed 's/^/| /' conftest.$ac_ext >&5
26427
26428         ac_cv_c_bigendian=no
26429 fi
26430
26431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 else
26433   echo "$as_me: failed program was:" >&5
26434 sed 's/^/| /' conftest.$ac_ext >&5
26435
26436
26437 fi
26438
26439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26440 if test $ac_cv_c_bigendian = unknown; then
26441 if test "$cross_compiling" = yes; then
26442   ac_cv_c_bigendian=unknown
26443 else
26444   cat >conftest.$ac_ext <<_ACEOF
26445 /* confdefs.h.  */
26446 _ACEOF
26447 cat confdefs.h >>conftest.$ac_ext
26448 cat >>conftest.$ac_ext <<_ACEOF
26449 /* end confdefs.h.  */
26450 main () {
26451   /* Are we little or big endian?  From Harbison&Steele.  */
26452   union
26453   {
26454     long l;
26455     char c[sizeof (long)];
26456   } u;
26457   u.l = 1;
26458   exit (u.c[sizeof (long) - 1] == 1);
26459 }
26460 _ACEOF
26461 rm -f conftest$ac_exeext
26462 if { (ac_try="$ac_link"
26463 case "(($ac_try" in
26464   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26465   *) ac_try_echo=$ac_try;;
26466 esac
26467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26468   (eval "$ac_link") 2>&5
26469   ac_status=$?
26470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26471   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26472   { (case "(($ac_try" in
26473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26474   *) ac_try_echo=$ac_try;;
26475 esac
26476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26477   (eval "$ac_try") 2>&5
26478   ac_status=$?
26479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26480   (exit $ac_status); }; }; then
26481   ac_cv_c_bigendian=no
26482 else
26483   echo "$as_me: program exited with status $ac_status" >&5
26484 echo "$as_me: failed program was:" >&5
26485 sed 's/^/| /' conftest.$ac_ext >&5
26486
26487 ( exit $ac_status )
26488 ac_cv_c_bigendian=yes
26489 fi
26490 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26491 fi
26492
26493
26494 fi
26495 fi
26496 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
26497 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
26498 if test $ac_cv_c_bigendian = unknown; then
26499   { 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
26500 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;}
26501 fi
26502 if test $ac_cv_c_bigendian = yes; then
26503   cat >>confdefs.h <<\_ACEOF
26504 #define WORDS_BIGENDIAN 1
26505 _ACEOF
26506
26507 fi
26508
26509
26510
26511
26512     ac_ext=cpp
26513 ac_cpp='$CXXCPP $CPPFLAGS'
26514 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26515 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26516 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26517
26518
26519
26520 for ac_header in iostream
26521 do
26522 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
26524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
26525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
26526   echo $ECHO_N "(cached) $ECHO_C" >&6
26527 else
26528   cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h.  */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h.  */
26534
26535
26536 #include <$ac_header>
26537 _ACEOF
26538 rm -f conftest.$ac_objext
26539 if { (ac_try="$ac_compile"
26540 case "(($ac_try" in
26541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26542   *) ac_try_echo=$ac_try;;
26543 esac
26544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26545   (eval "$ac_compile") 2>conftest.er1
26546   ac_status=$?
26547   grep -v '^ *+' conftest.er1 >conftest.err
26548   rm -f conftest.er1
26549   cat conftest.err >&5
26550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26551   (exit $ac_status); } && {
26552          test -z "$ac_cxx_werror_flag" ||
26553          test ! -s conftest.err
26554        } && test -s conftest.$ac_objext; then
26555   eval "$as_ac_Header=yes"
26556 else
26557   echo "$as_me: failed program was:" >&5
26558 sed 's/^/| /' conftest.$ac_ext >&5
26559
26560         eval "$as_ac_Header=no"
26561 fi
26562
26563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26564 fi
26565 ac_res=`eval echo '${'$as_ac_Header'}'`
26566                { echo "$as_me:$LINENO: result: $ac_res" >&5
26567 echo "${ECHO_T}$ac_res" >&6; }
26568 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26569   cat >>confdefs.h <<_ACEOF
26570 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26571 _ACEOF
26572
26573 fi
26574
26575 done
26576
26577
26578     if test "$ac_cv_header_iostream" = "yes" ; then
26579       :
26580     else
26581       cat >>confdefs.h <<\_ACEOF
26582 #define wxUSE_IOSTREAMH 1
26583 _ACEOF
26584
26585     fi
26586
26587     ac_ext=c
26588 ac_cpp='$CPP $CPPFLAGS'
26589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26592
26593
26594
26595
26596   { echo "$as_me:$LINENO: checking if C++ compiler supports bool" >&5
26597 echo $ECHO_N "checking if C++ compiler supports bool... $ECHO_C" >&6; }
26598 if test "${wx_cv_cpp_bool+set}" = set; then
26599   echo $ECHO_N "(cached) $ECHO_C" >&6
26600 else
26601
26602
26603     ac_ext=cpp
26604 ac_cpp='$CXXCPP $CPPFLAGS'
26605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26608
26609
26610     cat >conftest.$ac_ext <<_ACEOF
26611 /* confdefs.h.  */
26612 _ACEOF
26613 cat confdefs.h >>conftest.$ac_ext
26614 cat >>conftest.$ac_ext <<_ACEOF
26615 /* end confdefs.h.  */
26616
26617
26618 int
26619 main ()
26620 {
26621
26622         bool b = true;
26623
26624         return 0;
26625
26626   ;
26627   return 0;
26628 }
26629 _ACEOF
26630 rm -f conftest.$ac_objext
26631 if { (ac_try="$ac_compile"
26632 case "(($ac_try" in
26633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26634   *) ac_try_echo=$ac_try;;
26635 esac
26636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26637   (eval "$ac_compile") 2>conftest.er1
26638   ac_status=$?
26639   grep -v '^ *+' conftest.er1 >conftest.err
26640   rm -f conftest.er1
26641   cat conftest.err >&5
26642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26643   (exit $ac_status); } && {
26644          test -z "$ac_cxx_werror_flag" ||
26645          test ! -s conftest.err
26646        } && test -s conftest.$ac_objext; then
26647
26648         wx_cv_cpp_bool=yes
26649
26650 else
26651   echo "$as_me: failed program was:" >&5
26652 sed 's/^/| /' conftest.$ac_ext >&5
26653
26654
26655         wx_cv_cpp_bool=no
26656
26657
26658 fi
26659
26660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26661
26662     ac_ext=c
26663 ac_cpp='$CPP $CPPFLAGS'
26664 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26665 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26666 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26667
26668
26669 fi
26670 { echo "$as_me:$LINENO: result: $wx_cv_cpp_bool" >&5
26671 echo "${ECHO_T}$wx_cv_cpp_bool" >&6; }
26672
26673   if test "$wx_cv_cpp_bool" = "yes"; then
26674     cat >>confdefs.h <<\_ACEOF
26675 #define HAVE_BOOL 1
26676 _ACEOF
26677
26678   fi
26679
26680
26681
26682   { echo "$as_me:$LINENO: checking if C++ compiler supports the explicit keyword" >&5
26683 echo $ECHO_N "checking if C++ compiler supports the explicit keyword... $ECHO_C" >&6; }
26684 if test "${wx_cv_explicit+set}" = set; then
26685   echo $ECHO_N "(cached) $ECHO_C" >&6
26686 else
26687
26688
26689     ac_ext=cpp
26690 ac_cpp='$CXXCPP $CPPFLAGS'
26691 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26692 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26693 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26694
26695
26696             cat >conftest.$ac_ext <<_ACEOF
26697 /* confdefs.h.  */
26698 _ACEOF
26699 cat confdefs.h >>conftest.$ac_ext
26700 cat >>conftest.$ac_ext <<_ACEOF
26701 /* end confdefs.h.  */
26702
26703         class Foo { public: explicit Foo(int) {} };
26704
26705 int
26706 main ()
26707 {
26708
26709         return 0;
26710
26711   ;
26712   return 0;
26713 }
26714 _ACEOF
26715 rm -f conftest.$ac_objext
26716 if { (ac_try="$ac_compile"
26717 case "(($ac_try" in
26718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26719   *) ac_try_echo=$ac_try;;
26720 esac
26721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26722   (eval "$ac_compile") 2>conftest.er1
26723   ac_status=$?
26724   grep -v '^ *+' conftest.er1 >conftest.err
26725   rm -f conftest.er1
26726   cat conftest.err >&5
26727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26728   (exit $ac_status); } && {
26729          test -z "$ac_cxx_werror_flag" ||
26730          test ! -s conftest.err
26731        } && test -s conftest.$ac_objext; then
26732
26733         cat >conftest.$ac_ext <<_ACEOF
26734 /* confdefs.h.  */
26735 _ACEOF
26736 cat confdefs.h >>conftest.$ac_ext
26737 cat >>conftest.$ac_ext <<_ACEOF
26738 /* end confdefs.h.  */
26739
26740                 class Foo { public: explicit Foo(int) {} };
26741                 static void TakeFoo(const Foo& foo) { }
26742
26743 int
26744 main ()
26745 {
26746
26747                 TakeFoo(17);
26748                 return 0;
26749
26750   ;
26751   return 0;
26752 }
26753 _ACEOF
26754 rm -f conftest.$ac_objext
26755 if { (ac_try="$ac_compile"
26756 case "(($ac_try" in
26757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26758   *) ac_try_echo=$ac_try;;
26759 esac
26760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26761   (eval "$ac_compile") 2>conftest.er1
26762   ac_status=$?
26763   grep -v '^ *+' conftest.er1 >conftest.err
26764   rm -f conftest.er1
26765   cat conftest.err >&5
26766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26767   (exit $ac_status); } && {
26768          test -z "$ac_cxx_werror_flag" ||
26769          test ! -s conftest.err
26770        } && test -s conftest.$ac_objext; then
26771   wx_cv_explicit=no
26772 else
26773   echo "$as_me: failed program was:" >&5
26774 sed 's/^/| /' conftest.$ac_ext >&5
26775
26776         wx_cv_explicit=yes
26777
26778 fi
26779
26780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26781
26782 else
26783   echo "$as_me: failed program was:" >&5
26784 sed 's/^/| /' conftest.$ac_ext >&5
26785
26786         wx_cv_explicit=no
26787
26788 fi
26789
26790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26791
26792     ac_ext=c
26793 ac_cpp='$CPP $CPPFLAGS'
26794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26797
26798
26799 fi
26800 { echo "$as_me:$LINENO: result: $wx_cv_explicit" >&5
26801 echo "${ECHO_T}$wx_cv_explicit" >&6; }
26802
26803   if test "$wx_cv_explicit" = "yes"; then
26804     cat >>confdefs.h <<\_ACEOF
26805 #define HAVE_EXPLICIT 1
26806 _ACEOF
26807
26808   fi
26809
26810
26811 { echo "$as_me:$LINENO: checking whether the compiler supports const_cast<>" >&5
26812 echo $ECHO_N "checking whether the compiler supports const_cast<>... $ECHO_C" >&6; }
26813 if test "${ac_cv_cxx_const_cast+set}" = set; then
26814   echo $ECHO_N "(cached) $ECHO_C" >&6
26815 else
26816
26817  ac_ext=cpp
26818 ac_cpp='$CXXCPP $CPPFLAGS'
26819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26822
26823  cat >conftest.$ac_ext <<_ACEOF
26824 /* confdefs.h.  */
26825 _ACEOF
26826 cat confdefs.h >>conftest.$ac_ext
26827 cat >>conftest.$ac_ext <<_ACEOF
26828 /* end confdefs.h.  */
26829
26830 int
26831 main ()
26832 {
26833 int x = 0;const int& y = x;int& z = const_cast<int&>(y);return z;
26834   ;
26835   return 0;
26836 }
26837 _ACEOF
26838 rm -f conftest.$ac_objext
26839 if { (ac_try="$ac_compile"
26840 case "(($ac_try" in
26841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26842   *) ac_try_echo=$ac_try;;
26843 esac
26844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26845   (eval "$ac_compile") 2>conftest.er1
26846   ac_status=$?
26847   grep -v '^ *+' conftest.er1 >conftest.err
26848   rm -f conftest.er1
26849   cat conftest.err >&5
26850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851   (exit $ac_status); } && {
26852          test -z "$ac_cxx_werror_flag" ||
26853          test ! -s conftest.err
26854        } && test -s conftest.$ac_objext; then
26855   ac_cv_cxx_const_cast=yes
26856 else
26857   echo "$as_me: failed program was:" >&5
26858 sed 's/^/| /' conftest.$ac_ext >&5
26859
26860         ac_cv_cxx_const_cast=no
26861 fi
26862
26863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26864  ac_ext=c
26865 ac_cpp='$CPP $CPPFLAGS'
26866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26869
26870
26871 fi
26872 { echo "$as_me:$LINENO: result: $ac_cv_cxx_const_cast" >&5
26873 echo "${ECHO_T}$ac_cv_cxx_const_cast" >&6; }
26874 if test "$ac_cv_cxx_const_cast" = yes; then
26875
26876 cat >>confdefs.h <<\_ACEOF
26877 #define HAVE_CONST_CAST
26878 _ACEOF
26879
26880 fi
26881
26882 { echo "$as_me:$LINENO: checking whether the compiler supports reinterpret_cast<>" >&5
26883 echo $ECHO_N "checking whether the compiler supports reinterpret_cast<>... $ECHO_C" >&6; }
26884 if test "${ac_cv_cxx_reinterpret_cast+set}" = set; then
26885   echo $ECHO_N "(cached) $ECHO_C" >&6
26886 else
26887
26888  ac_ext=cpp
26889 ac_cpp='$CXXCPP $CPPFLAGS'
26890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26893
26894  cat >conftest.$ac_ext <<_ACEOF
26895 /* confdefs.h.  */
26896 _ACEOF
26897 cat confdefs.h >>conftest.$ac_ext
26898 cat >>conftest.$ac_ext <<_ACEOF
26899 /* end confdefs.h.  */
26900 #include <typeinfo>
26901 class Base { public : Base () {} virtual void f () = 0;};
26902 class Derived : public Base { public : Derived () {} virtual void f () {} };
26903 class Unrelated { public : Unrelated () {} };
26904 int g (Unrelated&) { return 0; }
26905 int
26906 main ()
26907 {
26908
26909 Derived d;Base& b=d;Unrelated& e=reinterpret_cast<Unrelated&>(b);return g(e);
26910   ;
26911   return 0;
26912 }
26913 _ACEOF
26914 rm -f conftest.$ac_objext
26915 if { (ac_try="$ac_compile"
26916 case "(($ac_try" in
26917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26918   *) ac_try_echo=$ac_try;;
26919 esac
26920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26921   (eval "$ac_compile") 2>conftest.er1
26922   ac_status=$?
26923   grep -v '^ *+' conftest.er1 >conftest.err
26924   rm -f conftest.er1
26925   cat conftest.err >&5
26926   echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927   (exit $ac_status); } && {
26928          test -z "$ac_cxx_werror_flag" ||
26929          test ! -s conftest.err
26930        } && test -s conftest.$ac_objext; then
26931   ac_cv_cxx_reinterpret_cast=yes
26932 else
26933   echo "$as_me: failed program was:" >&5
26934 sed 's/^/| /' conftest.$ac_ext >&5
26935
26936         ac_cv_cxx_reinterpret_cast=no
26937 fi
26938
26939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26940  ac_ext=c
26941 ac_cpp='$CPP $CPPFLAGS'
26942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
26945
26946
26947 fi
26948 { echo "$as_me:$LINENO: result: $ac_cv_cxx_reinterpret_cast" >&5
26949 echo "${ECHO_T}$ac_cv_cxx_reinterpret_cast" >&6; }
26950 if test "$ac_cv_cxx_reinterpret_cast" = yes; then
26951
26952 cat >>confdefs.h <<\_ACEOF
26953 #define HAVE_REINTERPRET_CAST
26954 _ACEOF
26955
26956 fi
26957
26958 { echo "$as_me:$LINENO: checking whether the compiler supports static_cast<>" >&5
26959 echo $ECHO_N "checking whether the compiler supports static_cast<>... $ECHO_C" >&6; }
26960 if test "${ac_cv_cxx_static_cast+set}" = set; then
26961   echo $ECHO_N "(cached) $ECHO_C" >&6
26962 else
26963
26964  ac_ext=cpp
26965 ac_cpp='$CXXCPP $CPPFLAGS'
26966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26969
26970  cat >conftest.$ac_ext <<_ACEOF
26971 /* confdefs.h.  */
26972 _ACEOF
26973 cat confdefs.h >>conftest.$ac_ext
26974 cat >>conftest.$ac_ext <<_ACEOF
26975 /* end confdefs.h.  */
26976 #include <typeinfo>
26977 class Base { public : Base () {} virtual void f () = 0; };
26978 class Derived : public Base { public : Derived () {} virtual void f () {} };
26979 int g (Derived&) { return 0; }
26980 int
26981 main ()
26982 {
26983
26984 Derived d; Base& b = d; Derived& s = static_cast<Derived&> (b); return g (s);
26985   ;
26986   return 0;
26987 }
26988 _ACEOF
26989 rm -f conftest.$ac_objext
26990 if { (ac_try="$ac_compile"
26991 case "(($ac_try" in
26992   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26993   *) ac_try_echo=$ac_try;;
26994 esac
26995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
26996   (eval "$ac_compile") 2>conftest.er1
26997   ac_status=$?
26998   grep -v '^ *+' conftest.er1 >conftest.err
26999   rm -f conftest.er1
27000   cat conftest.err >&5
27001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27002   (exit $ac_status); } && {
27003          test -z "$ac_cxx_werror_flag" ||
27004          test ! -s conftest.err
27005        } && test -s conftest.$ac_objext; then
27006   ac_cv_cxx_static_cast=yes
27007 else
27008   echo "$as_me: failed program was:" >&5
27009 sed 's/^/| /' conftest.$ac_ext >&5
27010
27011         ac_cv_cxx_static_cast=no
27012 fi
27013
27014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27015  ac_ext=c
27016 ac_cpp='$CPP $CPPFLAGS'
27017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27020
27021
27022 fi
27023 { echo "$as_me:$LINENO: result: $ac_cv_cxx_static_cast" >&5
27024 echo "${ECHO_T}$ac_cv_cxx_static_cast" >&6; }
27025 if test "$ac_cv_cxx_static_cast" = yes; then
27026
27027 cat >>confdefs.h <<\_ACEOF
27028 #define HAVE_STATIC_CAST
27029 _ACEOF
27030
27031 fi
27032
27033
27034 if test "x$SUNCXX" = xyes; then
27035     CXXFLAGS="-features=tmplife $CXXFLAGS"
27036 fi
27037
27038 if test "x$SUNCC" = xyes; then
27039     CFLAGS="-erroff=E_NO_EXPLICIT_TYPE_GIVEN $CFLAGS"
27040 fi
27041
27042 if test "x$SGICC" = "xyes"; then
27043     CFLAGS="-woff 3970 $CFLAGS"
27044 fi
27045 if test "x$SGICXX" = "xyes"; then
27046     CXXFLAGS="-woff 3970 $CXXFLAGS"
27047 fi
27048
27049 if test "x$HPCC" = "xyes"; then
27050                     CFLAGS="+W 2011,2450 $CFLAGS"
27051 fi
27052 if test "x$HPCXX" = "xyes"; then
27053             CXXFLAGS="+W 2340 $CXXFLAGS"
27054 fi
27055
27056 if test "x$COMPAQCXX" = "xyes"; then
27057                                 CXXFLAGS="-w0 -msg_disable basclsnondto,unrimpret,intconlosbit"
27058 fi
27059
27060 ac_ext=cpp
27061 ac_cpp='$CXXCPP $CPPFLAGS'
27062 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27063 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27064 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27065
27066
27067 if test "$wxUSE_STD_STRING" = "yes" -o "$wxUSE_STL" = "yes"; then
27068     if test "$wxUSE_UNICODE" = "yes"; then
27069         std_string="std::wstring"
27070         char_type="wchar_t"
27071     else
27072         std_string="std::string"
27073         char_type="char"
27074     fi
27075
27076         { echo "$as_me:$LINENO: checking for $std_string in <string>" >&5
27077 echo $ECHO_N "checking for $std_string in <string>... $ECHO_C" >&6; }
27078 if test "${wx_cv_class_stdstring+set}" = set; then
27079   echo $ECHO_N "(cached) $ECHO_C" >&6
27080 else
27081
27082             cat >conftest.$ac_ext <<_ACEOF
27083 /* confdefs.h.  */
27084 _ACEOF
27085 cat confdefs.h >>conftest.$ac_ext
27086 cat >>conftest.$ac_ext <<_ACEOF
27087 /* end confdefs.h.  */
27088 #include <string>
27089 int
27090 main ()
27091 {
27092 $std_string foo;
27093   ;
27094   return 0;
27095 }
27096 _ACEOF
27097 rm -f conftest.$ac_objext
27098 if { (ac_try="$ac_compile"
27099 case "(($ac_try" in
27100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27101   *) ac_try_echo=$ac_try;;
27102 esac
27103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27104   (eval "$ac_compile") 2>conftest.er1
27105   ac_status=$?
27106   grep -v '^ *+' conftest.er1 >conftest.err
27107   rm -f conftest.er1
27108   cat conftest.err >&5
27109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27110   (exit $ac_status); } && {
27111          test -z "$ac_cxx_werror_flag" ||
27112          test ! -s conftest.err
27113        } && test -s conftest.$ac_objext; then
27114   wx_cv_class_stdstring=yes
27115 else
27116   echo "$as_me: failed program was:" >&5
27117 sed 's/^/| /' conftest.$ac_ext >&5
27118
27119         wx_cv_class_stdstring=no
27120
27121 fi
27122
27123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27124
27125
27126 fi
27127 { echo "$as_me:$LINENO: result: $wx_cv_class_stdstring" >&5
27128 echo "${ECHO_T}$wx_cv_class_stdstring" >&6; }
27129
27130     if test "$wx_cv_class_stdstring" = yes; then
27131         if test "$wxUSE_UNICODE" = "yes"; then
27132             cat >>confdefs.h <<\_ACEOF
27133 #define HAVE_STD_WSTRING 1
27134 _ACEOF
27135
27136         fi
27137                     else
27138         { echo "$as_me:$LINENO: checking if std::basic_string<$char_type> works" >&5
27139 echo $ECHO_N "checking if std::basic_string<$char_type> works... $ECHO_C" >&6; }
27140 if test "${wx_cv_class_stdbasicstring+set}" = set; then
27141   echo $ECHO_N "(cached) $ECHO_C" >&6
27142 else
27143
27144                 cat >conftest.$ac_ext <<_ACEOF
27145 /* confdefs.h.  */
27146 _ACEOF
27147 cat confdefs.h >>conftest.$ac_ext
27148 cat >>conftest.$ac_ext <<_ACEOF
27149 /* end confdefs.h.  */
27150
27151                     #ifdef HAVE_WCHAR_H
27152                     #  ifdef __CYGWIN__
27153                     #    include <stddef.h>
27154                     #  endif
27155                     #  include <wchar.h>
27156                     #endif
27157                     #ifdef HAVE_STDLIB_H
27158                     #  include <stdlib.h>
27159                     #endif
27160                     #include <stdio.h>
27161                     #include <string>
27162
27163 int
27164 main ()
27165 {
27166 std::basic_string<$char_type> foo;
27167                      const $char_type* dummy = foo.c_str();
27168   ;
27169   return 0;
27170 }
27171 _ACEOF
27172 rm -f conftest.$ac_objext
27173 if { (ac_try="$ac_compile"
27174 case "(($ac_try" in
27175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27176   *) ac_try_echo=$ac_try;;
27177 esac
27178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27179   (eval "$ac_compile") 2>conftest.er1
27180   ac_status=$?
27181   grep -v '^ *+' conftest.er1 >conftest.err
27182   rm -f conftest.er1
27183   cat conftest.err >&5
27184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27185   (exit $ac_status); } && {
27186          test -z "$ac_cxx_werror_flag" ||
27187          test ! -s conftest.err
27188        } && test -s conftest.$ac_objext; then
27189   wx_cv_class_stdbasicstring=yes
27190 else
27191   echo "$as_me: failed program was:" >&5
27192 sed 's/^/| /' conftest.$ac_ext >&5
27193
27194         wx_cv_class_stdbasicstring=no
27195
27196 fi
27197
27198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27199
27200
27201 fi
27202 { echo "$as_me:$LINENO: result: $wx_cv_class_stdbasicstring" >&5
27203 echo "${ECHO_T}$wx_cv_class_stdbasicstring" >&6; }
27204
27205         if test "$wx_cv_class_stdbasicstring" != yes; then
27206             if test "$wxUSE_STL" = "yes"; then
27207                 { { echo "$as_me:$LINENO: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&5
27208 echo "$as_me: error: Can't use --enable-stl without $std_string or std::basic_string<$char_type>" >&2;}
27209    { (exit 1); exit 1; }; }
27210             elif grep wxUSE_STD_STRING $wx_arg_cache_file >/dev/null; then
27211                 { { echo "$as_me:$LINENO: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&5
27212 echo "$as_me: error: Can't use --enable-std_string without $std_string or std::basic_string<$char_type>" >&2;}
27213    { (exit 1); exit 1; }; }
27214             else
27215                 { echo "$as_me:$LINENO: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&5
27216 echo "$as_me: WARNING: No $std_string or std::basic_string<$char_type>, switching to --disable-std_string" >&2;}
27217                 wxUSE_STD_STRING=no
27218             fi
27219         fi
27220     fi
27221 fi
27222
27223 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
27224     { echo "$as_me:$LINENO: checking for std::istream" >&5
27225 echo $ECHO_N "checking for std::istream... $ECHO_C" >&6; }
27226 if test "${ac_cv_type_std__istream+set}" = set; then
27227   echo $ECHO_N "(cached) $ECHO_C" >&6
27228 else
27229   cat >conftest.$ac_ext <<_ACEOF
27230 /* confdefs.h.  */
27231 _ACEOF
27232 cat confdefs.h >>conftest.$ac_ext
27233 cat >>conftest.$ac_ext <<_ACEOF
27234 /* end confdefs.h.  */
27235 #include <iostream>
27236
27237 typedef std::istream ac__type_new_;
27238 int
27239 main ()
27240 {
27241 if ((ac__type_new_ *) 0)
27242   return 0;
27243 if (sizeof (ac__type_new_))
27244   return 0;
27245   ;
27246   return 0;
27247 }
27248 _ACEOF
27249 rm -f conftest.$ac_objext
27250 if { (ac_try="$ac_compile"
27251 case "(($ac_try" in
27252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27253   *) ac_try_echo=$ac_try;;
27254 esac
27255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27256   (eval "$ac_compile") 2>conftest.er1
27257   ac_status=$?
27258   grep -v '^ *+' conftest.er1 >conftest.err
27259   rm -f conftest.er1
27260   cat conftest.err >&5
27261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27262   (exit $ac_status); } && {
27263          test -z "$ac_cxx_werror_flag" ||
27264          test ! -s conftest.err
27265        } && test -s conftest.$ac_objext; then
27266   ac_cv_type_std__istream=yes
27267 else
27268   echo "$as_me: failed program was:" >&5
27269 sed 's/^/| /' conftest.$ac_ext >&5
27270
27271         ac_cv_type_std__istream=no
27272 fi
27273
27274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27275 fi
27276 { echo "$as_me:$LINENO: result: $ac_cv_type_std__istream" >&5
27277 echo "${ECHO_T}$ac_cv_type_std__istream" >&6; }
27278 if test $ac_cv_type_std__istream = yes; then
27279
27280 cat >>confdefs.h <<_ACEOF
27281 #define HAVE_STD__ISTREAM 1
27282 _ACEOF
27283
27284
27285 else
27286   wxUSE_STD_IOSTREAM=no
27287 fi
27288 { echo "$as_me:$LINENO: checking for std::ostream" >&5
27289 echo $ECHO_N "checking for std::ostream... $ECHO_C" >&6; }
27290 if test "${ac_cv_type_std__ostream+set}" = set; then
27291   echo $ECHO_N "(cached) $ECHO_C" >&6
27292 else
27293   cat >conftest.$ac_ext <<_ACEOF
27294 /* confdefs.h.  */
27295 _ACEOF
27296 cat confdefs.h >>conftest.$ac_ext
27297 cat >>conftest.$ac_ext <<_ACEOF
27298 /* end confdefs.h.  */
27299 #include <iostream>
27300
27301 typedef std::ostream ac__type_new_;
27302 int
27303 main ()
27304 {
27305 if ((ac__type_new_ *) 0)
27306   return 0;
27307 if (sizeof (ac__type_new_))
27308   return 0;
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext
27314 if { (ac_try="$ac_compile"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27320   (eval "$ac_compile") 2>conftest.er1
27321   ac_status=$?
27322   grep -v '^ *+' conftest.er1 >conftest.err
27323   rm -f conftest.er1
27324   cat conftest.err >&5
27325   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27326   (exit $ac_status); } && {
27327          test -z "$ac_cxx_werror_flag" ||
27328          test ! -s conftest.err
27329        } && test -s conftest.$ac_objext; then
27330   ac_cv_type_std__ostream=yes
27331 else
27332   echo "$as_me: failed program was:" >&5
27333 sed 's/^/| /' conftest.$ac_ext >&5
27334
27335         ac_cv_type_std__ostream=no
27336 fi
27337
27338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27339 fi
27340 { echo "$as_me:$LINENO: result: $ac_cv_type_std__ostream" >&5
27341 echo "${ECHO_T}$ac_cv_type_std__ostream" >&6; }
27342 if test $ac_cv_type_std__ostream = yes; then
27343
27344 cat >>confdefs.h <<_ACEOF
27345 #define HAVE_STD__OSTREAM 1
27346 _ACEOF
27347
27348
27349 else
27350   wxUSE_STD_IOSTREAM=no
27351 fi
27352
27353
27354     if test "$wxUSE_STD_IOSTREAM" != "yes"; then
27355         if grep wxUSE_STD_IOSTREAM $wx_arg_cache_file >/dev/null; then
27356             { { echo "$as_me:$LINENO: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&5
27357 echo "$as_me: error: Can't use --enable-std_iostreams without std::istream and std::ostream" >&2;}
27358    { (exit 1); exit 1; }; }
27359         else
27360             { echo "$as_me:$LINENO: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&5
27361 echo "$as_me: WARNING: No std::iostreams, switching to --disable-std_iostreams" >&2;}
27362         fi
27363     fi
27364 fi
27365
27366 if test "$wxUSE_STL" = "yes"; then
27367         { echo "$as_me:$LINENO: checking for basic STL functionality" >&5
27368 echo $ECHO_N "checking for basic STL functionality... $ECHO_C" >&6; }
27369 if test "${wx_cv_lib_stl+set}" = set; then
27370   echo $ECHO_N "(cached) $ECHO_C" >&6
27371 else
27372   cat >conftest.$ac_ext <<_ACEOF
27373 /* confdefs.h.  */
27374 _ACEOF
27375 cat confdefs.h >>conftest.$ac_ext
27376 cat >>conftest.$ac_ext <<_ACEOF
27377 /* end confdefs.h.  */
27378 #include <string>
27379             #include <functional>
27380             #include <algorithm>
27381             #include <vector>
27382             #include <list>
27383 int
27384 main ()
27385 {
27386 std::vector<int> moo;
27387              std::list<int> foo;
27388              std::vector<int>::iterator it =
27389                  std::find_if(moo.begin(), moo.end(),
27390                               std::bind2nd(std::less<int>(), 3));
27391   ;
27392   return 0;
27393 }
27394 _ACEOF
27395 rm -f conftest.$ac_objext
27396 if { (ac_try="$ac_compile"
27397 case "(($ac_try" in
27398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27399   *) ac_try_echo=$ac_try;;
27400 esac
27401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27402   (eval "$ac_compile") 2>conftest.er1
27403   ac_status=$?
27404   grep -v '^ *+' conftest.er1 >conftest.err
27405   rm -f conftest.er1
27406   cat conftest.err >&5
27407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27408   (exit $ac_status); } && {
27409          test -z "$ac_cxx_werror_flag" ||
27410          test ! -s conftest.err
27411        } && test -s conftest.$ac_objext; then
27412   wx_cv_lib_stl=yes
27413 else
27414   echo "$as_me: failed program was:" >&5
27415 sed 's/^/| /' conftest.$ac_ext >&5
27416
27417         wx_cv_lib_stl=no
27418
27419 fi
27420
27421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27422
27423 fi
27424 { echo "$as_me:$LINENO: result: $wx_cv_lib_stl" >&5
27425 echo "${ECHO_T}$wx_cv_lib_stl" >&6; }
27426
27427     if test "$wx_cv_lib_stl" != yes; then
27428          { { echo "$as_me:$LINENO: error: Can't use --enable-stl as basic STL functionality is missing" >&5
27429 echo "$as_me: error: Can't use --enable-stl as basic STL functionality is missing" >&2;}
27430    { (exit 1); exit 1; }; }
27431     fi
27432
27433         { echo "$as_me:$LINENO: checking for compliant std::string::compare" >&5
27434 echo $ECHO_N "checking for compliant std::string::compare... $ECHO_C" >&6; }
27435 if test "${wx_cv_func_stdstring_compare+set}" = set; then
27436   echo $ECHO_N "(cached) $ECHO_C" >&6
27437 else
27438   cat >conftest.$ac_ext <<_ACEOF
27439 /* confdefs.h.  */
27440 _ACEOF
27441 cat confdefs.h >>conftest.$ac_ext
27442 cat >>conftest.$ac_ext <<_ACEOF
27443 /* end confdefs.h.  */
27444 #include <string>
27445 int
27446 main ()
27447 {
27448 std::string foo, bar;
27449             foo.compare(bar);
27450             foo.compare(1, 1, bar);
27451             foo.compare(1, 1, bar, 1, 1);
27452             foo.compare("");
27453             foo.compare(1, 1, "");
27454             foo.compare(1, 1, "", 2);
27455   ;
27456   return 0;
27457 }
27458 _ACEOF
27459 rm -f conftest.$ac_objext
27460 if { (ac_try="$ac_compile"
27461 case "(($ac_try" in
27462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27463   *) ac_try_echo=$ac_try;;
27464 esac
27465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27466   (eval "$ac_compile") 2>conftest.er1
27467   ac_status=$?
27468   grep -v '^ *+' conftest.er1 >conftest.err
27469   rm -f conftest.er1
27470   cat conftest.err >&5
27471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27472   (exit $ac_status); } && {
27473          test -z "$ac_cxx_werror_flag" ||
27474          test ! -s conftest.err
27475        } && test -s conftest.$ac_objext; then
27476   wx_cv_func_stdstring_compare=yes
27477 else
27478   echo "$as_me: failed program was:" >&5
27479 sed 's/^/| /' conftest.$ac_ext >&5
27480
27481         wx_cv_func_stdstring_compare=no
27482
27483 fi
27484
27485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27486
27487 fi
27488 { echo "$as_me:$LINENO: result: $wx_cv_func_stdstring_compare" >&5
27489 echo "${ECHO_T}$wx_cv_func_stdstring_compare" >&6; }
27490
27491     if test "$wx_cv_func_stdstring_compare" = yes; then
27492         cat >>confdefs.h <<\_ACEOF
27493 #define HAVE_STD_STRING_COMPARE 1
27494 _ACEOF
27495
27496     fi
27497
27498         { echo "$as_me:$LINENO: checking for hash_map" >&5
27499 echo $ECHO_N "checking for hash_map... $ECHO_C" >&6; }
27500 if test "${ac_cv_header_hash_map+set}" = set; then
27501   echo $ECHO_N "(cached) $ECHO_C" >&6
27502 else
27503   cat >conftest.$ac_ext <<_ACEOF
27504 /* confdefs.h.  */
27505 _ACEOF
27506 cat confdefs.h >>conftest.$ac_ext
27507 cat >>conftest.$ac_ext <<_ACEOF
27508 /* end confdefs.h.  */
27509
27510
27511
27512 #include <hash_map>
27513 _ACEOF
27514 rm -f conftest.$ac_objext
27515 if { (ac_try="$ac_compile"
27516 case "(($ac_try" in
27517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27518   *) ac_try_echo=$ac_try;;
27519 esac
27520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27521   (eval "$ac_compile") 2>conftest.er1
27522   ac_status=$?
27523   grep -v '^ *+' conftest.er1 >conftest.err
27524   rm -f conftest.er1
27525   cat conftest.err >&5
27526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27527   (exit $ac_status); } && {
27528          test -z "$ac_cxx_werror_flag" ||
27529          test ! -s conftest.err
27530        } && test -s conftest.$ac_objext; then
27531   ac_cv_header_hash_map=yes
27532 else
27533   echo "$as_me: failed program was:" >&5
27534 sed 's/^/| /' conftest.$ac_ext >&5
27535
27536         ac_cv_header_hash_map=no
27537 fi
27538
27539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27540 fi
27541 { echo "$as_me:$LINENO: result: $ac_cv_header_hash_map" >&5
27542 echo "${ECHO_T}$ac_cv_header_hash_map" >&6; }
27543 if test $ac_cv_header_hash_map = yes; then
27544   { echo "$as_me:$LINENO: checking for standard hash_map and hash_set" >&5
27545 echo $ECHO_N "checking for standard hash_map and hash_set... $ECHO_C" >&6; }
27546 if test "${wx_cv_class_stdhashmapset+set}" = set; then
27547   echo $ECHO_N "(cached) $ECHO_C" >&6
27548 else
27549   cat >conftest.$ac_ext <<_ACEOF
27550 /* confdefs.h.  */
27551 _ACEOF
27552 cat confdefs.h >>conftest.$ac_ext
27553 cat >>conftest.$ac_ext <<_ACEOF
27554 /* end confdefs.h.  */
27555 #include <hash_map>
27556                 #include <hash_set>
27557 int
27558 main ()
27559 {
27560 std::hash_map<double*, char*, std::hash<double*>, std::equal_to<double*> > test1;
27561                  std::hash_set<char*, std::hash<char*>, std::equal_to<char*> > test2;
27562   ;
27563   return 0;
27564 }
27565 _ACEOF
27566 rm -f conftest.$ac_objext
27567 if { (ac_try="$ac_compile"
27568 case "(($ac_try" in
27569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27570   *) ac_try_echo=$ac_try;;
27571 esac
27572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27573   (eval "$ac_compile") 2>conftest.er1
27574   ac_status=$?
27575   grep -v '^ *+' conftest.er1 >conftest.err
27576   rm -f conftest.er1
27577   cat conftest.err >&5
27578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27579   (exit $ac_status); } && {
27580          test -z "$ac_cxx_werror_flag" ||
27581          test ! -s conftest.err
27582        } && test -s conftest.$ac_objext; then
27583   wx_cv_class_stdhashmapset=yes
27584 else
27585   echo "$as_me: failed program was:" >&5
27586 sed 's/^/| /' conftest.$ac_ext >&5
27587
27588         wx_cv_class_stdhashmapset=no
27589 fi
27590
27591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27592
27593
27594 fi
27595 { echo "$as_me:$LINENO: result: $wx_cv_class_stdhashmapset" >&5
27596 echo "${ECHO_T}$wx_cv_class_stdhashmapset" >&6; }
27597 fi
27598
27599
27600
27601     if test "$wx_cv_class_stdhashmapset" = yes; then
27602         cat >>confdefs.h <<\_ACEOF
27603 #define HAVE_HASH_MAP 1
27604 _ACEOF
27605
27606         cat >>confdefs.h <<\_ACEOF
27607 #define HAVE_STD_HASH_MAP 1
27608 _ACEOF
27609
27610     fi
27611
27612     { echo "$as_me:$LINENO: checking for ext/hash_map" >&5
27613 echo $ECHO_N "checking for ext/hash_map... $ECHO_C" >&6; }
27614 if test "${ac_cv_header_ext_hash_map+set}" = set; then
27615   echo $ECHO_N "(cached) $ECHO_C" >&6
27616 else
27617   cat >conftest.$ac_ext <<_ACEOF
27618 /* confdefs.h.  */
27619 _ACEOF
27620 cat confdefs.h >>conftest.$ac_ext
27621 cat >>conftest.$ac_ext <<_ACEOF
27622 /* end confdefs.h.  */
27623
27624
27625
27626 #include <ext/hash_map>
27627 _ACEOF
27628 rm -f conftest.$ac_objext
27629 if { (ac_try="$ac_compile"
27630 case "(($ac_try" in
27631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632   *) ac_try_echo=$ac_try;;
27633 esac
27634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27635   (eval "$ac_compile") 2>conftest.er1
27636   ac_status=$?
27637   grep -v '^ *+' conftest.er1 >conftest.err
27638   rm -f conftest.er1
27639   cat conftest.err >&5
27640   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27641   (exit $ac_status); } && {
27642          test -z "$ac_cxx_werror_flag" ||
27643          test ! -s conftest.err
27644        } && test -s conftest.$ac_objext; then
27645   ac_cv_header_ext_hash_map=yes
27646 else
27647   echo "$as_me: failed program was:" >&5
27648 sed 's/^/| /' conftest.$ac_ext >&5
27649
27650         ac_cv_header_ext_hash_map=no
27651 fi
27652
27653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27654 fi
27655 { echo "$as_me:$LINENO: result: $ac_cv_header_ext_hash_map" >&5
27656 echo "${ECHO_T}$ac_cv_header_ext_hash_map" >&6; }
27657 if test $ac_cv_header_ext_hash_map = yes; then
27658   { echo "$as_me:$LINENO: checking for GNU hash_map and hash_set" >&5
27659 echo $ECHO_N "checking for GNU hash_map and hash_set... $ECHO_C" >&6; }
27660 if test "${wx_cv_class_gnuhashmapset+set}" = set; then
27661   echo $ECHO_N "(cached) $ECHO_C" >&6
27662 else
27663   cat >conftest.$ac_ext <<_ACEOF
27664 /* confdefs.h.  */
27665 _ACEOF
27666 cat confdefs.h >>conftest.$ac_ext
27667 cat >>conftest.$ac_ext <<_ACEOF
27668 /* end confdefs.h.  */
27669 #include <ext/hash_map>
27670                 #include <ext/hash_set>
27671 int
27672 main ()
27673 {
27674 __gnu_cxx::hash_map<double*, char*, __gnu_cxx::hash<double*>, std::equal_to<double*> > test1;
27675                  __gnu_cxx::hash_set<char*, __gnu_cxx::hash<char*>, std::equal_to<char*> > test2;
27676   ;
27677   return 0;
27678 }
27679 _ACEOF
27680 rm -f conftest.$ac_objext
27681 if { (ac_try="$ac_compile"
27682 case "(($ac_try" in
27683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27684   *) ac_try_echo=$ac_try;;
27685 esac
27686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27687   (eval "$ac_compile") 2>conftest.er1
27688   ac_status=$?
27689   grep -v '^ *+' conftest.er1 >conftest.err
27690   rm -f conftest.er1
27691   cat conftest.err >&5
27692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27693   (exit $ac_status); } && {
27694          test -z "$ac_cxx_werror_flag" ||
27695          test ! -s conftest.err
27696        } && test -s conftest.$ac_objext; then
27697   wx_cv_class_gnuhashmapset=yes
27698 else
27699   echo "$as_me: failed program was:" >&5
27700 sed 's/^/| /' conftest.$ac_ext >&5
27701
27702         wx_cv_class_gnuhashmapset=no
27703 fi
27704
27705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27706
27707
27708 fi
27709 { echo "$as_me:$LINENO: result: $wx_cv_class_gnuhashmapset" >&5
27710 echo "${ECHO_T}$wx_cv_class_gnuhashmapset" >&6; }
27711 fi
27712
27713
27714
27715     if test "$wx_cv_class_gnuhashmapset" = yes; then
27716          cat >>confdefs.h <<\_ACEOF
27717 #define HAVE_EXT_HASH_MAP 1
27718 _ACEOF
27719
27720          cat >>confdefs.h <<\_ACEOF
27721 #define HAVE_GNU_CXX_HASH_MAP 1
27722 _ACEOF
27723
27724     fi
27725 fi
27726
27727 ac_ext=c
27728 ac_cpp='$CPP $CPPFLAGS'
27729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
27732
27733
27734
27735 SEARCH_INCLUDE="\
27736     /usr/local/include        \
27737                               \
27738     /usr/Motif-2.1/include    \
27739     /usr/Motif-1.2/include    \
27740     /usr/include/Motif1.2     \
27741                               \
27742     /usr/dt/include           \
27743     /usr/openwin/include      \
27744                               \
27745     /usr/include/Xm           \
27746                               \
27747     /usr/X11R6/include        \
27748     /usr/X11R6.4/include      \
27749     /usr/X11R5/include        \
27750     /usr/X11R4/include        \
27751                               \
27752     /usr/include/X11R6        \
27753     /usr/include/X11R5        \
27754     /usr/include/X11R4        \
27755                               \
27756     /usr/local/X11R6/include  \
27757     /usr/local/X11R5/include  \
27758     /usr/local/X11R4/include  \
27759                               \
27760     /usr/local/include/X11R6  \
27761     /usr/local/include/X11R5  \
27762     /usr/local/include/X11R4  \
27763                               \
27764     /usr/X11/include          \
27765     /usr/include/X11          \
27766     /usr/local/X11/include    \
27767     /usr/local/include/X11    \
27768                               \
27769     /usr/XFree86/include/X11  \
27770     /usr/pkg/include          \
27771                               \
27772     /usr/openwin/share/include"
27773
27774 { echo "$as_me:$LINENO: checking for libraries directory" >&5
27775 echo $ECHO_N "checking for libraries directory... $ECHO_C" >&6; }
27776
27777 case "${host}" in
27778     *-*-irix6* )
27779         if test "${wx_cv_std_libpath+set}" = set; then
27780   echo $ECHO_N "(cached) $ECHO_C" >&6
27781 else
27782
27783                 for d in /usr/lib /usr/lib32 /usr/lib/64 /usr/lib64; do
27784                     for e in a so sl dylib dll.a; do
27785                         libc="$d/libc.$e"
27786                         if test -f $libc; then
27787                             save_LIBS="$LIBS"
27788                             LIBS="$libc"
27789                             cat >conftest.$ac_ext <<_ACEOF
27790 int main() { return 0; }
27791 _ACEOF
27792 rm -f conftest.$ac_objext conftest$ac_exeext
27793 if { (ac_try="$ac_link"
27794 case "(($ac_try" in
27795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27796   *) ac_try_echo=$ac_try;;
27797 esac
27798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
27799   (eval "$ac_link") 2>conftest.er1
27800   ac_status=$?
27801   grep -v '^ *+' conftest.er1 >conftest.err
27802   rm -f conftest.er1
27803   cat conftest.err >&5
27804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
27805   (exit $ac_status); } && {
27806          test -z "$ac_c_werror_flag" ||
27807          test ! -s conftest.err
27808        } && test -s conftest$ac_exeext &&
27809        $as_test_x conftest$ac_exeext; then
27810   wx_cv_std_libpath=`echo $d | sed s@/usr/@@`
27811 else
27812   echo "$as_me: failed program was:" >&5
27813 sed 's/^/| /' conftest.$ac_ext >&5
27814
27815
27816 fi
27817
27818 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27819       conftest$ac_exeext conftest.$ac_ext
27820                             LIBS="$save_LIBS"
27821                             if test "x$wx_cv_std_libpath" != "x"; then
27822                                 break 2
27823                             fi
27824                         fi
27825                     done
27826                 done
27827                 if test "x$wx_cv_std_libpath" = "x"; then
27828                     wx_cv_std_libpath="lib"
27829                 fi
27830
27831
27832 fi
27833
27834         ;;
27835
27836     *-*-solaris2* )
27837                 if test "$ac_cv_sizeof_void_p" = 8 -a -d "/usr/lib/64"; then
27838             wx_cv_std_libpath="lib/64"
27839         else
27840             wx_cv_std_libpath="lib"
27841         fi
27842         ;;
27843
27844     *-*-linux* )
27845                 if test "$ac_cv_sizeof_void_p" = 8 -a \
27846                 -d "/usr/lib64" -a ! -h "/usr/lib64"; then
27847             wx_cv_std_libpath="lib64"
27848         else
27849             wx_cv_std_libpath="lib"
27850         fi
27851         ;;
27852
27853     *)
27854         wx_cv_std_libpath="lib";
27855         ;;
27856 esac
27857
27858 { echo "$as_me:$LINENO: result: $wx_cv_std_libpath" >&5
27859 echo "${ECHO_T}$wx_cv_std_libpath" >&6; }
27860
27861 SEARCH_LIB="`echo "$SEARCH_INCLUDE" | sed s@include@$wx_cv_std_libpath@g` /usr/$wx_cv_std_libpath"
27862
27863 if test "$build" != "$host" -a "$GCC" = yes; then
27864                     if cross_root=`$CC -print-prog-name=ld 2>/dev/null`; then
27865         cross_root=`dirname $cross_root`
27866         cross_root=`dirname $cross_root`
27867
27868                         SEARCH_LIB=`for x in $SEARCH_LIB; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27869         SEARCH_INCLUDE=`for x in $SEARCH_INCLUDE; do echo $x; done | sed -ne "s|^/usr|$cross_root|p"`
27870         SEARCH_INCLUDE="$SEARCH_INCLUDE $cross_root/include"
27871
27872                 if test -z "$PKG_CONFIG_PATH"; then
27873             PKG_CONFIG_PATH="$cross_root/local/lib/pkgconfig:$cross_root/lib/pkgconfig"
27874             export PKG_CONFIG_PATH
27875         fi
27876
27877                                 if test -z "$x_includes" -o "$x_includes" = NONE; then
27878
27879 ac_find_includes=
27880 for ac_dir in $SEARCH_INCLUDE /usr/include;
27881   do
27882     if test -f "$ac_dir/X11/Intrinsic.h"; then
27883       ac_find_includes=$ac_dir
27884       break
27885     fi
27886   done
27887
27888             x_includes=$ac_find_includes
27889         fi
27890         if test -z "$x_libraries" -o "$x_libraries" = NONE; then
27891
27892   ac_find_libraries=
27893   for ac_dir in $SEARCH_LIB;
27894   do
27895     for ac_extension in a so sl dylib dll.a; do
27896       if test -f "$ac_dir/libXt.$ac_extension"; then
27897         ac_find_libraries=$ac_dir
27898         break 2
27899       fi
27900     done
27901   done
27902
27903             x_libraries=$ac_find_libraries
27904         fi
27905     fi
27906 fi
27907
27908
27909 cat >confcache <<\_ACEOF
27910 # This file is a shell script that caches the results of configure
27911 # tests run on this system so they can be shared between configure
27912 # scripts and configure runs, see configure's option --config-cache.
27913 # It is not useful on other systems.  If it contains results you don't
27914 # want to keep, you may remove or edit it.
27915 #
27916 # config.status only pays attention to the cache file if you give it
27917 # the --recheck option to rerun configure.
27918 #
27919 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27920 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27921 # following values.
27922
27923 _ACEOF
27924
27925 # The following way of writing the cache mishandles newlines in values,
27926 # but we know of no workaround that is simple, portable, and efficient.
27927 # So, we kill variables containing newlines.
27928 # Ultrix sh set writes to stderr and can't be redirected directly,
27929 # and sets the high bit in the cache file unless we assign to the vars.
27930 (
27931   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
27932     eval ac_val=\$$ac_var
27933     case $ac_val in #(
27934     *${as_nl}*)
27935       case $ac_var in #(
27936       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
27937 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
27938       esac
27939       case $ac_var in #(
27940       _ | IFS | as_nl) ;; #(
27941       *) $as_unset $ac_var ;;
27942       esac ;;
27943     esac
27944   done
27945
27946   (set) 2>&1 |
27947     case $as_nl`(ac_space=' '; set) 2>&1` in #(
27948     *${as_nl}ac_space=\ *)
27949       # `set' does not quote correctly, so add quotes (double-quote
27950       # substitution turns \\\\ into \\, and sed turns \\ into \).
27951       sed -n \
27952         "s/'/'\\\\''/g;
27953           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27954       ;; #(
27955     *)
27956       # `set' quotes correctly as required by POSIX, so do not add quotes.
27957       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
27958       ;;
27959     esac |
27960     sort
27961 ) |
27962   sed '
27963      /^ac_cv_env_/b end
27964      t clear
27965      :clear
27966      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27967      t end
27968      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27969      :end' >>confcache
27970 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
27971   if test -w "$cache_file"; then
27972     test "x$cache_file" != "x/dev/null" &&
27973       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
27974 echo "$as_me: updating cache $cache_file" >&6;}
27975     cat confcache >$cache_file
27976   else
27977     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
27978 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
27979   fi
27980 fi
27981 rm -f confcache
27982
27983 if test "$USE_LINUX" = 1 -o "$USE_GNU" = 1; then
27984     { echo "$as_me:$LINENO: checking for glibc 2.1 or later" >&5
27985 echo $ECHO_N "checking for glibc 2.1 or later... $ECHO_C" >&6; }
27986 if test "${wx_cv_lib_glibc21+set}" = set; then
27987   echo $ECHO_N "(cached) $ECHO_C" >&6
27988 else
27989
27990         cat >conftest.$ac_ext <<_ACEOF
27991 /* confdefs.h.  */
27992 _ACEOF
27993 cat confdefs.h >>conftest.$ac_ext
27994 cat >>conftest.$ac_ext <<_ACEOF
27995 /* end confdefs.h.  */
27996 #include <features.h>
27997 int
27998 main ()
27999 {
28000
28001                 #if (__GLIBC__ < 2) || (__GLIBC_MINOR__ < 1)
28002                 not glibc 2.1
28003                 #endif
28004
28005   ;
28006   return 0;
28007 }
28008 _ACEOF
28009 rm -f conftest.$ac_objext
28010 if { (ac_try="$ac_compile"
28011 case "(($ac_try" in
28012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28013   *) ac_try_echo=$ac_try;;
28014 esac
28015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28016   (eval "$ac_compile") 2>conftest.er1
28017   ac_status=$?
28018   grep -v '^ *+' conftest.er1 >conftest.err
28019   rm -f conftest.er1
28020   cat conftest.err >&5
28021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28022   (exit $ac_status); } && {
28023          test -z "$ac_c_werror_flag" ||
28024          test ! -s conftest.err
28025        } && test -s conftest.$ac_objext; then
28026
28027                 wx_cv_lib_glibc21=yes
28028
28029 else
28030   echo "$as_me: failed program was:" >&5
28031 sed 's/^/| /' conftest.$ac_ext >&5
28032
28033
28034                 wx_cv_lib_glibc21=no
28035
28036
28037 fi
28038
28039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28040
28041 fi
28042 { echo "$as_me:$LINENO: result: $wx_cv_lib_glibc21" >&5
28043 echo "${ECHO_T}$wx_cv_lib_glibc21" >&6; }
28044     if test "$wx_cv_lib_glibc21" = "yes"; then
28045         cat >>confdefs.h <<\_ACEOF
28046 #define wxHAVE_GLIBC2 1
28047 _ACEOF
28048
28049     fi
28050 fi
28051
28052 if test "x$wx_cv_lib_glibc21" = "xyes"; then
28053     if test "$wxUSE_UNICODE" = "yes" -o "$wxUSE_THREADS" = "yes"; then
28054         cat >>confdefs.h <<\_ACEOF
28055 #define _GNU_SOURCE 1
28056 _ACEOF
28057
28058     fi
28059 fi
28060
28061 have_cos=0
28062 have_floor=0
28063
28064 for ac_func in cos
28065 do
28066 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28067 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28068 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28070   echo $ECHO_N "(cached) $ECHO_C" >&6
28071 else
28072   cat >conftest.$ac_ext <<_ACEOF
28073 /* confdefs.h.  */
28074 _ACEOF
28075 cat confdefs.h >>conftest.$ac_ext
28076 cat >>conftest.$ac_ext <<_ACEOF
28077 /* end confdefs.h.  */
28078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28080 #define $ac_func innocuous_$ac_func
28081
28082 /* System header to define __stub macros and hopefully few prototypes,
28083     which can conflict with char $ac_func (); below.
28084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28085     <limits.h> exists even on freestanding compilers.  */
28086
28087 #ifdef __STDC__
28088 # include <limits.h>
28089 #else
28090 # include <assert.h>
28091 #endif
28092
28093 #undef $ac_func
28094
28095 /* Override any GCC internal prototype to avoid an error.
28096    Use char because int might match the return type of a GCC
28097    builtin and then its argument prototype would still apply.  */
28098 #ifdef __cplusplus
28099 extern "C"
28100 #endif
28101 char $ac_func ();
28102 /* The GNU C library defines this for functions which it implements
28103     to always fail with ENOSYS.  Some functions are actually named
28104     something starting with __ and the normal name is an alias.  */
28105 #if defined __stub_$ac_func || defined __stub___$ac_func
28106 choke me
28107 #endif
28108
28109 int
28110 main ()
28111 {
28112 return $ac_func ();
28113   ;
28114   return 0;
28115 }
28116 _ACEOF
28117 rm -f conftest.$ac_objext conftest$ac_exeext
28118 if { (ac_try="$ac_link"
28119 case "(($ac_try" in
28120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28121   *) ac_try_echo=$ac_try;;
28122 esac
28123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28124   (eval "$ac_link") 2>conftest.er1
28125   ac_status=$?
28126   grep -v '^ *+' conftest.er1 >conftest.err
28127   rm -f conftest.er1
28128   cat conftest.err >&5
28129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28130   (exit $ac_status); } && {
28131          test -z "$ac_c_werror_flag" ||
28132          test ! -s conftest.err
28133        } && test -s conftest$ac_exeext &&
28134        $as_test_x conftest$ac_exeext; then
28135   eval "$as_ac_var=yes"
28136 else
28137   echo "$as_me: failed program was:" >&5
28138 sed 's/^/| /' conftest.$ac_ext >&5
28139
28140         eval "$as_ac_var=no"
28141 fi
28142
28143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28144       conftest$ac_exeext conftest.$ac_ext
28145 fi
28146 ac_res=`eval echo '${'$as_ac_var'}'`
28147                { echo "$as_me:$LINENO: result: $ac_res" >&5
28148 echo "${ECHO_T}$ac_res" >&6; }
28149 if test `eval echo '${'$as_ac_var'}'` = yes; then
28150   cat >>confdefs.h <<_ACEOF
28151 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28152 _ACEOF
28153  have_cos=1
28154 fi
28155 done
28156
28157
28158 for ac_func in floor
28159 do
28160 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28161 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28162 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28163 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28164   echo $ECHO_N "(cached) $ECHO_C" >&6
28165 else
28166   cat >conftest.$ac_ext <<_ACEOF
28167 /* confdefs.h.  */
28168 _ACEOF
28169 cat confdefs.h >>conftest.$ac_ext
28170 cat >>conftest.$ac_ext <<_ACEOF
28171 /* end confdefs.h.  */
28172 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28173    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28174 #define $ac_func innocuous_$ac_func
28175
28176 /* System header to define __stub macros and hopefully few prototypes,
28177     which can conflict with char $ac_func (); below.
28178     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28179     <limits.h> exists even on freestanding compilers.  */
28180
28181 #ifdef __STDC__
28182 # include <limits.h>
28183 #else
28184 # include <assert.h>
28185 #endif
28186
28187 #undef $ac_func
28188
28189 /* Override any GCC internal prototype to avoid an error.
28190    Use char because int might match the return type of a GCC
28191    builtin and then its argument prototype would still apply.  */
28192 #ifdef __cplusplus
28193 extern "C"
28194 #endif
28195 char $ac_func ();
28196 /* The GNU C library defines this for functions which it implements
28197     to always fail with ENOSYS.  Some functions are actually named
28198     something starting with __ and the normal name is an alias.  */
28199 #if defined __stub_$ac_func || defined __stub___$ac_func
28200 choke me
28201 #endif
28202
28203 int
28204 main ()
28205 {
28206 return $ac_func ();
28207   ;
28208   return 0;
28209 }
28210 _ACEOF
28211 rm -f conftest.$ac_objext conftest$ac_exeext
28212 if { (ac_try="$ac_link"
28213 case "(($ac_try" in
28214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28215   *) ac_try_echo=$ac_try;;
28216 esac
28217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28218   (eval "$ac_link") 2>conftest.er1
28219   ac_status=$?
28220   grep -v '^ *+' conftest.er1 >conftest.err
28221   rm -f conftest.er1
28222   cat conftest.err >&5
28223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28224   (exit $ac_status); } && {
28225          test -z "$ac_c_werror_flag" ||
28226          test ! -s conftest.err
28227        } && test -s conftest$ac_exeext &&
28228        $as_test_x conftest$ac_exeext; then
28229   eval "$as_ac_var=yes"
28230 else
28231   echo "$as_me: failed program was:" >&5
28232 sed 's/^/| /' conftest.$ac_ext >&5
28233
28234         eval "$as_ac_var=no"
28235 fi
28236
28237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28238       conftest$ac_exeext conftest.$ac_ext
28239 fi
28240 ac_res=`eval echo '${'$as_ac_var'}'`
28241                { echo "$as_me:$LINENO: result: $ac_res" >&5
28242 echo "${ECHO_T}$ac_res" >&6; }
28243 if test `eval echo '${'$as_ac_var'}'` = yes; then
28244   cat >>confdefs.h <<_ACEOF
28245 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28246 _ACEOF
28247  have_floor=1
28248 fi
28249 done
28250
28251 { echo "$as_me:$LINENO: checking if floating point functions link without -lm" >&5
28252 echo $ECHO_N "checking if floating point functions link without -lm... $ECHO_C" >&6; }
28253 if test "$have_cos" = 1 -a "$have_floor" = 1; then
28254     { echo "$as_me:$LINENO: result: yes" >&5
28255 echo "${ECHO_T}yes" >&6; }
28256 else
28257     { echo "$as_me:$LINENO: result: no" >&5
28258 echo "${ECHO_T}no" >&6; }
28259     LIBS="$LIBS -lm"
28260     # use different functions to avoid configure caching
28261     have_sin=0
28262     have_ceil=0
28263
28264 for ac_func in sin
28265 do
28266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28270   echo $ECHO_N "(cached) $ECHO_C" >&6
28271 else
28272   cat >conftest.$ac_ext <<_ACEOF
28273 /* confdefs.h.  */
28274 _ACEOF
28275 cat confdefs.h >>conftest.$ac_ext
28276 cat >>conftest.$ac_ext <<_ACEOF
28277 /* end confdefs.h.  */
28278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28279    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28280 #define $ac_func innocuous_$ac_func
28281
28282 /* System header to define __stub macros and hopefully few prototypes,
28283     which can conflict with char $ac_func (); below.
28284     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28285     <limits.h> exists even on freestanding compilers.  */
28286
28287 #ifdef __STDC__
28288 # include <limits.h>
28289 #else
28290 # include <assert.h>
28291 #endif
28292
28293 #undef $ac_func
28294
28295 /* Override any GCC internal prototype to avoid an error.
28296    Use char because int might match the return type of a GCC
28297    builtin and then its argument prototype would still apply.  */
28298 #ifdef __cplusplus
28299 extern "C"
28300 #endif
28301 char $ac_func ();
28302 /* The GNU C library defines this for functions which it implements
28303     to always fail with ENOSYS.  Some functions are actually named
28304     something starting with __ and the normal name is an alias.  */
28305 #if defined __stub_$ac_func || defined __stub___$ac_func
28306 choke me
28307 #endif
28308
28309 int
28310 main ()
28311 {
28312 return $ac_func ();
28313   ;
28314   return 0;
28315 }
28316 _ACEOF
28317 rm -f conftest.$ac_objext conftest$ac_exeext
28318 if { (ac_try="$ac_link"
28319 case "(($ac_try" in
28320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28321   *) ac_try_echo=$ac_try;;
28322 esac
28323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28324   (eval "$ac_link") 2>conftest.er1
28325   ac_status=$?
28326   grep -v '^ *+' conftest.er1 >conftest.err
28327   rm -f conftest.er1
28328   cat conftest.err >&5
28329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28330   (exit $ac_status); } && {
28331          test -z "$ac_c_werror_flag" ||
28332          test ! -s conftest.err
28333        } && test -s conftest$ac_exeext &&
28334        $as_test_x conftest$ac_exeext; then
28335   eval "$as_ac_var=yes"
28336 else
28337   echo "$as_me: failed program was:" >&5
28338 sed 's/^/| /' conftest.$ac_ext >&5
28339
28340         eval "$as_ac_var=no"
28341 fi
28342
28343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28344       conftest$ac_exeext conftest.$ac_ext
28345 fi
28346 ac_res=`eval echo '${'$as_ac_var'}'`
28347                { echo "$as_me:$LINENO: result: $ac_res" >&5
28348 echo "${ECHO_T}$ac_res" >&6; }
28349 if test `eval echo '${'$as_ac_var'}'` = yes; then
28350   cat >>confdefs.h <<_ACEOF
28351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28352 _ACEOF
28353  have_sin=1
28354 fi
28355 done
28356
28357
28358 for ac_func in ceil
28359 do
28360 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28361 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28362 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28363 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28364   echo $ECHO_N "(cached) $ECHO_C" >&6
28365 else
28366   cat >conftest.$ac_ext <<_ACEOF
28367 /* confdefs.h.  */
28368 _ACEOF
28369 cat confdefs.h >>conftest.$ac_ext
28370 cat >>conftest.$ac_ext <<_ACEOF
28371 /* end confdefs.h.  */
28372 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28373    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28374 #define $ac_func innocuous_$ac_func
28375
28376 /* System header to define __stub macros and hopefully few prototypes,
28377     which can conflict with char $ac_func (); below.
28378     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28379     <limits.h> exists even on freestanding compilers.  */
28380
28381 #ifdef __STDC__
28382 # include <limits.h>
28383 #else
28384 # include <assert.h>
28385 #endif
28386
28387 #undef $ac_func
28388
28389 /* Override any GCC internal prototype to avoid an error.
28390    Use char because int might match the return type of a GCC
28391    builtin and then its argument prototype would still apply.  */
28392 #ifdef __cplusplus
28393 extern "C"
28394 #endif
28395 char $ac_func ();
28396 /* The GNU C library defines this for functions which it implements
28397     to always fail with ENOSYS.  Some functions are actually named
28398     something starting with __ and the normal name is an alias.  */
28399 #if defined __stub_$ac_func || defined __stub___$ac_func
28400 choke me
28401 #endif
28402
28403 int
28404 main ()
28405 {
28406 return $ac_func ();
28407   ;
28408   return 0;
28409 }
28410 _ACEOF
28411 rm -f conftest.$ac_objext conftest$ac_exeext
28412 if { (ac_try="$ac_link"
28413 case "(($ac_try" in
28414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28415   *) ac_try_echo=$ac_try;;
28416 esac
28417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28418   (eval "$ac_link") 2>conftest.er1
28419   ac_status=$?
28420   grep -v '^ *+' conftest.er1 >conftest.err
28421   rm -f conftest.er1
28422   cat conftest.err >&5
28423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28424   (exit $ac_status); } && {
28425          test -z "$ac_c_werror_flag" ||
28426          test ! -s conftest.err
28427        } && test -s conftest$ac_exeext &&
28428        $as_test_x conftest$ac_exeext; then
28429   eval "$as_ac_var=yes"
28430 else
28431   echo "$as_me: failed program was:" >&5
28432 sed 's/^/| /' conftest.$ac_ext >&5
28433
28434         eval "$as_ac_var=no"
28435 fi
28436
28437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28438       conftest$ac_exeext conftest.$ac_ext
28439 fi
28440 ac_res=`eval echo '${'$as_ac_var'}'`
28441                { echo "$as_me:$LINENO: result: $ac_res" >&5
28442 echo "${ECHO_T}$ac_res" >&6; }
28443 if test `eval echo '${'$as_ac_var'}'` = yes; then
28444   cat >>confdefs.h <<_ACEOF
28445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28446 _ACEOF
28447  have_ceil=1
28448 fi
28449 done
28450
28451     { echo "$as_me:$LINENO: checking if floating point functions link with -lm" >&5
28452 echo $ECHO_N "checking if floating point functions link with -lm... $ECHO_C" >&6; }
28453     if test "$have_sin" = 1 -a "$have_ceil" = 1; then
28454         { echo "$as_me:$LINENO: result: yes" >&5
28455 echo "${ECHO_T}yes" >&6; }
28456     else
28457         { echo "$as_me:$LINENO: result: no" >&5
28458 echo "${ECHO_T}no" >&6; }
28459         # not sure we should warn the user, crash, etc.
28460     fi
28461 fi
28462
28463 ac_ext=cpp
28464 ac_cpp='$CXXCPP $CPPFLAGS'
28465 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28466 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28467 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28468
28469 if test "wxUSE_UNICODE" = "yes"; then
28470
28471   for wx_func in wcstoull
28472   do
28473     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28474 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28475 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28476   echo $ECHO_N "(cached) $ECHO_C" >&6
28477 else
28478
28479         cat >conftest.$ac_ext <<_ACEOF
28480
28481             /* confdefs.h.  */
28482 _ACEOF
28483 cat confdefs.h >>conftest.$ac_ext
28484 cat >>conftest.$ac_ext <<_ACEOF
28485 /* end confdefs.h.  */
28486
28487
28488                 $ac_includes_default
28489
28490 int
28491 main ()
28492 {
28493
28494                 #ifndef $wx_func
28495                   &$wx_func;
28496                 #endif
28497
28498
28499   ;
28500   return 0;
28501 }
28502
28503 _ACEOF
28504 rm -f conftest.$ac_objext conftest$ac_exeext
28505 if { (ac_try="$ac_link"
28506 case "(($ac_try" in
28507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28508   *) ac_try_echo=$ac_try;;
28509 esac
28510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28511   (eval "$ac_link") 2>conftest.er1
28512   ac_status=$?
28513   grep -v '^ *+' conftest.er1 >conftest.err
28514   rm -f conftest.er1
28515   cat conftest.err >&5
28516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28517   (exit $ac_status); } && {
28518          test -z "$ac_cxx_werror_flag" ||
28519          test ! -s conftest.err
28520        } && test -s conftest$ac_exeext &&
28521        $as_test_x conftest$ac_exeext; then
28522   eval wx_cv_func_$wx_func=yes
28523 else
28524   echo "$as_me: failed program was:" >&5
28525 sed 's/^/| /' conftest.$ac_ext >&5
28526
28527         eval wx_cv_func_$wx_func=no
28528 fi
28529
28530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28531       conftest$ac_exeext conftest.$ac_ext
28532
28533 fi
28534 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28535                { echo "$as_me:$LINENO: result: $ac_res" >&5
28536 echo "${ECHO_T}$ac_res" >&6; }
28537
28538     if eval test \$wx_cv_func_$wx_func = yes
28539     then
28540       cat >>confdefs.h <<_ACEOF
28541 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28542 _ACEOF
28543
28544
28545     else
28546       :
28547
28548     fi
28549   done
28550
28551 else
28552
28553   for wx_func in strtoull
28554   do
28555     { echo "$as_me:$LINENO: checking for $wx_func" >&5
28556 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
28557 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
28558   echo $ECHO_N "(cached) $ECHO_C" >&6
28559 else
28560
28561         cat >conftest.$ac_ext <<_ACEOF
28562
28563             /* confdefs.h.  */
28564 _ACEOF
28565 cat confdefs.h >>conftest.$ac_ext
28566 cat >>conftest.$ac_ext <<_ACEOF
28567 /* end confdefs.h.  */
28568
28569
28570                 $ac_includes_default
28571
28572 int
28573 main ()
28574 {
28575
28576                 #ifndef $wx_func
28577                   &$wx_func;
28578                 #endif
28579
28580
28581   ;
28582   return 0;
28583 }
28584
28585 _ACEOF
28586 rm -f conftest.$ac_objext conftest$ac_exeext
28587 if { (ac_try="$ac_link"
28588 case "(($ac_try" in
28589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28590   *) ac_try_echo=$ac_try;;
28591 esac
28592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28593   (eval "$ac_link") 2>conftest.er1
28594   ac_status=$?
28595   grep -v '^ *+' conftest.er1 >conftest.err
28596   rm -f conftest.er1
28597   cat conftest.err >&5
28598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28599   (exit $ac_status); } && {
28600          test -z "$ac_cxx_werror_flag" ||
28601          test ! -s conftest.err
28602        } && test -s conftest$ac_exeext &&
28603        $as_test_x conftest$ac_exeext; then
28604   eval wx_cv_func_$wx_func=yes
28605 else
28606   echo "$as_me: failed program was:" >&5
28607 sed 's/^/| /' conftest.$ac_ext >&5
28608
28609         eval wx_cv_func_$wx_func=no
28610 fi
28611
28612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28613       conftest$ac_exeext conftest.$ac_ext
28614
28615 fi
28616 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
28617                { echo "$as_me:$LINENO: result: $ac_res" >&5
28618 echo "${ECHO_T}$ac_res" >&6; }
28619
28620     if eval test \$wx_cv_func_$wx_func = yes
28621     then
28622       cat >>confdefs.h <<_ACEOF
28623 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
28624 _ACEOF
28625
28626
28627     else
28628       :
28629
28630     fi
28631   done
28632
28633 fi
28634 ac_ext=c
28635 ac_cpp='$CPP $CPPFLAGS'
28636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28639
28640
28641
28642
28643 if test "$wxUSE_REGEX" != "no"; then
28644     cat >>confdefs.h <<\_ACEOF
28645 #define wxUSE_REGEX 1
28646 _ACEOF
28647
28648
28649     if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_REGEX" = "yes"; then
28650         { echo "$as_me:$LINENO: WARNING: Defaulting to the the builtin regex library for Unicode build." >&5
28651 echo "$as_me: WARNING: Defaulting to the the builtin regex library for Unicode build." >&2;}
28652         wxUSE_REGEX=builtin
28653     fi
28654
28655     if test "$wxUSE_REGEX" = "sys" -o "$wxUSE_REGEX" = "yes" ; then
28656                         { echo "$as_me:$LINENO: checking for regex.h" >&5
28657 echo $ECHO_N "checking for regex.h... $ECHO_C" >&6; }
28658 if test "${ac_cv_header_regex_h+set}" = set; then
28659   echo $ECHO_N "(cached) $ECHO_C" >&6
28660 else
28661   cat >conftest.$ac_ext <<_ACEOF
28662 /* confdefs.h.  */
28663 _ACEOF
28664 cat confdefs.h >>conftest.$ac_ext
28665 cat >>conftest.$ac_ext <<_ACEOF
28666 /* end confdefs.h.  */
28667
28668
28669 #include <regex.h>
28670 _ACEOF
28671 rm -f conftest.$ac_objext
28672 if { (ac_try="$ac_compile"
28673 case "(($ac_try" in
28674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28675   *) ac_try_echo=$ac_try;;
28676 esac
28677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28678   (eval "$ac_compile") 2>conftest.er1
28679   ac_status=$?
28680   grep -v '^ *+' conftest.er1 >conftest.err
28681   rm -f conftest.er1
28682   cat conftest.err >&5
28683   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28684   (exit $ac_status); } && {
28685          test -z "$ac_c_werror_flag" ||
28686          test ! -s conftest.err
28687        } && test -s conftest.$ac_objext; then
28688   ac_cv_header_regex_h=yes
28689 else
28690   echo "$as_me: failed program was:" >&5
28691 sed 's/^/| /' conftest.$ac_ext >&5
28692
28693         ac_cv_header_regex_h=no
28694 fi
28695
28696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28697 fi
28698 { echo "$as_me:$LINENO: result: $ac_cv_header_regex_h" >&5
28699 echo "${ECHO_T}$ac_cv_header_regex_h" >&6; }
28700 if test $ac_cv_header_regex_h = yes; then
28701
28702
28703 for ac_func in regcomp re_search
28704 do
28705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
28706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
28707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
28708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28709   echo $ECHO_N "(cached) $ECHO_C" >&6
28710 else
28711   cat >conftest.$ac_ext <<_ACEOF
28712 /* confdefs.h.  */
28713 _ACEOF
28714 cat confdefs.h >>conftest.$ac_ext
28715 cat >>conftest.$ac_ext <<_ACEOF
28716 /* end confdefs.h.  */
28717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28718    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28719 #define $ac_func innocuous_$ac_func
28720
28721 /* System header to define __stub macros and hopefully few prototypes,
28722     which can conflict with char $ac_func (); below.
28723     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28724     <limits.h> exists even on freestanding compilers.  */
28725
28726 #ifdef __STDC__
28727 # include <limits.h>
28728 #else
28729 # include <assert.h>
28730 #endif
28731
28732 #undef $ac_func
28733
28734 /* Override any GCC internal prototype to avoid an error.
28735    Use char because int might match the return type of a GCC
28736    builtin and then its argument prototype would still apply.  */
28737 #ifdef __cplusplus
28738 extern "C"
28739 #endif
28740 char $ac_func ();
28741 /* The GNU C library defines this for functions which it implements
28742     to always fail with ENOSYS.  Some functions are actually named
28743     something starting with __ and the normal name is an alias.  */
28744 #if defined __stub_$ac_func || defined __stub___$ac_func
28745 choke me
28746 #endif
28747
28748 int
28749 main ()
28750 {
28751 return $ac_func ();
28752   ;
28753   return 0;
28754 }
28755 _ACEOF
28756 rm -f conftest.$ac_objext conftest$ac_exeext
28757 if { (ac_try="$ac_link"
28758 case "(($ac_try" in
28759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28760   *) ac_try_echo=$ac_try;;
28761 esac
28762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28763   (eval "$ac_link") 2>conftest.er1
28764   ac_status=$?
28765   grep -v '^ *+' conftest.er1 >conftest.err
28766   rm -f conftest.er1
28767   cat conftest.err >&5
28768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769   (exit $ac_status); } && {
28770          test -z "$ac_c_werror_flag" ||
28771          test ! -s conftest.err
28772        } && test -s conftest$ac_exeext &&
28773        $as_test_x conftest$ac_exeext; then
28774   eval "$as_ac_var=yes"
28775 else
28776   echo "$as_me: failed program was:" >&5
28777 sed 's/^/| /' conftest.$ac_ext >&5
28778
28779         eval "$as_ac_var=no"
28780 fi
28781
28782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28783       conftest$ac_exeext conftest.$ac_ext
28784 fi
28785 ac_res=`eval echo '${'$as_ac_var'}'`
28786                { echo "$as_me:$LINENO: result: $ac_res" >&5
28787 echo "${ECHO_T}$ac_res" >&6; }
28788 if test `eval echo '${'$as_ac_var'}'` = yes; then
28789   cat >>confdefs.h <<_ACEOF
28790 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
28791 _ACEOF
28792
28793 fi
28794 done
28795
28796 fi
28797
28798
28799
28800         if test "x$ac_cv_func_regcomp" != "xyes"; then
28801             if test "$wxUSE_REGEX" = "sys" ; then
28802                 { { echo "$as_me:$LINENO: error: system regex library not found! Use --with-regex to use built-in version" >&5
28803 echo "$as_me: error: system regex library not found! Use --with-regex to use built-in version" >&2;}
28804    { (exit 1); exit 1; }; }
28805             else
28806                 { echo "$as_me:$LINENO: WARNING: system regex library not found, will use built-in instead" >&5
28807 echo "$as_me: WARNING: system regex library not found, will use built-in instead" >&2;}
28808                 wxUSE_REGEX=builtin
28809             fi
28810         else
28811                         wxUSE_REGEX=sys
28812                         cat >>confdefs.h <<\_ACEOF
28813 #define WX_NO_REGEX_ADVANCED 1
28814 _ACEOF
28815
28816         fi
28817     fi
28818 fi
28819
28820
28821 ZLIB_LINK=
28822 if test "$wxUSE_ZLIB" != "no" ; then
28823     cat >>confdefs.h <<\_ACEOF
28824 #define wxUSE_ZLIB 1
28825 _ACEOF
28826
28827
28828     if test "$wxUSE_ZLIB" = "sys" -o "$wxUSE_ZLIB" = "yes" ; then
28829                                                 if test "$USE_DARWIN" = 1; then
28830             system_zlib_h_ok="yes"
28831         else
28832                                                                                     { echo "$as_me:$LINENO: checking for zlib.h >= 1.1.4" >&5
28833 echo $ECHO_N "checking for zlib.h >= 1.1.4... $ECHO_C" >&6; }
28834 if test "${ac_cv_header_zlib_h+set}" = set; then
28835   echo $ECHO_N "(cached) $ECHO_C" >&6
28836 else
28837   if test "$cross_compiling" = yes; then
28838                       unset ac_cv_header_zlib_h
28839
28840 else
28841   cat >conftest.$ac_ext <<_ACEOF
28842 /* confdefs.h.  */
28843 _ACEOF
28844 cat confdefs.h >>conftest.$ac_ext
28845 cat >>conftest.$ac_ext <<_ACEOF
28846 /* end confdefs.h.  */
28847
28848                         #include <zlib.h>
28849                         #include <stdio.h>
28850
28851                         int main()
28852                         {
28853                             FILE *f=fopen("conftestval", "w");
28854                             if (!f) exit(1);
28855                             fprintf(f, "%s",
28856                                     ZLIB_VERSION[0] == '1' &&
28857                                     (ZLIB_VERSION[2] > '1' ||
28858                                     (ZLIB_VERSION[2] == '1' &&
28859                                      ZLIB_VERSION[4] >= '4')) ? "yes" : "no");
28860                             exit(0);
28861                         }
28862
28863 _ACEOF
28864 rm -f conftest$ac_exeext
28865 if { (ac_try="$ac_link"
28866 case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28871   (eval "$ac_link") 2>&5
28872   ac_status=$?
28873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28874   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28875   { (case "(($ac_try" in
28876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28877   *) ac_try_echo=$ac_try;;
28878 esac
28879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28880   (eval "$ac_try") 2>&5
28881   ac_status=$?
28882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28883   (exit $ac_status); }; }; then
28884   ac_cv_header_zlib_h=`cat conftestval`
28885 else
28886   echo "$as_me: program exited with status $ac_status" >&5
28887 echo "$as_me: failed program was:" >&5
28888 sed 's/^/| /' conftest.$ac_ext >&5
28889
28890 ( exit $ac_status )
28891 ac_cv_header_zlib_h=no
28892 fi
28893 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28894 fi
28895
28896
28897
28898 fi
28899 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28900 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28901                                     { echo "$as_me:$LINENO: checking for zlib.h" >&5
28902 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; }
28903 if test "${ac_cv_header_zlib_h+set}" = set; then
28904   echo $ECHO_N "(cached) $ECHO_C" >&6
28905 else
28906   cat >conftest.$ac_ext <<_ACEOF
28907 /* confdefs.h.  */
28908 _ACEOF
28909 cat confdefs.h >>conftest.$ac_ext
28910 cat >>conftest.$ac_ext <<_ACEOF
28911 /* end confdefs.h.  */
28912
28913
28914 #include <zlib.h>
28915 _ACEOF
28916 rm -f conftest.$ac_objext
28917 if { (ac_try="$ac_compile"
28918 case "(($ac_try" in
28919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28920   *) ac_try_echo=$ac_try;;
28921 esac
28922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28923   (eval "$ac_compile") 2>conftest.er1
28924   ac_status=$?
28925   grep -v '^ *+' conftest.er1 >conftest.err
28926   rm -f conftest.er1
28927   cat conftest.err >&5
28928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28929   (exit $ac_status); } && {
28930          test -z "$ac_c_werror_flag" ||
28931          test ! -s conftest.err
28932        } && test -s conftest.$ac_objext; then
28933   ac_cv_header_zlib_h=yes
28934 else
28935   echo "$as_me: failed program was:" >&5
28936 sed 's/^/| /' conftest.$ac_ext >&5
28937
28938         ac_cv_header_zlib_h=no
28939 fi
28940
28941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28942 fi
28943 { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
28944 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; }
28945
28946
28947
28948             system_zlib_h_ok=$ac_cv_header_zlib_h
28949         fi
28950
28951         if test "$system_zlib_h_ok" = "yes"; then
28952             { echo "$as_me:$LINENO: checking for deflate in -lz" >&5
28953 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6; }
28954 if test "${ac_cv_lib_z_deflate+set}" = set; then
28955   echo $ECHO_N "(cached) $ECHO_C" >&6
28956 else
28957   ac_check_lib_save_LIBS=$LIBS
28958 LIBS="-lz  $LIBS"
28959 cat >conftest.$ac_ext <<_ACEOF
28960 /* confdefs.h.  */
28961 _ACEOF
28962 cat confdefs.h >>conftest.$ac_ext
28963 cat >>conftest.$ac_ext <<_ACEOF
28964 /* end confdefs.h.  */
28965
28966 /* Override any GCC internal prototype to avoid an error.
28967    Use char because int might match the return type of a GCC
28968    builtin and then its argument prototype would still apply.  */
28969 #ifdef __cplusplus
28970 extern "C"
28971 #endif
28972 char deflate ();
28973 int
28974 main ()
28975 {
28976 return deflate ();
28977   ;
28978   return 0;
28979 }
28980 _ACEOF
28981 rm -f conftest.$ac_objext conftest$ac_exeext
28982 if { (ac_try="$ac_link"
28983 case "(($ac_try" in
28984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28985   *) ac_try_echo=$ac_try;;
28986 esac
28987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
28988   (eval "$ac_link") 2>conftest.er1
28989   ac_status=$?
28990   grep -v '^ *+' conftest.er1 >conftest.err
28991   rm -f conftest.er1
28992   cat conftest.err >&5
28993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
28994   (exit $ac_status); } && {
28995          test -z "$ac_c_werror_flag" ||
28996          test ! -s conftest.err
28997        } && test -s conftest$ac_exeext &&
28998        $as_test_x conftest$ac_exeext; then
28999   ac_cv_lib_z_deflate=yes
29000 else
29001   echo "$as_me: failed program was:" >&5
29002 sed 's/^/| /' conftest.$ac_ext >&5
29003
29004         ac_cv_lib_z_deflate=no
29005 fi
29006
29007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29008       conftest$ac_exeext conftest.$ac_ext
29009 LIBS=$ac_check_lib_save_LIBS
29010 fi
29011 { echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
29012 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6; }
29013 if test $ac_cv_lib_z_deflate = yes; then
29014   ZLIB_LINK=" -lz"
29015 fi
29016
29017         fi
29018
29019         if test "x$ZLIB_LINK" = "x" ; then
29020             if test "$wxUSE_ZLIB" = "sys" ; then
29021                 { { echo "$as_me:$LINENO: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&5
29022 echo "$as_me: error: zlib library not found or too old! Use --with-zlib=builtin to use built-in version" >&2;}
29023    { (exit 1); exit 1; }; }
29024             else
29025                 { echo "$as_me:$LINENO: WARNING: zlib library not found or too old, will use built-in instead" >&5
29026 echo "$as_me: WARNING: zlib library not found or too old, will use built-in instead" >&2;}
29027                 wxUSE_ZLIB=builtin
29028             fi
29029         else
29030                         wxUSE_ZLIB=sys
29031         fi
29032     fi
29033 fi
29034
29035
29036 PNG_LINK=
29037 if test "$wxUSE_LIBPNG" != "no" ; then
29038     cat >>confdefs.h <<\_ACEOF
29039 #define wxUSE_LIBPNG 1
29040 _ACEOF
29041
29042
29043     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBPNG" = "builtin" ; then
29044         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&5
29045 echo "$as_me: WARNING: wxMGL doesn't work with builtin png library, will use MGL one instead" >&2;}
29046         wxUSE_LIBPNG=sys
29047     fi
29048
29049                 if test "$wxUSE_MGL" != 1 -a "$wxUSE_LIBPNG" = "sys" -a "$wxUSE_ZLIB" != "sys" ; then
29050         { echo "$as_me:$LINENO: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&5
29051 echo "$as_me: WARNING: system png library doesn't work without system zlib, will use built-in instead" >&2;}
29052         wxUSE_LIBPNG=builtin
29053     fi
29054
29055     if test "$wxUSE_MGL" != 1 ; then
29056                 if test "$wxUSE_LIBPNG" = "sys" -o "$wxUSE_LIBPNG" = "yes" ; then
29057                                     { echo "$as_me:$LINENO: checking for png.h > 0.90" >&5
29058 echo $ECHO_N "checking for png.h > 0.90... $ECHO_C" >&6; }
29059 if test "${ac_cv_header_png_h+set}" = set; then
29060   echo $ECHO_N "(cached) $ECHO_C" >&6
29061 else
29062   if test "$cross_compiling" = yes; then
29063                       unset ac_cv_header_png_h
29064
29065 else
29066   cat >conftest.$ac_ext <<_ACEOF
29067 /* confdefs.h.  */
29068 _ACEOF
29069 cat confdefs.h >>conftest.$ac_ext
29070 cat >>conftest.$ac_ext <<_ACEOF
29071 /* end confdefs.h.  */
29072
29073                         #include <png.h>
29074                         #include <stdio.h>
29075
29076                         int main()
29077                         {
29078                             FILE *f=fopen("conftestval", "w");
29079                             if (!f) exit(1);
29080                             fprintf(f, "%s",
29081                                      PNG_LIBPNG_VER > 90 ? "yes" : "no");
29082                             exit(0);
29083                         }
29084
29085 _ACEOF
29086 rm -f conftest$ac_exeext
29087 if { (ac_try="$ac_link"
29088 case "(($ac_try" in
29089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29090   *) ac_try_echo=$ac_try;;
29091 esac
29092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29093   (eval "$ac_link") 2>&5
29094   ac_status=$?
29095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29096   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29097   { (case "(($ac_try" in
29098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29099   *) ac_try_echo=$ac_try;;
29100 esac
29101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29102   (eval "$ac_try") 2>&5
29103   ac_status=$?
29104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29105   (exit $ac_status); }; }; then
29106   ac_cv_header_png_h=`cat conftestval`
29107 else
29108   echo "$as_me: program exited with status $ac_status" >&5
29109 echo "$as_me: failed program was:" >&5
29110 sed 's/^/| /' conftest.$ac_ext >&5
29111
29112 ( exit $ac_status )
29113 ac_cv_header_png_h=no
29114 fi
29115 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29116 fi
29117
29118
29119
29120 fi
29121 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29122 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29123             { echo "$as_me:$LINENO: checking for png.h" >&5
29124 echo $ECHO_N "checking for png.h... $ECHO_C" >&6; }
29125 if test "${ac_cv_header_png_h+set}" = set; then
29126   echo $ECHO_N "(cached) $ECHO_C" >&6
29127 else
29128   cat >conftest.$ac_ext <<_ACEOF
29129 /* confdefs.h.  */
29130 _ACEOF
29131 cat confdefs.h >>conftest.$ac_ext
29132 cat >>conftest.$ac_ext <<_ACEOF
29133 /* end confdefs.h.  */
29134
29135
29136 #include <png.h>
29137 _ACEOF
29138 rm -f conftest.$ac_objext
29139 if { (ac_try="$ac_compile"
29140 case "(($ac_try" in
29141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29142   *) ac_try_echo=$ac_try;;
29143 esac
29144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29145   (eval "$ac_compile") 2>conftest.er1
29146   ac_status=$?
29147   grep -v '^ *+' conftest.er1 >conftest.err
29148   rm -f conftest.er1
29149   cat conftest.err >&5
29150   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29151   (exit $ac_status); } && {
29152          test -z "$ac_c_werror_flag" ||
29153          test ! -s conftest.err
29154        } && test -s conftest.$ac_objext; then
29155   ac_cv_header_png_h=yes
29156 else
29157   echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29159
29160         ac_cv_header_png_h=no
29161 fi
29162
29163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29164 fi
29165 { echo "$as_me:$LINENO: result: $ac_cv_header_png_h" >&5
29166 echo "${ECHO_T}$ac_cv_header_png_h" >&6; }
29167
29168
29169
29170             if test "$ac_cv_header_png_h" = "yes"; then
29171                 { echo "$as_me:$LINENO: checking for png_check_sig in -lpng" >&5
29172 echo $ECHO_N "checking for png_check_sig in -lpng... $ECHO_C" >&6; }
29173 if test "${ac_cv_lib_png_png_check_sig+set}" = set; then
29174   echo $ECHO_N "(cached) $ECHO_C" >&6
29175 else
29176   ac_check_lib_save_LIBS=$LIBS
29177 LIBS="-lpng -lz -lm $LIBS"
29178 cat >conftest.$ac_ext <<_ACEOF
29179 /* confdefs.h.  */
29180 _ACEOF
29181 cat confdefs.h >>conftest.$ac_ext
29182 cat >>conftest.$ac_ext <<_ACEOF
29183 /* end confdefs.h.  */
29184
29185 /* Override any GCC internal prototype to avoid an error.
29186    Use char because int might match the return type of a GCC
29187    builtin and then its argument prototype would still apply.  */
29188 #ifdef __cplusplus
29189 extern "C"
29190 #endif
29191 char png_check_sig ();
29192 int
29193 main ()
29194 {
29195 return png_check_sig ();
29196   ;
29197   return 0;
29198 }
29199 _ACEOF
29200 rm -f conftest.$ac_objext conftest$ac_exeext
29201 if { (ac_try="$ac_link"
29202 case "(($ac_try" in
29203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29204   *) ac_try_echo=$ac_try;;
29205 esac
29206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29207   (eval "$ac_link") 2>conftest.er1
29208   ac_status=$?
29209   grep -v '^ *+' conftest.er1 >conftest.err
29210   rm -f conftest.er1
29211   cat conftest.err >&5
29212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29213   (exit $ac_status); } && {
29214          test -z "$ac_c_werror_flag" ||
29215          test ! -s conftest.err
29216        } && test -s conftest$ac_exeext &&
29217        $as_test_x conftest$ac_exeext; then
29218   ac_cv_lib_png_png_check_sig=yes
29219 else
29220   echo "$as_me: failed program was:" >&5
29221 sed 's/^/| /' conftest.$ac_ext >&5
29222
29223         ac_cv_lib_png_png_check_sig=no
29224 fi
29225
29226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29227       conftest$ac_exeext conftest.$ac_ext
29228 LIBS=$ac_check_lib_save_LIBS
29229 fi
29230 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_check_sig" >&5
29231 echo "${ECHO_T}$ac_cv_lib_png_png_check_sig" >&6; }
29232 if test $ac_cv_lib_png_png_check_sig = yes; then
29233   PNG_LINK=" -lpng -lz"
29234 fi
29235
29236             fi
29237
29238             if test "x$PNG_LINK" = "x" ; then
29239                 if test "$wxUSE_LIBPNG" = "sys" ; then
29240                     { { echo "$as_me:$LINENO: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&5
29241 echo "$as_me: error: system png library not found or too old! Use --with-libpng=builtin to use built-in version" >&2;}
29242    { (exit 1); exit 1; }; }
29243                 else
29244                     { echo "$as_me:$LINENO: WARNING: system png library not found or too old, will use built-in instead" >&5
29245 echo "$as_me: WARNING: system png library not found or too old, will use built-in instead" >&2;}
29246                     wxUSE_LIBPNG=builtin
29247                 fi
29248             else
29249                                 wxUSE_LIBPNG=sys
29250             fi
29251         fi
29252     fi
29253
29254     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS png"
29255 fi
29256
29257
29258 JPEG_LINK=
29259 if test "$wxUSE_LIBJPEG" != "no" ; then
29260     cat >>confdefs.h <<\_ACEOF
29261 #define wxUSE_LIBJPEG 1
29262 _ACEOF
29263
29264
29265     if test "$wxUSE_MGL" = 1 -a "$wxUSE_LIBJPEG" = "builtin" ; then
29266         { echo "$as_me:$LINENO: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&5
29267 echo "$as_me: WARNING: wxMGL doesn't work with builtin jpeg library, will use MGL one instead" >&2;}
29268         wxUSE_LIBJPEG=sys
29269     fi
29270
29271     if test "$wxUSE_MGL" != 1 ; then
29272                 if test "$wxUSE_LIBJPEG" = "sys" -o "$wxUSE_LIBJPEG" = "yes" ; then
29273                                                 { echo "$as_me:$LINENO: checking for jpeglib.h" >&5
29274 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6; }
29275             if test "${ac_cv_header_jpeglib_h+set}" = set; then
29276   echo $ECHO_N "(cached) $ECHO_C" >&6
29277 else
29278   cat >conftest.$ac_ext <<_ACEOF
29279 /* confdefs.h.  */
29280 _ACEOF
29281 cat confdefs.h >>conftest.$ac_ext
29282 cat >>conftest.$ac_ext <<_ACEOF
29283 /* end confdefs.h.  */
29284
29285                         #undef HAVE_STDLIB_H
29286                         #include <stdio.h>
29287                         #include <jpeglib.h>
29288
29289 int
29290 main ()
29291 {
29292
29293
29294   ;
29295   return 0;
29296 }
29297 _ACEOF
29298 rm -f conftest.$ac_objext
29299 if { (ac_try="$ac_compile"
29300 case "(($ac_try" in
29301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29302   *) ac_try_echo=$ac_try;;
29303 esac
29304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29305   (eval "$ac_compile") 2>conftest.er1
29306   ac_status=$?
29307   grep -v '^ *+' conftest.er1 >conftest.err
29308   rm -f conftest.er1
29309   cat conftest.err >&5
29310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29311   (exit $ac_status); } && {
29312          test -z "$ac_c_werror_flag" ||
29313          test ! -s conftest.err
29314        } && test -s conftest.$ac_objext; then
29315   ac_cv_header_jpeglib_h=yes
29316 else
29317   echo "$as_me: failed program was:" >&5
29318 sed 's/^/| /' conftest.$ac_ext >&5
29319
29320         ac_cv_header_jpeglib_h=no
29321
29322 fi
29323
29324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29325
29326 fi
29327
29328             { echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
29329 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6; }
29330
29331             if test "$ac_cv_header_jpeglib_h" = "yes"; then
29332                 { echo "$as_me:$LINENO: checking for jpeg_read_header in -ljpeg" >&5
29333 echo $ECHO_N "checking for jpeg_read_header in -ljpeg... $ECHO_C" >&6; }
29334 if test "${ac_cv_lib_jpeg_jpeg_read_header+set}" = set; then
29335   echo $ECHO_N "(cached) $ECHO_C" >&6
29336 else
29337   ac_check_lib_save_LIBS=$LIBS
29338 LIBS="-ljpeg  $LIBS"
29339 cat >conftest.$ac_ext <<_ACEOF
29340 /* confdefs.h.  */
29341 _ACEOF
29342 cat confdefs.h >>conftest.$ac_ext
29343 cat >>conftest.$ac_ext <<_ACEOF
29344 /* end confdefs.h.  */
29345
29346 /* Override any GCC internal prototype to avoid an error.
29347    Use char because int might match the return type of a GCC
29348    builtin and then its argument prototype would still apply.  */
29349 #ifdef __cplusplus
29350 extern "C"
29351 #endif
29352 char jpeg_read_header ();
29353 int
29354 main ()
29355 {
29356 return jpeg_read_header ();
29357   ;
29358   return 0;
29359 }
29360 _ACEOF
29361 rm -f conftest.$ac_objext conftest$ac_exeext
29362 if { (ac_try="$ac_link"
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_link") 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_exeext &&
29378        $as_test_x conftest$ac_exeext; then
29379   ac_cv_lib_jpeg_jpeg_read_header=yes
29380 else
29381   echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29383
29384         ac_cv_lib_jpeg_jpeg_read_header=no
29385 fi
29386
29387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29388       conftest$ac_exeext conftest.$ac_ext
29389 LIBS=$ac_check_lib_save_LIBS
29390 fi
29391 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
29392 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
29393 if test $ac_cv_lib_jpeg_jpeg_read_header = yes; then
29394   JPEG_LINK=" -ljpeg"
29395 fi
29396
29397             fi
29398
29399             if test "x$JPEG_LINK" = "x" ; then
29400                 if test "$wxUSE_LIBJPEG" = "sys" ; then
29401                     { { echo "$as_me:$LINENO: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&5
29402 echo "$as_me: error: system jpeg library not found! Use --with-libjpeg=builtin to use built-in version" >&2;}
29403    { (exit 1); exit 1; }; }
29404                 else
29405                     { echo "$as_me:$LINENO: WARNING: system jpeg library not found, will use built-in instead" >&5
29406 echo "$as_me: WARNING: system jpeg library not found, will use built-in instead" >&2;}
29407                     wxUSE_LIBJPEG=builtin
29408                 fi
29409             else
29410                                 wxUSE_LIBJPEG=sys
29411
29412                 if test "$wxUSE_MSW" = 1; then
29413                                                                                                     { echo "$as_me:$LINENO: checking for boolean" >&5
29414 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29415 if test "${ac_cv_type_boolean+set}" = set; then
29416   echo $ECHO_N "(cached) $ECHO_C" >&6
29417 else
29418   cat >conftest.$ac_ext <<_ACEOF
29419 /* confdefs.h.  */
29420 _ACEOF
29421 cat confdefs.h >>conftest.$ac_ext
29422 cat >>conftest.$ac_ext <<_ACEOF
29423 /* end confdefs.h.  */
29424 #include <windows.h>
29425
29426 typedef boolean ac__type_new_;
29427 int
29428 main ()
29429 {
29430 if ((ac__type_new_ *) 0)
29431   return 0;
29432 if (sizeof (ac__type_new_))
29433   return 0;
29434   ;
29435   return 0;
29436 }
29437 _ACEOF
29438 rm -f conftest.$ac_objext
29439 if { (ac_try="$ac_compile"
29440 case "(($ac_try" in
29441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29442   *) ac_try_echo=$ac_try;;
29443 esac
29444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29445   (eval "$ac_compile") 2>conftest.er1
29446   ac_status=$?
29447   grep -v '^ *+' conftest.er1 >conftest.err
29448   rm -f conftest.er1
29449   cat conftest.err >&5
29450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29451   (exit $ac_status); } && {
29452          test -z "$ac_c_werror_flag" ||
29453          test ! -s conftest.err
29454        } && test -s conftest.$ac_objext; then
29455   ac_cv_type_boolean=yes
29456 else
29457   echo "$as_me: failed program was:" >&5
29458 sed 's/^/| /' conftest.$ac_ext >&5
29459
29460         ac_cv_type_boolean=no
29461 fi
29462
29463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29464 fi
29465 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29466 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29467 if test $ac_cv_type_boolean = yes; then
29468
29469 cat >>confdefs.h <<_ACEOF
29470 #define HAVE_BOOLEAN 1
29471 _ACEOF
29472
29473
29474                             { echo "$as_me:$LINENO: checking for boolean" >&5
29475 echo $ECHO_N "checking for boolean... $ECHO_C" >&6; }
29476 if test "${ac_cv_type_boolean+set}" = set; then
29477   echo $ECHO_N "(cached) $ECHO_C" >&6
29478 else
29479   cat >conftest.$ac_ext <<_ACEOF
29480 /* confdefs.h.  */
29481 _ACEOF
29482 cat confdefs.h >>conftest.$ac_ext
29483 cat >>conftest.$ac_ext <<_ACEOF
29484 /* end confdefs.h.  */
29485
29486                                     #undef HAVE_BOOLEAN
29487                                     #include <stdio.h>
29488                                     #include <jpeglib.h>
29489
29490
29491 typedef boolean ac__type_new_;
29492 int
29493 main ()
29494 {
29495 if ((ac__type_new_ *) 0)
29496   return 0;
29497 if (sizeof (ac__type_new_))
29498   return 0;
29499   ;
29500   return 0;
29501 }
29502 _ACEOF
29503 rm -f conftest.$ac_objext
29504 if { (ac_try="$ac_compile"
29505 case "(($ac_try" in
29506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29507   *) ac_try_echo=$ac_try;;
29508 esac
29509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29510   (eval "$ac_compile") 2>conftest.er1
29511   ac_status=$?
29512   grep -v '^ *+' conftest.er1 >conftest.err
29513   rm -f conftest.er1
29514   cat conftest.err >&5
29515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29516   (exit $ac_status); } && {
29517          test -z "$ac_c_werror_flag" ||
29518          test ! -s conftest.err
29519        } && test -s conftest.$ac_objext; then
29520   ac_cv_type_boolean=yes
29521 else
29522   echo "$as_me: failed program was:" >&5
29523 sed 's/^/| /' conftest.$ac_ext >&5
29524
29525         ac_cv_type_boolean=no
29526 fi
29527
29528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29529 fi
29530 { echo "$as_me:$LINENO: result: $ac_cv_type_boolean" >&5
29531 echo "${ECHO_T}$ac_cv_type_boolean" >&6; }
29532
29533 # The cast to long int works around a bug in the HP C Compiler
29534 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
29535 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
29536 # This bug is HP SR number 8606223364.
29537 { echo "$as_me:$LINENO: checking size of boolean" >&5
29538 echo $ECHO_N "checking size of boolean... $ECHO_C" >&6; }
29539 if test "${ac_cv_sizeof_boolean+set}" = set; then
29540   echo $ECHO_N "(cached) $ECHO_C" >&6
29541 else
29542   if test "$cross_compiling" = yes; then
29543   # Depending upon the size, compute the lo and hi bounds.
29544 cat >conftest.$ac_ext <<_ACEOF
29545 /* confdefs.h.  */
29546 _ACEOF
29547 cat confdefs.h >>conftest.$ac_ext
29548 cat >>conftest.$ac_ext <<_ACEOF
29549 /* end confdefs.h.  */
29550
29551                                     #undef HAVE_BOOLEAN
29552                                     #include <stdio.h>
29553                                     #include <jpeglib.h>
29554
29555
29556    typedef boolean ac__type_sizeof_;
29557 int
29558 main ()
29559 {
29560 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
29561 test_array [0] = 0
29562
29563   ;
29564   return 0;
29565 }
29566 _ACEOF
29567 rm -f conftest.$ac_objext
29568 if { (ac_try="$ac_compile"
29569 case "(($ac_try" in
29570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29571   *) ac_try_echo=$ac_try;;
29572 esac
29573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29574   (eval "$ac_compile") 2>conftest.er1
29575   ac_status=$?
29576   grep -v '^ *+' conftest.er1 >conftest.err
29577   rm -f conftest.er1
29578   cat conftest.err >&5
29579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29580   (exit $ac_status); } && {
29581          test -z "$ac_c_werror_flag" ||
29582          test ! -s conftest.err
29583        } && test -s conftest.$ac_objext; then
29584   ac_lo=0 ac_mid=0
29585   while :; do
29586     cat >conftest.$ac_ext <<_ACEOF
29587 /* confdefs.h.  */
29588 _ACEOF
29589 cat confdefs.h >>conftest.$ac_ext
29590 cat >>conftest.$ac_ext <<_ACEOF
29591 /* end confdefs.h.  */
29592
29593                                     #undef HAVE_BOOLEAN
29594                                     #include <stdio.h>
29595                                     #include <jpeglib.h>
29596
29597
29598    typedef boolean ac__type_sizeof_;
29599 int
29600 main ()
29601 {
29602 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29603 test_array [0] = 0
29604
29605   ;
29606   return 0;
29607 }
29608 _ACEOF
29609 rm -f conftest.$ac_objext
29610 if { (ac_try="$ac_compile"
29611 case "(($ac_try" in
29612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29613   *) ac_try_echo=$ac_try;;
29614 esac
29615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29616   (eval "$ac_compile") 2>conftest.er1
29617   ac_status=$?
29618   grep -v '^ *+' conftest.er1 >conftest.err
29619   rm -f conftest.er1
29620   cat conftest.err >&5
29621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29622   (exit $ac_status); } && {
29623          test -z "$ac_c_werror_flag" ||
29624          test ! -s conftest.err
29625        } && test -s conftest.$ac_objext; then
29626   ac_hi=$ac_mid; break
29627 else
29628   echo "$as_me: failed program was:" >&5
29629 sed 's/^/| /' conftest.$ac_ext >&5
29630
29631         ac_lo=`expr $ac_mid + 1`
29632                         if test $ac_lo -le $ac_mid; then
29633                           ac_lo= ac_hi=
29634                           break
29635                         fi
29636                         ac_mid=`expr 2 '*' $ac_mid + 1`
29637 fi
29638
29639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29640   done
29641 else
29642   echo "$as_me: failed program was:" >&5
29643 sed 's/^/| /' conftest.$ac_ext >&5
29644
29645         cat >conftest.$ac_ext <<_ACEOF
29646 /* confdefs.h.  */
29647 _ACEOF
29648 cat confdefs.h >>conftest.$ac_ext
29649 cat >>conftest.$ac_ext <<_ACEOF
29650 /* end confdefs.h.  */
29651
29652                                     #undef HAVE_BOOLEAN
29653                                     #include <stdio.h>
29654                                     #include <jpeglib.h>
29655
29656
29657    typedef boolean ac__type_sizeof_;
29658 int
29659 main ()
29660 {
29661 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
29662 test_array [0] = 0
29663
29664   ;
29665   return 0;
29666 }
29667 _ACEOF
29668 rm -f conftest.$ac_objext
29669 if { (ac_try="$ac_compile"
29670 case "(($ac_try" in
29671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29672   *) ac_try_echo=$ac_try;;
29673 esac
29674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29675   (eval "$ac_compile") 2>conftest.er1
29676   ac_status=$?
29677   grep -v '^ *+' conftest.er1 >conftest.err
29678   rm -f conftest.er1
29679   cat conftest.err >&5
29680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29681   (exit $ac_status); } && {
29682          test -z "$ac_c_werror_flag" ||
29683          test ! -s conftest.err
29684        } && test -s conftest.$ac_objext; then
29685   ac_hi=-1 ac_mid=-1
29686   while :; do
29687     cat >conftest.$ac_ext <<_ACEOF
29688 /* confdefs.h.  */
29689 _ACEOF
29690 cat confdefs.h >>conftest.$ac_ext
29691 cat >>conftest.$ac_ext <<_ACEOF
29692 /* end confdefs.h.  */
29693
29694                                     #undef HAVE_BOOLEAN
29695                                     #include <stdio.h>
29696                                     #include <jpeglib.h>
29697
29698
29699    typedef boolean ac__type_sizeof_;
29700 int
29701 main ()
29702 {
29703 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
29704 test_array [0] = 0
29705
29706   ;
29707   return 0;
29708 }
29709 _ACEOF
29710 rm -f conftest.$ac_objext
29711 if { (ac_try="$ac_compile"
29712 case "(($ac_try" in
29713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29714   *) ac_try_echo=$ac_try;;
29715 esac
29716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29717   (eval "$ac_compile") 2>conftest.er1
29718   ac_status=$?
29719   grep -v '^ *+' conftest.er1 >conftest.err
29720   rm -f conftest.er1
29721   cat conftest.err >&5
29722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29723   (exit $ac_status); } && {
29724          test -z "$ac_c_werror_flag" ||
29725          test ! -s conftest.err
29726        } && test -s conftest.$ac_objext; then
29727   ac_lo=$ac_mid; break
29728 else
29729   echo "$as_me: failed program was:" >&5
29730 sed 's/^/| /' conftest.$ac_ext >&5
29731
29732         ac_hi=`expr '(' $ac_mid ')' - 1`
29733                         if test $ac_mid -le $ac_hi; then
29734                           ac_lo= ac_hi=
29735                           break
29736                         fi
29737                         ac_mid=`expr 2 '*' $ac_mid`
29738 fi
29739
29740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29741   done
29742 else
29743   echo "$as_me: failed program was:" >&5
29744 sed 's/^/| /' conftest.$ac_ext >&5
29745
29746         ac_lo= ac_hi=
29747 fi
29748
29749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29750 fi
29751
29752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753 # Binary search between lo and hi bounds.
29754 while test "x$ac_lo" != "x$ac_hi"; do
29755   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
29756   cat >conftest.$ac_ext <<_ACEOF
29757 /* confdefs.h.  */
29758 _ACEOF
29759 cat confdefs.h >>conftest.$ac_ext
29760 cat >>conftest.$ac_ext <<_ACEOF
29761 /* end confdefs.h.  */
29762
29763                                     #undef HAVE_BOOLEAN
29764                                     #include <stdio.h>
29765                                     #include <jpeglib.h>
29766
29767
29768    typedef boolean ac__type_sizeof_;
29769 int
29770 main ()
29771 {
29772 static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
29773 test_array [0] = 0
29774
29775   ;
29776   return 0;
29777 }
29778 _ACEOF
29779 rm -f conftest.$ac_objext
29780 if { (ac_try="$ac_compile"
29781 case "(($ac_try" in
29782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29783   *) ac_try_echo=$ac_try;;
29784 esac
29785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29786   (eval "$ac_compile") 2>conftest.er1
29787   ac_status=$?
29788   grep -v '^ *+' conftest.er1 >conftest.err
29789   rm -f conftest.er1
29790   cat conftest.err >&5
29791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29792   (exit $ac_status); } && {
29793          test -z "$ac_c_werror_flag" ||
29794          test ! -s conftest.err
29795        } && test -s conftest.$ac_objext; then
29796   ac_hi=$ac_mid
29797 else
29798   echo "$as_me: failed program was:" >&5
29799 sed 's/^/| /' conftest.$ac_ext >&5
29800
29801         ac_lo=`expr '(' $ac_mid ')' + 1`
29802 fi
29803
29804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29805 done
29806 case $ac_lo in
29807 ?*) ac_cv_sizeof_boolean=$ac_lo;;
29808 '') if test "$ac_cv_type_boolean" = yes; then
29809      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29810 See \`config.log' for more details." >&5
29811 echo "$as_me: error: cannot compute sizeof (boolean)
29812 See \`config.log' for more details." >&2;}
29813    { (exit 77); exit 77; }; }
29814    else
29815      ac_cv_sizeof_boolean=0
29816    fi ;;
29817 esac
29818 else
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 static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
29833 static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
29834 #include <stdio.h>
29835 #include <stdlib.h>
29836 int
29837 main ()
29838 {
29839
29840   FILE *f = fopen ("conftest.val", "w");
29841   if (! f)
29842     return 1;
29843   if (((long int) (sizeof (ac__type_sizeof_))) < 0)
29844     {
29845       long int i = longval ();
29846       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29847         return 1;
29848       fprintf (f, "%ld\n", i);
29849     }
29850   else
29851     {
29852       unsigned long int i = ulongval ();
29853       if (i != ((long int) (sizeof (ac__type_sizeof_))))
29854         return 1;
29855       fprintf (f, "%lu\n", i);
29856     }
29857   return ferror (f) || fclose (f) != 0;
29858
29859   ;
29860   return 0;
29861 }
29862 _ACEOF
29863 rm -f conftest$ac_exeext
29864 if { (ac_try="$ac_link"
29865 case "(($ac_try" in
29866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29867   *) ac_try_echo=$ac_try;;
29868 esac
29869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29870   (eval "$ac_link") 2>&5
29871   ac_status=$?
29872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29873   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29874   { (case "(($ac_try" in
29875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29876   *) ac_try_echo=$ac_try;;
29877 esac
29878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29879   (eval "$ac_try") 2>&5
29880   ac_status=$?
29881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29882   (exit $ac_status); }; }; then
29883   ac_cv_sizeof_boolean=`cat conftest.val`
29884 else
29885   echo "$as_me: program exited with status $ac_status" >&5
29886 echo "$as_me: failed program was:" >&5
29887 sed 's/^/| /' conftest.$ac_ext >&5
29888
29889 ( exit $ac_status )
29890 if test "$ac_cv_type_boolean" = yes; then
29891      { { echo "$as_me:$LINENO: error: cannot compute sizeof (boolean)
29892 See \`config.log' for more details." >&5
29893 echo "$as_me: error: cannot compute sizeof (boolean)
29894 See \`config.log' for more details." >&2;}
29895    { (exit 77); exit 77; }; }
29896    else
29897      ac_cv_sizeof_boolean=0
29898    fi
29899 fi
29900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29901 fi
29902 rm -f conftest.val
29903 fi
29904 { echo "$as_me:$LINENO: result: $ac_cv_sizeof_boolean" >&5
29905 echo "${ECHO_T}$ac_cv_sizeof_boolean" >&6; }
29906
29907
29908
29909 cat >>confdefs.h <<_ACEOF
29910 #define SIZEOF_BOOLEAN $ac_cv_sizeof_boolean
29911 _ACEOF
29912
29913
29914                             cat >>confdefs.h <<_ACEOF
29915 #define wxHACK_BOOLEAN wxInt`expr 8 \* $ac_cv_sizeof_boolean`
29916 _ACEOF
29917
29918
29919 fi
29920
29921                 fi
29922             fi
29923         fi
29924     fi
29925 fi
29926
29927
29928 TIFF_LINK=
29929 TIFF_PREREQ_LINKS=-lm
29930 if test "$wxUSE_LIBTIFF" != "no" ; then
29931     cat >>confdefs.h <<\_ACEOF
29932 #define wxUSE_LIBTIFF 1
29933 _ACEOF
29934
29935
29936     if test "$wxUSE_LIBTIFF" = "sys" -o "$wxUSE_LIBTIFF" = "yes" ; then
29937                         if test "$wxUSE_LIBJPEG" = "sys"; then
29938             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $JPEG_LINK"
29939         fi
29940         if test "$wxUSE_ZLIB" = "sys"; then
29941             TIFF_PREREQ_LINKS="$TIFF_PREREQ_LINKS $ZLIB_LINK"
29942         fi
29943         { echo "$as_me:$LINENO: checking for tiffio.h" >&5
29944 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
29945 if test "${ac_cv_header_tiffio_h+set}" = set; then
29946   echo $ECHO_N "(cached) $ECHO_C" >&6
29947 else
29948   cat >conftest.$ac_ext <<_ACEOF
29949 /* confdefs.h.  */
29950 _ACEOF
29951 cat confdefs.h >>conftest.$ac_ext
29952 cat >>conftest.$ac_ext <<_ACEOF
29953 /* end confdefs.h.  */
29954
29955
29956
29957 #include <tiffio.h>
29958 _ACEOF
29959 rm -f conftest.$ac_objext
29960 if { (ac_try="$ac_compile"
29961 case "(($ac_try" in
29962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29963   *) ac_try_echo=$ac_try;;
29964 esac
29965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
29966   (eval "$ac_compile") 2>conftest.er1
29967   ac_status=$?
29968   grep -v '^ *+' conftest.er1 >conftest.err
29969   rm -f conftest.er1
29970   cat conftest.err >&5
29971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972   (exit $ac_status); } && {
29973          test -z "$ac_c_werror_flag" ||
29974          test ! -s conftest.err
29975        } && test -s conftest.$ac_objext; then
29976   ac_cv_header_tiffio_h=yes
29977 else
29978   echo "$as_me: failed program was:" >&5
29979 sed 's/^/| /' conftest.$ac_ext >&5
29980
29981         ac_cv_header_tiffio_h=no
29982 fi
29983
29984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29985 fi
29986 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
29987 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
29988 if test $ac_cv_header_tiffio_h = yes; then
29989
29990                             { echo "$as_me:$LINENO: checking for TIFFError in -ltiff" >&5
29991 echo $ECHO_N "checking for TIFFError in -ltiff... $ECHO_C" >&6; }
29992 if test "${ac_cv_lib_tiff_TIFFError+set}" = set; then
29993   echo $ECHO_N "(cached) $ECHO_C" >&6
29994 else
29995   ac_check_lib_save_LIBS=$LIBS
29996 LIBS="-ltiff $TIFF_PREREQ_LINKS $LIBS"
29997 cat >conftest.$ac_ext <<_ACEOF
29998 /* confdefs.h.  */
29999 _ACEOF
30000 cat confdefs.h >>conftest.$ac_ext
30001 cat >>conftest.$ac_ext <<_ACEOF
30002 /* end confdefs.h.  */
30003
30004 /* Override any GCC internal prototype to avoid an error.
30005    Use char because int might match the return type of a GCC
30006    builtin and then its argument prototype would still apply.  */
30007 #ifdef __cplusplus
30008 extern "C"
30009 #endif
30010 char TIFFError ();
30011 int
30012 main ()
30013 {
30014 return TIFFError ();
30015   ;
30016   return 0;
30017 }
30018 _ACEOF
30019 rm -f conftest.$ac_objext conftest$ac_exeext
30020 if { (ac_try="$ac_link"
30021 case "(($ac_try" in
30022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30023   *) ac_try_echo=$ac_try;;
30024 esac
30025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30026   (eval "$ac_link") 2>conftest.er1
30027   ac_status=$?
30028   grep -v '^ *+' conftest.er1 >conftest.err
30029   rm -f conftest.er1
30030   cat conftest.err >&5
30031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30032   (exit $ac_status); } && {
30033          test -z "$ac_c_werror_flag" ||
30034          test ! -s conftest.err
30035        } && test -s conftest$ac_exeext &&
30036        $as_test_x conftest$ac_exeext; then
30037   ac_cv_lib_tiff_TIFFError=yes
30038 else
30039   echo "$as_me: failed program was:" >&5
30040 sed 's/^/| /' conftest.$ac_ext >&5
30041
30042         ac_cv_lib_tiff_TIFFError=no
30043 fi
30044
30045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30046       conftest$ac_exeext conftest.$ac_ext
30047 LIBS=$ac_check_lib_save_LIBS
30048 fi
30049 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFError" >&5
30050 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFError" >&6; }
30051 if test $ac_cv_lib_tiff_TIFFError = yes; then
30052   TIFF_LINK=" -ltiff"
30053 fi
30054
30055
30056 fi
30057
30058
30059
30060         if test "x$TIFF_LINK" = "x" ; then
30061             if test "$wxUSE_LIBTIFF" = "sys" ; then
30062                 { { echo "$as_me:$LINENO: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&5
30063 echo "$as_me: error: system tiff library not found! Use --with-libtiff=builtin to use built-in version" >&2;}
30064    { (exit 1); exit 1; }; }
30065             else
30066                 { echo "$as_me:$LINENO: WARNING: system tiff library not found, will use built-in instead" >&5
30067 echo "$as_me: WARNING: system tiff library not found, will use built-in instead" >&2;}
30068                 wxUSE_LIBTIFF=builtin
30069             fi
30070         else
30071                         wxUSE_LIBTIFF=sys
30072         fi
30073     fi
30074 fi
30075
30076
30077 if test "$wxUSE_WCHAR_T" != "yes"; then
30078     if test "$wxUSE_EXPAT" != "no"; then
30079         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&5
30080 echo "$as_me: WARNING: wxWidgets requires wchar_t to use expat, disabling" >&2;}
30081         wxUSE_EXPAT=no
30082     fi
30083     if test "$wxUSE_XML" != "no"; then
30084         { echo "$as_me:$LINENO: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&5
30085 echo "$as_me: WARNING: wxWidgets requires wchar_t to use xml, disabling" >&2;}
30086         wxUSE_XML=no
30087     fi
30088 fi
30089
30090 if test "$wxUSE_EXPAT" != "no"; then
30091     wxUSE_XML=yes
30092     cat >>confdefs.h <<\_ACEOF
30093 #define wxUSE_EXPAT 1
30094 _ACEOF
30095
30096     cat >>confdefs.h <<\_ACEOF
30097 #define wxUSE_XML 1
30098 _ACEOF
30099
30100
30101     if test "$wxUSE_EXPAT" = "sys" -o "$wxUSE_EXPAT" = "yes" ; then
30102         { echo "$as_me:$LINENO: checking for expat.h" >&5
30103 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6; }
30104 if test "${ac_cv_header_expat_h+set}" = set; then
30105   echo $ECHO_N "(cached) $ECHO_C" >&6
30106 else
30107   cat >conftest.$ac_ext <<_ACEOF
30108 /* confdefs.h.  */
30109 _ACEOF
30110 cat confdefs.h >>conftest.$ac_ext
30111 cat >>conftest.$ac_ext <<_ACEOF
30112 /* end confdefs.h.  */
30113
30114
30115 #include <expat.h>
30116 _ACEOF
30117 rm -f conftest.$ac_objext
30118 if { (ac_try="$ac_compile"
30119 case "(($ac_try" in
30120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30121   *) ac_try_echo=$ac_try;;
30122 esac
30123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30124   (eval "$ac_compile") 2>conftest.er1
30125   ac_status=$?
30126   grep -v '^ *+' conftest.er1 >conftest.err
30127   rm -f conftest.er1
30128   cat conftest.err >&5
30129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30130   (exit $ac_status); } && {
30131          test -z "$ac_c_werror_flag" ||
30132          test ! -s conftest.err
30133        } && test -s conftest.$ac_objext; then
30134   ac_cv_header_expat_h=yes
30135 else
30136   echo "$as_me: failed program was:" >&5
30137 sed 's/^/| /' conftest.$ac_ext >&5
30138
30139         ac_cv_header_expat_h=no
30140 fi
30141
30142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30143 fi
30144 { echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
30145 echo "${ECHO_T}$ac_cv_header_expat_h" >&6; }
30146 if test $ac_cv_header_expat_h = yes; then
30147   found_expat_h=1
30148 fi
30149
30150
30151         if test "x$found_expat_h" = "x1"; then
30152                         { echo "$as_me:$LINENO: checking if expat.h is valid C++ header" >&5
30153 echo $ECHO_N "checking if expat.h is valid C++ header... $ECHO_C" >&6; }
30154 if test "${wx_cv_expat_is_not_broken+set}" = set; then
30155   echo $ECHO_N "(cached) $ECHO_C" >&6
30156 else
30157
30158                 ac_ext=cpp
30159 ac_cpp='$CXXCPP $CPPFLAGS'
30160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30163
30164                 cat >conftest.$ac_ext <<_ACEOF
30165 /* confdefs.h.  */
30166 _ACEOF
30167 cat confdefs.h >>conftest.$ac_ext
30168 cat >>conftest.$ac_ext <<_ACEOF
30169 /* end confdefs.h.  */
30170 #include <expat.h>
30171 int
30172 main ()
30173 {
30174
30175   ;
30176   return 0;
30177 }
30178 _ACEOF
30179 rm -f conftest.$ac_objext
30180 if { (ac_try="$ac_compile"
30181 case "(($ac_try" in
30182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30183   *) ac_try_echo=$ac_try;;
30184 esac
30185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30186   (eval "$ac_compile") 2>conftest.er1
30187   ac_status=$?
30188   grep -v '^ *+' conftest.er1 >conftest.err
30189   rm -f conftest.er1
30190   cat conftest.err >&5
30191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30192   (exit $ac_status); } && {
30193          test -z "$ac_cxx_werror_flag" ||
30194          test ! -s conftest.err
30195        } && test -s conftest.$ac_objext; then
30196   wx_cv_expat_is_not_broken=yes
30197 else
30198   echo "$as_me: failed program was:" >&5
30199 sed 's/^/| /' conftest.$ac_ext >&5
30200
30201         wx_cv_expat_is_not_broken=no
30202
30203 fi
30204
30205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30206                 ac_ext=c
30207 ac_cpp='$CPP $CPPFLAGS'
30208 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30209 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30210 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30211
30212
30213
30214 fi
30215 { echo "$as_me:$LINENO: result: $wx_cv_expat_is_not_broken" >&5
30216 echo "${ECHO_T}$wx_cv_expat_is_not_broken" >&6; }
30217             if test "$wx_cv_expat_is_not_broken" = "yes" ; then
30218                 { echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
30219 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6; }
30220 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
30221   echo $ECHO_N "(cached) $ECHO_C" >&6
30222 else
30223   ac_check_lib_save_LIBS=$LIBS
30224 LIBS="-lexpat  $LIBS"
30225 cat >conftest.$ac_ext <<_ACEOF
30226 /* confdefs.h.  */
30227 _ACEOF
30228 cat confdefs.h >>conftest.$ac_ext
30229 cat >>conftest.$ac_ext <<_ACEOF
30230 /* end confdefs.h.  */
30231
30232 /* Override any GCC internal prototype to avoid an error.
30233    Use char because int might match the return type of a GCC
30234    builtin and then its argument prototype would still apply.  */
30235 #ifdef __cplusplus
30236 extern "C"
30237 #endif
30238 char XML_ParserCreate ();
30239 int
30240 main ()
30241 {
30242 return XML_ParserCreate ();
30243   ;
30244   return 0;
30245 }
30246 _ACEOF
30247 rm -f conftest.$ac_objext conftest$ac_exeext
30248 if { (ac_try="$ac_link"
30249 case "(($ac_try" in
30250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30251   *) ac_try_echo=$ac_try;;
30252 esac
30253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30254   (eval "$ac_link") 2>conftest.er1
30255   ac_status=$?
30256   grep -v '^ *+' conftest.er1 >conftest.err
30257   rm -f conftest.er1
30258   cat conftest.err >&5
30259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30260   (exit $ac_status); } && {
30261          test -z "$ac_c_werror_flag" ||
30262          test ! -s conftest.err
30263        } && test -s conftest$ac_exeext &&
30264        $as_test_x conftest$ac_exeext; then
30265   ac_cv_lib_expat_XML_ParserCreate=yes
30266 else
30267   echo "$as_me: failed program was:" >&5
30268 sed 's/^/| /' conftest.$ac_ext >&5
30269
30270         ac_cv_lib_expat_XML_ParserCreate=no
30271 fi
30272
30273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30274       conftest$ac_exeext conftest.$ac_ext
30275 LIBS=$ac_check_lib_save_LIBS
30276 fi
30277 { echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
30278 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6; }
30279 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
30280   EXPAT_LINK=" -lexpat"
30281 fi
30282
30283             fi
30284         fi
30285         if test "x$EXPAT_LINK" = "x" ; then
30286             if test "$wxUSE_EXPAT" = "sys" ; then
30287                 { { echo "$as_me:$LINENO: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&5
30288 echo "$as_me: error: system expat library not found! Use --with-expat=builtin to use built-in version" >&2;}
30289    { (exit 1); exit 1; }; }
30290             else
30291                 { echo "$as_me:$LINENO: WARNING: system expat library not found, will use built-in instead" >&5
30292 echo "$as_me: WARNING: system expat library not found, will use built-in instead" >&2;}
30293                 wxUSE_EXPAT=builtin
30294             fi
30295         else
30296                         wxUSE_EXPAT=sys
30297         fi
30298     fi
30299     if test "$wxUSE_EXPAT" = "builtin" ; then
30300                 subdirs="$subdirs src/expat"
30301
30302     fi
30303 fi
30304
30305
30306
30307 if test "$wxUSE_LIBMSPACK" != "no"; then
30308     { echo "$as_me:$LINENO: checking for mspack.h" >&5
30309 echo $ECHO_N "checking for mspack.h... $ECHO_C" >&6; }
30310 if test "${ac_cv_header_mspack_h+set}" = set; then
30311   echo $ECHO_N "(cached) $ECHO_C" >&6
30312 else
30313   cat >conftest.$ac_ext <<_ACEOF
30314 /* confdefs.h.  */
30315 _ACEOF
30316 cat confdefs.h >>conftest.$ac_ext
30317 cat >>conftest.$ac_ext <<_ACEOF
30318 /* end confdefs.h.  */
30319
30320
30321 #include <mspack.h>
30322 _ACEOF
30323 rm -f conftest.$ac_objext
30324 if { (ac_try="$ac_compile"
30325 case "(($ac_try" in
30326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30327   *) ac_try_echo=$ac_try;;
30328 esac
30329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30330   (eval "$ac_compile") 2>conftest.er1
30331   ac_status=$?
30332   grep -v '^ *+' conftest.er1 >conftest.err
30333   rm -f conftest.er1
30334   cat conftest.err >&5
30335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30336   (exit $ac_status); } && {
30337          test -z "$ac_c_werror_flag" ||
30338          test ! -s conftest.err
30339        } && test -s conftest.$ac_objext; then
30340   ac_cv_header_mspack_h=yes
30341 else
30342   echo "$as_me: failed program was:" >&5
30343 sed 's/^/| /' conftest.$ac_ext >&5
30344
30345         ac_cv_header_mspack_h=no
30346 fi
30347
30348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30349 fi
30350 { echo "$as_me:$LINENO: result: $ac_cv_header_mspack_h" >&5
30351 echo "${ECHO_T}$ac_cv_header_mspack_h" >&6; }
30352 if test $ac_cv_header_mspack_h = yes; then
30353   found_mspack_h=1
30354 fi
30355
30356
30357     if test "x$found_mspack_h" = "x1"; then
30358         { echo "$as_me:$LINENO: checking for mspack_create_chm_decompressor in -lmspack" >&5
30359 echo $ECHO_N "checking for mspack_create_chm_decompressor in -lmspack... $ECHO_C" >&6; }
30360 if test "${ac_cv_lib_mspack_mspack_create_chm_decompressor+set}" = set; then
30361   echo $ECHO_N "(cached) $ECHO_C" >&6
30362 else
30363   ac_check_lib_save_LIBS=$LIBS
30364 LIBS="-lmspack  $LIBS"
30365 cat >conftest.$ac_ext <<_ACEOF
30366 /* confdefs.h.  */
30367 _ACEOF
30368 cat confdefs.h >>conftest.$ac_ext
30369 cat >>conftest.$ac_ext <<_ACEOF
30370 /* end confdefs.h.  */
30371
30372 /* Override any GCC internal prototype to avoid an error.
30373    Use char because int might match the return type of a GCC
30374    builtin and then its argument prototype would still apply.  */
30375 #ifdef __cplusplus
30376 extern "C"
30377 #endif
30378 char mspack_create_chm_decompressor ();
30379 int
30380 main ()
30381 {
30382 return mspack_create_chm_decompressor ();
30383   ;
30384   return 0;
30385 }
30386 _ACEOF
30387 rm -f conftest.$ac_objext conftest$ac_exeext
30388 if { (ac_try="$ac_link"
30389 case "(($ac_try" in
30390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30391   *) ac_try_echo=$ac_try;;
30392 esac
30393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30394   (eval "$ac_link") 2>conftest.er1
30395   ac_status=$?
30396   grep -v '^ *+' conftest.er1 >conftest.err
30397   rm -f conftest.er1
30398   cat conftest.err >&5
30399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30400   (exit $ac_status); } && {
30401          test -z "$ac_c_werror_flag" ||
30402          test ! -s conftest.err
30403        } && test -s conftest$ac_exeext &&
30404        $as_test_x conftest$ac_exeext; then
30405   ac_cv_lib_mspack_mspack_create_chm_decompressor=yes
30406 else
30407   echo "$as_me: failed program was:" >&5
30408 sed 's/^/| /' conftest.$ac_ext >&5
30409
30410         ac_cv_lib_mspack_mspack_create_chm_decompressor=no
30411 fi
30412
30413 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30414       conftest$ac_exeext conftest.$ac_ext
30415 LIBS=$ac_check_lib_save_LIBS
30416 fi
30417 { echo "$as_me:$LINENO: result: $ac_cv_lib_mspack_mspack_create_chm_decompressor" >&5
30418 echo "${ECHO_T}$ac_cv_lib_mspack_mspack_create_chm_decompressor" >&6; }
30419 if test $ac_cv_lib_mspack_mspack_create_chm_decompressor = yes; then
30420   MSPACK_LINK=" -lmspack"
30421 fi
30422
30423     fi
30424     if test "x$MSPACK_LINK" = "x" ; then
30425         wxUSE_LIBMSPACK=no
30426     fi
30427 fi
30428
30429 if test "$wxUSE_LIBMSPACK" != "no"; then
30430     cat >>confdefs.h <<\_ACEOF
30431 #define wxUSE_LIBMSPACK 1
30432 _ACEOF
30433
30434 fi
30435
30436
30437
30438 AFMINSTALL=
30439 WIN32INSTALL=
30440
30441 TOOLKIT=
30442 TOOLKIT_INCLUDE=
30443 WIDGET_SET=
30444
30445 if test "$USE_WIN32" = 1 ; then
30446
30447 for ac_header in w32api.h
30448 do
30449 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
30450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
30451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
30452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30453   echo $ECHO_N "(cached) $ECHO_C" >&6
30454 else
30455   cat >conftest.$ac_ext <<_ACEOF
30456 /* confdefs.h.  */
30457 _ACEOF
30458 cat confdefs.h >>conftest.$ac_ext
30459 cat >>conftest.$ac_ext <<_ACEOF
30460 /* end confdefs.h.  */
30461
30462
30463 #include <$ac_header>
30464 _ACEOF
30465 rm -f conftest.$ac_objext
30466 if { (ac_try="$ac_compile"
30467 case "(($ac_try" in
30468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30469   *) ac_try_echo=$ac_try;;
30470 esac
30471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30472   (eval "$ac_compile") 2>conftest.er1
30473   ac_status=$?
30474   grep -v '^ *+' conftest.er1 >conftest.err
30475   rm -f conftest.er1
30476   cat conftest.err >&5
30477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30478   (exit $ac_status); } && {
30479          test -z "$ac_c_werror_flag" ||
30480          test ! -s conftest.err
30481        } && test -s conftest.$ac_objext; then
30482   eval "$as_ac_Header=yes"
30483 else
30484   echo "$as_me: failed program was:" >&5
30485 sed 's/^/| /' conftest.$ac_ext >&5
30486
30487         eval "$as_ac_Header=no"
30488 fi
30489
30490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30491 fi
30492 ac_res=`eval echo '${'$as_ac_Header'}'`
30493                { echo "$as_me:$LINENO: result: $ac_res" >&5
30494 echo "${ECHO_T}$ac_res" >&6; }
30495 if test `eval echo '${'$as_ac_Header'}'` = yes; then
30496   cat >>confdefs.h <<_ACEOF
30497 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
30498 _ACEOF
30499
30500 fi
30501
30502 done
30503
30504     { echo "$as_me:$LINENO: checking for windows.h" >&5
30505 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6; }
30506 if test "${ac_cv_header_windows_h+set}" = set; then
30507   echo $ECHO_N "(cached) $ECHO_C" >&6
30508 else
30509   cat >conftest.$ac_ext <<_ACEOF
30510 /* confdefs.h.  */
30511 _ACEOF
30512 cat confdefs.h >>conftest.$ac_ext
30513 cat >>conftest.$ac_ext <<_ACEOF
30514 /* end confdefs.h.  */
30515
30516
30517 #include <windows.h>
30518 _ACEOF
30519 rm -f conftest.$ac_objext
30520 if { (ac_try="$ac_compile"
30521 case "(($ac_try" in
30522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30523   *) ac_try_echo=$ac_try;;
30524 esac
30525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30526   (eval "$ac_compile") 2>conftest.er1
30527   ac_status=$?
30528   grep -v '^ *+' conftest.er1 >conftest.err
30529   rm -f conftest.er1
30530   cat conftest.err >&5
30531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } && {
30533          test -z "$ac_c_werror_flag" ||
30534          test ! -s conftest.err
30535        } && test -s conftest.$ac_objext; then
30536   ac_cv_header_windows_h=yes
30537 else
30538   echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30540
30541         ac_cv_header_windows_h=no
30542 fi
30543
30544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30545 fi
30546 { echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
30547 echo "${ECHO_T}$ac_cv_header_windows_h" >&6; }
30548 if test $ac_cv_header_windows_h = yes; then
30549   :
30550 else
30551
30552         { { echo "$as_me:$LINENO: error: please set CFLAGS to contain the location of windows.h" >&5
30553 echo "$as_me: error: please set CFLAGS to contain the location of windows.h" >&2;}
30554    { (exit 1); exit 1; }; }
30555
30556 fi
30557
30558
30559
30560             LIBS="$LIBS -lwinspool -lwinmm -lshell32 -lcomctl32 -lcomdlg32 -lctl3d32 -ladvapi32 -lwsock32 -lgdi32"
30561
30562     if test "$wxUSE_ACCESSIBILITY" = "yes" ; then
30563         LIBS="$LIBS -loleacc"
30564     fi
30565
30566     case "${host}" in
30567         *-*-cygwin* )
30568                         LIBS="$LIBS -lkernel32 -luser32"
30569     esac
30570
30571         if test "$wxUSE_ODBC" = "sys" ; then
30572         wxUSE_ODBC = "yes"
30573     fi
30574     if test "$wxUSE_ODBC" = "yes" ; then
30575         LIBS=" -lodbc32 -lole32 -loleaut32 $LIBS"
30576         cat >>confdefs.h <<\_ACEOF
30577 #define wxUSE_ODBC 1
30578 _ACEOF
30579
30580     fi
30581
30582         RESFLAGS="--include-dir \$(top_srcdir)/include --include-dir \$(top_srcdir)/\$(program_dir) --define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30583     RESPROGRAMOBJ="\$(PROGRAM)_resources.o"
30584
30585                 WXCONFIG_RESFLAGS="--define __WIN32__ --define __WIN95__ --define __GNUWIN32__"
30586
30587         WIN32INSTALL=win32install
30588
30589         { echo "$as_me:$LINENO: checking for pbt.h" >&5
30590 echo $ECHO_N "checking for pbt.h... $ECHO_C" >&6; }
30591 if test "${ac_cv_header_pbt_h+set}" = set; then
30592   echo $ECHO_N "(cached) $ECHO_C" >&6
30593 else
30594   cat >conftest.$ac_ext <<_ACEOF
30595 /* confdefs.h.  */
30596 _ACEOF
30597 cat confdefs.h >>conftest.$ac_ext
30598 cat >>conftest.$ac_ext <<_ACEOF
30599 /* end confdefs.h.  */
30600
30601
30602 #include <pbt.h>
30603 _ACEOF
30604 rm -f conftest.$ac_objext
30605 if { (ac_try="$ac_compile"
30606 case "(($ac_try" in
30607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30608   *) ac_try_echo=$ac_try;;
30609 esac
30610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30611   (eval "$ac_compile") 2>conftest.er1
30612   ac_status=$?
30613   grep -v '^ *+' conftest.er1 >conftest.err
30614   rm -f conftest.er1
30615   cat conftest.err >&5
30616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30617   (exit $ac_status); } && {
30618          test -z "$ac_c_werror_flag" ||
30619          test ! -s conftest.err
30620        } && test -s conftest.$ac_objext; then
30621   ac_cv_header_pbt_h=yes
30622 else
30623   echo "$as_me: failed program was:" >&5
30624 sed 's/^/| /' conftest.$ac_ext >&5
30625
30626         ac_cv_header_pbt_h=no
30627 fi
30628
30629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30630 fi
30631 { echo "$as_me:$LINENO: result: $ac_cv_header_pbt_h" >&5
30632 echo "${ECHO_T}$ac_cv_header_pbt_h" >&6; }
30633 if test $ac_cv_header_pbt_h = yes; then
30634   :
30635 else
30636   cat >>confdefs.h <<\_ACEOF
30637 #define NEED_PBT_H 1
30638 _ACEOF
30639
30640 fi
30641
30642
30643 fi
30644
30645 if test "$wxUSE_GUI" = "yes"; then
30646     USE_GUI=1
30647
30648     GUI_TK_LIBRARY=
30649
30650     WXGTK12=
30651     WXGTK127=
30652     WXGTK20=
30653     WXGPE=
30654
30655     if test "$wxUSE_COCOA" = 1 ; then
30656         if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes"; then
30657             { echo "$as_me:$LINENO: WARNING: Printing not supported under wxCocoa yet, disabled" >&5
30658 echo "$as_me: WARNING: Printing not supported under wxCocoa yet, disabled" >&2;}
30659             wxUSE_PRINTING_ARCHITECTURE=no
30660         fi
30661         if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
30662             { echo "$as_me:$LINENO: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&5
30663 echo "$as_me: WARNING: Drag and Drop not supported under wxCocoa yet, disabled" >&2;}
30664             wxUSE_DRAG_AND_DROP=no
30665         fi
30666         if test "$wxUSE_DRAGIMAGE" = "yes"; then
30667             { echo "$as_me:$LINENO: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&5
30668 echo "$as_me: WARNING: wxDragImage not supported under wxCocoa yet, disabled" >&2;}
30669             wxUSE_DRAGIMAGE=no
30670         fi
30671     fi
30672
30673     if test "$wxUSE_MSW" = 1 ; then
30674         TOOLKIT=MSW
30675         GUIDIST=MSW_DIST
30676
30677                 case "${host}" in
30678             *-*-mingw32* )
30679                 WXCONFIG_LDFLAGS_GUI="$LDFLAGS -Wl,--subsystem,windows -mwindows"
30680         esac
30681     fi
30682
30683     if test "$wxUSE_GTK" = 1; then
30684                 { echo "$as_me:$LINENO: checking for GTK+ version" >&5
30685 echo $ECHO_N "checking for GTK+ version... $ECHO_C" >&6; }
30686
30687         gtk_version_cached=1
30688         if test "${wx_cv_lib_gtk+set}" = set; then
30689   echo $ECHO_N "(cached) $ECHO_C" >&6
30690 else
30691
30692                                                 gtk_version_cached=0
30693                 { echo "$as_me:$LINENO: result: " >&5
30694 echo "${ECHO_T}" >&6; }
30695
30696                                                 GTK_MODULES=
30697                 if test "$wxUSE_THREADS" = "yes"; then
30698                     GTK_MODULES=gthread
30699                 fi
30700
30701                                 wx_cv_lib_gtk=
30702                 if test "x$wxGTK_VERSION" != "x1"
30703                 then
30704                                                                                 case "${host}" in
30705                         *-*-solaris2* )
30706                             if test "$wxUSE_THREADS" = "yes" -a "$GCC" = yes; then
30707                                 enable_gtktest=no
30708                             fi
30709                     esac
30710
30711                     # Check whether --enable-gtktest was given.
30712 if test "${enable_gtktest+set}" = set; then
30713   enableval=$enable_gtktest;
30714 else
30715   enable_gtktest=yes
30716 fi
30717
30718
30719   pkg_config_args=gtk+-2.0
30720   for module in . $GTK_MODULES
30721   do
30722       case "$module" in
30723          gthread)
30724              pkg_config_args="$pkg_config_args gthread-2.0"
30725          ;;
30726       esac
30727   done
30728
30729   no_gtk=""
30730
30731   # Extract the first word of "pkg-config", so it can be a program name with args.
30732 set dummy pkg-config; ac_word=$2
30733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
30734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
30735 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
30736   echo $ECHO_N "(cached) $ECHO_C" >&6
30737 else
30738   case $PKG_CONFIG in
30739   [\\/]* | ?:[\\/]*)
30740   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
30741   ;;
30742   *)
30743   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30744 for as_dir in $PATH
30745 do
30746   IFS=$as_save_IFS
30747   test -z "$as_dir" && as_dir=.
30748   for ac_exec_ext in '' $ac_executable_extensions; do
30749   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
30750     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
30751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
30752     break 2
30753   fi
30754 done
30755 done
30756 IFS=$as_save_IFS
30757
30758   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
30759   ;;
30760 esac
30761 fi
30762 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
30763 if test -n "$PKG_CONFIG"; then
30764   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
30765 echo "${ECHO_T}$PKG_CONFIG" >&6; }
30766 else
30767   { echo "$as_me:$LINENO: result: no" >&5
30768 echo "${ECHO_T}no" >&6; }
30769 fi
30770
30771
30772
30773   if test x$PKG_CONFIG != xno ; then
30774     if pkg-config --atleast-pkgconfig-version 0.7 ; then
30775       :
30776     else
30777       echo "*** pkg-config too old; version 0.7 or better required."
30778       no_gtk=yes
30779       PKG_CONFIG=no
30780     fi
30781   else
30782     no_gtk=yes
30783   fi
30784
30785   min_gtk_version=2.0.0
30786   { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5
30787 echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; }
30788
30789   if test x$PKG_CONFIG != xno ; then
30790     ## don't try to run the test against uninstalled libtool libs
30791     if $PKG_CONFIG --uninstalled $pkg_config_args; then
30792           echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
30793           enable_gtktest=no
30794     fi
30795
30796     if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
30797           :
30798     else
30799           no_gtk=yes
30800     fi
30801   fi
30802
30803   if test x"$no_gtk" = x ; then
30804     GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
30805     GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
30806     gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30807            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
30808     gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30809            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
30810     gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
30811            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
30812     if test "x$enable_gtktest" = "xyes" ; then
30813       ac_save_CFLAGS="$CFLAGS"
30814       ac_save_LIBS="$LIBS"
30815       CFLAGS="$CFLAGS $GTK_CFLAGS"
30816       LIBS="$GTK_LIBS $LIBS"
30817       rm -f conf.gtktest
30818       if test "$cross_compiling" = yes; then
30819   echo $ac_n "cross compiling; assumed OK... $ac_c"
30820 else
30821   cat >conftest.$ac_ext <<_ACEOF
30822 /* confdefs.h.  */
30823 _ACEOF
30824 cat confdefs.h >>conftest.$ac_ext
30825 cat >>conftest.$ac_ext <<_ACEOF
30826 /* end confdefs.h.  */
30827
30828 #include <gtk/gtk.h>
30829 #include <stdio.h>
30830 #include <stdlib.h>
30831
30832 int
30833 main ()
30834 {
30835   int major, minor, micro;
30836   char *tmp_version;
30837
30838   system ("touch conf.gtktest");
30839
30840   /* HP/UX 9 (%@#!) writes to sscanf strings */
30841   tmp_version = g_strdup("$min_gtk_version");
30842   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
30843      printf("%s, bad version string\n", "$min_gtk_version");
30844      exit(1);
30845    }
30846
30847   if ((gtk_major_version != $gtk_config_major_version) ||
30848       (gtk_minor_version != $gtk_config_minor_version) ||
30849       (gtk_micro_version != $gtk_config_micro_version))
30850     {
30851       printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
30852              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
30853              gtk_major_version, gtk_minor_version, gtk_micro_version);
30854       printf ("*** was found! If pkg-config was correct, then it is best\n");
30855       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
30856       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
30857       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
30858       printf("*** required on your system.\n");
30859       printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
30860       printf("*** to point to the correct configuration files\n");
30861     }
30862   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
30863            (gtk_minor_version != GTK_MINOR_VERSION) ||
30864            (gtk_micro_version != GTK_MICRO_VERSION))
30865     {
30866       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
30867              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
30868       printf("*** library (version %d.%d.%d)\n",
30869              gtk_major_version, gtk_minor_version, gtk_micro_version);
30870     }
30871   else
30872     {
30873       if ((gtk_major_version > major) ||
30874         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
30875         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
30876       {
30877         return 0;
30878        }
30879      else
30880       {
30881         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
30882                gtk_major_version, gtk_minor_version, gtk_micro_version);
30883         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
30884                major, minor, micro);
30885         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
30886         printf("***\n");
30887         printf("*** If you have already installed a sufficiently new version, this error\n");
30888         printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
30889         printf("*** being found. The easiest way to fix this is to remove the old version\n");
30890         printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
30891         printf("*** correct copy of pkg-config. (In this case, you will have to\n");
30892         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
30893         printf("*** so that the correct libraries are found at run-time))\n");
30894       }
30895     }
30896   return 1;
30897 }
30898
30899 _ACEOF
30900 rm -f conftest$ac_exeext
30901 if { (ac_try="$ac_link"
30902 case "(($ac_try" in
30903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30904   *) ac_try_echo=$ac_try;;
30905 esac
30906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30907   (eval "$ac_link") 2>&5
30908   ac_status=$?
30909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30910   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30911   { (case "(($ac_try" in
30912   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30913   *) ac_try_echo=$ac_try;;
30914 esac
30915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30916   (eval "$ac_try") 2>&5
30917   ac_status=$?
30918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30919   (exit $ac_status); }; }; then
30920   :
30921 else
30922   echo "$as_me: program exited with status $ac_status" >&5
30923 echo "$as_me: failed program was:" >&5
30924 sed 's/^/| /' conftest.$ac_ext >&5
30925
30926 ( exit $ac_status )
30927 no_gtk=yes
30928 fi
30929 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30930 fi
30931
30932
30933        CFLAGS="$ac_save_CFLAGS"
30934        LIBS="$ac_save_LIBS"
30935      fi
30936   fi
30937   if test "x$no_gtk" = x ; then
30938      { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
30939 echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
30940      wx_cv_lib_gtk=2.0
30941   else
30942      { echo "$as_me:$LINENO: result: no" >&5
30943 echo "${ECHO_T}no" >&6; }
30944      if test "$PKG_CONFIG" = "no" ; then
30945        echo "*** A new enough version of pkg-config was not found."
30946        echo "*** See http://pkgconfig.sourceforge.net"
30947      else
30948        if test -f conf.gtktest ; then
30949         :
30950        else
30951           echo "*** Could not run GTK+ test program, checking why..."
30952           ac_save_CFLAGS="$CFLAGS"
30953           ac_save_LIBS="$LIBS"
30954           CFLAGS="$CFLAGS $GTK_CFLAGS"
30955           LIBS="$LIBS $GTK_LIBS"
30956           cat >conftest.$ac_ext <<_ACEOF
30957 /* confdefs.h.  */
30958 _ACEOF
30959 cat confdefs.h >>conftest.$ac_ext
30960 cat >>conftest.$ac_ext <<_ACEOF
30961 /* end confdefs.h.  */
30962
30963 #include <gtk/gtk.h>
30964 #include <stdio.h>
30965
30966 int
30967 main ()
30968 {
30969  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
30970   ;
30971   return 0;
30972 }
30973 _ACEOF
30974 rm -f conftest.$ac_objext conftest$ac_exeext
30975 if { (ac_try="$ac_link"
30976 case "(($ac_try" in
30977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30978   *) ac_try_echo=$ac_try;;
30979 esac
30980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
30981   (eval "$ac_link") 2>conftest.er1
30982   ac_status=$?
30983   grep -v '^ *+' conftest.er1 >conftest.err
30984   rm -f conftest.er1
30985   cat conftest.err >&5
30986   echo "$as_me:$LINENO: \$? = $ac_status" >&5
30987   (exit $ac_status); } && {
30988          test -z "$ac_c_werror_flag" ||
30989          test ! -s conftest.err
30990        } && test -s conftest$ac_exeext &&
30991        $as_test_x conftest$ac_exeext; then
30992    echo "*** The test program compiled, but did not run. This usually means"
30993           echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
30994           echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
30995           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
30996           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
30997           echo "*** is required on your system"
30998           echo "***"
30999           echo "*** If you have an old version installed, it is best to remove it, although"
31000           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31001 else
31002   echo "$as_me: failed program was:" >&5
31003 sed 's/^/| /' conftest.$ac_ext >&5
31004
31005          echo "*** The test program failed to compile or link. See the file config.log for the"
31006           echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
31007 fi
31008
31009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31010       conftest$ac_exeext conftest.$ac_ext
31011           CFLAGS="$ac_save_CFLAGS"
31012           LIBS="$ac_save_LIBS"
31013        fi
31014      fi
31015      GTK_CFLAGS=""
31016      GTK_LIBS=""
31017      :
31018   fi
31019
31020
31021   rm -f conf.gtktest
31022
31023
31024                                         case "${host}" in
31025                         *-*-solaris2* )
31026                             if test "$wxUSE_SHARED" != "yes"; then
31027                                 GTK_LIBS="$GTK_LIBS -lX11"
31028                             fi
31029                     esac
31030                 fi
31031
31032                                 if test -z "$wx_cv_lib_gtk"; then
31033                     if test "x$wxGTK_VERSION" = "x1" -o "x$wxGTK_VERSION" = "xany" ; then
31034
31035 # Check whether --with-gtk-prefix was given.
31036 if test "${with_gtk_prefix+set}" = set; then
31037   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31038 else
31039   gtk_config_prefix=""
31040 fi
31041
31042
31043 # Check whether --with-gtk-exec-prefix was given.
31044 if test "${with_gtk_exec_prefix+set}" = set; then
31045   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31046 else
31047   gtk_config_exec_prefix=""
31048 fi
31049
31050 # Check whether --enable-gtktest was given.
31051 if test "${enable_gtktest+set}" = set; then
31052   enableval=$enable_gtktest;
31053 else
31054   enable_gtktest=yes
31055 fi
31056
31057
31058   for module in . $GTK_MODULES
31059   do
31060       case "$module" in
31061          gthread)
31062              gtk_config_args="$gtk_config_args gthread"
31063          ;;
31064       esac
31065   done
31066
31067   if test x$gtk_config_exec_prefix != x ; then
31068      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31069      if test x${GTK_CONFIG+set} != xset ; then
31070         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31071      fi
31072   fi
31073   if test x$gtk_config_prefix != x ; then
31074      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31075      if test x${GTK_CONFIG+set} != xset ; then
31076         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31077      fi
31078   fi
31079
31080   # Extract the first word of "gtk-config", so it can be a program name with args.
31081 set dummy gtk-config; ac_word=$2
31082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31084 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31085   echo $ECHO_N "(cached) $ECHO_C" >&6
31086 else
31087   case $GTK_CONFIG in
31088   [\\/]* | ?:[\\/]*)
31089   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31090   ;;
31091   *)
31092   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31093 for as_dir in $PATH
31094 do
31095   IFS=$as_save_IFS
31096   test -z "$as_dir" && as_dir=.
31097   for ac_exec_ext in '' $ac_executable_extensions; do
31098   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31099     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31100     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31101     break 2
31102   fi
31103 done
31104 done
31105 IFS=$as_save_IFS
31106
31107   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31108   ;;
31109 esac
31110 fi
31111 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31112 if test -n "$GTK_CONFIG"; then
31113   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31114 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31115 else
31116   { echo "$as_me:$LINENO: result: no" >&5
31117 echo "${ECHO_T}no" >&6; }
31118 fi
31119
31120
31121   min_gtk_version=1.2.7
31122   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31123 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31124   no_gtk=""
31125   if test "$GTK_CONFIG" = "no" ; then
31126     no_gtk=yes
31127   else
31128     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31129     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31130     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31131            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31132     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31133            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31134     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31135            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31136     if test "x$enable_gtktest" = "xyes" ; then
31137       ac_save_CFLAGS="$CFLAGS"
31138       ac_save_LIBS="$LIBS"
31139       CFLAGS="$CFLAGS $GTK_CFLAGS"
31140       LIBS="$GTK_LIBS $LIBS"
31141       rm -f conf.gtktest
31142       if test "$cross_compiling" = yes; then
31143   echo $ac_n "cross compiling; assumed OK... $ac_c"
31144 else
31145   cat >conftest.$ac_ext <<_ACEOF
31146 /* confdefs.h.  */
31147 _ACEOF
31148 cat confdefs.h >>conftest.$ac_ext
31149 cat >>conftest.$ac_ext <<_ACEOF
31150 /* end confdefs.h.  */
31151
31152 #include <gtk/gtk.h>
31153 #include <stdio.h>
31154 #include <stdlib.h>
31155
31156 int
31157 main ()
31158 {
31159   int major, minor, micro;
31160   char *tmp_version;
31161
31162   system ("touch conf.gtktest");
31163
31164   /* HP/UX 9 (%@#!) writes to sscanf strings */
31165   tmp_version = g_strdup("$min_gtk_version");
31166   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31167      printf("%s, bad version string\n", "$min_gtk_version");
31168      exit(1);
31169    }
31170
31171   if ((gtk_major_version != $gtk_config_major_version) ||
31172       (gtk_minor_version != $gtk_config_minor_version) ||
31173       (gtk_micro_version != $gtk_config_micro_version))
31174     {
31175       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31176              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31177              gtk_major_version, gtk_minor_version, gtk_micro_version);
31178       printf ("*** was found! If gtk-config was correct, then it is best\n");
31179       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31180       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31181       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31182       printf("*** required on your system.\n");
31183       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31184       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31185       printf("*** before re-running configure\n");
31186     }
31187 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31188   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31189            (gtk_minor_version != GTK_MINOR_VERSION) ||
31190            (gtk_micro_version != GTK_MICRO_VERSION))
31191     {
31192       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31193              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31194       printf("*** library (version %d.%d.%d)\n",
31195              gtk_major_version, gtk_minor_version, gtk_micro_version);
31196     }
31197 #endif /* defined (GTK_MAJOR_VERSION) ... */
31198   else
31199     {
31200       if ((gtk_major_version > major) ||
31201         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31202         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31203       {
31204         return 0;
31205        }
31206      else
31207       {
31208         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31209                gtk_major_version, gtk_minor_version, gtk_micro_version);
31210         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31211                major, minor, micro);
31212         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31213         printf("***\n");
31214         printf("*** If you have already installed a sufficiently new version, this error\n");
31215         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31216         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31217         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31218         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31219         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31220         printf("*** so that the correct libraries are found at run-time))\n");
31221       }
31222     }
31223   return 1;
31224 }
31225
31226 _ACEOF
31227 rm -f conftest$ac_exeext
31228 if { (ac_try="$ac_link"
31229 case "(($ac_try" in
31230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31231   *) ac_try_echo=$ac_try;;
31232 esac
31233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31234   (eval "$ac_link") 2>&5
31235   ac_status=$?
31236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31237   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31238   { (case "(($ac_try" in
31239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31240   *) ac_try_echo=$ac_try;;
31241 esac
31242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31243   (eval "$ac_try") 2>&5
31244   ac_status=$?
31245   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31246   (exit $ac_status); }; }; then
31247   :
31248 else
31249   echo "$as_me: program exited with status $ac_status" >&5
31250 echo "$as_me: failed program was:" >&5
31251 sed 's/^/| /' conftest.$ac_ext >&5
31252
31253 ( exit $ac_status )
31254 no_gtk=yes
31255 fi
31256 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31257 fi
31258
31259
31260        CFLAGS="$ac_save_CFLAGS"
31261        LIBS="$ac_save_LIBS"
31262      fi
31263   fi
31264   if test "x$no_gtk" = x ; then
31265      { echo "$as_me:$LINENO: result: yes" >&5
31266 echo "${ECHO_T}yes" >&6; }
31267      wx_cv_lib_gtk=1.2.7
31268   else
31269      { echo "$as_me:$LINENO: result: no" >&5
31270 echo "${ECHO_T}no" >&6; }
31271      if test "$GTK_CONFIG" = "no" ; then
31272        echo "*** The gtk-config script installed by GTK could not be found"
31273        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31274        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31275        echo "*** full path to gtk-config."
31276      else
31277        if test -f conf.gtktest ; then
31278         :
31279        else
31280           echo "*** Could not run GTK test program, checking why..."
31281           CFLAGS="$CFLAGS $GTK_CFLAGS"
31282           LIBS="$LIBS $GTK_LIBS"
31283           cat >conftest.$ac_ext <<_ACEOF
31284 /* confdefs.h.  */
31285 _ACEOF
31286 cat confdefs.h >>conftest.$ac_ext
31287 cat >>conftest.$ac_ext <<_ACEOF
31288 /* end confdefs.h.  */
31289
31290 #include <gtk/gtk.h>
31291 #include <stdio.h>
31292
31293 int
31294 main ()
31295 {
31296  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31297   ;
31298   return 0;
31299 }
31300 _ACEOF
31301 rm -f conftest.$ac_objext conftest$ac_exeext
31302 if { (ac_try="$ac_link"
31303 case "(($ac_try" in
31304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305   *) ac_try_echo=$ac_try;;
31306 esac
31307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31308   (eval "$ac_link") 2>conftest.er1
31309   ac_status=$?
31310   grep -v '^ *+' conftest.er1 >conftest.err
31311   rm -f conftest.er1
31312   cat conftest.err >&5
31313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31314   (exit $ac_status); } && {
31315          test -z "$ac_c_werror_flag" ||
31316          test ! -s conftest.err
31317        } && test -s conftest$ac_exeext &&
31318        $as_test_x conftest$ac_exeext; then
31319    echo "*** The test program compiled, but did not run. This usually means"
31320           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31321           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31322           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31323           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31324           echo "*** is required on your system"
31325           echo "***"
31326           echo "*** If you have an old version installed, it is best to remove it, although"
31327           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31328           echo "***"
31329           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31330           echo "*** came with the system with the command"
31331           echo "***"
31332           echo "***    rpm --erase --nodeps gtk gtk-devel"
31333 else
31334   echo "$as_me: failed program was:" >&5
31335 sed 's/^/| /' conftest.$ac_ext >&5
31336
31337          echo "*** The test program failed to compile or link. See the file config.log for the"
31338           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31339           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31340           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31341 fi
31342
31343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31344       conftest$ac_exeext conftest.$ac_ext
31345           CFLAGS="$ac_save_CFLAGS"
31346           LIBS="$ac_save_LIBS"
31347        fi
31348      fi
31349      GTK_CFLAGS=""
31350      GTK_LIBS=""
31351      :
31352   fi
31353
31354
31355   rm -f conf.gtktest
31356
31357
31358                         if test -z "$wx_cv_lib_gtk"; then
31359
31360 # Check whether --with-gtk-prefix was given.
31361 if test "${with_gtk_prefix+set}" = set; then
31362   withval=$with_gtk_prefix; gtk_config_prefix="$withval"
31363 else
31364   gtk_config_prefix=""
31365 fi
31366
31367
31368 # Check whether --with-gtk-exec-prefix was given.
31369 if test "${with_gtk_exec_prefix+set}" = set; then
31370   withval=$with_gtk_exec_prefix; gtk_config_exec_prefix="$withval"
31371 else
31372   gtk_config_exec_prefix=""
31373 fi
31374
31375 # Check whether --enable-gtktest was given.
31376 if test "${enable_gtktest+set}" = set; then
31377   enableval=$enable_gtktest;
31378 else
31379   enable_gtktest=yes
31380 fi
31381
31382
31383   for module in . $GTK_MODULES
31384   do
31385       case "$module" in
31386          gthread)
31387              gtk_config_args="$gtk_config_args gthread"
31388          ;;
31389       esac
31390   done
31391
31392   if test x$gtk_config_exec_prefix != x ; then
31393      gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
31394      if test x${GTK_CONFIG+set} != xset ; then
31395         GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
31396      fi
31397   fi
31398   if test x$gtk_config_prefix != x ; then
31399      gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
31400      if test x${GTK_CONFIG+set} != xset ; then
31401         GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
31402      fi
31403   fi
31404
31405   # Extract the first word of "gtk-config", so it can be a program name with args.
31406 set dummy gtk-config; ac_word=$2
31407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
31408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
31409 if test "${ac_cv_path_GTK_CONFIG+set}" = set; then
31410   echo $ECHO_N "(cached) $ECHO_C" >&6
31411 else
31412   case $GTK_CONFIG in
31413   [\\/]* | ?:[\\/]*)
31414   ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
31415   ;;
31416   *)
31417   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31418 for as_dir in $PATH
31419 do
31420   IFS=$as_save_IFS
31421   test -z "$as_dir" && as_dir=.
31422   for ac_exec_ext in '' $ac_executable_extensions; do
31423   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
31424     ac_cv_path_GTK_CONFIG="$as_dir/$ac_word$ac_exec_ext"
31425     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
31426     break 2
31427   fi
31428 done
31429 done
31430 IFS=$as_save_IFS
31431
31432   test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
31433   ;;
31434 esac
31435 fi
31436 GTK_CONFIG=$ac_cv_path_GTK_CONFIG
31437 if test -n "$GTK_CONFIG"; then
31438   { echo "$as_me:$LINENO: result: $GTK_CONFIG" >&5
31439 echo "${ECHO_T}$GTK_CONFIG" >&6; }
31440 else
31441   { echo "$as_me:$LINENO: result: no" >&5
31442 echo "${ECHO_T}no" >&6; }
31443 fi
31444
31445
31446   min_gtk_version=1.2.3
31447   { echo "$as_me:$LINENO: checking for GTK - version >= $min_gtk_version" >&5
31448 echo $ECHO_N "checking for GTK - version >= $min_gtk_version... $ECHO_C" >&6; }
31449   no_gtk=""
31450   if test "$GTK_CONFIG" = "no" ; then
31451     no_gtk=yes
31452   else
31453     GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
31454     GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
31455     gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
31456            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
31457     gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
31458            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
31459     gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
31460            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
31461     if test "x$enable_gtktest" = "xyes" ; then
31462       ac_save_CFLAGS="$CFLAGS"
31463       ac_save_LIBS="$LIBS"
31464       CFLAGS="$CFLAGS $GTK_CFLAGS"
31465       LIBS="$GTK_LIBS $LIBS"
31466       rm -f conf.gtktest
31467       if test "$cross_compiling" = yes; then
31468   echo $ac_n "cross compiling; assumed OK... $ac_c"
31469 else
31470   cat >conftest.$ac_ext <<_ACEOF
31471 /* confdefs.h.  */
31472 _ACEOF
31473 cat confdefs.h >>conftest.$ac_ext
31474 cat >>conftest.$ac_ext <<_ACEOF
31475 /* end confdefs.h.  */
31476
31477 #include <gtk/gtk.h>
31478 #include <stdio.h>
31479 #include <stdlib.h>
31480
31481 int
31482 main ()
31483 {
31484   int major, minor, micro;
31485   char *tmp_version;
31486
31487   system ("touch conf.gtktest");
31488
31489   /* HP/UX 9 (%@#!) writes to sscanf strings */
31490   tmp_version = g_strdup("$min_gtk_version");
31491   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
31492      printf("%s, bad version string\n", "$min_gtk_version");
31493      exit(1);
31494    }
31495
31496   if ((gtk_major_version != $gtk_config_major_version) ||
31497       (gtk_minor_version != $gtk_config_minor_version) ||
31498       (gtk_micro_version != $gtk_config_micro_version))
31499     {
31500       printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
31501              $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
31502              gtk_major_version, gtk_minor_version, gtk_micro_version);
31503       printf ("*** was found! If gtk-config was correct, then it is best\n");
31504       printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
31505       printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
31506       printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
31507       printf("*** required on your system.\n");
31508       printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
31509       printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
31510       printf("*** before re-running configure\n");
31511     }
31512 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
31513   else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
31514            (gtk_minor_version != GTK_MINOR_VERSION) ||
31515            (gtk_micro_version != GTK_MICRO_VERSION))
31516     {
31517       printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
31518              GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
31519       printf("*** library (version %d.%d.%d)\n",
31520              gtk_major_version, gtk_minor_version, gtk_micro_version);
31521     }
31522 #endif /* defined (GTK_MAJOR_VERSION) ... */
31523   else
31524     {
31525       if ((gtk_major_version > major) ||
31526         ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
31527         ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
31528       {
31529         return 0;
31530        }
31531      else
31532       {
31533         printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
31534                gtk_major_version, gtk_minor_version, gtk_micro_version);
31535         printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
31536                major, minor, micro);
31537         printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
31538         printf("***\n");
31539         printf("*** If you have already installed a sufficiently new version, this error\n");
31540         printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
31541         printf("*** being found. The easiest way to fix this is to remove the old version\n");
31542         printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
31543         printf("*** correct copy of gtk-config. (In this case, you will have to\n");
31544         printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
31545         printf("*** so that the correct libraries are found at run-time))\n");
31546       }
31547     }
31548   return 1;
31549 }
31550
31551 _ACEOF
31552 rm -f conftest$ac_exeext
31553 if { (ac_try="$ac_link"
31554 case "(($ac_try" in
31555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31556   *) ac_try_echo=$ac_try;;
31557 esac
31558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31559   (eval "$ac_link") 2>&5
31560   ac_status=$?
31561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31563   { (case "(($ac_try" in
31564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31565   *) ac_try_echo=$ac_try;;
31566 esac
31567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31568   (eval "$ac_try") 2>&5
31569   ac_status=$?
31570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31571   (exit $ac_status); }; }; then
31572   :
31573 else
31574   echo "$as_me: program exited with status $ac_status" >&5
31575 echo "$as_me: failed program was:" >&5
31576 sed 's/^/| /' conftest.$ac_ext >&5
31577
31578 ( exit $ac_status )
31579 no_gtk=yes
31580 fi
31581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31582 fi
31583
31584
31585        CFLAGS="$ac_save_CFLAGS"
31586        LIBS="$ac_save_LIBS"
31587      fi
31588   fi
31589   if test "x$no_gtk" = x ; then
31590      { echo "$as_me:$LINENO: result: yes" >&5
31591 echo "${ECHO_T}yes" >&6; }
31592      wx_cv_lib_gtk=1.2.3
31593   else
31594      { echo "$as_me:$LINENO: result: no" >&5
31595 echo "${ECHO_T}no" >&6; }
31596      if test "$GTK_CONFIG" = "no" ; then
31597        echo "*** The gtk-config script installed by GTK could not be found"
31598        echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
31599        echo "*** your path, or set the GTK_CONFIG environment variable to the"
31600        echo "*** full path to gtk-config."
31601      else
31602        if test -f conf.gtktest ; then
31603         :
31604        else
31605           echo "*** Could not run GTK test program, checking why..."
31606           CFLAGS="$CFLAGS $GTK_CFLAGS"
31607           LIBS="$LIBS $GTK_LIBS"
31608           cat >conftest.$ac_ext <<_ACEOF
31609 /* confdefs.h.  */
31610 _ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h.  */
31614
31615 #include <gtk/gtk.h>
31616 #include <stdio.h>
31617
31618 int
31619 main ()
31620 {
31621  return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
31622   ;
31623   return 0;
31624 }
31625 _ACEOF
31626 rm -f conftest.$ac_objext conftest$ac_exeext
31627 if { (ac_try="$ac_link"
31628 case "(($ac_try" in
31629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31630   *) ac_try_echo=$ac_try;;
31631 esac
31632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31633   (eval "$ac_link") 2>conftest.er1
31634   ac_status=$?
31635   grep -v '^ *+' conftest.er1 >conftest.err
31636   rm -f conftest.er1
31637   cat conftest.err >&5
31638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31639   (exit $ac_status); } && {
31640          test -z "$ac_c_werror_flag" ||
31641          test ! -s conftest.err
31642        } && test -s conftest$ac_exeext &&
31643        $as_test_x conftest$ac_exeext; then
31644    echo "*** The test program compiled, but did not run. This usually means"
31645           echo "*** that the run-time linker is not finding GTK or finding the wrong"
31646           echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
31647           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
31648           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
31649           echo "*** is required on your system"
31650           echo "***"
31651           echo "*** If you have an old version installed, it is best to remove it, although"
31652           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
31653           echo "***"
31654           echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
31655           echo "*** came with the system with the command"
31656           echo "***"
31657           echo "***    rpm --erase --nodeps gtk gtk-devel"
31658 else
31659   echo "$as_me: failed program was:" >&5
31660 sed 's/^/| /' conftest.$ac_ext >&5
31661
31662          echo "*** The test program failed to compile or link. See the file config.log for the"
31663           echo "*** exact error that occured. This usually means GTK was incorrectly installed"
31664           echo "*** or that you have moved GTK since it was installed. In the latter case, you"
31665           echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
31666 fi
31667
31668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31669       conftest$ac_exeext conftest.$ac_ext
31670           CFLAGS="$ac_save_CFLAGS"
31671           LIBS="$ac_save_LIBS"
31672        fi
31673      fi
31674      GTK_CFLAGS=""
31675      GTK_LIBS=""
31676      :
31677   fi
31678
31679
31680   rm -f conf.gtktest
31681
31682                         fi
31683                     fi
31684                 fi
31685
31686                 if test -z "$wx_cv_lib_gtk"; then
31687                                         wx_cv_lib_gtk=none
31688                 else
31689                                                             wx_cv_cflags_gtk=$GTK_CFLAGS
31690                     wx_cv_libs_gtk=`echo $GTK_LIBS | sed -e 's/ -l[^ ]*cairo[^ ]*//g'`
31691                 fi
31692
31693
31694 fi
31695
31696
31697                         if test "$gtk_version_cached" = 1; then
31698             { echo "$as_me:$LINENO: result: $wx_cv_lib_gtk" >&5
31699 echo "${ECHO_T}$wx_cv_lib_gtk" >&6; }
31700         fi
31701
31702         case "$wx_cv_lib_gtk" in
31703             2.0)    WXGTK20=1
31704                     TOOLKIT_VERSION=2
31705                     ;;
31706             1.2.7)  WXGTK127=1
31707                     WXGTK12=1
31708                     ;;
31709             1.2.3)  WXGTK12=1
31710                     ;;
31711             *)      { { echo "$as_me:$LINENO: error:
31712 The development files for GTK+ were not found. For GTK+ 2, please
31713 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31714 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31715 and that the version is 1.2.3 or above. Also check that the
31716 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31717 --libs' are in the LD_LIBRARY_PATH or equivalent.
31718                             " >&5
31719 echo "$as_me: error:
31720 The development files for GTK+ were not found. For GTK+ 2, please
31721 ensure that pkg-config is in the path and that gtk+-2.0.pc is
31722 installed. For GTK+ 1.2 please check that gtk-config is in the path,
31723 and that the version is 1.2.3 or above. Also check that the
31724 libraries returned by 'pkg-config gtk+-2.0 --libs' or 'gtk-config
31725 --libs' are in the LD_LIBRARY_PATH or equivalent.
31726                             " >&2;}
31727    { (exit 1); exit 1; }; }
31728                     ;;
31729         esac
31730
31731         if test "$WXGTK20" = 1; then
31732             save_CFLAGS="$CFLAGS"
31733             save_LIBS="$LIBS"
31734             CFLAGS="$wx_cv_cflags_gtk $CFLAGS"
31735             LIBS="$LIBS $wx_cv_libs_gtk"
31736
31737                                                             { echo "$as_me:$LINENO: checking whether gtk_icon_size_lookup is declared" >&5
31738 echo $ECHO_N "checking whether gtk_icon_size_lookup is declared... $ECHO_C" >&6; }
31739 if test "${ac_cv_have_decl_gtk_icon_size_lookup+set}" = set; then
31740   echo $ECHO_N "(cached) $ECHO_C" >&6
31741 else
31742   cat >conftest.$ac_ext <<_ACEOF
31743 /* confdefs.h.  */
31744 _ACEOF
31745 cat confdefs.h >>conftest.$ac_ext
31746 cat >>conftest.$ac_ext <<_ACEOF
31747 /* end confdefs.h.  */
31748 #include <gtk/gtk.h>
31749
31750 int
31751 main ()
31752 {
31753 #ifndef gtk_icon_size_lookup
31754   (void) gtk_icon_size_lookup;
31755 #endif
31756
31757   ;
31758   return 0;
31759 }
31760 _ACEOF
31761 rm -f conftest.$ac_objext
31762 if { (ac_try="$ac_compile"
31763 case "(($ac_try" in
31764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31765   *) ac_try_echo=$ac_try;;
31766 esac
31767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31768   (eval "$ac_compile") 2>conftest.er1
31769   ac_status=$?
31770   grep -v '^ *+' conftest.er1 >conftest.err
31771   rm -f conftest.er1
31772   cat conftest.err >&5
31773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31774   (exit $ac_status); } && {
31775          test -z "$ac_c_werror_flag" ||
31776          test ! -s conftest.err
31777        } && test -s conftest.$ac_objext; then
31778   ac_cv_have_decl_gtk_icon_size_lookup=yes
31779 else
31780   echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31782
31783         ac_cv_have_decl_gtk_icon_size_lookup=no
31784 fi
31785
31786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31787 fi
31788 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_gtk_icon_size_lookup" >&5
31789 echo "${ECHO_T}$ac_cv_have_decl_gtk_icon_size_lookup" >&6; }
31790 if test $ac_cv_have_decl_gtk_icon_size_lookup = yes; then
31791
31792 cat >>confdefs.h <<_ACEOF
31793 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 1
31794 _ACEOF
31795
31796
31797 else
31798   cat >>confdefs.h <<_ACEOF
31799 #define HAVE_DECL_GTK_ICON_SIZE_LOOKUP 0
31800 _ACEOF
31801
31802 cat >>confdefs.h <<\_ACEOF
31803 #define NEED_GTK_ICON_SIZE_LOOKUP 1
31804 _ACEOF
31805
31806 fi
31807
31808
31809
31810
31811                         { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.10" >&5
31812 echo $ECHO_N "checking if GTK+ is version >= 2.10... $ECHO_C" >&6; }
31813             cat >conftest.$ac_ext <<_ACEOF
31814 /* confdefs.h.  */
31815 _ACEOF
31816 cat confdefs.h >>conftest.$ac_ext
31817 cat >>conftest.$ac_ext <<_ACEOF
31818 /* end confdefs.h.  */
31819
31820                             #include <gtk/gtk.h>
31821
31822 int
31823 main ()
31824 {
31825
31826                             #if !GTK_CHECK_VERSION(2,10,0)
31827                             Not GTK+ 2.10
31828                             #endif
31829
31830   ;
31831   return 0;
31832 }
31833 _ACEOF
31834 rm -f conftest.$ac_objext
31835 if { (ac_try="$ac_compile"
31836 case "(($ac_try" in
31837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31838   *) ac_try_echo=$ac_try;;
31839 esac
31840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31841   (eval "$ac_compile") 2>conftest.er1
31842   ac_status=$?
31843   grep -v '^ *+' conftest.er1 >conftest.err
31844   rm -f conftest.er1
31845   cat conftest.err >&5
31846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31847   (exit $ac_status); } && {
31848          test -z "$ac_c_werror_flag" ||
31849          test ! -s conftest.err
31850        } && test -s conftest.$ac_objext; then
31851
31852                             cat >>confdefs.h <<\_ACEOF
31853 #define __WXGTK210__ 1
31854 _ACEOF
31855
31856                             cat >>confdefs.h <<\_ACEOF
31857 #define __WXGTK26__ 1
31858 _ACEOF
31859
31860                             cat >>confdefs.h <<\_ACEOF
31861 #define __WXGTK24__ 1
31862 _ACEOF
31863
31864                             { echo "$as_me:$LINENO: result: yes" >&5
31865 echo "${ECHO_T}yes" >&6; }
31866                             ac_wxgtk210=1
31867
31868 else
31869   echo "$as_me: failed program was:" >&5
31870 sed 's/^/| /' conftest.$ac_ext >&5
31871
31872
31873                             { echo "$as_me:$LINENO: result: no" >&5
31874 echo "${ECHO_T}no" >&6; }
31875                             ac_wxgtk210=0
31876
31877 fi
31878
31879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31880
31881             if test "$ac_wxgtk210" = 0; then
31882                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.6" >&5
31883 echo $ECHO_N "checking if GTK+ is version >= 2.6... $ECHO_C" >&6; }
31884                 cat >conftest.$ac_ext <<_ACEOF
31885 /* confdefs.h.  */
31886 _ACEOF
31887 cat confdefs.h >>conftest.$ac_ext
31888 cat >>conftest.$ac_ext <<_ACEOF
31889 /* end confdefs.h.  */
31890
31891                                 #include <gtk/gtk.h>
31892
31893 int
31894 main ()
31895 {
31896
31897                                 #if !GTK_CHECK_VERSION(2,6,0)
31898                                 Not GTK+ 2.6
31899                                 #endif
31900
31901   ;
31902   return 0;
31903 }
31904 _ACEOF
31905 rm -f conftest.$ac_objext
31906 if { (ac_try="$ac_compile"
31907 case "(($ac_try" in
31908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31909   *) ac_try_echo=$ac_try;;
31910 esac
31911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31912   (eval "$ac_compile") 2>conftest.er1
31913   ac_status=$?
31914   grep -v '^ *+' conftest.er1 >conftest.err
31915   rm -f conftest.er1
31916   cat conftest.err >&5
31917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31918   (exit $ac_status); } && {
31919          test -z "$ac_c_werror_flag" ||
31920          test ! -s conftest.err
31921        } && test -s conftest.$ac_objext; then
31922
31923                                 cat >>confdefs.h <<\_ACEOF
31924 #define __WXGTK26__ 1
31925 _ACEOF
31926
31927                                 cat >>confdefs.h <<\_ACEOF
31928 #define __WXGTK24__ 1
31929 _ACEOF
31930
31931                                 { echo "$as_me:$LINENO: result: yes" >&5
31932 echo "${ECHO_T}yes" >&6; }
31933                                 ac_wxgtk26=1
31934
31935 else
31936   echo "$as_me: failed program was:" >&5
31937 sed 's/^/| /' conftest.$ac_ext >&5
31938
31939
31940                                 { echo "$as_me:$LINENO: result: no" >&5
31941 echo "${ECHO_T}no" >&6; }
31942                                 ac_wxgtk26=0
31943
31944 fi
31945
31946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31947             fi
31948
31949             if test "$ac_wxgtk26" = 0; then
31950                                 { echo "$as_me:$LINENO: checking if GTK+ is version >= 2.4" >&5
31951 echo $ECHO_N "checking if GTK+ is version >= 2.4... $ECHO_C" >&6; }
31952                 cat >conftest.$ac_ext <<_ACEOF
31953 /* confdefs.h.  */
31954 _ACEOF
31955 cat confdefs.h >>conftest.$ac_ext
31956 cat >>conftest.$ac_ext <<_ACEOF
31957 /* end confdefs.h.  */
31958
31959                                 #include <gtk/gtk.h>
31960
31961 int
31962 main ()
31963 {
31964
31965                                 #if !GTK_CHECK_VERSION(2,4,0)
31966                                 Not GTK+ 2.4
31967                                 #endif
31968
31969   ;
31970   return 0;
31971 }
31972 _ACEOF
31973 rm -f conftest.$ac_objext
31974 if { (ac_try="$ac_compile"
31975 case "(($ac_try" in
31976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31977   *) ac_try_echo=$ac_try;;
31978 esac
31979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
31980   (eval "$ac_compile") 2>conftest.er1
31981   ac_status=$?
31982   grep -v '^ *+' conftest.er1 >conftest.err
31983   rm -f conftest.er1
31984   cat conftest.err >&5
31985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
31986   (exit $ac_status); } && {
31987          test -z "$ac_c_werror_flag" ||
31988          test ! -s conftest.err
31989        } && test -s conftest.$ac_objext; then
31990
31991                                 cat >>confdefs.h <<\_ACEOF
31992 #define __WXGTK24__ 1
31993 _ACEOF
31994
31995                                 { echo "$as_me:$LINENO: result: yes" >&5
31996 echo "${ECHO_T}yes" >&6; }
31997
31998 else
31999   echo "$as_me: failed program was:" >&5
32000 sed 's/^/| /' conftest.$ac_ext >&5
32001
32002
32003                                 { echo "$as_me:$LINENO: result: no" >&5
32004 echo "${ECHO_T}no" >&6; }
32005
32006 fi
32007
32008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32009             fi
32010
32011             CFLAGS="$save_CFLAGS"
32012             LIBS="$save_LIBS"
32013         else
32014             if test "$wxUSE_UNICODE" = "yes"; then
32015                 { echo "$as_me:$LINENO: WARNING: Unicode configuration not supported with GTK+ 1.x" >&5
32016 echo "$as_me: WARNING: Unicode configuration not supported with GTK+ 1.x" >&2;}
32017                 wxUSE_UNICODE=no
32018             fi
32019
32020                         { echo "$as_me:$LINENO: checking for gdk_im_open in -lgdk" >&5
32021 echo $ECHO_N "checking for gdk_im_open in -lgdk... $ECHO_C" >&6; }
32022 if test "${ac_cv_lib_gdk_gdk_im_open+set}" = set; then
32023   echo $ECHO_N "(cached) $ECHO_C" >&6
32024 else
32025   ac_check_lib_save_LIBS=$LIBS
32026 LIBS="-lgdk  $LIBS"
32027 cat >conftest.$ac_ext <<_ACEOF
32028 /* confdefs.h.  */
32029 _ACEOF
32030 cat confdefs.h >>conftest.$ac_ext
32031 cat >>conftest.$ac_ext <<_ACEOF
32032 /* end confdefs.h.  */
32033
32034 /* Override any GCC internal prototype to avoid an error.
32035    Use char because int might match the return type of a GCC
32036    builtin and then its argument prototype would still apply.  */
32037 #ifdef __cplusplus
32038 extern "C"
32039 #endif
32040 char gdk_im_open ();
32041 int
32042 main ()
32043 {
32044 return gdk_im_open ();
32045   ;
32046   return 0;
32047 }
32048 _ACEOF
32049 rm -f conftest.$ac_objext conftest$ac_exeext
32050 if { (ac_try="$ac_link"
32051 case "(($ac_try" in
32052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32053   *) ac_try_echo=$ac_try;;
32054 esac
32055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32056   (eval "$ac_link") 2>conftest.er1
32057   ac_status=$?
32058   grep -v '^ *+' conftest.er1 >conftest.err
32059   rm -f conftest.er1
32060   cat conftest.err >&5
32061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32062   (exit $ac_status); } && {
32063          test -z "$ac_c_werror_flag" ||
32064          test ! -s conftest.err
32065        } && test -s conftest$ac_exeext &&
32066        $as_test_x conftest$ac_exeext; then
32067   ac_cv_lib_gdk_gdk_im_open=yes
32068 else
32069   echo "$as_me: failed program was:" >&5
32070 sed 's/^/| /' conftest.$ac_ext >&5
32071
32072         ac_cv_lib_gdk_gdk_im_open=no
32073 fi
32074
32075 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32076       conftest$ac_exeext conftest.$ac_ext
32077 LIBS=$ac_check_lib_save_LIBS
32078 fi
32079 { echo "$as_me:$LINENO: result: $ac_cv_lib_gdk_gdk_im_open" >&5
32080 echo "${ECHO_T}$ac_cv_lib_gdk_gdk_im_open" >&6; }
32081 if test $ac_cv_lib_gdk_gdk_im_open = yes; then
32082   cat >>confdefs.h <<\_ACEOF
32083 #define HAVE_XIM 1
32084 _ACEOF
32085
32086 fi
32087
32088
32089                                     if test "$USE_DARWIN" != 1; then
32090
32091 for ac_func in poll
32092 do
32093 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
32094 { echo "$as_me:$LINENO: checking for $ac_func" >&5
32095 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
32096 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32097   echo $ECHO_N "(cached) $ECHO_C" >&6
32098 else
32099   cat >conftest.$ac_ext <<_ACEOF
32100 /* confdefs.h.  */
32101 _ACEOF
32102 cat confdefs.h >>conftest.$ac_ext
32103 cat >>conftest.$ac_ext <<_ACEOF
32104 /* end confdefs.h.  */
32105 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32106    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32107 #define $ac_func innocuous_$ac_func
32108
32109 /* System header to define __stub macros and hopefully few prototypes,
32110     which can conflict with char $ac_func (); below.
32111     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32112     <limits.h> exists even on freestanding compilers.  */
32113
32114 #ifdef __STDC__
32115 # include <limits.h>
32116 #else
32117 # include <assert.h>
32118 #endif
32119
32120 #undef $ac_func
32121
32122 /* Override any GCC internal prototype to avoid an error.
32123    Use char because int might match the return type of a GCC
32124    builtin and then its argument prototype would still apply.  */
32125 #ifdef __cplusplus
32126 extern "C"
32127 #endif
32128 char $ac_func ();
32129 /* The GNU C library defines this for functions which it implements
32130     to always fail with ENOSYS.  Some functions are actually named
32131     something starting with __ and the normal name is an alias.  */
32132 #if defined __stub_$ac_func || defined __stub___$ac_func
32133 choke me
32134 #endif
32135
32136 int
32137 main ()
32138 {
32139 return $ac_func ();
32140   ;
32141   return 0;
32142 }
32143 _ACEOF
32144 rm -f conftest.$ac_objext conftest$ac_exeext
32145 if { (ac_try="$ac_link"
32146 case "(($ac_try" in
32147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32148   *) ac_try_echo=$ac_try;;
32149 esac
32150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32151   (eval "$ac_link") 2>conftest.er1
32152   ac_status=$?
32153   grep -v '^ *+' conftest.er1 >conftest.err
32154   rm -f conftest.er1
32155   cat conftest.err >&5
32156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32157   (exit $ac_status); } && {
32158          test -z "$ac_c_werror_flag" ||
32159          test ! -s conftest.err
32160        } && test -s conftest$ac_exeext &&
32161        $as_test_x conftest$ac_exeext; then
32162   eval "$as_ac_var=yes"
32163 else
32164   echo "$as_me: failed program was:" >&5
32165 sed 's/^/| /' conftest.$ac_ext >&5
32166
32167         eval "$as_ac_var=no"
32168 fi
32169
32170 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32171       conftest$ac_exeext conftest.$ac_ext
32172 fi
32173 ac_res=`eval echo '${'$as_ac_var'}'`
32174                { echo "$as_me:$LINENO: result: $ac_res" >&5
32175 echo "${ECHO_T}$ac_res" >&6; }
32176 if test `eval echo '${'$as_ac_var'}'` = yes; then
32177   cat >>confdefs.h <<_ACEOF
32178 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
32179 _ACEOF
32180
32181 fi
32182 done
32183
32184             fi
32185         fi
32186
32187         TOOLKIT_INCLUDE="$wx_cv_cflags_gtk"
32188         GUI_TK_LIBRARY="$wx_cv_libs_gtk $GUI_TK_LIBRARY"
32189
32190         AFMINSTALL=afminstall
32191         TOOLKIT=GTK
32192         GUIDIST=GTK_DIST
32193
32194                 if test "$wxUSE_GPE" = "yes"; then
32195             { echo "$as_me:$LINENO: checking for gpewidget library" >&5
32196 echo $ECHO_N "checking for gpewidget library... $ECHO_C" >&6; }
32197
32198   ac_find_libraries=
32199   for ac_dir in $SEARCH_LIB;
32200   do
32201     for ac_extension in a so sl dylib dll.a; do
32202       if test -f "$ac_dir/libgpewidget.$ac_extension"; then
32203         ac_find_libraries=$ac_dir
32204         break 2
32205       fi
32206     done
32207   done
32208
32209             if test "$ac_find_libraries" != "" ; then
32210
32211     if test "$ac_find_libraries" = "default location"; then
32212     ac_path_to_link=""
32213   else
32214     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
32215     result=$?
32216     if test $result = 0; then
32217       ac_path_to_link=""
32218     else
32219       ac_path_to_link=" -L$ac_find_libraries"
32220     fi
32221   fi
32222
32223                                                 GUI_TK_LIBRARY="-L${prefix}/lib -lgpewidget $GUI_TK_LIBRARY"
32224                 WXGPE=1
32225                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
32226 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
32227             else
32228                 { echo "$as_me:$LINENO: result: not found" >&5
32229 echo "${ECHO_T}not found" >&6; }
32230             fi
32231
32232                                                                                                                     fi
32233     fi
32234
32235     if test "$wxUSE_MGL" = 1; then
32236        { echo "$as_me:$LINENO: checking for SciTech MGL library" >&5
32237 echo $ECHO_N "checking for SciTech MGL library... $ECHO_C" >&6; }
32238         if test "x$MGL_ROOT" = x ; then
32239             { echo "$as_me:$LINENO: result: not found" >&5
32240 echo "${ECHO_T}not found" >&6; }
32241             { { echo "$as_me:$LINENO: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&5
32242 echo "$as_me: error: Cannot find MGL library. Make sure MGL_ROOT is set." >&2;}
32243    { (exit 1); exit 1; }; }
32244         else
32245             { echo "$as_me:$LINENO: result: $MGL_ROOT" >&5
32246 echo "${ECHO_T}$MGL_ROOT" >&6; }
32247         fi
32248
32249         { echo "$as_me:$LINENO: checking for libmgl location" >&5
32250 echo $ECHO_N "checking for libmgl location... $ECHO_C" >&6; }
32251                                 case "${host}" in
32252             *-*-linux* )
32253                                           if test "x$wxUSE_SHARED" = xyes ; then
32254                   mgl_os_candidates="linux/gcc/x86/so linux/gcc/x86/a linux/gcc/glibc.so linux/gcc/glibc"
32255               else
32256                   mgl_os_candidates="linux/gcc/x86/a linux/gcc/x86/so linux/gcc/glibc linux/gcc/glibc.so"
32257               fi
32258               ;;
32259             *-pc-msdosdjgpp )
32260               mgl_os_candidates="dos32/dj2"
32261               ;;
32262             *)
32263               { { echo "$as_me:$LINENO: error: This system type ${host} is not yet supported by wxMGL." >&5
32264 echo "$as_me: error: This system type ${host} is not yet supported by wxMGL." >&2;}
32265    { (exit 1); exit 1; }; }
32266         esac
32267
32268         mgl_lib_type=""
32269         mgl_os=""
32270
32271         for mgl_os_i in $mgl_os_candidates ; do
32272             if test "x$mgl_os" = x ; then
32273                 if test "$wxUSE_DEBUG_FLAG" = yes ; then
32274                     if test -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.a -o \
32275                             -f $MGL_ROOT/lib/debug/$mgl_os_i/libmgl.so; then
32276                         mgl_lib_type=debug
32277                         mgl_os=$mgl_os_i
32278                     fi
32279                 fi
32280                 if test "x$mgl_lib_type" = x ; then
32281                     if test -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.a -o \
32282                             -f $MGL_ROOT/lib/release/$mgl_os_i/libmgl.so; then
32283                         mgl_lib_type=release
32284                         mgl_os=$mgl_os_i
32285                     fi
32286                 fi
32287             fi
32288         done
32289
32290         if test "x$mgl_os" = x ; then
32291             { echo "$as_me:$LINENO: result: not found" >&5
32292 echo "${ECHO_T}not found" >&6; }
32293             { { echo "$as_me:$LINENO: error: Cannot find MGL libraries, make sure they are compiled." >&5
32294 echo "$as_me: error: Cannot find MGL libraries, make sure they are compiled." >&2;}
32295    { (exit 1); exit 1; }; }
32296         fi
32297         { echo "$as_me:$LINENO: result: \"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&5
32298 echo "${ECHO_T}\"$MGL_ROOT/lib/$mgl_lib_type/$mgl_os\"" >&6; }
32299
32300         wxUSE_UNIVERSAL="yes"
32301
32302         TOOLKIT_INCLUDE="-I$MGL_ROOT/include"
32303         GUI_TK_LIBRARY="-L$MGL_ROOT/lib/$mgl_lib_type/$mgl_os -lmgl -lmglcpp -lpm"
32304
32305         AFMINSTALL=afminstall
32306         TOOLKIT=MGL
32307         GUIDIST=MGL_DIST
32308     fi
32309
32310     if test "$wxUSE_DFB" = 1; then
32311
32312
32313 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
32314         if test -n "$ac_tool_prefix"; then
32315   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32316 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32319 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
32320   echo $ECHO_N "(cached) $ECHO_C" >&6
32321 else
32322   case $PKG_CONFIG in
32323   [\\/]* | ?:[\\/]*)
32324   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
32325   ;;
32326   *)
32327   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32328 for as_dir in $PATH
32329 do
32330   IFS=$as_save_IFS
32331   test -z "$as_dir" && as_dir=.
32332   for ac_exec_ext in '' $ac_executable_extensions; do
32333   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32334     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32335     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32336     break 2
32337   fi
32338 done
32339 done
32340 IFS=$as_save_IFS
32341
32342   ;;
32343 esac
32344 fi
32345 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
32346 if test -n "$PKG_CONFIG"; then
32347   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
32348 echo "${ECHO_T}$PKG_CONFIG" >&6; }
32349 else
32350   { echo "$as_me:$LINENO: result: no" >&5
32351 echo "${ECHO_T}no" >&6; }
32352 fi
32353
32354
32355 fi
32356 if test -z "$ac_cv_path_PKG_CONFIG"; then
32357   ac_pt_PKG_CONFIG=$PKG_CONFIG
32358   # Extract the first word of "pkg-config", so it can be a program name with args.
32359 set dummy pkg-config; ac_word=$2
32360 { echo "$as_me:$LINENO: checking for $ac_word" >&5
32361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
32362 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
32363   echo $ECHO_N "(cached) $ECHO_C" >&6
32364 else
32365   case $ac_pt_PKG_CONFIG in
32366   [\\/]* | ?:[\\/]*)
32367   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
32368   ;;
32369   *)
32370   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32371 for as_dir in $PATH
32372 do
32373   IFS=$as_save_IFS
32374   test -z "$as_dir" && as_dir=.
32375   for ac_exec_ext in '' $ac_executable_extensions; do
32376   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
32377     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
32378     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32379     break 2
32380   fi
32381 done
32382 done
32383 IFS=$as_save_IFS
32384
32385   ;;
32386 esac
32387 fi
32388 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
32389 if test -n "$ac_pt_PKG_CONFIG"; then
32390   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
32391 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
32392 else
32393   { echo "$as_me:$LINENO: result: no" >&5
32394 echo "${ECHO_T}no" >&6; }
32395 fi
32396
32397   if test "x$ac_pt_PKG_CONFIG" = x; then
32398     PKG_CONFIG=""
32399   else
32400     case $cross_compiling:$ac_tool_warned in
32401 yes:)
32402 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
32403 whose name does not start with the host triplet.  If you think this
32404 configuration is useful to you, please write to autoconf@gnu.org." >&5
32405 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
32406 whose name does not start with the host triplet.  If you think this
32407 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
32408 ac_tool_warned=yes ;;
32409 esac
32410     PKG_CONFIG=$ac_pt_PKG_CONFIG
32411   fi
32412 else
32413   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
32414 fi
32415
32416 fi
32417 if test -n "$PKG_CONFIG"; then
32418         _pkg_min_version=0.9.0
32419         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
32420 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
32421         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
32422                 { echo "$as_me:$LINENO: result: yes" >&5
32423 echo "${ECHO_T}yes" >&6; }
32424         else
32425                 { echo "$as_me:$LINENO: result: no" >&5
32426 echo "${ECHO_T}no" >&6; }
32427                 PKG_CONFIG=""
32428         fi
32429
32430 fi
32431
32432
32433 pkg_failed=no
32434 { echo "$as_me:$LINENO: checking for DIRECTFB" >&5
32435 echo $ECHO_N "checking for DIRECTFB... $ECHO_C" >&6; }
32436
32437 if test -n "$PKG_CONFIG"; then
32438     if test -n "$DIRECTFB_CFLAGS"; then
32439         pkg_cv_DIRECTFB_CFLAGS="$DIRECTFB_CFLAGS"
32440     else
32441         if test -n "$PKG_CONFIG" && \
32442     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32443   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32444   ac_status=$?
32445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32446   (exit $ac_status); }; then
32447   pkg_cv_DIRECTFB_CFLAGS=`$PKG_CONFIG --cflags "directfb >= 0.9.23" 2>/dev/null`
32448 else
32449   pkg_failed=yes
32450 fi
32451     fi
32452 else
32453         pkg_failed=untried
32454 fi
32455 if test -n "$PKG_CONFIG"; then
32456     if test -n "$DIRECTFB_LIBS"; then
32457         pkg_cv_DIRECTFB_LIBS="$DIRECTFB_LIBS"
32458     else
32459         if test -n "$PKG_CONFIG" && \
32460     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"directfb >= 0.9.23\"") >&5
32461   ($PKG_CONFIG --exists --print-errors "directfb >= 0.9.23") 2>&5
32462   ac_status=$?
32463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32464   (exit $ac_status); }; then
32465   pkg_cv_DIRECTFB_LIBS=`$PKG_CONFIG --libs "directfb >= 0.9.23" 2>/dev/null`
32466 else
32467   pkg_failed=yes
32468 fi
32469     fi
32470 else
32471         pkg_failed=untried
32472 fi
32473
32474
32475
32476 if test $pkg_failed = yes; then
32477
32478 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
32479         _pkg_short_errors_supported=yes
32480 else
32481         _pkg_short_errors_supported=no
32482 fi
32483         if test $_pkg_short_errors_supported = yes; then
32484                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32485         else
32486                 DIRECTFB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "directfb >= 0.9.23"`
32487         fi
32488         # Put the nasty error message in config.log where it belongs
32489         echo "$DIRECTFB_PKG_ERRORS" >&5
32490
32491
32492                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32493 echo "$as_me: error: DirectFB not found." >&2;}
32494    { (exit 1); exit 1; }; }
32495
32496
32497 elif test $pkg_failed = untried; then
32498
32499                            { { echo "$as_me:$LINENO: error: DirectFB not found." >&5
32500 echo "$as_me: error: DirectFB not found." >&2;}
32501    { (exit 1); exit 1; }; }
32502
32503
32504 else
32505         DIRECTFB_CFLAGS=$pkg_cv_DIRECTFB_CFLAGS
32506         DIRECTFB_LIBS=$pkg_cv_DIRECTFB_LIBS
32507         { echo "$as_me:$LINENO: result: yes" >&5
32508 echo "${ECHO_T}yes" >&6; }
32509
32510                            wxUSE_UNIVERSAL="yes"
32511                            TOOLKIT_INCLUDE="$DIRECTFB_CFLAGS"
32512                            GUI_TK_LIBRARY="$DIRECTFB_LIBS"
32513                            TOOLKIT=DFB
32514                            GUIDIST=DFB_DIST
32515
32516 fi
32517     fi
32518
32519     if test "$wxUSE_MICROWIN" = 1; then
32520         { echo "$as_me:$LINENO: checking for MicroWindows" >&5
32521 echo $ECHO_N "checking for MicroWindows... $ECHO_C" >&6; }
32522         if test "x$MICROWINDOWS" = x ; then
32523             { echo "$as_me:$LINENO: result: not found" >&5
32524 echo "${ECHO_T}not found" >&6; }
32525             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&5
32526 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWINDOWS is set." >&2;}
32527    { (exit 1); exit 1; }; }
32528         else
32529             { echo "$as_me:$LINENO: result: $MICROWINDOWS" >&5
32530 echo "${ECHO_T}$MICROWINDOWS" >&6; }
32531         fi
32532
32533         if test -f $MICROWINDOWS/lib/libmwin.a; then
32534             { echo "$as_me:$LINENO: result: MicroWindows' libraries found." >&5
32535 echo "${ECHO_T}MicroWindows' libraries found." >&6; }
32536         else
32537             { { echo "$as_me:$LINENO: error: Cannot find MicroWindows libraries, make sure they are compiled." >&5
32538 echo "$as_me: error: Cannot find MicroWindows libraries, make sure they are compiled." >&2;}
32539    { (exit 1); exit 1; }; }
32540         fi
32541
32542         TOOLKIT_INCLUDE="-I$MICROWINDOWS/include"
32543         GUI_TK_LIBRARY="-L$MICROWINDOWS/lib -lmwin -lmwengine -mwfonts -mwdrivers -mwinlib"
32544
32545         wxUSE_UNIVERSAL="yes"
32546
32547         AFMINSTALL=afminstall
32548         TOOLKIT=MICROWIN
32549         GUIDIST=MICROWIN_DIST
32550
32551         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXMSW__ -D__WIN95__ -D__WIN32__ -DMWIN -DMICROWIN_NOCONTROLS -DMICROWIN_TODO=1"
32552     fi
32553
32554         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
32555                                 { echo "$as_me:$LINENO: checking for X" >&5
32556 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
32557
32558
32559 # Check whether --with-x was given.
32560 if test "${with_x+set}" = set; then
32561   withval=$with_x;
32562 fi
32563
32564 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
32565 if test "x$with_x" = xno; then
32566   # The user explicitly disabled X.
32567   have_x=disabled
32568 else
32569   case $x_includes,$x_libraries in #(
32570     *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
32571 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
32572    { (exit 1); exit 1; }; };; #(
32573     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
32574   echo $ECHO_N "(cached) $ECHO_C" >&6
32575 else
32576   # One or both of the vars are not set, and there is no cached value.
32577 ac_x_includes=no ac_x_libraries=no
32578 rm -f -r conftest.dir
32579 if mkdir conftest.dir; then
32580   cd conftest.dir
32581   cat >Imakefile <<'_ACEOF'
32582 incroot:
32583         @echo incroot='${INCROOT}'
32584 usrlibdir:
32585         @echo usrlibdir='${USRLIBDIR}'
32586 libdir:
32587         @echo libdir='${LIBDIR}'
32588 _ACEOF
32589   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
32590     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
32591     for ac_var in incroot usrlibdir libdir; do
32592       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
32593     done
32594     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
32595     for ac_extension in a so sl; do
32596       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
32597          test -f "$ac_im_libdir/libX11.$ac_extension"; then
32598         ac_im_usrlibdir=$ac_im_libdir; break
32599       fi
32600     done
32601     # Screen out bogus values from the imake configuration.  They are
32602     # bogus both because they are the default anyway, and because
32603     # using them would break gcc on systems where it needs fixed includes.
32604     case $ac_im_incroot in
32605         /usr/include) ac_x_includes= ;;
32606         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
32607     esac
32608     case $ac_im_usrlibdir in
32609         /usr/lib | /lib) ;;
32610         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
32611     esac
32612   fi
32613   cd ..
32614   rm -f -r conftest.dir
32615 fi
32616
32617 # Standard set of common directories for X headers.
32618 # Check X11 before X11Rn because it is often a symlink to the current release.
32619 ac_x_header_dirs='
32620 /usr/X11/include
32621 /usr/X11R6/include
32622 /usr/X11R5/include
32623 /usr/X11R4/include
32624
32625 /usr/include/X11
32626 /usr/include/X11R6
32627 /usr/include/X11R5
32628 /usr/include/X11R4
32629
32630 /usr/local/X11/include
32631 /usr/local/X11R6/include
32632 /usr/local/X11R5/include
32633 /usr/local/X11R4/include
32634
32635 /usr/local/include/X11
32636 /usr/local/include/X11R6
32637 /usr/local/include/X11R5
32638 /usr/local/include/X11R4
32639
32640 /usr/X386/include
32641 /usr/x386/include
32642 /usr/XFree86/include/X11
32643
32644 /usr/include
32645 /usr/local/include
32646 /usr/unsupported/include
32647 /usr/athena/include
32648 /usr/local/x11r5/include
32649 /usr/lpp/Xamples/include
32650
32651 /usr/openwin/include
32652 /usr/openwin/share/include'
32653
32654 if test "$ac_x_includes" = no; then
32655   # Guess where to find include files, by looking for Xlib.h.
32656   # First, try using that file with no special directory specified.
32657   cat >conftest.$ac_ext <<_ACEOF
32658 /* confdefs.h.  */
32659 _ACEOF
32660 cat confdefs.h >>conftest.$ac_ext
32661 cat >>conftest.$ac_ext <<_ACEOF
32662 /* end confdefs.h.  */
32663 #include <X11/Xlib.h>
32664 _ACEOF
32665 if { (ac_try="$ac_cpp conftest.$ac_ext"
32666 case "(($ac_try" in
32667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32668   *) ac_try_echo=$ac_try;;
32669 esac
32670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
32672   ac_status=$?
32673   grep -v '^ *+' conftest.er1 >conftest.err
32674   rm -f conftest.er1
32675   cat conftest.err >&5
32676   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32677   (exit $ac_status); } >/dev/null && {
32678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
32679          test ! -s conftest.err
32680        }; then
32681   # We can compile using X headers with no special include directory.
32682 ac_x_includes=
32683 else
32684   echo "$as_me: failed program was:" >&5
32685 sed 's/^/| /' conftest.$ac_ext >&5
32686
32687   for ac_dir in $ac_x_header_dirs; do
32688   if test -r "$ac_dir/X11/Xlib.h"; then
32689     ac_x_includes=$ac_dir
32690     break
32691   fi
32692 done
32693 fi
32694
32695 rm -f conftest.err conftest.$ac_ext
32696 fi # $ac_x_includes = no
32697
32698 if test "$ac_x_libraries" = no; then
32699   # Check for the libraries.
32700   # See if we find them without any special options.
32701   # Don't add to $LIBS permanently.
32702   ac_save_LIBS=$LIBS
32703   LIBS="-lX11 $LIBS"
32704   cat >conftest.$ac_ext <<_ACEOF
32705 /* confdefs.h.  */
32706 _ACEOF
32707 cat confdefs.h >>conftest.$ac_ext
32708 cat >>conftest.$ac_ext <<_ACEOF
32709 /* end confdefs.h.  */
32710 #include <X11/Xlib.h>
32711 int
32712 main ()
32713 {
32714 XrmInitialize ()
32715   ;
32716   return 0;
32717 }
32718 _ACEOF
32719 rm -f conftest.$ac_objext conftest$ac_exeext
32720 if { (ac_try="$ac_link"
32721 case "(($ac_try" in
32722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32723   *) ac_try_echo=$ac_try;;
32724 esac
32725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32726   (eval "$ac_link") 2>conftest.er1
32727   ac_status=$?
32728   grep -v '^ *+' conftest.er1 >conftest.err
32729   rm -f conftest.er1
32730   cat conftest.err >&5
32731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32732   (exit $ac_status); } && {
32733          test -z "$ac_c_werror_flag" ||
32734          test ! -s conftest.err
32735        } && test -s conftest$ac_exeext &&
32736        $as_test_x conftest$ac_exeext; then
32737   LIBS=$ac_save_LIBS
32738 # We can link X programs with no special library path.
32739 ac_x_libraries=
32740 else
32741   echo "$as_me: failed program was:" >&5
32742 sed 's/^/| /' conftest.$ac_ext >&5
32743
32744         LIBS=$ac_save_LIBS
32745 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
32746 do
32747   # Don't even attempt the hair of trying to link an X program!
32748   for ac_extension in a so sl; do
32749     if test -r "$ac_dir/libX11.$ac_extension"; then
32750       ac_x_libraries=$ac_dir
32751       break 2
32752     fi
32753   done
32754 done
32755 fi
32756
32757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32758       conftest$ac_exeext conftest.$ac_ext
32759 fi # $ac_x_libraries = no
32760
32761 case $ac_x_includes,$ac_x_libraries in #(
32762   no,* | *,no | *\'*)
32763     # Didn't find X, or a directory has "'" in its name.
32764     ac_cv_have_x="have_x=no";; #(
32765   *)
32766     # Record where we found X for the cache.
32767     ac_cv_have_x="have_x=yes\
32768         ac_x_includes='$ac_x_includes'\
32769         ac_x_libraries='$ac_x_libraries'"
32770 esac
32771 fi
32772 ;; #(
32773     *) have_x=yes;;
32774   esac
32775   eval "$ac_cv_have_x"
32776 fi # $with_x != no
32777
32778 if test "$have_x" != yes; then
32779   { echo "$as_me:$LINENO: result: $have_x" >&5
32780 echo "${ECHO_T}$have_x" >&6; }
32781   no_x=yes
32782 else
32783   # If each of the values was on the command line, it overrides each guess.
32784   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
32785   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
32786   # Update the cache value to reflect the command line values.
32787   ac_cv_have_x="have_x=yes\
32788         ac_x_includes='$x_includes'\
32789         ac_x_libraries='$x_libraries'"
32790   { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
32791 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
32792 fi
32793
32794 if test "$no_x" = yes; then
32795   # Not all programs may use this symbol, but it does not hurt to define it.
32796
32797 cat >>confdefs.h <<\_ACEOF
32798 #define X_DISPLAY_MISSING 1
32799 _ACEOF
32800
32801   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
32802 else
32803   if test -n "$x_includes"; then
32804     X_CFLAGS="$X_CFLAGS -I$x_includes"
32805   fi
32806
32807   # It would also be nice to do this for all -L options, not just this one.
32808   if test -n "$x_libraries"; then
32809     X_LIBS="$X_LIBS -L$x_libraries"
32810     # For Solaris; some versions of Sun CC require a space after -R and
32811     # others require no space.  Words are not sufficient . . . .
32812     { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
32813 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; }
32814     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
32815     ac_xsave_c_werror_flag=$ac_c_werror_flag
32816     ac_c_werror_flag=yes
32817     cat >conftest.$ac_ext <<_ACEOF
32818 /* confdefs.h.  */
32819 _ACEOF
32820 cat confdefs.h >>conftest.$ac_ext
32821 cat >>conftest.$ac_ext <<_ACEOF
32822 /* end confdefs.h.  */
32823
32824 int
32825 main ()
32826 {
32827
32828   ;
32829   return 0;
32830 }
32831 _ACEOF
32832 rm -f conftest.$ac_objext conftest$ac_exeext
32833 if { (ac_try="$ac_link"
32834 case "(($ac_try" in
32835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32836   *) ac_try_echo=$ac_try;;
32837 esac
32838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32839   (eval "$ac_link") 2>conftest.er1
32840   ac_status=$?
32841   grep -v '^ *+' conftest.er1 >conftest.err
32842   rm -f conftest.er1
32843   cat conftest.err >&5
32844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32845   (exit $ac_status); } && {
32846          test -z "$ac_c_werror_flag" ||
32847          test ! -s conftest.err
32848        } && test -s conftest$ac_exeext &&
32849        $as_test_x conftest$ac_exeext; then
32850   { echo "$as_me:$LINENO: result: no" >&5
32851 echo "${ECHO_T}no" >&6; }
32852        X_LIBS="$X_LIBS -R$x_libraries"
32853 else
32854   echo "$as_me: failed program was:" >&5
32855 sed 's/^/| /' conftest.$ac_ext >&5
32856
32857         LIBS="$ac_xsave_LIBS -R $x_libraries"
32858        cat >conftest.$ac_ext <<_ACEOF
32859 /* confdefs.h.  */
32860 _ACEOF
32861 cat confdefs.h >>conftest.$ac_ext
32862 cat >>conftest.$ac_ext <<_ACEOF
32863 /* end confdefs.h.  */
32864
32865 int
32866 main ()
32867 {
32868
32869   ;
32870   return 0;
32871 }
32872 _ACEOF
32873 rm -f conftest.$ac_objext conftest$ac_exeext
32874 if { (ac_try="$ac_link"
32875 case "(($ac_try" in
32876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32877   *) ac_try_echo=$ac_try;;
32878 esac
32879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32880   (eval "$ac_link") 2>conftest.er1
32881   ac_status=$?
32882   grep -v '^ *+' conftest.er1 >conftest.err
32883   rm -f conftest.er1
32884   cat conftest.err >&5
32885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32886   (exit $ac_status); } && {
32887          test -z "$ac_c_werror_flag" ||
32888          test ! -s conftest.err
32889        } && test -s conftest$ac_exeext &&
32890        $as_test_x conftest$ac_exeext; then
32891   { echo "$as_me:$LINENO: result: yes" >&5
32892 echo "${ECHO_T}yes" >&6; }
32893           X_LIBS="$X_LIBS -R $x_libraries"
32894 else
32895   echo "$as_me: failed program was:" >&5
32896 sed 's/^/| /' conftest.$ac_ext >&5
32897
32898         { echo "$as_me:$LINENO: result: neither works" >&5
32899 echo "${ECHO_T}neither works" >&6; }
32900 fi
32901
32902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32903       conftest$ac_exeext conftest.$ac_ext
32904 fi
32905
32906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32907       conftest$ac_exeext conftest.$ac_ext
32908     ac_c_werror_flag=$ac_xsave_c_werror_flag
32909     LIBS=$ac_xsave_LIBS
32910   fi
32911
32912   # Check for system-dependent libraries X programs must link with.
32913   # Do this before checking for the system-independent R6 libraries
32914   # (-lICE), since we may need -lsocket or whatever for X linking.
32915
32916   if test "$ISC" = yes; then
32917     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
32918   else
32919     # Martyn Johnson says this is needed for Ultrix, if the X
32920     # libraries were built with DECnet support.  And Karl Berry says
32921     # the Alpha needs dnet_stub (dnet does not exist).
32922     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
32923     cat >conftest.$ac_ext <<_ACEOF
32924 /* confdefs.h.  */
32925 _ACEOF
32926 cat confdefs.h >>conftest.$ac_ext
32927 cat >>conftest.$ac_ext <<_ACEOF
32928 /* end confdefs.h.  */
32929
32930 /* Override any GCC internal prototype to avoid an error.
32931    Use char because int might match the return type of a GCC
32932    builtin and then its argument prototype would still apply.  */
32933 #ifdef __cplusplus
32934 extern "C"
32935 #endif
32936 char XOpenDisplay ();
32937 int
32938 main ()
32939 {
32940 return XOpenDisplay ();
32941   ;
32942   return 0;
32943 }
32944 _ACEOF
32945 rm -f conftest.$ac_objext conftest$ac_exeext
32946 if { (ac_try="$ac_link"
32947 case "(($ac_try" in
32948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32949   *) ac_try_echo=$ac_try;;
32950 esac
32951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
32952   (eval "$ac_link") 2>conftest.er1
32953   ac_status=$?
32954   grep -v '^ *+' conftest.er1 >conftest.err
32955   rm -f conftest.er1
32956   cat conftest.err >&5
32957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
32958   (exit $ac_status); } && {
32959          test -z "$ac_c_werror_flag" ||
32960          test ! -s conftest.err
32961        } && test -s conftest$ac_exeext &&
32962        $as_test_x conftest$ac_exeext; then
32963   :
32964 else
32965   echo "$as_me: failed program was:" >&5
32966 sed 's/^/| /' conftest.$ac_ext >&5
32967
32968         { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
32969 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
32970 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
32971   echo $ECHO_N "(cached) $ECHO_C" >&6
32972 else
32973   ac_check_lib_save_LIBS=$LIBS
32974 LIBS="-ldnet  $LIBS"
32975 cat >conftest.$ac_ext <<_ACEOF
32976 /* confdefs.h.  */
32977 _ACEOF
32978 cat confdefs.h >>conftest.$ac_ext
32979 cat >>conftest.$ac_ext <<_ACEOF
32980 /* end confdefs.h.  */
32981
32982 /* Override any GCC internal prototype to avoid an error.
32983    Use char because int might match the return type of a GCC
32984    builtin and then its argument prototype would still apply.  */
32985 #ifdef __cplusplus
32986 extern "C"
32987 #endif
32988 char dnet_ntoa ();
32989 int
32990 main ()
32991 {
32992 return dnet_ntoa ();
32993   ;
32994   return 0;
32995 }
32996 _ACEOF
32997 rm -f conftest.$ac_objext conftest$ac_exeext
32998 if { (ac_try="$ac_link"
32999 case "(($ac_try" in
33000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33001   *) ac_try_echo=$ac_try;;
33002 esac
33003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33004   (eval "$ac_link") 2>conftest.er1
33005   ac_status=$?
33006   grep -v '^ *+' conftest.er1 >conftest.err
33007   rm -f conftest.er1
33008   cat conftest.err >&5
33009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33010   (exit $ac_status); } && {
33011          test -z "$ac_c_werror_flag" ||
33012          test ! -s conftest.err
33013        } && test -s conftest$ac_exeext &&
33014        $as_test_x conftest$ac_exeext; then
33015   ac_cv_lib_dnet_dnet_ntoa=yes
33016 else
33017   echo "$as_me: failed program was:" >&5
33018 sed 's/^/| /' conftest.$ac_ext >&5
33019
33020         ac_cv_lib_dnet_dnet_ntoa=no
33021 fi
33022
33023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33024       conftest$ac_exeext conftest.$ac_ext
33025 LIBS=$ac_check_lib_save_LIBS
33026 fi
33027 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
33028 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
33029 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
33030   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
33031 fi
33032
33033     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
33034       { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
33035 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; }
33036 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
33037   echo $ECHO_N "(cached) $ECHO_C" >&6
33038 else
33039   ac_check_lib_save_LIBS=$LIBS
33040 LIBS="-ldnet_stub  $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 dnet_ntoa ();
33055 int
33056 main ()
33057 {
33058 return dnet_ntoa ();
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_dnet_stub_dnet_ntoa=yes
33082 else
33083   echo "$as_me: failed program was:" >&5
33084 sed 's/^/| /' conftest.$ac_ext >&5
33085
33086         ac_cv_lib_dnet_stub_dnet_ntoa=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_dnet_stub_dnet_ntoa" >&5
33094 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
33095 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
33096   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
33097 fi
33098
33099     fi
33100 fi
33101
33102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33103       conftest$ac_exeext conftest.$ac_ext
33104     LIBS="$ac_xsave_LIBS"
33105
33106     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
33107     # to get the SysV transport functions.
33108     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
33109     # needs -lnsl.
33110     # The nsl library prevents programs from opening the X display
33111     # on Irix 5.2, according to T.E. Dickey.
33112     # The functions gethostbyname, getservbyname, and inet_addr are
33113     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
33114     { echo "$as_me:$LINENO: checking for gethostbyname" >&5
33115 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
33116 if test "${ac_cv_func_gethostbyname+set}" = set; then
33117   echo $ECHO_N "(cached) $ECHO_C" >&6
33118 else
33119   cat >conftest.$ac_ext <<_ACEOF
33120 /* confdefs.h.  */
33121 _ACEOF
33122 cat confdefs.h >>conftest.$ac_ext
33123 cat >>conftest.$ac_ext <<_ACEOF
33124 /* end confdefs.h.  */
33125 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
33126    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33127 #define gethostbyname innocuous_gethostbyname
33128
33129 /* System header to define __stub macros and hopefully few prototypes,
33130     which can conflict with char gethostbyname (); below.
33131     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33132     <limits.h> exists even on freestanding compilers.  */
33133
33134 #ifdef __STDC__
33135 # include <limits.h>
33136 #else
33137 # include <assert.h>
33138 #endif
33139
33140 #undef gethostbyname
33141
33142 /* Override any GCC internal prototype to avoid an error.
33143    Use char because int might match the return type of a GCC
33144    builtin and then its argument prototype would still apply.  */
33145 #ifdef __cplusplus
33146 extern "C"
33147 #endif
33148 char gethostbyname ();
33149 /* The GNU C library defines this for functions which it implements
33150     to always fail with ENOSYS.  Some functions are actually named
33151     something starting with __ and the normal name is an alias.  */
33152 #if defined __stub_gethostbyname || defined __stub___gethostbyname
33153 choke me
33154 #endif
33155
33156 int
33157 main ()
33158 {
33159 return gethostbyname ();
33160   ;
33161   return 0;
33162 }
33163 _ACEOF
33164 rm -f conftest.$ac_objext conftest$ac_exeext
33165 if { (ac_try="$ac_link"
33166 case "(($ac_try" in
33167   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33168   *) ac_try_echo=$ac_try;;
33169 esac
33170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33171   (eval "$ac_link") 2>conftest.er1
33172   ac_status=$?
33173   grep -v '^ *+' conftest.er1 >conftest.err
33174   rm -f conftest.er1
33175   cat conftest.err >&5
33176   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33177   (exit $ac_status); } && {
33178          test -z "$ac_c_werror_flag" ||
33179          test ! -s conftest.err
33180        } && test -s conftest$ac_exeext &&
33181        $as_test_x conftest$ac_exeext; then
33182   ac_cv_func_gethostbyname=yes
33183 else
33184   echo "$as_me: failed program was:" >&5
33185 sed 's/^/| /' conftest.$ac_ext >&5
33186
33187         ac_cv_func_gethostbyname=no
33188 fi
33189
33190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33191       conftest$ac_exeext conftest.$ac_ext
33192 fi
33193 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
33194 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
33195
33196     if test $ac_cv_func_gethostbyname = no; then
33197       { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
33198 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
33199 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
33200   echo $ECHO_N "(cached) $ECHO_C" >&6
33201 else
33202   ac_check_lib_save_LIBS=$LIBS
33203 LIBS="-lnsl  $LIBS"
33204 cat >conftest.$ac_ext <<_ACEOF
33205 /* confdefs.h.  */
33206 _ACEOF
33207 cat confdefs.h >>conftest.$ac_ext
33208 cat >>conftest.$ac_ext <<_ACEOF
33209 /* end confdefs.h.  */
33210
33211 /* Override any GCC internal prototype to avoid an error.
33212    Use char because int might match the return type of a GCC
33213    builtin and then its argument prototype would still apply.  */
33214 #ifdef __cplusplus
33215 extern "C"
33216 #endif
33217 char gethostbyname ();
33218 int
33219 main ()
33220 {
33221 return gethostbyname ();
33222   ;
33223   return 0;
33224 }
33225 _ACEOF
33226 rm -f conftest.$ac_objext conftest$ac_exeext
33227 if { (ac_try="$ac_link"
33228 case "(($ac_try" in
33229   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33230   *) ac_try_echo=$ac_try;;
33231 esac
33232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33233   (eval "$ac_link") 2>conftest.er1
33234   ac_status=$?
33235   grep -v '^ *+' conftest.er1 >conftest.err
33236   rm -f conftest.er1
33237   cat conftest.err >&5
33238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33239   (exit $ac_status); } && {
33240          test -z "$ac_c_werror_flag" ||
33241          test ! -s conftest.err
33242        } && test -s conftest$ac_exeext &&
33243        $as_test_x conftest$ac_exeext; then
33244   ac_cv_lib_nsl_gethostbyname=yes
33245 else
33246   echo "$as_me: failed program was:" >&5
33247 sed 's/^/| /' conftest.$ac_ext >&5
33248
33249         ac_cv_lib_nsl_gethostbyname=no
33250 fi
33251
33252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33253       conftest$ac_exeext conftest.$ac_ext
33254 LIBS=$ac_check_lib_save_LIBS
33255 fi
33256 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
33257 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; }
33258 if test $ac_cv_lib_nsl_gethostbyname = yes; then
33259   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
33260 fi
33261
33262       if test $ac_cv_lib_nsl_gethostbyname = no; then
33263         { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
33264 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; }
33265 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
33266   echo $ECHO_N "(cached) $ECHO_C" >&6
33267 else
33268   ac_check_lib_save_LIBS=$LIBS
33269 LIBS="-lbsd  $LIBS"
33270 cat >conftest.$ac_ext <<_ACEOF
33271 /* confdefs.h.  */
33272 _ACEOF
33273 cat confdefs.h >>conftest.$ac_ext
33274 cat >>conftest.$ac_ext <<_ACEOF
33275 /* end confdefs.h.  */
33276
33277 /* Override any GCC internal prototype to avoid an error.
33278    Use char because int might match the return type of a GCC
33279    builtin and then its argument prototype would still apply.  */
33280 #ifdef __cplusplus
33281 extern "C"
33282 #endif
33283 char gethostbyname ();
33284 int
33285 main ()
33286 {
33287 return gethostbyname ();
33288   ;
33289   return 0;
33290 }
33291 _ACEOF
33292 rm -f conftest.$ac_objext conftest$ac_exeext
33293 if { (ac_try="$ac_link"
33294 case "(($ac_try" in
33295   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33296   *) ac_try_echo=$ac_try;;
33297 esac
33298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33299   (eval "$ac_link") 2>conftest.er1
33300   ac_status=$?
33301   grep -v '^ *+' conftest.er1 >conftest.err
33302   rm -f conftest.er1
33303   cat conftest.err >&5
33304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33305   (exit $ac_status); } && {
33306          test -z "$ac_c_werror_flag" ||
33307          test ! -s conftest.err
33308        } && test -s conftest$ac_exeext &&
33309        $as_test_x conftest$ac_exeext; then
33310   ac_cv_lib_bsd_gethostbyname=yes
33311 else
33312   echo "$as_me: failed program was:" >&5
33313 sed 's/^/| /' conftest.$ac_ext >&5
33314
33315         ac_cv_lib_bsd_gethostbyname=no
33316 fi
33317
33318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33319       conftest$ac_exeext conftest.$ac_ext
33320 LIBS=$ac_check_lib_save_LIBS
33321 fi
33322 { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
33323 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; }
33324 if test $ac_cv_lib_bsd_gethostbyname = yes; then
33325   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
33326 fi
33327
33328       fi
33329     fi
33330
33331     # lieder@skyler.mavd.honeywell.com says without -lsocket,
33332     # socket/setsockopt and other routines are undefined under SCO ODT
33333     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
33334     # on later versions), says Simon Leinen: it contains gethostby*
33335     # variants that don't use the name server (or something).  -lsocket
33336     # must be given before -lnsl if both are needed.  We assume that
33337     # if connect needs -lnsl, so does gethostbyname.
33338     { echo "$as_me:$LINENO: checking for connect" >&5
33339 echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
33340 if test "${ac_cv_func_connect+set}" = set; then
33341   echo $ECHO_N "(cached) $ECHO_C" >&6
33342 else
33343   cat >conftest.$ac_ext <<_ACEOF
33344 /* confdefs.h.  */
33345 _ACEOF
33346 cat confdefs.h >>conftest.$ac_ext
33347 cat >>conftest.$ac_ext <<_ACEOF
33348 /* end confdefs.h.  */
33349 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
33350    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33351 #define connect innocuous_connect
33352
33353 /* System header to define __stub macros and hopefully few prototypes,
33354     which can conflict with char connect (); below.
33355     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33356     <limits.h> exists even on freestanding compilers.  */
33357
33358 #ifdef __STDC__
33359 # include <limits.h>
33360 #else
33361 # include <assert.h>
33362 #endif
33363
33364 #undef connect
33365
33366 /* Override any GCC internal prototype to avoid an error.
33367    Use char because int might match the return type of a GCC
33368    builtin and then its argument prototype would still apply.  */
33369 #ifdef __cplusplus
33370 extern "C"
33371 #endif
33372 char connect ();
33373 /* The GNU C library defines this for functions which it implements
33374     to always fail with ENOSYS.  Some functions are actually named
33375     something starting with __ and the normal name is an alias.  */
33376 #if defined __stub_connect || defined __stub___connect
33377 choke me
33378 #endif
33379
33380 int
33381 main ()
33382 {
33383 return connect ();
33384   ;
33385   return 0;
33386 }
33387 _ACEOF
33388 rm -f conftest.$ac_objext conftest$ac_exeext
33389 if { (ac_try="$ac_link"
33390 case "(($ac_try" in
33391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33392   *) ac_try_echo=$ac_try;;
33393 esac
33394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33395   (eval "$ac_link") 2>conftest.er1
33396   ac_status=$?
33397   grep -v '^ *+' conftest.er1 >conftest.err
33398   rm -f conftest.er1
33399   cat conftest.err >&5
33400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33401   (exit $ac_status); } && {
33402          test -z "$ac_c_werror_flag" ||
33403          test ! -s conftest.err
33404        } && test -s conftest$ac_exeext &&
33405        $as_test_x conftest$ac_exeext; then
33406   ac_cv_func_connect=yes
33407 else
33408   echo "$as_me: failed program was:" >&5
33409 sed 's/^/| /' conftest.$ac_ext >&5
33410
33411         ac_cv_func_connect=no
33412 fi
33413
33414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33415       conftest$ac_exeext conftest.$ac_ext
33416 fi
33417 { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
33418 echo "${ECHO_T}$ac_cv_func_connect" >&6; }
33419
33420     if test $ac_cv_func_connect = no; then
33421       { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
33422 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; }
33423 if test "${ac_cv_lib_socket_connect+set}" = set; then
33424   echo $ECHO_N "(cached) $ECHO_C" >&6
33425 else
33426   ac_check_lib_save_LIBS=$LIBS
33427 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
33428 cat >conftest.$ac_ext <<_ACEOF
33429 /* confdefs.h.  */
33430 _ACEOF
33431 cat confdefs.h >>conftest.$ac_ext
33432 cat >>conftest.$ac_ext <<_ACEOF
33433 /* end confdefs.h.  */
33434
33435 /* Override any GCC internal prototype to avoid an error.
33436    Use char because int might match the return type of a GCC
33437    builtin and then its argument prototype would still apply.  */
33438 #ifdef __cplusplus
33439 extern "C"
33440 #endif
33441 char connect ();
33442 int
33443 main ()
33444 {
33445 return connect ();
33446   ;
33447   return 0;
33448 }
33449 _ACEOF
33450 rm -f conftest.$ac_objext conftest$ac_exeext
33451 if { (ac_try="$ac_link"
33452 case "(($ac_try" in
33453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33454   *) ac_try_echo=$ac_try;;
33455 esac
33456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33457   (eval "$ac_link") 2>conftest.er1
33458   ac_status=$?
33459   grep -v '^ *+' conftest.er1 >conftest.err
33460   rm -f conftest.er1
33461   cat conftest.err >&5
33462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33463   (exit $ac_status); } && {
33464          test -z "$ac_c_werror_flag" ||
33465          test ! -s conftest.err
33466        } && test -s conftest$ac_exeext &&
33467        $as_test_x conftest$ac_exeext; then
33468   ac_cv_lib_socket_connect=yes
33469 else
33470   echo "$as_me: failed program was:" >&5
33471 sed 's/^/| /' conftest.$ac_ext >&5
33472
33473         ac_cv_lib_socket_connect=no
33474 fi
33475
33476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33477       conftest$ac_exeext conftest.$ac_ext
33478 LIBS=$ac_check_lib_save_LIBS
33479 fi
33480 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
33481 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; }
33482 if test $ac_cv_lib_socket_connect = yes; then
33483   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
33484 fi
33485
33486     fi
33487
33488     # Guillermo Gomez says -lposix is necessary on A/UX.
33489     { echo "$as_me:$LINENO: checking for remove" >&5
33490 echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
33491 if test "${ac_cv_func_remove+set}" = set; then
33492   echo $ECHO_N "(cached) $ECHO_C" >&6
33493 else
33494   cat >conftest.$ac_ext <<_ACEOF
33495 /* confdefs.h.  */
33496 _ACEOF
33497 cat confdefs.h >>conftest.$ac_ext
33498 cat >>conftest.$ac_ext <<_ACEOF
33499 /* end confdefs.h.  */
33500 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
33501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33502 #define remove innocuous_remove
33503
33504 /* System header to define __stub macros and hopefully few prototypes,
33505     which can conflict with char remove (); below.
33506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33507     <limits.h> exists even on freestanding compilers.  */
33508
33509 #ifdef __STDC__
33510 # include <limits.h>
33511 #else
33512 # include <assert.h>
33513 #endif
33514
33515 #undef remove
33516
33517 /* Override any GCC internal prototype to avoid an error.
33518    Use char because int might match the return type of a GCC
33519    builtin and then its argument prototype would still apply.  */
33520 #ifdef __cplusplus
33521 extern "C"
33522 #endif
33523 char remove ();
33524 /* The GNU C library defines this for functions which it implements
33525     to always fail with ENOSYS.  Some functions are actually named
33526     something starting with __ and the normal name is an alias.  */
33527 #if defined __stub_remove || defined __stub___remove
33528 choke me
33529 #endif
33530
33531 int
33532 main ()
33533 {
33534 return remove ();
33535   ;
33536   return 0;
33537 }
33538 _ACEOF
33539 rm -f conftest.$ac_objext conftest$ac_exeext
33540 if { (ac_try="$ac_link"
33541 case "(($ac_try" in
33542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33543   *) ac_try_echo=$ac_try;;
33544 esac
33545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33546   (eval "$ac_link") 2>conftest.er1
33547   ac_status=$?
33548   grep -v '^ *+' conftest.er1 >conftest.err
33549   rm -f conftest.er1
33550   cat conftest.err >&5
33551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33552   (exit $ac_status); } && {
33553          test -z "$ac_c_werror_flag" ||
33554          test ! -s conftest.err
33555        } && test -s conftest$ac_exeext &&
33556        $as_test_x conftest$ac_exeext; then
33557   ac_cv_func_remove=yes
33558 else
33559   echo "$as_me: failed program was:" >&5
33560 sed 's/^/| /' conftest.$ac_ext >&5
33561
33562         ac_cv_func_remove=no
33563 fi
33564
33565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33566       conftest$ac_exeext conftest.$ac_ext
33567 fi
33568 { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
33569 echo "${ECHO_T}$ac_cv_func_remove" >&6; }
33570
33571     if test $ac_cv_func_remove = no; then
33572       { echo "$as_me:$LINENO: checking for remove in -lposix" >&5
33573 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; }
33574 if test "${ac_cv_lib_posix_remove+set}" = set; then
33575   echo $ECHO_N "(cached) $ECHO_C" >&6
33576 else
33577   ac_check_lib_save_LIBS=$LIBS
33578 LIBS="-lposix  $LIBS"
33579 cat >conftest.$ac_ext <<_ACEOF
33580 /* confdefs.h.  */
33581 _ACEOF
33582 cat confdefs.h >>conftest.$ac_ext
33583 cat >>conftest.$ac_ext <<_ACEOF
33584 /* end confdefs.h.  */
33585
33586 /* Override any GCC internal prototype to avoid an error.
33587    Use char because int might match the return type of a GCC
33588    builtin and then its argument prototype would still apply.  */
33589 #ifdef __cplusplus
33590 extern "C"
33591 #endif
33592 char remove ();
33593 int
33594 main ()
33595 {
33596 return remove ();
33597   ;
33598   return 0;
33599 }
33600 _ACEOF
33601 rm -f conftest.$ac_objext conftest$ac_exeext
33602 if { (ac_try="$ac_link"
33603 case "(($ac_try" in
33604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33605   *) ac_try_echo=$ac_try;;
33606 esac
33607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33608   (eval "$ac_link") 2>conftest.er1
33609   ac_status=$?
33610   grep -v '^ *+' conftest.er1 >conftest.err
33611   rm -f conftest.er1
33612   cat conftest.err >&5
33613   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33614   (exit $ac_status); } && {
33615          test -z "$ac_c_werror_flag" ||
33616          test ! -s conftest.err
33617        } && test -s conftest$ac_exeext &&
33618        $as_test_x conftest$ac_exeext; then
33619   ac_cv_lib_posix_remove=yes
33620 else
33621   echo "$as_me: failed program was:" >&5
33622 sed 's/^/| /' conftest.$ac_ext >&5
33623
33624         ac_cv_lib_posix_remove=no
33625 fi
33626
33627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33628       conftest$ac_exeext conftest.$ac_ext
33629 LIBS=$ac_check_lib_save_LIBS
33630 fi
33631 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
33632 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; }
33633 if test $ac_cv_lib_posix_remove = yes; then
33634   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
33635 fi
33636
33637     fi
33638
33639     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
33640     { echo "$as_me:$LINENO: checking for shmat" >&5
33641 echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
33642 if test "${ac_cv_func_shmat+set}" = set; then
33643   echo $ECHO_N "(cached) $ECHO_C" >&6
33644 else
33645   cat >conftest.$ac_ext <<_ACEOF
33646 /* confdefs.h.  */
33647 _ACEOF
33648 cat confdefs.h >>conftest.$ac_ext
33649 cat >>conftest.$ac_ext <<_ACEOF
33650 /* end confdefs.h.  */
33651 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
33652    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33653 #define shmat innocuous_shmat
33654
33655 /* System header to define __stub macros and hopefully few prototypes,
33656     which can conflict with char shmat (); below.
33657     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33658     <limits.h> exists even on freestanding compilers.  */
33659
33660 #ifdef __STDC__
33661 # include <limits.h>
33662 #else
33663 # include <assert.h>
33664 #endif
33665
33666 #undef shmat
33667
33668 /* Override any GCC internal prototype to avoid an error.
33669    Use char because int might match the return type of a GCC
33670    builtin and then its argument prototype would still apply.  */
33671 #ifdef __cplusplus
33672 extern "C"
33673 #endif
33674 char shmat ();
33675 /* The GNU C library defines this for functions which it implements
33676     to always fail with ENOSYS.  Some functions are actually named
33677     something starting with __ and the normal name is an alias.  */
33678 #if defined __stub_shmat || defined __stub___shmat
33679 choke me
33680 #endif
33681
33682 int
33683 main ()
33684 {
33685 return shmat ();
33686   ;
33687   return 0;
33688 }
33689 _ACEOF
33690 rm -f conftest.$ac_objext conftest$ac_exeext
33691 if { (ac_try="$ac_link"
33692 case "(($ac_try" in
33693   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33694   *) ac_try_echo=$ac_try;;
33695 esac
33696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33697   (eval "$ac_link") 2>conftest.er1
33698   ac_status=$?
33699   grep -v '^ *+' conftest.er1 >conftest.err
33700   rm -f conftest.er1
33701   cat conftest.err >&5
33702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33703   (exit $ac_status); } && {
33704          test -z "$ac_c_werror_flag" ||
33705          test ! -s conftest.err
33706        } && test -s conftest$ac_exeext &&
33707        $as_test_x conftest$ac_exeext; then
33708   ac_cv_func_shmat=yes
33709 else
33710   echo "$as_me: failed program was:" >&5
33711 sed 's/^/| /' conftest.$ac_ext >&5
33712
33713         ac_cv_func_shmat=no
33714 fi
33715
33716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33717       conftest$ac_exeext conftest.$ac_ext
33718 fi
33719 { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
33720 echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
33721
33722     if test $ac_cv_func_shmat = no; then
33723       { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
33724 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; }
33725 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
33726   echo $ECHO_N "(cached) $ECHO_C" >&6
33727 else
33728   ac_check_lib_save_LIBS=$LIBS
33729 LIBS="-lipc  $LIBS"
33730 cat >conftest.$ac_ext <<_ACEOF
33731 /* confdefs.h.  */
33732 _ACEOF
33733 cat confdefs.h >>conftest.$ac_ext
33734 cat >>conftest.$ac_ext <<_ACEOF
33735 /* end confdefs.h.  */
33736
33737 /* Override any GCC internal prototype to avoid an error.
33738    Use char because int might match the return type of a GCC
33739    builtin and then its argument prototype would still apply.  */
33740 #ifdef __cplusplus
33741 extern "C"
33742 #endif
33743 char shmat ();
33744 int
33745 main ()
33746 {
33747 return shmat ();
33748   ;
33749   return 0;
33750 }
33751 _ACEOF
33752 rm -f conftest.$ac_objext conftest$ac_exeext
33753 if { (ac_try="$ac_link"
33754 case "(($ac_try" in
33755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33756   *) ac_try_echo=$ac_try;;
33757 esac
33758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33759   (eval "$ac_link") 2>conftest.er1
33760   ac_status=$?
33761   grep -v '^ *+' conftest.er1 >conftest.err
33762   rm -f conftest.er1
33763   cat conftest.err >&5
33764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33765   (exit $ac_status); } && {
33766          test -z "$ac_c_werror_flag" ||
33767          test ! -s conftest.err
33768        } && test -s conftest$ac_exeext &&
33769        $as_test_x conftest$ac_exeext; then
33770   ac_cv_lib_ipc_shmat=yes
33771 else
33772   echo "$as_me: failed program was:" >&5
33773 sed 's/^/| /' conftest.$ac_ext >&5
33774
33775         ac_cv_lib_ipc_shmat=no
33776 fi
33777
33778 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33779       conftest$ac_exeext conftest.$ac_ext
33780 LIBS=$ac_check_lib_save_LIBS
33781 fi
33782 { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
33783 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; }
33784 if test $ac_cv_lib_ipc_shmat = yes; then
33785   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
33786 fi
33787
33788     fi
33789   fi
33790
33791   # Check for libraries that X11R6 Xt/Xaw programs need.
33792   ac_save_LDFLAGS=$LDFLAGS
33793   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
33794   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
33795   # check for ICE first), but we must link in the order -lSM -lICE or
33796   # we get undefined symbols.  So assume we have SM if we have ICE.
33797   # These have to be linked with before -lX11, unlike the other
33798   # libraries we check for below, so use a different variable.
33799   # John Interrante, Karl Berry
33800   { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
33801 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; }
33802 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
33803   echo $ECHO_N "(cached) $ECHO_C" >&6
33804 else
33805   ac_check_lib_save_LIBS=$LIBS
33806 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
33807 cat >conftest.$ac_ext <<_ACEOF
33808 /* confdefs.h.  */
33809 _ACEOF
33810 cat confdefs.h >>conftest.$ac_ext
33811 cat >>conftest.$ac_ext <<_ACEOF
33812 /* end confdefs.h.  */
33813
33814 /* Override any GCC internal prototype to avoid an error.
33815    Use char because int might match the return type of a GCC
33816    builtin and then its argument prototype would still apply.  */
33817 #ifdef __cplusplus
33818 extern "C"
33819 #endif
33820 char IceConnectionNumber ();
33821 int
33822 main ()
33823 {
33824 return IceConnectionNumber ();
33825   ;
33826   return 0;
33827 }
33828 _ACEOF
33829 rm -f conftest.$ac_objext conftest$ac_exeext
33830 if { (ac_try="$ac_link"
33831 case "(($ac_try" in
33832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33833   *) ac_try_echo=$ac_try;;
33834 esac
33835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
33836   (eval "$ac_link") 2>conftest.er1
33837   ac_status=$?
33838   grep -v '^ *+' conftest.er1 >conftest.err
33839   rm -f conftest.er1
33840   cat conftest.err >&5
33841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
33842   (exit $ac_status); } && {
33843          test -z "$ac_c_werror_flag" ||
33844          test ! -s conftest.err
33845        } && test -s conftest$ac_exeext &&
33846        $as_test_x conftest$ac_exeext; then
33847   ac_cv_lib_ICE_IceConnectionNumber=yes
33848 else
33849   echo "$as_me: failed program was:" >&5
33850 sed 's/^/| /' conftest.$ac_ext >&5
33851
33852         ac_cv_lib_ICE_IceConnectionNumber=no
33853 fi
33854
33855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33856       conftest$ac_exeext conftest.$ac_ext
33857 LIBS=$ac_check_lib_save_LIBS
33858 fi
33859 { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
33860 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
33861 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
33862   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
33863 fi
33864
33865   LDFLAGS=$ac_save_LDFLAGS
33866
33867 fi
33868
33869
33870         if test "$no_x" = "yes"; then
33871           { { echo "$as_me:$LINENO: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&5
33872 echo "$as_me: error: X11 not found, please use --x-includes and/or --x-libraries options (see config.log for details)" >&2;}
33873    { (exit 1); exit 1; }; }
33874         fi
33875
33876                                 GUI_TK_LIBRARY=`echo $X_LIBS | sed 's/ -LNONE//' | sed 's/ -RNONE//'`
33877         TOOLKIT_INCLUDE=`echo $X_CFLAGS | sed 's/ -INONE//'`
33878         AFMINSTALL=afminstall
33879         COMPILED_X_PROGRAM=0
33880
33881     fi
33882
33883     if test "$wxUSE_X11" = 1; then
33884         if test "$wxUSE_NANOX" = "yes"; then
33885             { echo "$as_me:$LINENO: checking for MicroWindows/NanoX distribution" >&5
33886 echo $ECHO_N "checking for MicroWindows/NanoX distribution... $ECHO_C" >&6; }
33887             if test "x$MICROWIN" = x ; then
33888                 { echo "$as_me:$LINENO: result: not found" >&5
33889 echo "${ECHO_T}not found" >&6; }
33890                 { { echo "$as_me:$LINENO: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&5
33891 echo "$as_me: error: Cannot find MicroWindows library. Make sure MICROWIN is set." >&2;}
33892    { (exit 1); exit 1; }; }
33893             else
33894                 { echo "$as_me:$LINENO: result: $MICROWIN" >&5
33895 echo "${ECHO_T}$MICROWIN" >&6; }
33896                 cat >>confdefs.h <<\_ACEOF
33897 #define wxUSE_NANOX 1
33898 _ACEOF
33899
33900             fi
33901         fi
33902
33903         if test "$wxUSE_UNICODE" = "yes"; then
33904
33905
33906 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
33907         if test -n "$ac_tool_prefix"; then
33908   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
33909 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
33910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33912 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
33913   echo $ECHO_N "(cached) $ECHO_C" >&6
33914 else
33915   case $PKG_CONFIG in
33916   [\\/]* | ?:[\\/]*)
33917   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
33918   ;;
33919   *)
33920   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33921 for as_dir in $PATH
33922 do
33923   IFS=$as_save_IFS
33924   test -z "$as_dir" && as_dir=.
33925   for ac_exec_ext in '' $ac_executable_extensions; do
33926   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33927     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33929     break 2
33930   fi
33931 done
33932 done
33933 IFS=$as_save_IFS
33934
33935   ;;
33936 esac
33937 fi
33938 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
33939 if test -n "$PKG_CONFIG"; then
33940   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
33941 echo "${ECHO_T}$PKG_CONFIG" >&6; }
33942 else
33943   { echo "$as_me:$LINENO: result: no" >&5
33944 echo "${ECHO_T}no" >&6; }
33945 fi
33946
33947
33948 fi
33949 if test -z "$ac_cv_path_PKG_CONFIG"; then
33950   ac_pt_PKG_CONFIG=$PKG_CONFIG
33951   # Extract the first word of "pkg-config", so it can be a program name with args.
33952 set dummy pkg-config; ac_word=$2
33953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
33954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
33955 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
33956   echo $ECHO_N "(cached) $ECHO_C" >&6
33957 else
33958   case $ac_pt_PKG_CONFIG in
33959   [\\/]* | ?:[\\/]*)
33960   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
33961   ;;
33962   *)
33963   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33964 for as_dir in $PATH
33965 do
33966   IFS=$as_save_IFS
33967   test -z "$as_dir" && as_dir=.
33968   for ac_exec_ext in '' $ac_executable_extensions; do
33969   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
33970     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
33971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33972     break 2
33973   fi
33974 done
33975 done
33976 IFS=$as_save_IFS
33977
33978   ;;
33979 esac
33980 fi
33981 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
33982 if test -n "$ac_pt_PKG_CONFIG"; then
33983   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
33984 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
33985 else
33986   { echo "$as_me:$LINENO: result: no" >&5
33987 echo "${ECHO_T}no" >&6; }
33988 fi
33989
33990   if test "x$ac_pt_PKG_CONFIG" = x; then
33991     PKG_CONFIG=""
33992   else
33993     case $cross_compiling:$ac_tool_warned in
33994 yes:)
33995 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
33996 whose name does not start with the host triplet.  If you think this
33997 configuration is useful to you, please write to autoconf@gnu.org." >&5
33998 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
33999 whose name does not start with the host triplet.  If you think this
34000 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
34001 ac_tool_warned=yes ;;
34002 esac
34003     PKG_CONFIG=$ac_pt_PKG_CONFIG
34004   fi
34005 else
34006   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
34007 fi
34008
34009 fi
34010 if test -n "$PKG_CONFIG"; then
34011         _pkg_min_version=0.9.0
34012         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
34013 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
34014         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
34015                 { echo "$as_me:$LINENO: result: yes" >&5
34016 echo "${ECHO_T}yes" >&6; }
34017         else
34018                 { echo "$as_me:$LINENO: result: no" >&5
34019 echo "${ECHO_T}no" >&6; }
34020                 PKG_CONFIG=""
34021         fi
34022
34023 fi
34024
34025
34026 pkg_failed=no
34027 { echo "$as_me:$LINENO: checking for PANGOX" >&5
34028 echo $ECHO_N "checking for PANGOX... $ECHO_C" >&6; }
34029
34030 if test -n "$PKG_CONFIG"; then
34031     if test -n "$PANGOX_CFLAGS"; then
34032         pkg_cv_PANGOX_CFLAGS="$PANGOX_CFLAGS"
34033     else
34034         if test -n "$PKG_CONFIG" && \
34035     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34036   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34037   ac_status=$?
34038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34039   (exit $ac_status); }; then
34040   pkg_cv_PANGOX_CFLAGS=`$PKG_CONFIG --cflags "pangox" 2>/dev/null`
34041 else
34042   pkg_failed=yes
34043 fi
34044     fi
34045 else
34046         pkg_failed=untried
34047 fi
34048 if test -n "$PKG_CONFIG"; then
34049     if test -n "$PANGOX_LIBS"; then
34050         pkg_cv_PANGOX_LIBS="$PANGOX_LIBS"
34051     else
34052         if test -n "$PKG_CONFIG" && \
34053     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangox\"") >&5
34054   ($PKG_CONFIG --exists --print-errors "pangox") 2>&5
34055   ac_status=$?
34056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34057   (exit $ac_status); }; then
34058   pkg_cv_PANGOX_LIBS=`$PKG_CONFIG --libs "pangox" 2>/dev/null`
34059 else
34060   pkg_failed=yes
34061 fi
34062     fi
34063 else
34064         pkg_failed=untried
34065 fi
34066
34067
34068
34069 if test $pkg_failed = yes; then
34070
34071 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34072         _pkg_short_errors_supported=yes
34073 else
34074         _pkg_short_errors_supported=no
34075 fi
34076         if test $_pkg_short_errors_supported = yes; then
34077                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangox"`
34078         else
34079                 PANGOX_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangox"`
34080         fi
34081         # Put the nasty error message in config.log where it belongs
34082         echo "$PANGOX_PKG_ERRORS" >&5
34083
34084
34085                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34086 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34087    { (exit 1); exit 1; }; }
34088
34089
34090 elif test $pkg_failed = untried; then
34091
34092                     { { echo "$as_me:$LINENO: error: pangox library not found, library cannot be compiled in Unicode mode" >&5
34093 echo "$as_me: error: pangox library not found, library cannot be compiled in Unicode mode" >&2;}
34094    { (exit 1); exit 1; }; }
34095
34096
34097 else
34098         PANGOX_CFLAGS=$pkg_cv_PANGOX_CFLAGS
34099         PANGOX_LIBS=$pkg_cv_PANGOX_LIBS
34100         { echo "$as_me:$LINENO: result: yes" >&5
34101 echo "${ECHO_T}yes" >&6; }
34102
34103                     CFLAGS="$PANGOX_CFLAGS $CFLAGS"
34104                     CXXFLAGS="$PANGOX_CFLAGS $CXXFLAGS"
34105                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOX_LIBS"
34106
34107 fi
34108
34109 pkg_failed=no
34110 { echo "$as_me:$LINENO: checking for PANGOFT2" >&5
34111 echo $ECHO_N "checking for PANGOFT2... $ECHO_C" >&6; }
34112
34113 if test -n "$PKG_CONFIG"; then
34114     if test -n "$PANGOFT2_CFLAGS"; then
34115         pkg_cv_PANGOFT2_CFLAGS="$PANGOFT2_CFLAGS"
34116     else
34117         if test -n "$PKG_CONFIG" && \
34118     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34119   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34120   ac_status=$?
34121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34122   (exit $ac_status); }; then
34123   pkg_cv_PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2" 2>/dev/null`
34124 else
34125   pkg_failed=yes
34126 fi
34127     fi
34128 else
34129         pkg_failed=untried
34130 fi
34131 if test -n "$PKG_CONFIG"; then
34132     if test -n "$PANGOFT2_LIBS"; then
34133         pkg_cv_PANGOFT2_LIBS="$PANGOFT2_LIBS"
34134     else
34135         if test -n "$PKG_CONFIG" && \
34136     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoft2\"") >&5
34137   ($PKG_CONFIG --exists --print-errors "pangoft2") 2>&5
34138   ac_status=$?
34139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); }; then
34141   pkg_cv_PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2" 2>/dev/null`
34142 else
34143   pkg_failed=yes
34144 fi
34145     fi
34146 else
34147         pkg_failed=untried
34148 fi
34149
34150
34151
34152 if test $pkg_failed = yes; then
34153
34154 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34155         _pkg_short_errors_supported=yes
34156 else
34157         _pkg_short_errors_supported=no
34158 fi
34159         if test $_pkg_short_errors_supported = yes; then
34160                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoft2"`
34161         else
34162                 PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
34163         fi
34164         # Put the nasty error message in config.log where it belongs
34165         echo "$PANGOFT2_PKG_ERRORS" >&5
34166
34167
34168                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34169 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34170                     wxUSE_PRINTING_ARCHITECTURE="no"
34171
34172
34173 elif test $pkg_failed = untried; then
34174
34175                     { echo "$as_me:$LINENO: WARNING: pangoft2 library not found, library will be compiled without printing support" >&5
34176 echo "$as_me: WARNING: pangoft2 library not found, library will be compiled without printing support" >&2;}
34177                     wxUSE_PRINTING_ARCHITECTURE="no"
34178
34179
34180 else
34181         PANGOFT2_CFLAGS=$pkg_cv_PANGOFT2_CFLAGS
34182         PANGOFT2_LIBS=$pkg_cv_PANGOFT2_LIBS
34183         { echo "$as_me:$LINENO: result: yes" >&5
34184 echo "${ECHO_T}yes" >&6; }
34185
34186                     CFLAGS="$PANGOFT2_CFLAGS $CFLAGS"
34187                     CXXFLAGS="$PANGOFT2_CFLAGS $CXXFLAGS"
34188                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOFT2_LIBS"
34189
34190 fi
34191
34192 pkg_failed=no
34193 { echo "$as_me:$LINENO: checking for PANGOXFT" >&5
34194 echo $ECHO_N "checking for PANGOXFT... $ECHO_C" >&6; }
34195
34196 if test -n "$PKG_CONFIG"; then
34197     if test -n "$PANGOXFT_CFLAGS"; then
34198         pkg_cv_PANGOXFT_CFLAGS="$PANGOXFT_CFLAGS"
34199     else
34200         if test -n "$PKG_CONFIG" && \
34201     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34202   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34203   ac_status=$?
34204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34205   (exit $ac_status); }; then
34206   pkg_cv_PANGOXFT_CFLAGS=`$PKG_CONFIG --cflags "pangoxft" 2>/dev/null`
34207 else
34208   pkg_failed=yes
34209 fi
34210     fi
34211 else
34212         pkg_failed=untried
34213 fi
34214 if test -n "$PKG_CONFIG"; then
34215     if test -n "$PANGOXFT_LIBS"; then
34216         pkg_cv_PANGOXFT_LIBS="$PANGOXFT_LIBS"
34217     else
34218         if test -n "$PKG_CONFIG" && \
34219     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"pangoxft\"") >&5
34220   ($PKG_CONFIG --exists --print-errors "pangoxft") 2>&5
34221   ac_status=$?
34222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34223   (exit $ac_status); }; then
34224   pkg_cv_PANGOXFT_LIBS=`$PKG_CONFIG --libs "pangoxft" 2>/dev/null`
34225 else
34226   pkg_failed=yes
34227 fi
34228     fi
34229 else
34230         pkg_failed=untried
34231 fi
34232
34233
34234
34235 if test $pkg_failed = yes; then
34236
34237 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
34238         _pkg_short_errors_supported=yes
34239 else
34240         _pkg_short_errors_supported=no
34241 fi
34242         if test $_pkg_short_errors_supported = yes; then
34243                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "pangoxft"`
34244         else
34245                 PANGOXFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoxft"`
34246         fi
34247         # Put the nasty error message in config.log where it belongs
34248         echo "$PANGOXFT_PKG_ERRORS" >&5
34249
34250
34251                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34252 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34253
34254
34255 elif test $pkg_failed = untried; then
34256
34257                     { echo "$as_me:$LINENO: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&5
34258 echo "$as_me: WARNING: pangoxft library not found, library will be compiled without anti-aliasing support" >&2;}
34259
34260
34261 else
34262         PANGOXFT_CFLAGS=$pkg_cv_PANGOXFT_CFLAGS
34263         PANGOXFT_LIBS=$pkg_cv_PANGOXFT_LIBS
34264         { echo "$as_me:$LINENO: result: yes" >&5
34265 echo "${ECHO_T}yes" >&6; }
34266
34267                     cat >>confdefs.h <<\_ACEOF
34268 #define HAVE_PANGO_XFT 1
34269 _ACEOF
34270
34271                     CFLAGS="$PANGOXFT_CFLAGS $CFLAGS"
34272                     CXXFLAGS="$PANGOXFT_CFLAGS $CXXFLAGS"
34273                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY $PANGOXFT_LIBS"
34274
34275 fi
34276             save_LIBS="$LIBS"
34277             LIBS="$LIBS $PANGOX_LIBS"
34278
34279 for ac_func in pango_font_family_is_monospace
34280 do
34281 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
34282 { echo "$as_me:$LINENO: checking for $ac_func" >&5
34283 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
34284 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34285   echo $ECHO_N "(cached) $ECHO_C" >&6
34286 else
34287   cat >conftest.$ac_ext <<_ACEOF
34288 /* confdefs.h.  */
34289 _ACEOF
34290 cat confdefs.h >>conftest.$ac_ext
34291 cat >>conftest.$ac_ext <<_ACEOF
34292 /* end confdefs.h.  */
34293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34294    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34295 #define $ac_func innocuous_$ac_func
34296
34297 /* System header to define __stub macros and hopefully few prototypes,
34298     which can conflict with char $ac_func (); below.
34299     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34300     <limits.h> exists even on freestanding compilers.  */
34301
34302 #ifdef __STDC__
34303 # include <limits.h>
34304 #else
34305 # include <assert.h>
34306 #endif
34307
34308 #undef $ac_func
34309
34310 /* Override any GCC internal prototype to avoid an error.
34311    Use char because int might match the return type of a GCC
34312    builtin and then its argument prototype would still apply.  */
34313 #ifdef __cplusplus
34314 extern "C"
34315 #endif
34316 char $ac_func ();
34317 /* The GNU C library defines this for functions which it implements
34318     to always fail with ENOSYS.  Some functions are actually named
34319     something starting with __ and the normal name is an alias.  */
34320 #if defined __stub_$ac_func || defined __stub___$ac_func
34321 choke me
34322 #endif
34323
34324 int
34325 main ()
34326 {
34327 return $ac_func ();
34328   ;
34329   return 0;
34330 }
34331 _ACEOF
34332 rm -f conftest.$ac_objext conftest$ac_exeext
34333 if { (ac_try="$ac_link"
34334 case "(($ac_try" in
34335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34336   *) ac_try_echo=$ac_try;;
34337 esac
34338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34339   (eval "$ac_link") 2>conftest.er1
34340   ac_status=$?
34341   grep -v '^ *+' conftest.er1 >conftest.err
34342   rm -f conftest.er1
34343   cat conftest.err >&5
34344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34345   (exit $ac_status); } && {
34346          test -z "$ac_c_werror_flag" ||
34347          test ! -s conftest.err
34348        } && test -s conftest$ac_exeext &&
34349        $as_test_x conftest$ac_exeext; then
34350   eval "$as_ac_var=yes"
34351 else
34352   echo "$as_me: failed program was:" >&5
34353 sed 's/^/| /' conftest.$ac_ext >&5
34354
34355         eval "$as_ac_var=no"
34356 fi
34357
34358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34359       conftest$ac_exeext conftest.$ac_ext
34360 fi
34361 ac_res=`eval echo '${'$as_ac_var'}'`
34362                { echo "$as_me:$LINENO: result: $ac_res" >&5
34363 echo "${ECHO_T}$ac_res" >&6; }
34364 if test `eval echo '${'$as_ac_var'}'` = yes; then
34365   cat >>confdefs.h <<_ACEOF
34366 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
34367 _ACEOF
34368
34369 fi
34370 done
34371
34372             LIBS="$save_LIBS"
34373         fi
34374
34375         wxUSE_UNIVERSAL="yes"
34376
34377         if test "$wxUSE_NANOX" = "yes"; then
34378             TOOLKIT_INCLUDE="-I\$(top_srcdir)/include/wx/x11/nanox -I\$(MICROWIN)/src/include $TOOLKIT_INCLUDE"
34379             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"
34380             GUI_TK_LIBRARY="$GUI_TK_LIBRARY \$(MICROWIN)/src/lib/libnano-X.a"
34381         else
34382             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lX11"
34383         fi
34384
34385         TOOLKIT=X11
34386         GUIDIST=X11_DIST
34387     fi
34388
34389     if test "$wxUSE_MOTIF" = 1; then
34390         { echo "$as_me:$LINENO: checking for Motif/Lesstif headers" >&5
34391 echo $ECHO_N "checking for Motif/Lesstif headers... $ECHO_C" >&6; }
34392
34393 ac_find_includes=
34394 for ac_dir in $SEARCH_INCLUDE /usr/include;
34395   do
34396     if test -f "$ac_dir/Xm/Xm.h"; then
34397       ac_find_includes=$ac_dir
34398       break
34399     fi
34400   done
34401
34402         if test "$ac_find_includes" != "" ; then
34403             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
34404 echo "${ECHO_T}found in $ac_find_includes" >&6; }
34405
34406     if test "x$ac_find_includes" = "x/usr/include"; then
34407     ac_path_to_include=""
34408   else
34409     echo "$TOOLKIT_INCLUDE" | grep "\-I$ac_find_includes" > /dev/null
34410     result=$?
34411     if test $result = 0; then
34412       ac_path_to_include=""
34413     else
34414       ac_path_to_include=" -I$ac_find_includes"
34415     fi
34416   fi
34417
34418             TOOLKIT_INCLUDE="$TOOLKIT_INCLUDE$ac_path_to_include"
34419         else
34420             save_CFLAGS=$CFLAGS
34421             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34422
34423             cat >conftest.$ac_ext <<_ACEOF
34424 /* confdefs.h.  */
34425 _ACEOF
34426 cat confdefs.h >>conftest.$ac_ext
34427 cat >>conftest.$ac_ext <<_ACEOF
34428 /* end confdefs.h.  */
34429
34430                     #include <Xm/Xm.h>
34431
34432 int
34433 main ()
34434 {
34435
34436                     int version;
34437                     version = xmUseVersion;
34438
34439   ;
34440   return 0;
34441 }
34442 _ACEOF
34443 rm -f conftest.$ac_objext
34444 if { (ac_try="$ac_compile"
34445 case "(($ac_try" in
34446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34447   *) ac_try_echo=$ac_try;;
34448 esac
34449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34450   (eval "$ac_compile") 2>conftest.er1
34451   ac_status=$?
34452   grep -v '^ *+' conftest.er1 >conftest.err
34453   rm -f conftest.er1
34454   cat conftest.err >&5
34455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34456   (exit $ac_status); } && {
34457          test -z "$ac_c_werror_flag" ||
34458          test ! -s conftest.err
34459        } && test -s conftest.$ac_objext; then
34460
34461                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34462 echo "${ECHO_T}found in default search path" >&6; }
34463                     COMPILED_X_PROGRAM=1
34464
34465 else
34466   echo "$as_me: failed program was:" >&5
34467 sed 's/^/| /' conftest.$ac_ext >&5
34468
34469
34470                     { echo "$as_me:$LINENO: result: no" >&5
34471 echo "${ECHO_T}no" >&6; }
34472                     { { echo "$as_me:$LINENO: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&5
34473 echo "$as_me: error: please set CPPFLAGS to contain the location of Xm/Xm.h" >&2;}
34474    { (exit 1); exit 1; }; }
34475
34476
34477 fi
34478
34479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34480
34481             CFLAGS=$save_CFLAGS
34482         fi
34483
34484
34485         { echo "$as_me:$LINENO: checking for Motif/Lesstif library" >&5
34486 echo $ECHO_N "checking for Motif/Lesstif library... $ECHO_C" >&6; }
34487
34488   ac_find_libraries=
34489   for ac_dir in $SEARCH_LIB;
34490   do
34491     for ac_extension in a so sl dylib dll.a; do
34492       if test -f "$ac_dir/libXm.$ac_extension"; then
34493         ac_find_libraries=$ac_dir
34494         break 2
34495       fi
34496     done
34497   done
34498
34499
34500         if test "x$ac_find_libraries" != "x" ; then
34501             { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34502 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34503
34504
34505     if test "$ac_find_libraries" = "default location"; then
34506     ac_path_to_link=""
34507   else
34508     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34509     result=$?
34510     if test $result = 0; then
34511       ac_path_to_link=""
34512     else
34513       ac_path_to_link=" -L$ac_find_libraries"
34514     fi
34515   fi
34516
34517             GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34518         else
34519                                                 save_CFLAGS=$CFLAGS
34520             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34521             save_LIBS="$LIBS"
34522             LIBS="$GUI_TK_LIBRARY -lXm -lXmu -lXext -lX11"
34523
34524             cat >conftest.$ac_ext <<_ACEOF
34525 /* confdefs.h.  */
34526 _ACEOF
34527 cat confdefs.h >>conftest.$ac_ext
34528 cat >>conftest.$ac_ext <<_ACEOF
34529 /* end confdefs.h.  */
34530
34531                     #include <Xm/Xm.h>
34532
34533 int
34534 main ()
34535 {
34536
34537                     int version;
34538                     version = xmUseVersion;
34539
34540   ;
34541   return 0;
34542 }
34543 _ACEOF
34544 rm -f conftest.$ac_objext conftest$ac_exeext
34545 if { (ac_try="$ac_link"
34546 case "(($ac_try" in
34547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34548   *) ac_try_echo=$ac_try;;
34549 esac
34550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34551   (eval "$ac_link") 2>conftest.er1
34552   ac_status=$?
34553   grep -v '^ *+' conftest.er1 >conftest.err
34554   rm -f conftest.er1
34555   cat conftest.err >&5
34556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34557   (exit $ac_status); } && {
34558          test -z "$ac_c_werror_flag" ||
34559          test ! -s conftest.err
34560        } && test -s conftest$ac_exeext &&
34561        $as_test_x conftest$ac_exeext; then
34562
34563                     { echo "$as_me:$LINENO: result: found in default search path" >&5
34564 echo "${ECHO_T}found in default search path" >&6; }
34565                     COMPILED_X_PROGRAM=1
34566
34567 else
34568   echo "$as_me: failed program was:" >&5
34569 sed 's/^/| /' conftest.$ac_ext >&5
34570
34571
34572                     { echo "$as_me:$LINENO: result: no" >&5
34573 echo "${ECHO_T}no" >&6; }
34574                     { { echo "$as_me:$LINENO: error: please set LDFLAGS to contain the location of libXm" >&5
34575 echo "$as_me: error: please set LDFLAGS to contain the location of libXm" >&2;}
34576    { (exit 1); exit 1; }; }
34577
34578
34579 fi
34580
34581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34582       conftest$ac_exeext conftest.$ac_ext
34583
34584             CFLAGS=$save_CFLAGS
34585             LIBS="$save_LIBS"
34586         fi
34587
34588         { echo "$as_me:$LINENO: checking if we need -lXp and/or -lSM -lICE" >&5
34589 echo $ECHO_N "checking if we need -lXp and/or -lSM -lICE... $ECHO_C" >&6; }
34590         libp_link=""
34591         libsm_ice_link=""
34592         libs_found=0
34593         for libp in "" " -lXp"; do
34594             if test "$libs_found" = "0"; then
34595                 for libsm_ice in "" " -lSM -lICE"; do
34596                     if test "$libs_found" = "0"; then
34597                         save_LIBS="$LIBS"
34598                         LIBS="$GUI_TK_LIBRARY -lXm ${libp} -lXmu -lXext -lXt${libsm_ice} -lX11"
34599                         save_CFLAGS=$CFLAGS
34600                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34601
34602                         cat >conftest.$ac_ext <<_ACEOF
34603 /* confdefs.h.  */
34604 _ACEOF
34605 cat confdefs.h >>conftest.$ac_ext
34606 cat >>conftest.$ac_ext <<_ACEOF
34607 /* end confdefs.h.  */
34608
34609                                 #include <Xm/Xm.h>
34610                                 #include <Xm/List.h>
34611
34612 int
34613 main ()
34614 {
34615
34616                                 XmString string = NULL;
34617                                 Widget w = NULL;
34618                                 int position = 0;
34619                                 XmListAddItem(w, string, position);
34620
34621   ;
34622   return 0;
34623 }
34624 _ACEOF
34625 rm -f conftest.$ac_objext conftest$ac_exeext
34626 if { (ac_try="$ac_link"
34627 case "(($ac_try" in
34628   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34629   *) ac_try_echo=$ac_try;;
34630 esac
34631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34632   (eval "$ac_link") 2>conftest.er1
34633   ac_status=$?
34634   grep -v '^ *+' conftest.er1 >conftest.err
34635   rm -f conftest.er1
34636   cat conftest.err >&5
34637   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34638   (exit $ac_status); } && {
34639          test -z "$ac_c_werror_flag" ||
34640          test ! -s conftest.err
34641        } && test -s conftest$ac_exeext &&
34642        $as_test_x conftest$ac_exeext; then
34643
34644                                 libp_link="$libp"
34645                                 libsm_ice_link="$libsm_ice"
34646                                 { echo "$as_me:$LINENO: result: need${libp_link}${libsm_ice_link}" >&5
34647 echo "${ECHO_T}need${libp_link}${libsm_ice_link}" >&6; }
34648                                 libs_found=1
34649
34650 else
34651   echo "$as_me: failed program was:" >&5
34652 sed 's/^/| /' conftest.$ac_ext >&5
34653
34654
34655
34656 fi
34657
34658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34659       conftest$ac_exeext conftest.$ac_ext
34660
34661                         LIBS="$save_LIBS"
34662                         CFLAGS=$save_CFLAGS
34663                     fi
34664                 done
34665             fi
34666         done
34667
34668         if test "$libs_found" = "0"; then
34669             { echo "$as_me:$LINENO: result: can't find the right libraries" >&5
34670 echo "${ECHO_T}can't find the right libraries" >&6; }
34671             { { echo "$as_me:$LINENO: error: can't link a simple motif program" >&5
34672 echo "$as_me: error: can't link a simple motif program" >&2;}
34673    { (exit 1); exit 1; }; }
34674         fi
34675
34676                         { echo "$as_me:$LINENO: checking for SgCreateList in -lSgm" >&5
34677 echo $ECHO_N "checking for SgCreateList in -lSgm... $ECHO_C" >&6; }
34678 if test "${ac_cv_lib_Sgm_SgCreateList+set}" = set; then
34679   echo $ECHO_N "(cached) $ECHO_C" >&6
34680 else
34681   ac_check_lib_save_LIBS=$LIBS
34682 LIBS="-lSgm  $LIBS"
34683 cat >conftest.$ac_ext <<_ACEOF
34684 /* confdefs.h.  */
34685 _ACEOF
34686 cat confdefs.h >>conftest.$ac_ext
34687 cat >>conftest.$ac_ext <<_ACEOF
34688 /* end confdefs.h.  */
34689
34690 /* Override any GCC internal prototype to avoid an error.
34691    Use char because int might match the return type of a GCC
34692    builtin and then its argument prototype would still apply.  */
34693 #ifdef __cplusplus
34694 extern "C"
34695 #endif
34696 char SgCreateList ();
34697 int
34698 main ()
34699 {
34700 return SgCreateList ();
34701   ;
34702   return 0;
34703 }
34704 _ACEOF
34705 rm -f conftest.$ac_objext conftest$ac_exeext
34706 if { (ac_try="$ac_link"
34707 case "(($ac_try" in
34708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34709   *) ac_try_echo=$ac_try;;
34710 esac
34711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34712   (eval "$ac_link") 2>conftest.er1
34713   ac_status=$?
34714   grep -v '^ *+' conftest.er1 >conftest.err
34715   rm -f conftest.er1
34716   cat conftest.err >&5
34717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34718   (exit $ac_status); } && {
34719          test -z "$ac_c_werror_flag" ||
34720          test ! -s conftest.err
34721        } && test -s conftest$ac_exeext &&
34722        $as_test_x conftest$ac_exeext; then
34723   ac_cv_lib_Sgm_SgCreateList=yes
34724 else
34725   echo "$as_me: failed program was:" >&5
34726 sed 's/^/| /' conftest.$ac_ext >&5
34727
34728         ac_cv_lib_Sgm_SgCreateList=no
34729 fi
34730
34731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34732       conftest$ac_exeext conftest.$ac_ext
34733 LIBS=$ac_check_lib_save_LIBS
34734 fi
34735 { echo "$as_me:$LINENO: result: $ac_cv_lib_Sgm_SgCreateList" >&5
34736 echo "${ECHO_T}$ac_cv_lib_Sgm_SgCreateList" >&6; }
34737 if test $ac_cv_lib_Sgm_SgCreateList = yes; then
34738   libsgm_link=" -lSgm"
34739 fi
34740
34741
34742         save_CFLAGS=$CFLAGS
34743         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34744
34745         { echo "$as_me:$LINENO: checking for Motif 2" >&5
34746 echo $ECHO_N "checking for Motif 2... $ECHO_C" >&6; }
34747 if test "${wx_cv_lib_motif2+set}" = set; then
34748   echo $ECHO_N "(cached) $ECHO_C" >&6
34749 else
34750   cat >conftest.$ac_ext <<_ACEOF
34751 /* confdefs.h.  */
34752 _ACEOF
34753 cat confdefs.h >>conftest.$ac_ext
34754 cat >>conftest.$ac_ext <<_ACEOF
34755 /* end confdefs.h.  */
34756
34757                             #include <Xm/Xm.h>
34758
34759 int
34760 main ()
34761 {
34762
34763                             #if XmVersion < 2000
34764                             Not Motif 2
34765                             #endif
34766
34767   ;
34768   return 0;
34769 }
34770 _ACEOF
34771 rm -f conftest.$ac_objext
34772 if { (ac_try="$ac_compile"
34773 case "(($ac_try" in
34774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34775   *) ac_try_echo=$ac_try;;
34776 esac
34777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34778   (eval "$ac_compile") 2>conftest.er1
34779   ac_status=$?
34780   grep -v '^ *+' conftest.er1 >conftest.err
34781   rm -f conftest.er1
34782   cat conftest.err >&5
34783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34784   (exit $ac_status); } && {
34785          test -z "$ac_c_werror_flag" ||
34786          test ! -s conftest.err
34787        } && test -s conftest.$ac_objext; then
34788   wx_cv_lib_motif2="yes"
34789 else
34790   echo "$as_me: failed program was:" >&5
34791 sed 's/^/| /' conftest.$ac_ext >&5
34792
34793         wx_cv_lib_motif2="no"
34794 fi
34795
34796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34797 fi
34798 { echo "$as_me:$LINENO: result: $wx_cv_lib_motif2" >&5
34799 echo "${ECHO_T}$wx_cv_lib_motif2" >&6; }
34800         if test "$wx_cv_lib_motif2" = "yes"; then
34801             cat >>confdefs.h <<\_ACEOF
34802 #define __WXMOTIF20__ 1
34803 _ACEOF
34804
34805         else
34806             cat >>confdefs.h <<\_ACEOF
34807 #define __WXMOTIF20__ 0
34808 _ACEOF
34809
34810         fi
34811
34812         { echo "$as_me:$LINENO: checking whether Motif is Lesstif" >&5
34813 echo $ECHO_N "checking whether Motif is Lesstif... $ECHO_C" >&6; }
34814 if test "${wx_cv_lib_lesstif+set}" = set; then
34815   echo $ECHO_N "(cached) $ECHO_C" >&6
34816 else
34817   cat >conftest.$ac_ext <<_ACEOF
34818 /* confdefs.h.  */
34819 _ACEOF
34820 cat confdefs.h >>conftest.$ac_ext
34821 cat >>conftest.$ac_ext <<_ACEOF
34822 /* end confdefs.h.  */
34823
34824                             #include <Xm/Xm.h>
34825
34826 int
34827 main ()
34828 {
34829
34830                             #if !defined(LesstifVersion) || LesstifVersion <= 0
34831                             Not Lesstif
34832                             #endif
34833
34834   ;
34835   return 0;
34836 }
34837 _ACEOF
34838 rm -f conftest.$ac_objext
34839 if { (ac_try="$ac_compile"
34840 case "(($ac_try" in
34841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34842   *) ac_try_echo=$ac_try;;
34843 esac
34844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34845   (eval "$ac_compile") 2>conftest.er1
34846   ac_status=$?
34847   grep -v '^ *+' conftest.er1 >conftest.err
34848   rm -f conftest.er1
34849   cat conftest.err >&5
34850   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34851   (exit $ac_status); } && {
34852          test -z "$ac_c_werror_flag" ||
34853          test ! -s conftest.err
34854        } && test -s conftest.$ac_objext; then
34855   wx_cv_lib_lesstif="yes"
34856 else
34857   echo "$as_me: failed program was:" >&5
34858 sed 's/^/| /' conftest.$ac_ext >&5
34859
34860         wx_cv_lib_lesstif="no"
34861 fi
34862
34863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34864
34865 fi
34866 { echo "$as_me:$LINENO: result: $wx_cv_lib_lesstif" >&5
34867 echo "${ECHO_T}$wx_cv_lib_lesstif" >&6; }
34868         if test "$wx_cv_lib_lesstif" = "yes"; then
34869             cat >>confdefs.h <<\_ACEOF
34870 #define __WXLESSTIF__ 1
34871 _ACEOF
34872
34873         else
34874             cat >>confdefs.h <<\_ACEOF
34875 #define __WXLESSTIF__ 0
34876 _ACEOF
34877
34878         fi
34879
34880         CFLAGS=$save_CFLAGS
34881
34882         GUI_TK_LIBRARY="$GUI_TK_LIBRARY${libsgm_link} -lXm${libp_link} -lXmu -lXext -lXt${libsm_ice_link} -lX11"
34883         TOOLKIT=MOTIF
34884         GUIDIST=MOTIF_DIST
34885     fi
34886
34887         if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
34888                 if test "$wxUSE_LIBXPM" = "sys"; then
34889             { echo "$as_me:$LINENO: checking for Xpm library" >&5
34890 echo $ECHO_N "checking for Xpm library... $ECHO_C" >&6; }
34891
34892   ac_find_libraries=
34893   for ac_dir in $SEARCH_LIB;
34894   do
34895     for ac_extension in a so sl dylib dll.a; do
34896       if test -f "$ac_dir/libXpm.$ac_extension"; then
34897         ac_find_libraries=$ac_dir
34898         break 2
34899       fi
34900     done
34901   done
34902
34903             if test "$ac_find_libraries" != "" ; then
34904
34905     if test "$ac_find_libraries" = "default location"; then
34906     ac_path_to_link=""
34907   else
34908     echo "$GUI_TK_LIBRARY" | grep "\-L$ac_find_libraries" > /dev/null
34909     result=$?
34910     if test $result = 0; then
34911       ac_path_to_link=""
34912     else
34913       ac_path_to_link=" -L$ac_find_libraries"
34914     fi
34915   fi
34916
34917                 GUI_TK_LIBRARY="$GUI_TK_LIBRARY$ac_path_to_link"
34918                 { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
34919 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
34920
34921                 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
34922 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
34923 if test "${wx_cv_x11_xpm_h+set}" = set; then
34924   echo $ECHO_N "(cached) $ECHO_C" >&6
34925 else
34926
34927                         save_CFLAGS=$CFLAGS
34928                         CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
34929
34930                         cat >conftest.$ac_ext <<_ACEOF
34931 /* confdefs.h.  */
34932 _ACEOF
34933 cat confdefs.h >>conftest.$ac_ext
34934 cat >>conftest.$ac_ext <<_ACEOF
34935 /* end confdefs.h.  */
34936
34937                                 #include <X11/xpm.h>
34938
34939 int
34940 main ()
34941 {
34942
34943                                 int version;
34944                                 version = XpmLibraryVersion();
34945
34946   ;
34947   return 0;
34948 }
34949 _ACEOF
34950 rm -f conftest.$ac_objext
34951 if { (ac_try="$ac_compile"
34952 case "(($ac_try" in
34953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34954   *) ac_try_echo=$ac_try;;
34955 esac
34956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
34957   (eval "$ac_compile") 2>conftest.er1
34958   ac_status=$?
34959   grep -v '^ *+' conftest.er1 >conftest.err
34960   rm -f conftest.er1
34961   cat conftest.err >&5
34962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
34963   (exit $ac_status); } && {
34964          test -z "$ac_c_werror_flag" ||
34965          test ! -s conftest.err
34966        } && test -s conftest.$ac_objext; then
34967   wx_cv_x11_xpm_h=yes
34968 else
34969   echo "$as_me: failed program was:" >&5
34970 sed 's/^/| /' conftest.$ac_ext >&5
34971
34972         wx_cv_x11_xpm_h=no
34973
34974 fi
34975
34976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34977
34978                         CFLAGS=$save_CFLAGS
34979
34980
34981 fi
34982 { echo "$as_me:$LINENO: result: $wx_cv_x11_xpm_h" >&5
34983 echo "${ECHO_T}$wx_cv_x11_xpm_h" >&6; }
34984
34985                 if test $wx_cv_x11_xpm_h = "yes"; then
34986                     GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXpm"
34987                     cat >>confdefs.h <<\_ACEOF
34988 #define wxHAVE_LIB_XPM 1
34989 _ACEOF
34990
34991                 else
34992                     { echo "$as_me:$LINENO: WARNING: built-in less efficient XPM decoder will be used" >&5
34993 echo "$as_me: WARNING: built-in less efficient XPM decoder will be used" >&2;}
34994                 fi
34995             fi
34996
34997         fi
34998
34999                 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
35000 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
35001 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
35002   echo $ECHO_N "(cached) $ECHO_C" >&6
35003 else
35004   ac_check_lib_save_LIBS=$LIBS
35005 LIBS="-lXext $GUI_TK_LIBRARY -lX11 $LIBS"
35006 cat >conftest.$ac_ext <<_ACEOF
35007 /* confdefs.h.  */
35008 _ACEOF
35009 cat confdefs.h >>conftest.$ac_ext
35010 cat >>conftest.$ac_ext <<_ACEOF
35011 /* end confdefs.h.  */
35012
35013 /* Override any GCC internal prototype to avoid an error.
35014    Use char because int might match the return type of a GCC
35015    builtin and then its argument prototype would still apply.  */
35016 #ifdef __cplusplus
35017 extern "C"
35018 #endif
35019 char XShapeQueryExtension ();
35020 int
35021 main ()
35022 {
35023 return XShapeQueryExtension ();
35024   ;
35025   return 0;
35026 }
35027 _ACEOF
35028 rm -f conftest.$ac_objext conftest$ac_exeext
35029 if { (ac_try="$ac_link"
35030 case "(($ac_try" in
35031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35032   *) ac_try_echo=$ac_try;;
35033 esac
35034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35035   (eval "$ac_link") 2>conftest.er1
35036   ac_status=$?
35037   grep -v '^ *+' conftest.er1 >conftest.err
35038   rm -f conftest.er1
35039   cat conftest.err >&5
35040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35041   (exit $ac_status); } && {
35042          test -z "$ac_c_werror_flag" ||
35043          test ! -s conftest.err
35044        } && test -s conftest$ac_exeext &&
35045        $as_test_x conftest$ac_exeext; then
35046   ac_cv_lib_Xext_XShapeQueryExtension=yes
35047 else
35048   echo "$as_me: failed program was:" >&5
35049 sed 's/^/| /' conftest.$ac_ext >&5
35050
35051         ac_cv_lib_Xext_XShapeQueryExtension=no
35052 fi
35053
35054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35055       conftest$ac_exeext conftest.$ac_ext
35056 LIBS=$ac_check_lib_save_LIBS
35057 fi
35058 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
35059 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
35060 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
35061
35062                       GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXext"
35063                       wxHAVE_XEXT_LIB=1
35064
35065 fi
35066
35067
35068         if test "$wxHAVE_XEXT_LIB" = 1; then
35069             save_CFLAGS="$CFLAGS"
35070             CFLAGS="$TOOLKIT_INCLUDE $CFLAGS"
35071
35072             { echo "$as_me:$LINENO: checking for X11/extensions/shape.h" >&5
35073 echo $ECHO_N "checking for X11/extensions/shape.h... $ECHO_C" >&6; }
35074             cat >conftest.$ac_ext <<_ACEOF
35075 /* confdefs.h.  */
35076 _ACEOF
35077 cat confdefs.h >>conftest.$ac_ext
35078 cat >>conftest.$ac_ext <<_ACEOF
35079 /* end confdefs.h.  */
35080
35081                             #include <X11/Xlib.h>
35082                             #include <X11/extensions/shape.h>
35083
35084 int
35085 main ()
35086 {
35087
35088                             int dummy1, dummy2;
35089                             XShapeQueryExtension((Display*)NULL,
35090                                                  (int*)NULL, (int*)NULL);
35091
35092   ;
35093   return 0;
35094 }
35095 _ACEOF
35096 rm -f conftest.$ac_objext
35097 if { (ac_try="$ac_compile"
35098 case "(($ac_try" in
35099   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35100   *) ac_try_echo=$ac_try;;
35101 esac
35102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35103   (eval "$ac_compile") 2>conftest.er1
35104   ac_status=$?
35105   grep -v '^ *+' conftest.er1 >conftest.err
35106   rm -f conftest.er1
35107   cat conftest.err >&5
35108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35109   (exit $ac_status); } && {
35110          test -z "$ac_c_werror_flag" ||
35111          test ! -s conftest.err
35112        } && test -s conftest.$ac_objext; then
35113
35114                             cat >>confdefs.h <<\_ACEOF
35115 #define HAVE_XSHAPE 1
35116 _ACEOF
35117
35118                             { echo "$as_me:$LINENO: result: found" >&5
35119 echo "${ECHO_T}found" >&6; }
35120
35121 else
35122   echo "$as_me: failed program was:" >&5
35123 sed 's/^/| /' conftest.$ac_ext >&5
35124
35125
35126                             { echo "$as_me:$LINENO: result: not found" >&5
35127 echo "${ECHO_T}not found" >&6; }
35128
35129 fi
35130
35131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35132             CFLAGS="$save_CFLAGS"
35133
35134         fi
35135     fi
35136
35137     if test "$wxUSE_MAC" = 1; then
35138         { echo "$as_me:$LINENO: checking for compiler syntax to enable Pascal strings" >&5
35139 echo $ECHO_N "checking for compiler syntax to enable Pascal strings... $ECHO_C" >&6; }
35140         if test "$GCC" = yes; then
35141             { echo "$as_me:$LINENO: result: gcc" >&5
35142 echo "${ECHO_T}gcc" >&6; }
35143             CPPFLAGS_PASCAL="-fpascal-strings"
35144         elif test "`echo $CXX | sed -e 's@.*/@@'`" = "xlC"; then
35145             { echo "$as_me:$LINENO: result: xlc" >&5
35146 echo "${ECHO_T}xlc" >&6; }
35147             CPPFLAGS_PASCAL="-qmacpstr"
35148         else
35149             { echo "$as_me:$LINENO: result: none" >&5
35150 echo "${ECHO_T}none" >&6; }
35151         fi
35152
35153         if test "x$wxUSE_UNIX" = "xyes"; then
35154             CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -I/Developer/Headers/FlatCarbon $CPPFLAGS"
35155         else
35156                         CPPFLAGS="$CPPFLAGS_PASCAL -I\${top_srcdir}/src/mac/carbon/morefilex -DTARGET_CARBON $CPPFLAGS"
35157         fi
35158
35159         TOOLKIT=MAC
35160                 GUIDIST=MACX_DIST
35161                         WXBASEPORT="_carbon"
35162     fi
35163
35164     if test "$wxUSE_COCOA" = 1; then
35165         TOOLKIT=COCOA
35166         GUIDIST=COCOA_DIST
35167     fi
35168
35169     if test "$wxUSE_PM" = 1; then
35170         TOOLKIT=PM
35171         GUIDIST=PM_DIST
35172         { echo "$as_me:$LINENO: checking for type SPBCDATA" >&5
35173 echo $ECHO_N "checking for type SPBCDATA... $ECHO_C" >&6; }
35174 if test "${wx_cv_spbcdata+set}" = set; then
35175   echo $ECHO_N "(cached) $ECHO_C" >&6
35176 else
35177
35178                 cat >conftest.$ac_ext <<_ACEOF
35179 /* confdefs.h.  */
35180 _ACEOF
35181 cat confdefs.h >>conftest.$ac_ext
35182 cat >>conftest.$ac_ext <<_ACEOF
35183 /* end confdefs.h.  */
35184
35185                         #define INCL_PM
35186                         #include <os2.h>
35187
35188 int
35189 main ()
35190 {
35191
35192                         SPBCDATA test;
35193
35194   ;
35195   return 0;
35196 }
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   wx_cv_spbcdata=yes
35216 else
35217   echo "$as_me: failed program was:" >&5
35218 sed 's/^/| /' conftest.$ac_ext >&5
35219
35220         wx_cv_spbcdata=no
35221
35222 fi
35223
35224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35225
35226
35227 fi
35228 { echo "$as_me:$LINENO: result: $wx_cv_spbcdata" >&5
35229 echo "${ECHO_T}$wx_cv_spbcdata" >&6; }
35230
35231         if test $wx_cv_spbcdata = "yes"; then
35232             cat >>confdefs.h <<\_ACEOF
35233 #define HAVE_SPBCDATA 1
35234 _ACEOF
35235
35236         fi
35237     fi
35238
35239         if test "$TOOLKIT" = "PM" ; then
35240         TOOLKIT_DIR="os2"
35241     else
35242         TOOLKIT_DIR=`echo ${TOOLKIT} | tr "[A-Z]" "[a-z]"`
35243     fi
35244
35245     if test "$wxUSE_UNIVERSAL" = "yes"; then
35246         TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WXUNIVERSAL__"
35247         WIDGET_SET=univ
35248     fi
35249
35250         GUIDIST="${GUIDIST} SAMPLES_DIST DEMOS_DIST UTILS_DIST MISC_DIST"
35251     DISTDIR="wx\$(TOOLKIT)"
35252 else
35253     USE_GUI=0
35254
35255             TOOLKIT_DIR="base"
35256
35257         if test "$USE_WIN32" = 1 ; then
35258                         TOOLKIT="MSW"
35259     fi
35260
35261         GUIDIST="BASE_DIST"
35262     DISTDIR="wxBase"
35263 fi
35264
35265
35266
35267 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "auto" ; then
35268     if test "$TOOLKIT" = "DFB" ; then
35269         wxUSE_UNICODE_UTF8=yes
35270     elif test "$TOOLKIT" = "GTK" -a "$WXGTK20" = "1" ; then
35271         wxUSE_UNICODE_UTF8=yes
35272     elif test "$USE_OS2" = "1" ; then
35273                                 wxUSE_UNICODE_UTF8=yes
35274     else
35275         wxUSE_UNICODE_UTF8=no
35276     fi
35277 fi
35278
35279
35280 if test "$wxUSE_GUI" = "yes"; then
35281     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_PM" != 1; then
35282
35283 for ac_header in X11/Xlib.h
35284 do
35285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35286 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35287 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35288 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35289   echo $ECHO_N "(cached) $ECHO_C" >&6
35290 else
35291   cat >conftest.$ac_ext <<_ACEOF
35292 /* confdefs.h.  */
35293 _ACEOF
35294 cat confdefs.h >>conftest.$ac_ext
35295 cat >>conftest.$ac_ext <<_ACEOF
35296 /* end confdefs.h.  */
35297
35298
35299 #include <$ac_header>
35300 _ACEOF
35301 rm -f conftest.$ac_objext
35302 if { (ac_try="$ac_compile"
35303 case "(($ac_try" in
35304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35305   *) ac_try_echo=$ac_try;;
35306 esac
35307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35308   (eval "$ac_compile") 2>conftest.er1
35309   ac_status=$?
35310   grep -v '^ *+' conftest.er1 >conftest.err
35311   rm -f conftest.er1
35312   cat conftest.err >&5
35313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35314   (exit $ac_status); } && {
35315          test -z "$ac_c_werror_flag" ||
35316          test ! -s conftest.err
35317        } && test -s conftest.$ac_objext; then
35318   eval "$as_ac_Header=yes"
35319 else
35320   echo "$as_me: failed program was:" >&5
35321 sed 's/^/| /' conftest.$ac_ext >&5
35322
35323         eval "$as_ac_Header=no"
35324 fi
35325
35326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35327 fi
35328 ac_res=`eval echo '${'$as_ac_Header'}'`
35329                { echo "$as_me:$LINENO: result: $ac_res" >&5
35330 echo "${ECHO_T}$ac_res" >&6; }
35331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35332   cat >>confdefs.h <<_ACEOF
35333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35334 _ACEOF
35335
35336 fi
35337
35338 done
35339
35340
35341 for ac_header in X11/XKBlib.h
35342 do
35343 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35344 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35347   echo $ECHO_N "(cached) $ECHO_C" >&6
35348 else
35349   cat >conftest.$ac_ext <<_ACEOF
35350 /* confdefs.h.  */
35351 _ACEOF
35352 cat confdefs.h >>conftest.$ac_ext
35353 cat >>conftest.$ac_ext <<_ACEOF
35354 /* end confdefs.h.  */
35355
35356                           #if HAVE_X11_XLIB_H
35357                             #include <X11/Xlib.h>
35358                           #endif
35359
35360
35361 #include <$ac_header>
35362 _ACEOF
35363 rm -f conftest.$ac_objext
35364 if { (ac_try="$ac_compile"
35365 case "(($ac_try" in
35366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35367   *) ac_try_echo=$ac_try;;
35368 esac
35369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35370   (eval "$ac_compile") 2>conftest.er1
35371   ac_status=$?
35372   grep -v '^ *+' conftest.er1 >conftest.err
35373   rm -f conftest.er1
35374   cat conftest.err >&5
35375   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35376   (exit $ac_status); } && {
35377          test -z "$ac_c_werror_flag" ||
35378          test ! -s conftest.err
35379        } && test -s conftest.$ac_objext; then
35380   eval "$as_ac_Header=yes"
35381 else
35382   echo "$as_me: failed program was:" >&5
35383 sed 's/^/| /' conftest.$ac_ext >&5
35384
35385         eval "$as_ac_Header=no"
35386 fi
35387
35388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35389 fi
35390 ac_res=`eval echo '${'$as_ac_Header'}'`
35391                { echo "$as_me:$LINENO: result: $ac_res" >&5
35392 echo "${ECHO_T}$ac_res" >&6; }
35393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35394   cat >>confdefs.h <<_ACEOF
35395 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35396 _ACEOF
35397
35398 fi
35399
35400 done
35401
35402     fi
35403 fi
35404
35405
35406
35407 IODBC_C_SRC=""
35408
35409
35410 if test "$TOOLKIT" != "MSW" ; then
35411
35412     if test "$wxUSE_ODBC" = "sys" -o "$wxUSE_ODBC" = "yes" ; then
35413
35414         { echo "$as_me:$LINENO: checking for sql.h" >&5
35415 echo $ECHO_N "checking for sql.h... $ECHO_C" >&6; }
35416 if test "${ac_cv_header_sql_h+set}" = set; then
35417   echo $ECHO_N "(cached) $ECHO_C" >&6
35418 else
35419   cat >conftest.$ac_ext <<_ACEOF
35420 /* confdefs.h.  */
35421 _ACEOF
35422 cat confdefs.h >>conftest.$ac_ext
35423 cat >>conftest.$ac_ext <<_ACEOF
35424 /* end confdefs.h.  */
35425
35426
35427 #include <sql.h>
35428 _ACEOF
35429 rm -f conftest.$ac_objext
35430 if { (ac_try="$ac_compile"
35431 case "(($ac_try" in
35432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35433   *) ac_try_echo=$ac_try;;
35434 esac
35435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35436   (eval "$ac_compile") 2>conftest.er1
35437   ac_status=$?
35438   grep -v '^ *+' conftest.er1 >conftest.err
35439   rm -f conftest.er1
35440   cat conftest.err >&5
35441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35442   (exit $ac_status); } && {
35443          test -z "$ac_c_werror_flag" ||
35444          test ! -s conftest.err
35445        } && test -s conftest.$ac_objext; then
35446   ac_cv_header_sql_h=yes
35447 else
35448   echo "$as_me: failed program was:" >&5
35449 sed 's/^/| /' conftest.$ac_ext >&5
35450
35451         ac_cv_header_sql_h=no
35452 fi
35453
35454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35455 fi
35456 { echo "$as_me:$LINENO: result: $ac_cv_header_sql_h" >&5
35457 echo "${ECHO_T}$ac_cv_header_sql_h" >&6; }
35458 if test $ac_cv_header_sql_h = yes; then
35459   found_sql_h=1
35460 fi
35461
35462
35463         if test "x$found_sql_h" = "x1" ; then
35464             { echo "$as_me:$LINENO: checking for SQLAllocEnv in -liodbc" >&5
35465 echo $ECHO_N "checking for SQLAllocEnv in -liodbc... $ECHO_C" >&6; }
35466 if test "${ac_cv_lib_iodbc_SQLAllocEnv+set}" = set; then
35467   echo $ECHO_N "(cached) $ECHO_C" >&6
35468 else
35469   ac_check_lib_save_LIBS=$LIBS
35470 LIBS="-liodbc  $LIBS"
35471 cat >conftest.$ac_ext <<_ACEOF
35472 /* confdefs.h.  */
35473 _ACEOF
35474 cat confdefs.h >>conftest.$ac_ext
35475 cat >>conftest.$ac_ext <<_ACEOF
35476 /* end confdefs.h.  */
35477
35478 /* Override any GCC internal prototype to avoid an error.
35479    Use char because int might match the return type of a GCC
35480    builtin and then its argument prototype would still apply.  */
35481 #ifdef __cplusplus
35482 extern "C"
35483 #endif
35484 char SQLAllocEnv ();
35485 int
35486 main ()
35487 {
35488 return SQLAllocEnv ();
35489   ;
35490   return 0;
35491 }
35492 _ACEOF
35493 rm -f conftest.$ac_objext conftest$ac_exeext
35494 if { (ac_try="$ac_link"
35495 case "(($ac_try" in
35496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35497   *) ac_try_echo=$ac_try;;
35498 esac
35499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35500   (eval "$ac_link") 2>conftest.er1
35501   ac_status=$?
35502   grep -v '^ *+' conftest.er1 >conftest.err
35503   rm -f conftest.er1
35504   cat conftest.err >&5
35505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35506   (exit $ac_status); } && {
35507          test -z "$ac_c_werror_flag" ||
35508          test ! -s conftest.err
35509        } && test -s conftest$ac_exeext &&
35510        $as_test_x conftest$ac_exeext; then
35511   ac_cv_lib_iodbc_SQLAllocEnv=yes
35512 else
35513   echo "$as_me: failed program was:" >&5
35514 sed 's/^/| /' conftest.$ac_ext >&5
35515
35516         ac_cv_lib_iodbc_SQLAllocEnv=no
35517 fi
35518
35519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35520       conftest$ac_exeext conftest.$ac_ext
35521 LIBS=$ac_check_lib_save_LIBS
35522 fi
35523 { echo "$as_me:$LINENO: result: $ac_cv_lib_iodbc_SQLAllocEnv" >&5
35524 echo "${ECHO_T}$ac_cv_lib_iodbc_SQLAllocEnv" >&6; }
35525 if test $ac_cv_lib_iodbc_SQLAllocEnv = yes; then
35526   ODBC_LINK=" -liodbc"
35527 else
35528
35529                 { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lunixodbc" >&5
35530 echo $ECHO_N "checking for SQLAllocEnv in -lunixodbc... $ECHO_C" >&6; }
35531 if test "${ac_cv_lib_unixodbc_SQLAllocEnv+set}" = set; then
35532   echo $ECHO_N "(cached) $ECHO_C" >&6
35533 else
35534   ac_check_lib_save_LIBS=$LIBS
35535 LIBS="-lunixodbc  $LIBS"
35536 cat >conftest.$ac_ext <<_ACEOF
35537 /* confdefs.h.  */
35538 _ACEOF
35539 cat confdefs.h >>conftest.$ac_ext
35540 cat >>conftest.$ac_ext <<_ACEOF
35541 /* end confdefs.h.  */
35542
35543 /* Override any GCC internal prototype to avoid an error.
35544    Use char because int might match the return type of a GCC
35545    builtin and then its argument prototype would still apply.  */
35546 #ifdef __cplusplus
35547 extern "C"
35548 #endif
35549 char SQLAllocEnv ();
35550 int
35551 main ()
35552 {
35553 return SQLAllocEnv ();
35554   ;
35555   return 0;
35556 }
35557 _ACEOF
35558 rm -f conftest.$ac_objext conftest$ac_exeext
35559 if { (ac_try="$ac_link"
35560 case "(($ac_try" in
35561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35562   *) ac_try_echo=$ac_try;;
35563 esac
35564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35565   (eval "$ac_link") 2>conftest.er1
35566   ac_status=$?
35567   grep -v '^ *+' conftest.er1 >conftest.err
35568   rm -f conftest.er1
35569   cat conftest.err >&5
35570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35571   (exit $ac_status); } && {
35572          test -z "$ac_c_werror_flag" ||
35573          test ! -s conftest.err
35574        } && test -s conftest$ac_exeext &&
35575        $as_test_x conftest$ac_exeext; then
35576   ac_cv_lib_unixodbc_SQLAllocEnv=yes
35577 else
35578   echo "$as_me: failed program was:" >&5
35579 sed 's/^/| /' conftest.$ac_ext >&5
35580
35581         ac_cv_lib_unixodbc_SQLAllocEnv=no
35582 fi
35583
35584 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35585       conftest$ac_exeext conftest.$ac_ext
35586 LIBS=$ac_check_lib_save_LIBS
35587 fi
35588 { echo "$as_me:$LINENO: result: $ac_cv_lib_unixodbc_SQLAllocEnv" >&5
35589 echo "${ECHO_T}$ac_cv_lib_unixodbc_SQLAllocEnv" >&6; }
35590 if test $ac_cv_lib_unixodbc_SQLAllocEnv = yes; then
35591   ODBC_LINK=" -lunixodbc"
35592 else
35593
35594                     { echo "$as_me:$LINENO: checking for SQLAllocEnv in -lodbc" >&5
35595 echo $ECHO_N "checking for SQLAllocEnv in -lodbc... $ECHO_C" >&6; }
35596 if test "${ac_cv_lib_odbc_SQLAllocEnv+set}" = set; then
35597   echo $ECHO_N "(cached) $ECHO_C" >&6
35598 else
35599   ac_check_lib_save_LIBS=$LIBS
35600 LIBS="-lodbc  $LIBS"
35601 cat >conftest.$ac_ext <<_ACEOF
35602 /* confdefs.h.  */
35603 _ACEOF
35604 cat confdefs.h >>conftest.$ac_ext
35605 cat >>conftest.$ac_ext <<_ACEOF
35606 /* end confdefs.h.  */
35607
35608 /* Override any GCC internal prototype to avoid an error.
35609    Use char because int might match the return type of a GCC
35610    builtin and then its argument prototype would still apply.  */
35611 #ifdef __cplusplus
35612 extern "C"
35613 #endif
35614 char SQLAllocEnv ();
35615 int
35616 main ()
35617 {
35618 return SQLAllocEnv ();
35619   ;
35620   return 0;
35621 }
35622 _ACEOF
35623 rm -f conftest.$ac_objext conftest$ac_exeext
35624 if { (ac_try="$ac_link"
35625 case "(($ac_try" in
35626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35627   *) ac_try_echo=$ac_try;;
35628 esac
35629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35630   (eval "$ac_link") 2>conftest.er1
35631   ac_status=$?
35632   grep -v '^ *+' conftest.er1 >conftest.err
35633   rm -f conftest.er1
35634   cat conftest.err >&5
35635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35636   (exit $ac_status); } && {
35637          test -z "$ac_c_werror_flag" ||
35638          test ! -s conftest.err
35639        } && test -s conftest$ac_exeext &&
35640        $as_test_x conftest$ac_exeext; then
35641   ac_cv_lib_odbc_SQLAllocEnv=yes
35642 else
35643   echo "$as_me: failed program was:" >&5
35644 sed 's/^/| /' conftest.$ac_ext >&5
35645
35646         ac_cv_lib_odbc_SQLAllocEnv=no
35647 fi
35648
35649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35650       conftest$ac_exeext conftest.$ac_ext
35651 LIBS=$ac_check_lib_save_LIBS
35652 fi
35653 { echo "$as_me:$LINENO: result: $ac_cv_lib_odbc_SQLAllocEnv" >&5
35654 echo "${ECHO_T}$ac_cv_lib_odbc_SQLAllocEnv" >&6; }
35655 if test $ac_cv_lib_odbc_SQLAllocEnv = yes; then
35656   ODBC_LINK=" -lodbc"
35657 fi
35658
35659
35660 fi
35661
35662
35663 fi
35664
35665         fi
35666         if test "x$ODBC_LINK" = "x" ; then
35667             if test "$wxUSE_ODBC" = "sys" ; then
35668                 { { echo "$as_me:$LINENO: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&5
35669 echo "$as_me: error: system ODBC library not found! Use --with-odbc=builtin to use built-in version" >&2;}
35670    { (exit 1); exit 1; }; }
35671             else
35672                 { echo "$as_me:$LINENO: WARNING: system ODBC library not found, will use built-in instead" >&5
35673 echo "$as_me: WARNING: system ODBC library not found, will use built-in instead" >&2;}
35674                 wxUSE_ODBC=builtin
35675             fi
35676         else
35677                         wxUSE_ODBC=sys
35678         fi
35679     fi
35680
35681     if test "$wxUSE_ODBC" = "builtin" ; then
35682         cat >>confdefs.h <<\_ACEOF
35683 #define wxUSE_BUILTIN_IODBC 1
35684 _ACEOF
35685
35686     fi
35687 fi
35688
35689 if test "$wxUSE_ODBC" != "no" ; then
35690     cat >>confdefs.h <<\_ACEOF
35691 #define wxUSE_ODBC 1
35692 _ACEOF
35693
35694     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS db"
35695
35696         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_IODBC_"
35697 fi
35698
35699
35700 if test "$wxUSE_DISPLAY" = "yes"; then
35701     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35702         { echo "$as_me:$LINENO: checking for Xinerama" >&5
35703 echo $ECHO_N "checking for Xinerama... $ECHO_C" >&6; }
35704
35705   ac_find_libraries=
35706   for ac_dir in $SEARCH_LIB;
35707   do
35708     for ac_extension in a so sl dylib dll.a; do
35709       if test -f "$ac_dir/libXinerama.$ac_extension"; then
35710         ac_find_libraries=$ac_dir
35711         break 2
35712       fi
35713     done
35714   done
35715
35716         if test "$ac_find_libraries" != "" ; then
35717
35718     if test "$ac_find_libraries" = "default location"; then
35719     ac_path_to_link=""
35720   else
35721     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35722     result=$?
35723     if test $result = 0; then
35724       ac_path_to_link=""
35725     else
35726       ac_path_to_link=" -L$ac_find_libraries"
35727     fi
35728   fi
35729
35730             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35731                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35732             fi
35733             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXinerama"
35734             { echo "$as_me:$LINENO: result: yes" >&5
35735 echo "${ECHO_T}yes" >&6; }
35736
35737             { echo "$as_me:$LINENO: checking for Xxf86vm extension" >&5
35738 echo $ECHO_N "checking for Xxf86vm extension... $ECHO_C" >&6; }
35739
35740   ac_find_libraries=
35741   for ac_dir in $SEARCH_LIB;
35742   do
35743     for ac_extension in a so sl dylib dll.a; do
35744       if test -f "$ac_dir/libXxf86vm.$ac_extension"; then
35745         ac_find_libraries=$ac_dir
35746         break 2
35747       fi
35748     done
35749   done
35750
35751             if test "$ac_find_libraries" != "" ; then
35752                 { echo "$as_me:$LINENO: result: yes" >&5
35753 echo "${ECHO_T}yes" >&6; }
35754
35755 for ac_header in X11/extensions/xf86vmode.h
35756 do
35757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
35758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
35759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
35760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35761   echo $ECHO_N "(cached) $ECHO_C" >&6
35762 else
35763   cat >conftest.$ac_ext <<_ACEOF
35764 /* confdefs.h.  */
35765 _ACEOF
35766 cat confdefs.h >>conftest.$ac_ext
35767 cat >>conftest.$ac_ext <<_ACEOF
35768 /* end confdefs.h.  */
35769
35770                                       #if HAVE_X11_XLIB_H
35771                                         #include <X11/Xlib.h>
35772                                       #endif
35773
35774
35775 #include <$ac_header>
35776 _ACEOF
35777 rm -f conftest.$ac_objext
35778 if { (ac_try="$ac_compile"
35779 case "(($ac_try" in
35780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35781   *) ac_try_echo=$ac_try;;
35782 esac
35783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35784   (eval "$ac_compile") 2>conftest.er1
35785   ac_status=$?
35786   grep -v '^ *+' conftest.er1 >conftest.err
35787   rm -f conftest.er1
35788   cat conftest.err >&5
35789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35790   (exit $ac_status); } && {
35791          test -z "$ac_c_werror_flag" ||
35792          test ! -s conftest.err
35793        } && test -s conftest.$ac_objext; then
35794   eval "$as_ac_Header=yes"
35795 else
35796   echo "$as_me: failed program was:" >&5
35797 sed 's/^/| /' conftest.$ac_ext >&5
35798
35799         eval "$as_ac_Header=no"
35800 fi
35801
35802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35803 fi
35804 ac_res=`eval echo '${'$as_ac_Header'}'`
35805                { echo "$as_me:$LINENO: result: $ac_res" >&5
35806 echo "${ECHO_T}$ac_res" >&6; }
35807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
35808   cat >>confdefs.h <<_ACEOF
35809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
35810 _ACEOF
35811
35812                                   GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lXxf86vm"
35813
35814 fi
35815
35816 done
35817
35818             else
35819                 { echo "$as_me:$LINENO: result: no" >&5
35820 echo "${ECHO_T}no" >&6; }
35821             fi
35822
35823         else
35824             { echo "$as_me:$LINENO: result: no" >&5
35825 echo "${ECHO_T}no" >&6; }
35826             { echo "$as_me:$LINENO: WARNING: Xinerama not found; disabling wxDisplay" >&5
35827 echo "$as_me: WARNING: Xinerama not found; disabling wxDisplay" >&2;}
35828             wxUSE_DISPLAY="no"
35829         fi
35830     elif test "$wxUSE_MSW" = 1; then
35831         { echo "$as_me:$LINENO: checking for ddraw.h" >&5
35832 echo $ECHO_N "checking for ddraw.h... $ECHO_C" >&6; }
35833 if test "${ac_cv_header_ddraw_h+set}" = set; then
35834   echo $ECHO_N "(cached) $ECHO_C" >&6
35835 else
35836   cat >conftest.$ac_ext <<_ACEOF
35837 /* confdefs.h.  */
35838 _ACEOF
35839 cat confdefs.h >>conftest.$ac_ext
35840 cat >>conftest.$ac_ext <<_ACEOF
35841 /* end confdefs.h.  */
35842 #include <windows.h>
35843
35844 #include <ddraw.h>
35845 _ACEOF
35846 rm -f conftest.$ac_objext
35847 if { (ac_try="$ac_compile"
35848 case "(($ac_try" in
35849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35850   *) ac_try_echo=$ac_try;;
35851 esac
35852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35853   (eval "$ac_compile") 2>conftest.er1
35854   ac_status=$?
35855   grep -v '^ *+' conftest.er1 >conftest.err
35856   rm -f conftest.er1
35857   cat conftest.err >&5
35858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
35859   (exit $ac_status); } && {
35860          test -z "$ac_c_werror_flag" ||
35861          test ! -s conftest.err
35862        } && test -s conftest.$ac_objext; then
35863   ac_cv_header_ddraw_h=yes
35864 else
35865   echo "$as_me: failed program was:" >&5
35866 sed 's/^/| /' conftest.$ac_ext >&5
35867
35868         ac_cv_header_ddraw_h=no
35869 fi
35870
35871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35872 fi
35873 { echo "$as_me:$LINENO: result: $ac_cv_header_ddraw_h" >&5
35874 echo "${ECHO_T}$ac_cv_header_ddraw_h" >&6; }
35875
35876
35877     fi
35878 fi
35879
35880 if test "$wxUSE_DETECT_SM" = "yes"; then
35881     if test "$wxUSE_UNIX" = "yes" -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1; then
35882         { echo "$as_me:$LINENO: checking for -lSM - X11 session management" >&5
35883 echo $ECHO_N "checking for -lSM - X11 session management... $ECHO_C" >&6; }
35884
35885   ac_find_libraries=
35886   for ac_dir in $SEARCH_LIB;
35887   do
35888     for ac_extension in a so sl dylib dll.a; do
35889       if test -f "$ac_dir/libSM.$ac_extension"; then
35890         ac_find_libraries=$ac_dir
35891         break 2
35892       fi
35893     done
35894   done
35895
35896         if test "$ac_find_libraries" != "" ; then
35897
35898     if test "$ac_find_libraries" = "default location"; then
35899     ac_path_to_link=""
35900   else
35901     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
35902     result=$?
35903     if test $result = 0; then
35904       ac_path_to_link=""
35905     else
35906       ac_path_to_link=" -L$ac_find_libraries"
35907     fi
35908   fi
35909
35910             if test "$ac_path_to_link" != " -L/usr/lib" ; then
35911                 LDFLAGS="$LDFLAGS $ac_path_to_link"
35912             fi
35913             GUI_TK_LIBRARY="$GUI_TK_LIBRARY -lSM"
35914             { echo "$as_me:$LINENO: result: yes" >&5
35915 echo "${ECHO_T}yes" >&6; }
35916         else
35917             { echo "$as_me:$LINENO: result: no" >&5
35918 echo "${ECHO_T}no" >&6; }
35919             { echo "$as_me:$LINENO: WARNING: libSM not found; disabling session management detection" >&5
35920 echo "$as_me: WARNING: libSM not found; disabling session management detection" >&2;}
35921             wxUSE_DETECT_SM="no"
35922         fi
35923     else
35924         wxUSE_DETECT_SM="no"
35925     fi
35926 fi
35927
35928
35929
35930 USE_OPENGL=0
35931 if test "$wxUSE_OPENGL" = "yes"; then
35932     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = "1"; then
35933         { echo "$as_me:$LINENO: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&5
35934 echo "$as_me: WARNING: wxGLCanvas not implemented for this port, library will be compiled without it." >&2;}
35935         wxUSE_OPENGL="no"
35936     elif test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
35937         OPENGL_LIBS="-framework OpenGL -framework AGL"
35938     elif test "$wxUSE_MSW" = 1; then
35939         OPENGL_LIBS="-lopengl32 -lglu32"
35940     else
35941                         { echo "$as_me:$LINENO: checking for OpenGL headers" >&5
35942 echo $ECHO_N "checking for OpenGL headers... $ECHO_C" >&6; }
35943
35944 ac_find_includes=
35945 for ac_dir in $SEARCH_INCLUDE /opt/graphics/OpenGL/include /usr/include;
35946   do
35947     if test -f "$ac_dir/GL/gl.h"; then
35948       ac_find_includes=$ac_dir
35949       break
35950     fi
35951   done
35952
35953         if test "$ac_find_includes" != "" ; then
35954             { echo "$as_me:$LINENO: result: found in $ac_find_includes" >&5
35955 echo "${ECHO_T}found in $ac_find_includes" >&6; }
35956
35957     if test "x$ac_find_includes" = "x/usr/include"; then
35958     ac_path_to_include=""
35959   else
35960     echo "$CPPFLAGS" | grep "\-I$ac_find_includes" > /dev/null
35961     result=$?
35962     if test $result = 0; then
35963       ac_path_to_include=""
35964     else
35965       ac_path_to_include=" -I$ac_find_includes"
35966     fi
35967   fi
35968
35969             CPPFLAGS="$ac_path_to_include $CPPFLAGS"
35970         else
35971             { echo "$as_me:$LINENO: result: not found" >&5
35972 echo "${ECHO_T}not found" >&6; }
35973         fi
35974
35975         { echo "$as_me:$LINENO: checking for GL/gl.h" >&5
35976 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6; }
35977 if test "${ac_cv_header_GL_gl_h+set}" = set; then
35978   echo $ECHO_N "(cached) $ECHO_C" >&6
35979 else
35980   cat >conftest.$ac_ext <<_ACEOF
35981 /* confdefs.h.  */
35982 _ACEOF
35983 cat confdefs.h >>conftest.$ac_ext
35984 cat >>conftest.$ac_ext <<_ACEOF
35985 /* end confdefs.h.  */
35986
35987
35988 #include <GL/gl.h>
35989 _ACEOF
35990 rm -f conftest.$ac_objext
35991 if { (ac_try="$ac_compile"
35992 case "(($ac_try" in
35993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35994   *) ac_try_echo=$ac_try;;
35995 esac
35996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
35997   (eval "$ac_compile") 2>conftest.er1
35998   ac_status=$?
35999   grep -v '^ *+' conftest.er1 >conftest.err
36000   rm -f conftest.er1
36001   cat conftest.err >&5
36002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36003   (exit $ac_status); } && {
36004          test -z "$ac_c_werror_flag" ||
36005          test ! -s conftest.err
36006        } && test -s conftest.$ac_objext; then
36007   ac_cv_header_GL_gl_h=yes
36008 else
36009   echo "$as_me: failed program was:" >&5
36010 sed 's/^/| /' conftest.$ac_ext >&5
36011
36012         ac_cv_header_GL_gl_h=no
36013 fi
36014
36015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36016 fi
36017 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
36018 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6; }
36019 if test $ac_cv_header_GL_gl_h = yes; then
36020
36021             if test "${ac_cv_header_GL_glu_h+set}" = set; then
36022   { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36023 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36024 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36025   echo $ECHO_N "(cached) $ECHO_C" >&6
36026 fi
36027 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36028 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36029 else
36030   # Is the header compilable?
36031 { echo "$as_me:$LINENO: checking GL/glu.h usability" >&5
36032 echo $ECHO_N "checking GL/glu.h usability... $ECHO_C" >&6; }
36033 cat >conftest.$ac_ext <<_ACEOF
36034 /* confdefs.h.  */
36035 _ACEOF
36036 cat confdefs.h >>conftest.$ac_ext
36037 cat >>conftest.$ac_ext <<_ACEOF
36038 /* end confdefs.h.  */
36039 $ac_includes_default
36040 #include <GL/glu.h>
36041 _ACEOF
36042 rm -f conftest.$ac_objext
36043 if { (ac_try="$ac_compile"
36044 case "(($ac_try" in
36045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36046   *) ac_try_echo=$ac_try;;
36047 esac
36048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36049   (eval "$ac_compile") 2>conftest.er1
36050   ac_status=$?
36051   grep -v '^ *+' conftest.er1 >conftest.err
36052   rm -f conftest.er1
36053   cat conftest.err >&5
36054   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36055   (exit $ac_status); } && {
36056          test -z "$ac_c_werror_flag" ||
36057          test ! -s conftest.err
36058        } && test -s conftest.$ac_objext; then
36059   ac_header_compiler=yes
36060 else
36061   echo "$as_me: failed program was:" >&5
36062 sed 's/^/| /' conftest.$ac_ext >&5
36063
36064         ac_header_compiler=no
36065 fi
36066
36067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36069 echo "${ECHO_T}$ac_header_compiler" >&6; }
36070
36071 # Is the header present?
36072 { echo "$as_me:$LINENO: checking GL/glu.h presence" >&5
36073 echo $ECHO_N "checking GL/glu.h presence... $ECHO_C" >&6; }
36074 cat >conftest.$ac_ext <<_ACEOF
36075 /* confdefs.h.  */
36076 _ACEOF
36077 cat confdefs.h >>conftest.$ac_ext
36078 cat >>conftest.$ac_ext <<_ACEOF
36079 /* end confdefs.h.  */
36080 #include <GL/glu.h>
36081 _ACEOF
36082 if { (ac_try="$ac_cpp conftest.$ac_ext"
36083 case "(($ac_try" in
36084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36085   *) ac_try_echo=$ac_try;;
36086 esac
36087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36088   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36089   ac_status=$?
36090   grep -v '^ *+' conftest.er1 >conftest.err
36091   rm -f conftest.er1
36092   cat conftest.err >&5
36093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36094   (exit $ac_status); } >/dev/null && {
36095          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36096          test ! -s conftest.err
36097        }; then
36098   ac_header_preproc=yes
36099 else
36100   echo "$as_me: failed program was:" >&5
36101 sed 's/^/| /' conftest.$ac_ext >&5
36102
36103   ac_header_preproc=no
36104 fi
36105
36106 rm -f conftest.err conftest.$ac_ext
36107 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36108 echo "${ECHO_T}$ac_header_preproc" >&6; }
36109
36110 # So?  What about this header?
36111 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36112   yes:no: )
36113     { echo "$as_me:$LINENO: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&5
36114 echo "$as_me: WARNING: GL/glu.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
36115     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the compiler's result" >&5
36116 echo "$as_me: WARNING: GL/glu.h: proceeding with the compiler's result" >&2;}
36117     ac_header_preproc=yes
36118     ;;
36119   no:yes:* )
36120     { echo "$as_me:$LINENO: WARNING: GL/glu.h: present but cannot be compiled" >&5
36121 echo "$as_me: WARNING: GL/glu.h: present but cannot be compiled" >&2;}
36122     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&5
36123 echo "$as_me: WARNING: GL/glu.h:     check for missing prerequisite headers?" >&2;}
36124     { echo "$as_me:$LINENO: WARNING: GL/glu.h: see the Autoconf documentation" >&5
36125 echo "$as_me: WARNING: GL/glu.h: see the Autoconf documentation" >&2;}
36126     { echo "$as_me:$LINENO: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&5
36127 echo "$as_me: WARNING: GL/glu.h:     section \"Present But Cannot Be Compiled\"" >&2;}
36128     { echo "$as_me:$LINENO: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&5
36129 echo "$as_me: WARNING: GL/glu.h: proceeding with the preprocessor's result" >&2;}
36130     { echo "$as_me:$LINENO: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&5
36131 echo "$as_me: WARNING: GL/glu.h: in the future, the compiler will take precedence" >&2;}
36132     ( cat <<\_ASBOX
36133 ## ----------------------------------------- ##
36134 ## Report this to wx-dev@lists.wxwidgets.org ##
36135 ## ----------------------------------------- ##
36136 _ASBOX
36137      ) | sed "s/^/$as_me: WARNING:     /" >&2
36138     ;;
36139 esac
36140 { echo "$as_me:$LINENO: checking for GL/glu.h" >&5
36141 echo $ECHO_N "checking for GL/glu.h... $ECHO_C" >&6; }
36142 if test "${ac_cv_header_GL_glu_h+set}" = set; then
36143   echo $ECHO_N "(cached) $ECHO_C" >&6
36144 else
36145   ac_cv_header_GL_glu_h=$ac_header_preproc
36146 fi
36147 { echo "$as_me:$LINENO: result: $ac_cv_header_GL_glu_h" >&5
36148 echo "${ECHO_T}$ac_cv_header_GL_glu_h" >&6; }
36149
36150 fi
36151 if test $ac_cv_header_GL_glu_h = yes; then
36152
36153                 found_gl=0
36154
36155                 { echo "$as_me:$LINENO: checking for -lGL" >&5
36156 echo $ECHO_N "checking for -lGL... $ECHO_C" >&6; }
36157
36158   ac_find_libraries=
36159   for ac_dir in $SEARCH_LIB /opt/graphics/OpenGL/lib;
36160   do
36161     for ac_extension in a so sl dylib dll.a; do
36162       if test -f "$ac_dir/libGL.$ac_extension"; then
36163         ac_find_libraries=$ac_dir
36164         break 2
36165       fi
36166     done
36167   done
36168
36169                 if test "$ac_find_libraries" != "" ; then
36170                     { echo "$as_me:$LINENO: result: found in $ac_find_libraries" >&5
36171 echo "${ECHO_T}found in $ac_find_libraries" >&6; }
36172
36173
36174     if test "$ac_find_libraries" = "default location"; then
36175     ac_path_to_link=""
36176   else
36177     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36178     result=$?
36179     if test $result = 0; then
36180       ac_path_to_link=""
36181     else
36182       ac_path_to_link=" -L$ac_find_libraries"
36183     fi
36184   fi
36185
36186                     if test "$ac_path_to_link" != " -L/usr/lib" ; then
36187                         LDFLAGS_GL="$ac_path_to_link"
36188                     fi
36189
36190                                                                                 { echo "$as_me:$LINENO: checking for -lGLU" >&5
36191 echo $ECHO_N "checking for -lGLU... $ECHO_C" >&6; }
36192
36193   ac_find_libraries=
36194   for ac_dir in $SEARCH_LIB;
36195   do
36196     for ac_extension in a so sl dylib dll.a; do
36197       if test -f "$ac_dir/libGLU.$ac_extension"; then
36198         ac_find_libraries=$ac_dir
36199         break 2
36200       fi
36201     done
36202   done
36203
36204                     if test "$ac_find_libraries" != "" ; then
36205
36206     if test "$ac_find_libraries" = "default location"; then
36207     ac_path_to_link=""
36208   else
36209     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36210     result=$?
36211     if test $result = 0; then
36212       ac_path_to_link=""
36213     else
36214       ac_path_to_link=" -L$ac_find_libraries"
36215     fi
36216   fi
36217
36218                         if test "$ac_path_to_link" != " -L/usr/lib" -a \
36219                                     "$ac_path_to_link" != "$LDFLAGS_GL"; then
36220                             LDFLAGS_GL="$LDFLAGS_GL$ac_path_to_link"
36221                         fi
36222
36223                         found_gl=1
36224                         OPENGL_LIBS="-lGL -lGLU"
36225                         { echo "$as_me:$LINENO: result: yes" >&5
36226 echo "${ECHO_T}yes" >&6; }
36227                     else
36228                         { echo "$as_me:$LINENO: result: no" >&5
36229 echo "${ECHO_T}no" >&6; }
36230                     fi
36231                 else
36232                     { echo "$as_me:$LINENO: result: no" >&5
36233 echo "${ECHO_T}no" >&6; }
36234                 fi
36235
36236                 if test "$found_gl" != 1; then
36237                     { echo "$as_me:$LINENO: checking for -lMesaGL" >&5
36238 echo $ECHO_N "checking for -lMesaGL... $ECHO_C" >&6; }
36239
36240   ac_find_libraries=
36241   for ac_dir in $SEARCH_LIB;
36242   do
36243     for ac_extension in a so sl dylib dll.a; do
36244       if test -f "$ac_dir/libMesaGL.$ac_extension"; then
36245         ac_find_libraries=$ac_dir
36246         break 2
36247       fi
36248     done
36249   done
36250
36251                     if test "$ac_find_libraries" != "" ; then
36252
36253     if test "$ac_find_libraries" = "default location"; then
36254     ac_path_to_link=""
36255   else
36256     echo "$LDFLAGS" | grep "\-L$ac_find_libraries" > /dev/null
36257     result=$?
36258     if test $result = 0; then
36259       ac_path_to_link=""
36260     else
36261       ac_path_to_link=" -L$ac_find_libraries"
36262     fi
36263   fi
36264
36265                         LDFLAGS_GL="$LDFLAGS$ac_path_to_link"
36266                         OPENGL_LIBS="-lMesaGL -lMesaGLU"
36267                         { echo "$as_me:$LINENO: result: yes" >&5
36268 echo "${ECHO_T}yes" >&6; }
36269                     else
36270                         { echo "$as_me:$LINENO: result: no" >&5
36271 echo "${ECHO_T}no" >&6; }
36272                     fi
36273                 fi
36274
36275 fi
36276
36277
36278
36279 fi
36280
36281
36282
36283         if test "x$OPENGL_LIBS" = "x"; then
36284                                                 { { echo "$as_me:$LINENO: error: OpenGL libraries not available" >&5
36285 echo "$as_me: error: OpenGL libraries not available" >&2;}
36286    { (exit 1); exit 1; }; }
36287         fi
36288     fi
36289
36290     if test "$wxUSE_OPENGL" = "yes"; then
36291         USE_OPENGL=1
36292         cat >>confdefs.h <<\_ACEOF
36293 #define wxUSE_OPENGL 1
36294 _ACEOF
36295
36296         cat >>confdefs.h <<\_ACEOF
36297 #define wxUSE_GLCANVAS 1
36298 _ACEOF
36299
36300         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS opengl opengl/cube opengl/penguin opengl/isosurf"
36301     fi
36302 fi
36303
36304
36305 if test -n "$TOOLKIT" ; then
36306     TOOLCHAIN_DEFS="${TOOLCHAIN_DEFS} -D__WX${TOOLKIT}__"
36307 fi
36308
36309
36310
36311 if test "$wxUSE_SHARED" = "yes"; then
36312     case "${host}" in
36313       *-pc-msdosdjgpp )
36314                 wxUSE_SHARED=no
36315         { echo "$as_me:$LINENO: WARNING: Host system doesn't support shared libraries, disabling" >&5
36316 echo "$as_me: WARNING: Host system doesn't support shared libraries, disabling" >&2;}
36317       ;;
36318     esac
36319 fi
36320
36321 if test "$wxUSE_SHARED" = "yes"; then
36322
36323
36324     case "${host}" in
36325         *-*-cygwin* | *-*-mingw* )
36326                                                                                                 wx_cv_version_script=no
36327             ;;
36328
36329         *)
36330             { echo "$as_me:$LINENO: checking if the linker accepts --version-script" >&5
36331 echo $ECHO_N "checking if the linker accepts --version-script... $ECHO_C" >&6; }
36332 if test "${wx_cv_version_script+set}" = set; then
36333   echo $ECHO_N "(cached) $ECHO_C" >&6
36334 else
36335
36336                 echo "VER_1 { *; };" >conftest.sym
36337                 echo "int main() { return 0; }" >conftest.cpp
36338
36339                 if { ac_try='
36340                         $CXX -o conftest.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36341                         -Wl,--version-script,conftest.sym >/dev/null 2>conftest.stderr'
36342   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36343   (eval $ac_try) 2>&5
36344   ac_status=$?
36345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36346   (exit $ac_status); }; } ; then
36347                   if test -s conftest.stderr ; then
36348                       wx_cv_version_script=no
36349                   else
36350                       wx_cv_version_script=yes
36351                   fi
36352                 else
36353                   wx_cv_version_script=no
36354                 fi
36355
36356                                                                                                                                                                                                 if test $wx_cv_version_script = yes
36357                 then
36358                   echo "struct B { virtual ~B() { } }; \
36359                         struct D : public B { }; \
36360                         void F() { D d; }" > conftest.cpp
36361
36362                   if { ac_try='
36363                         $CXX -shared -fPIC -o conftest1.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36364                         -Wl,--version-script,conftest.sym >/dev/null 2>/dev/null'
36365   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36366   (eval $ac_try) 2>&5
36367   ac_status=$?
36368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36369   (exit $ac_status); }; } &&
36370                      { ac_try='
36371                         $CXX -shared -fPIC -o conftest2.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36372                         -Wl,--version-script,conftest.sym conftest1.output >/dev/null 2>/dev/null'
36373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36374   (eval $ac_try) 2>&5
36375   ac_status=$?
36376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36377   (exit $ac_status); }; }
36378                   then
36379                     if { ac_try='
36380                           $CXX -shared -fPIC -o conftest3.output $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.cpp
36381                           -Wl,--version-script,conftest.sym conftest2.output conftest1.output >/dev/null 2>/dev/null'
36382   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
36383   (eval $ac_try) 2>&5
36384   ac_status=$?
36385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36386   (exit $ac_status); }; }
36387                     then
36388                       wx_cv_version_script=yes
36389                     else
36390                       wx_cv_version_script=no
36391                     fi
36392                   fi
36393                 fi
36394
36395                 rm -f conftest.output conftest.stderr conftest.sym conftest.cpp
36396                 rm -f conftest1.output conftest2.output conftest3.output
36397
36398 fi
36399 { echo "$as_me:$LINENO: result: $wx_cv_version_script" >&5
36400 echo "${ECHO_T}$wx_cv_version_script" >&6; }
36401
36402             if test $wx_cv_version_script = yes ; then
36403                 LDFLAGS_VERSIONING="-Wl,--version-script,\$(wx_top_builddir)/version-script"
36404             fi
36405             ;;
36406     esac
36407
36408
36409             if test "$wxUSE_VISIBILITY" != "no"; then
36410
36411
36412   if test -n "$GCC"; then
36413     CFLAGS_VISIBILITY="-fvisibility=hidden"
36414     CXXFLAGS_VISIBILITY="-fvisibility=hidden -fvisibility-inlines-hidden"
36415     { echo "$as_me:$LINENO: checking for symbols visibility support" >&5
36416 echo $ECHO_N "checking for symbols visibility support... $ECHO_C" >&6; }
36417     if test "${wx_cv_cc_visibility+set}" = set; then
36418   echo $ECHO_N "(cached) $ECHO_C" >&6
36419 else
36420
36421       wx_save_CXXFLAGS="$CXXFLAGS"
36422       CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36423       ac_ext=cpp
36424 ac_cpp='$CXXCPP $CPPFLAGS'
36425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36428
36429       cat >conftest.$ac_ext <<_ACEOF
36430 /* confdefs.h.  */
36431 _ACEOF
36432 cat confdefs.h >>conftest.$ac_ext
36433 cat >>conftest.$ac_ext <<_ACEOF
36434 /* end confdefs.h.  */
36435
36436          /* we need gcc >= 4.0, older versions with visibility support
36437             didn't have class visibility: */
36438          #if defined(__GNUC__) && __GNUC__ < 4
36439          error this gcc is too old;
36440          #endif
36441
36442          extern __attribute__((__visibility__("hidden"))) int hiddenvar;
36443          extern __attribute__((__visibility__("default"))) int exportedvar;
36444          extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void);
36445          extern __attribute__((__visibility__("default"))) int exportedfunc (void);
36446          class __attribute__((__visibility__("default"))) Foo {
36447            Foo() {}
36448          };
36449
36450 int
36451 main ()
36452 {
36453
36454   ;
36455   return 0;
36456 }
36457 _ACEOF
36458 rm -f conftest.$ac_objext
36459 if { (ac_try="$ac_compile"
36460 case "(($ac_try" in
36461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36462   *) ac_try_echo=$ac_try;;
36463 esac
36464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36465   (eval "$ac_compile") 2>conftest.er1
36466   ac_status=$?
36467   grep -v '^ *+' conftest.er1 >conftest.err
36468   rm -f conftest.er1
36469   cat conftest.err >&5
36470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36471   (exit $ac_status); } && {
36472          test -z "$ac_cxx_werror_flag" ||
36473          test ! -s conftest.err
36474        } && test -s conftest.$ac_objext; then
36475   wx_cv_cc_visibility=yes
36476 else
36477   echo "$as_me: failed program was:" >&5
36478 sed 's/^/| /' conftest.$ac_ext >&5
36479
36480         wx_cv_cc_visibility=no
36481 fi
36482
36483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36484       ac_ext=c
36485 ac_cpp='$CPP $CPPFLAGS'
36486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36489
36490       CXXFLAGS="$wx_save_CXXFLAGS"
36491 fi
36492
36493     { echo "$as_me:$LINENO: result: $wx_cv_cc_visibility" >&5
36494 echo "${ECHO_T}$wx_cv_cc_visibility" >&6; }
36495     if test $wx_cv_cc_visibility = yes; then
36496       cat >>confdefs.h <<\_ACEOF
36497 #define HAVE_VISIBILITY 1
36498 _ACEOF
36499
36500
36501                   { echo "$as_me:$LINENO: checking for broken libstdc++ visibility" >&5
36502 echo $ECHO_N "checking for broken libstdc++ visibility... $ECHO_C" >&6; }
36503       if test "${wx_cv_cc_broken_libstdcxx_visibility+set}" = set; then
36504   echo $ECHO_N "(cached) $ECHO_C" >&6
36505 else
36506
36507         wx_save_CXXFLAGS="$CXXFLAGS"
36508         CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
36509         ac_ext=cpp
36510 ac_cpp='$CXXCPP $CPPFLAGS'
36511 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36512 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36513 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
36514
36515         cat >conftest.$ac_ext <<_ACEOF
36516 /* confdefs.h.  */
36517 _ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h.  */
36521
36522             #include <string>
36523
36524 int
36525 main ()
36526 {
36527
36528             std::string x;
36529
36530   ;
36531   return 0;
36532 }
36533 _ACEOF
36534 rm -f conftest.$ac_objext conftest$ac_exeext
36535 if { (ac_try="$ac_link"
36536 case "(($ac_try" in
36537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36538   *) ac_try_echo=$ac_try;;
36539 esac
36540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36541   (eval "$ac_link") 2>conftest.er1
36542   ac_status=$?
36543   grep -v '^ *+' conftest.er1 >conftest.err
36544   rm -f conftest.er1
36545   cat conftest.err >&5
36546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36547   (exit $ac_status); } && {
36548          test -z "$ac_cxx_werror_flag" ||
36549          test ! -s conftest.err
36550        } && test -s conftest$ac_exeext &&
36551        $as_test_x conftest$ac_exeext; then
36552   wx_cv_cc_broken_libstdcxx_visibility=no
36553 else
36554   echo "$as_me: failed program was:" >&5
36555 sed 's/^/| /' conftest.$ac_ext >&5
36556
36557         wx_cv_cc_broken_libstdcxx_visibility=yes
36558 fi
36559
36560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36561       conftest$ac_exeext conftest.$ac_ext
36562         ac_ext=c
36563 ac_cpp='$CPP $CPPFLAGS'
36564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36567
36568         CXXFLAGS="$wx_save_CXXFLAGS"
36569 fi
36570
36571       { echo "$as_me:$LINENO: result: $wx_cv_cc_broken_libstdcxx_visibility" >&5
36572 echo "${ECHO_T}$wx_cv_cc_broken_libstdcxx_visibility" >&6; }
36573       if test $wx_cv_cc_broken_libstdcxx_visibility = yes; then
36574         cat >>confdefs.h <<\_ACEOF
36575 #define HAVE_BROKEN_LIBSTDCXX_VISIBILITY 1
36576 _ACEOF
36577
36578       fi
36579
36580     else
36581       CFLAGS_VISIBILITY=""
36582       CXXFLAGS_VISIBILITY=""
36583     fi
36584
36585
36586   fi
36587
36588     fi
36589
36590         if test "x$SUNCXX" = xyes; then
36591         SAMPLES_RPATH_FLAG="-R\$(wx_top_builddir)/lib"
36592         WXCONFIG_RPATH="-R\$libdir"
36593     else
36594     case "${host}" in
36595       *-*-linux* | *-*-gnu* )
36596         SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36597         WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36598         ;;
36599
36600       *-*-solaris2* )
36601
36602                         CPPFLAGS="-isystem /usr/openwin/include $CPPFLAGS"
36603
36604                         saveLdflags="$LDFLAGS"
36605         LDFLAGS="$saveLdflags -Wl,-rpath,/"
36606         { echo "$as_me:$LINENO: checking if the linker accepts -rpath" >&5
36607 echo $ECHO_N "checking if the linker accepts -rpath... $ECHO_C" >&6; }
36608         cat >conftest.$ac_ext <<_ACEOF
36609 /* confdefs.h.  */
36610 _ACEOF
36611 cat confdefs.h >>conftest.$ac_ext
36612 cat >>conftest.$ac_ext <<_ACEOF
36613 /* end confdefs.h.  */
36614
36615 int
36616 main ()
36617 {
36618
36619   ;
36620   return 0;
36621 }
36622 _ACEOF
36623 rm -f conftest.$ac_objext conftest$ac_exeext
36624 if { (ac_try="$ac_link"
36625 case "(($ac_try" in
36626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627   *) ac_try_echo=$ac_try;;
36628 esac
36629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36630   (eval "$ac_link") 2>conftest.er1
36631   ac_status=$?
36632   grep -v '^ *+' conftest.er1 >conftest.err
36633   rm -f conftest.er1
36634   cat conftest.err >&5
36635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36636   (exit $ac_status); } && {
36637          test -z "$ac_c_werror_flag" ||
36638          test ! -s conftest.err
36639        } && test -s conftest$ac_exeext &&
36640        $as_test_x conftest$ac_exeext; then
36641
36642                 { echo "$as_me:$LINENO: result: yes" >&5
36643 echo "${ECHO_T}yes" >&6; }
36644                 SAMPLES_RPATH_FLAG="-Wl,-rpath,\$(wx_top_builddir)/lib"
36645                 WXCONFIG_RPATH="-Wl,-rpath,\$libdir"
36646
36647 else
36648   echo "$as_me: failed program was:" >&5
36649 sed 's/^/| /' conftest.$ac_ext >&5
36650
36651
36652                 { echo "$as_me:$LINENO: result: no" >&5
36653 echo "${ECHO_T}no" >&6; }
36654                 { echo "$as_me:$LINENO: checking if the linker accepts -R" >&5
36655 echo $ECHO_N "checking if the linker accepts -R... $ECHO_C" >&6; }
36656                 LDFLAGS="$saveLdflags -Wl,-R,/"
36657                 cat >conftest.$ac_ext <<_ACEOF
36658 /* confdefs.h.  */
36659 _ACEOF
36660 cat confdefs.h >>conftest.$ac_ext
36661 cat >>conftest.$ac_ext <<_ACEOF
36662 /* end confdefs.h.  */
36663
36664 int
36665 main ()
36666 {
36667
36668   ;
36669   return 0;
36670 }
36671 _ACEOF
36672 rm -f conftest.$ac_objext conftest$ac_exeext
36673 if { (ac_try="$ac_link"
36674 case "(($ac_try" in
36675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36676   *) ac_try_echo=$ac_try;;
36677 esac
36678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36679   (eval "$ac_link") 2>conftest.er1
36680   ac_status=$?
36681   grep -v '^ *+' conftest.er1 >conftest.err
36682   rm -f conftest.er1
36683   cat conftest.err >&5
36684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36685   (exit $ac_status); } && {
36686          test -z "$ac_c_werror_flag" ||
36687          test ! -s conftest.err
36688        } && test -s conftest$ac_exeext &&
36689        $as_test_x conftest$ac_exeext; then
36690
36691                         { echo "$as_me:$LINENO: result: yes" >&5
36692 echo "${ECHO_T}yes" >&6; }
36693                         SAMPLES_RPATH_FLAG="-Wl,-R,\$(wx_top_builddir)/lib"
36694                         WXCONFIG_RPATH="-Wl,-R,\$libdir"
36695
36696 else
36697   echo "$as_me: failed program was:" >&5
36698 sed 's/^/| /' conftest.$ac_ext >&5
36699
36700
36701                         { echo "$as_me:$LINENO: result: no" >&5
36702 echo "${ECHO_T}no" >&6; }
36703
36704 fi
36705
36706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36707       conftest$ac_exeext conftest.$ac_ext
36708
36709 fi
36710
36711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36712       conftest$ac_exeext conftest.$ac_ext
36713         LDFLAGS="$saveLdflags"
36714       ;;
36715
36716       *-*-darwin* )
36717         install_name_tool=`which install_name_tool`
36718         if test "$install_name_tool" -a -x "$install_name_tool"; then
36719             SAMPLES_RPATH_POSTLINK="\$(wx_top_builddir)/change-install-names \$(LIBDIRNAME) \$(prefix) \$@"
36720             cat <<EOF >change-install-names
36721 #!/bin/sh
36722 libnames=\`cd \${1} ; ls -1 | grep '\.[0-9][0-9]*\.dylib\$'\`
36723 inst_cmd="install_name_tool "
36724 for i in \${libnames} ; do
36725     inst_cmd="\${inst_cmd} -change \${2}/lib/\${i} \${1}/\${i}"
36726 done
36727 \${inst_cmd} \${3}
36728 EOF
36729             chmod +x change-install-names
36730         fi
36731       ;;
36732
36733       *-*-cygwin* | *-*-mingw32* )
36734                         WXCONFIG_ONLY_CPPFLAGS="$WXCONFIG_ONLY_CPPFLAGS -DWXUSINGDLL"
36735         ;;
36736
36737       *-*-hpux* )
36738         SAMPLES_RPATH_FLAG="-Wl,+b,\$(wx_top_builddir)/lib"
36739         WXCONFIG_RPATH="-Wl,+b,\$libdir"
36740         ;;
36741
36742     esac
36743     fi
36744
36745     if test $wxUSE_RPATH = "no"; then
36746         SAMPLES_RPATH_FLAG=''
36747         SAMPLES_RPATH_POSTLINK=''
36748         WXCONFIG_RPATH=''
36749     fi
36750
36751     SHARED=1
36752
36753 else
36754
36755     config_linkage_component="-static"
36756     SHARED=0
36757
36758 fi
36759
36760
36761 UNICODE=0
36762 lib_unicode_suffix=
36763 WX_CHARTYPE="ansi"
36764 if test "$wxUSE_UNICODE" = "yes"; then
36765     lib_unicode_suffix=u
36766     WX_CHARTYPE="unicode"
36767     UNICODE=1
36768 fi
36769
36770 lib_debug_suffix=
36771 WX_DEBUGTYPE="release"
36772 DEBUG_FLAG=0
36773 if test "$wxUSE_DEBUG_FLAG" = "yes"; then
36774     lib_debug_suffix=d
36775     WX_DEBUGTYPE="debug"
36776     DEBUG_FLAG=1
36777 fi
36778
36779 WX_FLAVOUR=${WX_FLAVOUR:+-$WX_FLAVOUR}
36780 WX_LIB_FLAVOUR=`echo $WX_FLAVOUR | tr '-' '_'`
36781
36782 DEBUG_INFO=0
36783 if test "$wxUSE_DEBUG_INFO" = "yes"; then
36784     DEBUG_INFO=1
36785 fi
36786
36787 WX_VERSION_TAG=`echo WX${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}_${WX_RELEASE} | tr "[a-z]" "[A-Z]"`
36788
36789 TOOLCHAIN_NAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}"
36790
36791 TOOLCHAIN_FULLNAME="${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}-${WX_CHARTYPE}-${WX_DEBUGTYPE}${config_linkage_component}-${WX_RELEASE}${WX_FLAVOUR}"
36792
36793 if test "$cross_compiling" = "yes"; then
36794     HOST_SUFFIX="-$host_alias"
36795     TOOLCHAIN_NAME="$TOOLCHAIN_NAME$HOST_SUFFIX"
36796     TOOLCHAIN_FULLNAME="${host_alias}-$TOOLCHAIN_FULLNAME"
36797 fi
36798
36799 WX_LIBRARY_BASENAME_NOGUI="wx_base${WXBASEPORT}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36800 if test "${TOOLKIT_DIR}" = "os2"; then
36801     WX_LIBRARY_BASENAME_GUI="wx_pm${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36802 else
36803     WX_LIBRARY_BASENAME_GUI="wx_${TOOLKIT_DIR}${TOOLKIT_VERSION}${WIDGET_SET}${lib_unicode_suffix}${lib_debug_suffix}${WX_LIB_FLAVOUR}"
36804 fi
36805
36806
36807
36808 if test "$wxUSE_COCOA" = 1; then
36809
36810     ac_ext=c
36811 ac_cpp='$CPP $CPPFLAGS'
36812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36815
36816 ac_ext=m
36817
36818     { echo "$as_me:$LINENO: checking if AppKit/NSEvent.h conflicts with CoreFoundation" >&5
36819 echo $ECHO_N "checking if AppKit/NSEvent.h conflicts with CoreFoundation... $ECHO_C" >&6; }
36820     cat >conftest.$ac_ext <<_ACEOF
36821 /* confdefs.h.  */
36822 _ACEOF
36823 cat confdefs.h >>conftest.$ac_ext
36824 cat >>conftest.$ac_ext <<_ACEOF
36825 /* end confdefs.h.  */
36826 #include <AppKit/NSEvent.h>
36827 #include <CoreFoundation/CoreFoundation.h>
36828
36829 int
36830 main ()
36831 {
36832
36833   ;
36834   return 0;
36835 }
36836 _ACEOF
36837 rm -f conftest.$ac_objext
36838 if { (ac_try="$ac_compile"
36839 case "(($ac_try" in
36840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36841   *) ac_try_echo=$ac_try;;
36842 esac
36843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36844   (eval "$ac_compile") 2>conftest.er1
36845   ac_status=$?
36846   grep -v '^ *+' conftest.er1 >conftest.err
36847   rm -f conftest.er1
36848   cat conftest.err >&5
36849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36850   (exit $ac_status); } && {
36851          test -z "$ac_c_werror_flag" ||
36852          test ! -s conftest.err
36853        } && test -s conftest.$ac_objext; then
36854   { echo "$as_me:$LINENO: result: no" >&5
36855 echo "${ECHO_T}no" >&6; }
36856 else
36857   echo "$as_me: failed program was:" >&5
36858 sed 's/^/| /' conftest.$ac_ext >&5
36859
36860         { echo "$as_me:$LINENO: result: yes" >&5
36861 echo "${ECHO_T}yes" >&6; }
36862         { echo "$as_me:$LINENO: checking if defining __Point__ will fix it" >&5
36863 echo $ECHO_N "checking if defining __Point__ will fix it... $ECHO_C" >&6; }
36864         cat >conftest.$ac_ext <<_ACEOF
36865 /* confdefs.h.  */
36866 _ACEOF
36867 cat confdefs.h >>conftest.$ac_ext
36868 cat >>conftest.$ac_ext <<_ACEOF
36869 /* end confdefs.h.  */
36870 #define __Point__ 1
36871 #include <AppKit/NSEvent.h>
36872 #include <CoreFoundation/CoreFoundation.h>
36873
36874 int
36875 main ()
36876 {
36877
36878   ;
36879   return 0;
36880 }
36881 _ACEOF
36882 rm -f conftest.$ac_objext
36883 if { (ac_try="$ac_compile"
36884 case "(($ac_try" in
36885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36886   *) ac_try_echo=$ac_try;;
36887 esac
36888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
36889   (eval "$ac_compile") 2>conftest.er1
36890   ac_status=$?
36891   grep -v '^ *+' conftest.er1 >conftest.err
36892   rm -f conftest.er1
36893   cat conftest.err >&5
36894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
36895   (exit $ac_status); } && {
36896          test -z "$ac_c_werror_flag" ||
36897          test ! -s conftest.err
36898        } && test -s conftest.$ac_objext; then
36899   { echo "$as_me:$LINENO: result: yes" >&5
36900 echo "${ECHO_T}yes" >&6; }
36901             cat >>confdefs.h <<\_ACEOF
36902 #define __Point__ 1
36903 _ACEOF
36904
36905
36906 else
36907   echo "$as_me: failed program was:" >&5
36908 sed 's/^/| /' conftest.$ac_ext >&5
36909
36910         { { echo "$as_me:$LINENO: error: no
36911 See \`config.log' for more details." >&5
36912 echo "$as_me: error: no
36913 See \`config.log' for more details." >&2;}
36914    { (exit 1); exit 1; }; }
36915
36916 fi
36917
36918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36919
36920 fi
36921
36922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36923     ac_ext=c
36924 ac_cpp='$CPP $CPPFLAGS'
36925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
36926 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
36927 ac_compiler_gnu=$ac_cv_c_compiler_gnu
36928
36929 fi
36930
36931 if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1; then
36932             WX_RESOURCES_MACOSX_ASCII="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.r"
36933     WX_RESOURCES_MACOSX_DATA="libwx_${TOOLCHAIN_NAME}.${wx_release_number}.rsrc"
36934
36935         LIBWXMACRES="\$(wx_top_builddir)/lib/${WX_RESOURCES_MACOSX_ASCII}"
36936
36937     # Extract the first word of "Rez", so it can be a program name with args.
36938 set dummy Rez; ac_word=$2
36939 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36940 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36941 if test "${ac_cv_prog_REZ+set}" = set; then
36942   echo $ECHO_N "(cached) $ECHO_C" >&6
36943 else
36944   if test -n "$REZ"; then
36945   ac_cv_prog_REZ="$REZ" # Let the user override the test.
36946 else
36947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36948 for as_dir in $PATH
36949 do
36950   IFS=$as_save_IFS
36951   test -z "$as_dir" && as_dir=.
36952   for ac_exec_ext in '' $ac_executable_extensions; do
36953   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36954     ac_cv_prog_REZ="Rez"
36955     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36956     break 2
36957   fi
36958 done
36959 done
36960 IFS=$as_save_IFS
36961
36962   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
36963 fi
36964 fi
36965 REZ=$ac_cv_prog_REZ
36966 if test -n "$REZ"; then
36967   { echo "$as_me:$LINENO: result: $REZ" >&5
36968 echo "${ECHO_T}$REZ" >&6; }
36969 else
36970   { echo "$as_me:$LINENO: result: no" >&5
36971 echo "${ECHO_T}no" >&6; }
36972 fi
36973
36974
36975     # Extract the first word of "DeRez", so it can be a program name with args.
36976 set dummy DeRez; ac_word=$2
36977 { echo "$as_me:$LINENO: checking for $ac_word" >&5
36978 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
36979 if test "${ac_cv_prog_DEREZ+set}" = set; then
36980   echo $ECHO_N "(cached) $ECHO_C" >&6
36981 else
36982   if test -n "$DEREZ"; then
36983   ac_cv_prog_DEREZ="$DEREZ" # Let the user override the test.
36984 else
36985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36986 for as_dir in $PATH
36987 do
36988   IFS=$as_save_IFS
36989   test -z "$as_dir" && as_dir=.
36990   for ac_exec_ext in '' $ac_executable_extensions; do
36991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
36992     ac_cv_prog_DEREZ="DeRez"
36993     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
36994     break 2
36995   fi
36996 done
36997 done
36998 IFS=$as_save_IFS
36999
37000   test -z "$ac_cv_prog_DEREZ" && ac_cv_prog_DEREZ="/Developer/Tools/DeRez"
37001 fi
37002 fi
37003 DEREZ=$ac_cv_prog_DEREZ
37004 if test -n "$DEREZ"; then
37005   { echo "$as_me:$LINENO: result: $DEREZ" >&5
37006 echo "${ECHO_T}$DEREZ" >&6; }
37007 else
37008   { echo "$as_me:$LINENO: result: no" >&5
37009 echo "${ECHO_T}no" >&6; }
37010 fi
37011
37012
37013     # Extract the first word of "SetFile", so it can be a program name with args.
37014 set dummy SetFile; ac_word=$2
37015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
37016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
37017 if test "${ac_cv_prog_SETFILE+set}" = set; then
37018   echo $ECHO_N "(cached) $ECHO_C" >&6
37019 else
37020   if test -n "$SETFILE"; then
37021   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
37022 else
37023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37024 for as_dir in $PATH
37025 do
37026   IFS=$as_save_IFS
37027   test -z "$as_dir" && as_dir=.
37028   for ac_exec_ext in '' $ac_executable_extensions; do
37029   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
37030     ac_cv_prog_SETFILE="SetFile"
37031     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
37032     break 2
37033   fi
37034 done
37035 done
37036 IFS=$as_save_IFS
37037
37038   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
37039 fi
37040 fi
37041 SETFILE=$ac_cv_prog_SETFILE
37042 if test -n "$SETFILE"; then
37043   { echo "$as_me:$LINENO: result: $SETFILE" >&5
37044 echo "${ECHO_T}$SETFILE" >&6; }
37045 else
37046   { echo "$as_me:$LINENO: result: no" >&5
37047 echo "${ECHO_T}no" >&6; }
37048 fi
37049
37050
37051
37052     MACSETFILE="\$(SETFILE)"
37053
37054             if test "$wxUSE_MAC" = 1; then
37055         POSTLINK_COMMAND="\$(REZ) -d __DARWIN__ -t APPL Carbon.r -o"
37056         RESCOMP="$REZ"
37057         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL Carbon.r -o"
37058     else
37059         POSTLINK_COMMAND="echo -n | \$(REZ) -d __DARWIN__ -t APPL ${LIBWXMACRES}"
37060         RESCOMP="echo -n \| $REZ"
37061         WXCONFIG_RESFLAGS="-d __DARWIN__ -t APPL \$libdir/$WX_RESOURCES_MACOSX_ASCII"
37062     fi
37063
37064 else
37065         MACSETFILE="@true"
37066
37067     if test "$wxUSE_PM" = 1; then
37068         RESCOMP="emxbind"
37069         WXCONFIG_RESFLAGS="-ep"
37070
37071                 POSTLINK_COMMAND="$RESCOMP $WXCONFIG_RESFLAGS"
37072     else
37073         POSTLINK_COMMAND="@true"
37074     fi
37075
37076 fi
37077
37078
37079
37080 { echo "$as_me:$LINENO: checking for mode_t" >&5
37081 echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
37082 if test "${ac_cv_type_mode_t+set}" = set; then
37083   echo $ECHO_N "(cached) $ECHO_C" >&6
37084 else
37085   cat >conftest.$ac_ext <<_ACEOF
37086 /* confdefs.h.  */
37087 _ACEOF
37088 cat confdefs.h >>conftest.$ac_ext
37089 cat >>conftest.$ac_ext <<_ACEOF
37090 /* end confdefs.h.  */
37091 $ac_includes_default
37092 typedef mode_t ac__type_new_;
37093 int
37094 main ()
37095 {
37096 if ((ac__type_new_ *) 0)
37097   return 0;
37098 if (sizeof (ac__type_new_))
37099   return 0;
37100   ;
37101   return 0;
37102 }
37103 _ACEOF
37104 rm -f conftest.$ac_objext
37105 if { (ac_try="$ac_compile"
37106 case "(($ac_try" in
37107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37108   *) ac_try_echo=$ac_try;;
37109 esac
37110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37111   (eval "$ac_compile") 2>conftest.er1
37112   ac_status=$?
37113   grep -v '^ *+' conftest.er1 >conftest.err
37114   rm -f conftest.er1
37115   cat conftest.err >&5
37116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37117   (exit $ac_status); } && {
37118          test -z "$ac_c_werror_flag" ||
37119          test ! -s conftest.err
37120        } && test -s conftest.$ac_objext; then
37121   ac_cv_type_mode_t=yes
37122 else
37123   echo "$as_me: failed program was:" >&5
37124 sed 's/^/| /' conftest.$ac_ext >&5
37125
37126         ac_cv_type_mode_t=no
37127 fi
37128
37129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37130 fi
37131 { echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
37132 echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
37133 if test $ac_cv_type_mode_t = yes; then
37134   :
37135 else
37136
37137 cat >>confdefs.h <<_ACEOF
37138 #define mode_t int
37139 _ACEOF
37140
37141 fi
37142
37143 { echo "$as_me:$LINENO: checking for off_t" >&5
37144 echo $ECHO_N "checking for off_t... $ECHO_C" >&6; }
37145 if test "${ac_cv_type_off_t+set}" = set; then
37146   echo $ECHO_N "(cached) $ECHO_C" >&6
37147 else
37148   cat >conftest.$ac_ext <<_ACEOF
37149 /* confdefs.h.  */
37150 _ACEOF
37151 cat confdefs.h >>conftest.$ac_ext
37152 cat >>conftest.$ac_ext <<_ACEOF
37153 /* end confdefs.h.  */
37154 $ac_includes_default
37155 typedef off_t ac__type_new_;
37156 int
37157 main ()
37158 {
37159 if ((ac__type_new_ *) 0)
37160   return 0;
37161 if (sizeof (ac__type_new_))
37162   return 0;
37163   ;
37164   return 0;
37165 }
37166 _ACEOF
37167 rm -f conftest.$ac_objext
37168 if { (ac_try="$ac_compile"
37169 case "(($ac_try" in
37170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37171   *) ac_try_echo=$ac_try;;
37172 esac
37173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37174   (eval "$ac_compile") 2>conftest.er1
37175   ac_status=$?
37176   grep -v '^ *+' conftest.er1 >conftest.err
37177   rm -f conftest.er1
37178   cat conftest.err >&5
37179   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37180   (exit $ac_status); } && {
37181          test -z "$ac_c_werror_flag" ||
37182          test ! -s conftest.err
37183        } && test -s conftest.$ac_objext; then
37184   ac_cv_type_off_t=yes
37185 else
37186   echo "$as_me: failed program was:" >&5
37187 sed 's/^/| /' conftest.$ac_ext >&5
37188
37189         ac_cv_type_off_t=no
37190 fi
37191
37192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37193 fi
37194 { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
37195 echo "${ECHO_T}$ac_cv_type_off_t" >&6; }
37196 if test $ac_cv_type_off_t = yes; then
37197   :
37198 else
37199
37200 cat >>confdefs.h <<_ACEOF
37201 #define off_t long int
37202 _ACEOF
37203
37204 fi
37205
37206 { echo "$as_me:$LINENO: checking for pid_t" >&5
37207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
37208 if test "${ac_cv_type_pid_t+set}" = set; then
37209   echo $ECHO_N "(cached) $ECHO_C" >&6
37210 else
37211   cat >conftest.$ac_ext <<_ACEOF
37212 /* confdefs.h.  */
37213 _ACEOF
37214 cat confdefs.h >>conftest.$ac_ext
37215 cat >>conftest.$ac_ext <<_ACEOF
37216 /* end confdefs.h.  */
37217 $ac_includes_default
37218 typedef pid_t ac__type_new_;
37219 int
37220 main ()
37221 {
37222 if ((ac__type_new_ *) 0)
37223   return 0;
37224 if (sizeof (ac__type_new_))
37225   return 0;
37226   ;
37227   return 0;
37228 }
37229 _ACEOF
37230 rm -f conftest.$ac_objext
37231 if { (ac_try="$ac_compile"
37232 case "(($ac_try" in
37233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37234   *) ac_try_echo=$ac_try;;
37235 esac
37236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37237   (eval "$ac_compile") 2>conftest.er1
37238   ac_status=$?
37239   grep -v '^ *+' conftest.er1 >conftest.err
37240   rm -f conftest.er1
37241   cat conftest.err >&5
37242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37243   (exit $ac_status); } && {
37244          test -z "$ac_c_werror_flag" ||
37245          test ! -s conftest.err
37246        } && test -s conftest.$ac_objext; then
37247   ac_cv_type_pid_t=yes
37248 else
37249   echo "$as_me: failed program was:" >&5
37250 sed 's/^/| /' conftest.$ac_ext >&5
37251
37252         ac_cv_type_pid_t=no
37253 fi
37254
37255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37256 fi
37257 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
37258 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
37259 if test $ac_cv_type_pid_t = yes; then
37260   :
37261 else
37262
37263 cat >>confdefs.h <<_ACEOF
37264 #define pid_t int
37265 _ACEOF
37266
37267 fi
37268
37269 { echo "$as_me:$LINENO: checking for size_t" >&5
37270 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
37271 if test "${ac_cv_type_size_t+set}" = set; then
37272   echo $ECHO_N "(cached) $ECHO_C" >&6
37273 else
37274   cat >conftest.$ac_ext <<_ACEOF
37275 /* confdefs.h.  */
37276 _ACEOF
37277 cat confdefs.h >>conftest.$ac_ext
37278 cat >>conftest.$ac_ext <<_ACEOF
37279 /* end confdefs.h.  */
37280 $ac_includes_default
37281 typedef size_t ac__type_new_;
37282 int
37283 main ()
37284 {
37285 if ((ac__type_new_ *) 0)
37286   return 0;
37287 if (sizeof (ac__type_new_))
37288   return 0;
37289   ;
37290   return 0;
37291 }
37292 _ACEOF
37293 rm -f conftest.$ac_objext
37294 if { (ac_try="$ac_compile"
37295 case "(($ac_try" in
37296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37297   *) ac_try_echo=$ac_try;;
37298 esac
37299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37300   (eval "$ac_compile") 2>conftest.er1
37301   ac_status=$?
37302   grep -v '^ *+' conftest.er1 >conftest.err
37303   rm -f conftest.er1
37304   cat conftest.err >&5
37305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37306   (exit $ac_status); } && {
37307          test -z "$ac_c_werror_flag" ||
37308          test ! -s conftest.err
37309        } && test -s conftest.$ac_objext; then
37310   ac_cv_type_size_t=yes
37311 else
37312   echo "$as_me: failed program was:" >&5
37313 sed 's/^/| /' conftest.$ac_ext >&5
37314
37315         ac_cv_type_size_t=no
37316 fi
37317
37318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37319 fi
37320 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
37321 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
37322 if test $ac_cv_type_size_t = yes; then
37323   :
37324 else
37325
37326 cat >>confdefs.h <<_ACEOF
37327 #define size_t unsigned int
37328 _ACEOF
37329
37330 fi
37331
37332 { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
37333 echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
37334 if test "${ac_cv_type_uid_t+set}" = set; then
37335   echo $ECHO_N "(cached) $ECHO_C" >&6
37336 else
37337   cat >conftest.$ac_ext <<_ACEOF
37338 /* confdefs.h.  */
37339 _ACEOF
37340 cat confdefs.h >>conftest.$ac_ext
37341 cat >>conftest.$ac_ext <<_ACEOF
37342 /* end confdefs.h.  */
37343 #include <sys/types.h>
37344
37345 _ACEOF
37346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37347   $EGREP "uid_t" >/dev/null 2>&1; then
37348   ac_cv_type_uid_t=yes
37349 else
37350   ac_cv_type_uid_t=no
37351 fi
37352 rm -f conftest*
37353
37354 fi
37355 { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
37356 echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
37357 if test $ac_cv_type_uid_t = no; then
37358
37359 cat >>confdefs.h <<\_ACEOF
37360 #define uid_t int
37361 _ACEOF
37362
37363
37364 cat >>confdefs.h <<\_ACEOF
37365 #define gid_t int
37366 _ACEOF
37367
37368 fi
37369
37370
37371 { echo "$as_me:$LINENO: checking for ssize_t" >&5
37372 echo $ECHO_N "checking for ssize_t... $ECHO_C" >&6; }
37373 if test "${ac_cv_type_ssize_t+set}" = set; then
37374   echo $ECHO_N "(cached) $ECHO_C" >&6
37375 else
37376   cat >conftest.$ac_ext <<_ACEOF
37377 /* confdefs.h.  */
37378 _ACEOF
37379 cat confdefs.h >>conftest.$ac_ext
37380 cat >>conftest.$ac_ext <<_ACEOF
37381 /* end confdefs.h.  */
37382 $ac_includes_default
37383 typedef ssize_t ac__type_new_;
37384 int
37385 main ()
37386 {
37387 if ((ac__type_new_ *) 0)
37388   return 0;
37389 if (sizeof (ac__type_new_))
37390   return 0;
37391   ;
37392   return 0;
37393 }
37394 _ACEOF
37395 rm -f conftest.$ac_objext
37396 if { (ac_try="$ac_compile"
37397 case "(($ac_try" in
37398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37399   *) ac_try_echo=$ac_try;;
37400 esac
37401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37402   (eval "$ac_compile") 2>conftest.er1
37403   ac_status=$?
37404   grep -v '^ *+' conftest.er1 >conftest.err
37405   rm -f conftest.er1
37406   cat conftest.err >&5
37407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37408   (exit $ac_status); } && {
37409          test -z "$ac_c_werror_flag" ||
37410          test ! -s conftest.err
37411        } && test -s conftest.$ac_objext; then
37412   ac_cv_type_ssize_t=yes
37413 else
37414   echo "$as_me: failed program was:" >&5
37415 sed 's/^/| /' conftest.$ac_ext >&5
37416
37417         ac_cv_type_ssize_t=no
37418 fi
37419
37420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37421 fi
37422 { echo "$as_me:$LINENO: result: $ac_cv_type_ssize_t" >&5
37423 echo "${ECHO_T}$ac_cv_type_ssize_t" >&6; }
37424 if test $ac_cv_type_ssize_t = yes; then
37425
37426 cat >>confdefs.h <<_ACEOF
37427 #define HAVE_SSIZE_T 1
37428 _ACEOF
37429
37430
37431 fi
37432
37433
37434 ac_ext=cpp
37435 ac_cpp='$CXXCPP $CPPFLAGS'
37436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
37439  { echo "$as_me:$LINENO: checking if size_t is unsigned int" >&5
37440 echo $ECHO_N "checking if size_t is unsigned int... $ECHO_C" >&6; }
37441 if test "${wx_cv_size_t_is_uint+set}" = set; then
37442   echo $ECHO_N "(cached) $ECHO_C" >&6
37443 else
37444
37445                             cat >conftest.$ac_ext <<_ACEOF
37446 /* confdefs.h.  */
37447 _ACEOF
37448 cat confdefs.h >>conftest.$ac_ext
37449 cat >>conftest.$ac_ext <<_ACEOF
37450 /* end confdefs.h.  */
37451 #include <stddef.h>
37452 int
37453 main ()
37454 {
37455
37456             return 0; }
37457
37458             struct Foo { void foo(size_t); void foo(unsigned int); };
37459
37460             int bar() {
37461
37462   ;
37463   return 0;
37464 }
37465 _ACEOF
37466 rm -f conftest.$ac_objext
37467 if { (ac_try="$ac_compile"
37468 case "(($ac_try" in
37469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37470   *) ac_try_echo=$ac_try;;
37471 esac
37472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37473   (eval "$ac_compile") 2>conftest.er1
37474   ac_status=$?
37475   grep -v '^ *+' conftest.er1 >conftest.err
37476   rm -f conftest.er1
37477   cat conftest.err >&5
37478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37479   (exit $ac_status); } && {
37480          test -z "$ac_cxx_werror_flag" ||
37481          test ! -s conftest.err
37482        } && test -s conftest.$ac_objext; then
37483   wx_cv_size_t_is_uint=no
37484 else
37485   echo "$as_me: failed program was:" >&5
37486 sed 's/^/| /' conftest.$ac_ext >&5
37487
37488         wx_cv_size_t_is_uint=yes
37489
37490 fi
37491
37492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37493
37494
37495 fi
37496 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_uint" >&5
37497 echo "${ECHO_T}$wx_cv_size_t_is_uint" >&6; }
37498
37499 if test "$wx_cv_size_t_is_uint" = "yes"; then
37500     cat >>confdefs.h <<\_ACEOF
37501 #define wxSIZE_T_IS_UINT 1
37502 _ACEOF
37503
37504 else
37505     { echo "$as_me:$LINENO: checking if size_t is unsigned long" >&5
37506 echo $ECHO_N "checking if size_t is unsigned long... $ECHO_C" >&6; }
37507 if test "${wx_cv_size_t_is_ulong+set}" = set; then
37508   echo $ECHO_N "(cached) $ECHO_C" >&6
37509 else
37510   cat >conftest.$ac_ext <<_ACEOF
37511 /* confdefs.h.  */
37512 _ACEOF
37513 cat confdefs.h >>conftest.$ac_ext
37514 cat >>conftest.$ac_ext <<_ACEOF
37515 /* end confdefs.h.  */
37516 #include <stddef.h>
37517 int
37518 main ()
37519 {
37520
37521                 return 0; }
37522
37523                 struct Foo { void foo(size_t); void foo(unsigned long); };
37524
37525                 int bar() {
37526
37527   ;
37528   return 0;
37529 }
37530 _ACEOF
37531 rm -f conftest.$ac_objext
37532 if { (ac_try="$ac_compile"
37533 case "(($ac_try" in
37534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37535   *) ac_try_echo=$ac_try;;
37536 esac
37537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37538   (eval "$ac_compile") 2>conftest.er1
37539   ac_status=$?
37540   grep -v '^ *+' conftest.er1 >conftest.err
37541   rm -f conftest.er1
37542   cat conftest.err >&5
37543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37544   (exit $ac_status); } && {
37545          test -z "$ac_cxx_werror_flag" ||
37546          test ! -s conftest.err
37547        } && test -s conftest.$ac_objext; then
37548   wx_cv_size_t_is_ulong=no
37549 else
37550   echo "$as_me: failed program was:" >&5
37551 sed 's/^/| /' conftest.$ac_ext >&5
37552
37553         wx_cv_size_t_is_ulong=yes
37554
37555 fi
37556
37557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37558
37559 fi
37560 { echo "$as_me:$LINENO: result: $wx_cv_size_t_is_ulong" >&5
37561 echo "${ECHO_T}$wx_cv_size_t_is_ulong" >&6; }
37562
37563     if test "$wx_cv_size_t_is_ulong" = "yes"; then
37564         cat >>confdefs.h <<\_ACEOF
37565 #define wxSIZE_T_IS_ULONG 1
37566 _ACEOF
37567
37568     fi
37569 fi
37570
37571 { echo "$as_me:$LINENO: checking if wchar_t is separate type" >&5
37572 echo $ECHO_N "checking if wchar_t is separate type... $ECHO_C" >&6; }
37573 if test "${wx_cv_wchar_t_is_separate_type+set}" = set; then
37574   echo $ECHO_N "(cached) $ECHO_C" >&6
37575 else
37576   cat >conftest.$ac_ext <<_ACEOF
37577 /* confdefs.h.  */
37578 _ACEOF
37579 cat confdefs.h >>conftest.$ac_ext
37580 cat >>conftest.$ac_ext <<_ACEOF
37581 /* end confdefs.h.  */
37582 #include <wchar.h>
37583 int
37584 main ()
37585 {
37586
37587             return 0; }
37588
37589             struct Foo { void foo(wchar_t);
37590                          void foo(unsigned short);
37591                          void foo(unsigned int);
37592                          void foo(unsigned long); };
37593
37594             int bar() {
37595
37596   ;
37597   return 0;
37598 }
37599 _ACEOF
37600 rm -f conftest.$ac_objext
37601 if { (ac_try="$ac_compile"
37602 case "(($ac_try" in
37603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37604   *) ac_try_echo=$ac_try;;
37605 esac
37606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37607   (eval "$ac_compile") 2>conftest.er1
37608   ac_status=$?
37609   grep -v '^ *+' conftest.er1 >conftest.err
37610   rm -f conftest.er1
37611   cat conftest.err >&5
37612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37613   (exit $ac_status); } && {
37614          test -z "$ac_cxx_werror_flag" ||
37615          test ! -s conftest.err
37616        } && test -s conftest.$ac_objext; then
37617   wx_cv_wchar_t_is_separate_type=yes
37618 else
37619   echo "$as_me: failed program was:" >&5
37620 sed 's/^/| /' conftest.$ac_ext >&5
37621
37622         wx_cv_wchar_t_is_separate_type=no
37623
37624 fi
37625
37626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37627
37628 fi
37629 { echo "$as_me:$LINENO: result: $wx_cv_wchar_t_is_separate_type" >&5
37630 echo "${ECHO_T}$wx_cv_wchar_t_is_separate_type" >&6; }
37631
37632 if test "$wx_cv_wchar_t_is_separate_type" = "yes"; then
37633     cat >>confdefs.h <<\_ACEOF
37634 #define wxWCHAR_T_IS_REAL_TYPE 1
37635 _ACEOF
37636
37637 else
37638     cat >>confdefs.h <<\_ACEOF
37639 #define wxWCHAR_T_IS_REAL_TYPE 0
37640 _ACEOF
37641
37642 fi
37643
37644 ac_ext=c
37645 ac_cpp='$CPP $CPPFLAGS'
37646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
37647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
37648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
37649
37650
37651 { echo "$as_me:$LINENO: checking for pw_gecos in struct passwd" >&5
37652 echo $ECHO_N "checking for pw_gecos in struct passwd... $ECHO_C" >&6; }
37653 if test "${wx_cv_struct_pw_gecos+set}" = set; then
37654   echo $ECHO_N "(cached) $ECHO_C" >&6
37655 else
37656
37657         cat >conftest.$ac_ext <<_ACEOF
37658 /* confdefs.h.  */
37659 _ACEOF
37660 cat confdefs.h >>conftest.$ac_ext
37661 cat >>conftest.$ac_ext <<_ACEOF
37662 /* end confdefs.h.  */
37663 #include <pwd.h>
37664 int
37665 main ()
37666 {
37667
37668                 char *p;
37669                 struct passwd *pw;
37670                 p = pw->pw_gecos;
37671
37672   ;
37673   return 0;
37674 }
37675 _ACEOF
37676 rm -f conftest.$ac_objext
37677 if { (ac_try="$ac_compile"
37678 case "(($ac_try" in
37679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37680   *) ac_try_echo=$ac_try;;
37681 esac
37682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37683   (eval "$ac_compile") 2>conftest.er1
37684   ac_status=$?
37685   grep -v '^ *+' conftest.er1 >conftest.err
37686   rm -f conftest.er1
37687   cat conftest.err >&5
37688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37689   (exit $ac_status); } && {
37690          test -z "$ac_c_werror_flag" ||
37691          test ! -s conftest.err
37692        } && test -s conftest.$ac_objext; then
37693
37694                 wx_cv_struct_pw_gecos=yes
37695
37696 else
37697   echo "$as_me: failed program was:" >&5
37698 sed 's/^/| /' conftest.$ac_ext >&5
37699
37700
37701                 wx_cv_struct_pw_gecos=no
37702
37703
37704 fi
37705
37706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37707
37708
37709 fi
37710 { echo "$as_me:$LINENO: result: $wx_cv_struct_pw_gecos" >&5
37711 echo "${ECHO_T}$wx_cv_struct_pw_gecos" >&6; }
37712
37713 if test "$wx_cv_struct_pw_gecos" = "yes"; then
37714     cat >>confdefs.h <<\_ACEOF
37715 #define HAVE_PW_GECOS 1
37716 _ACEOF
37717
37718 fi
37719
37720
37721 if test "$wxUSE_WCHAR_T" = "yes"; then
37722     cat >>confdefs.h <<\_ACEOF
37723 #define wxUSE_WCHAR_T 1
37724 _ACEOF
37725
37726
37727         WCSLEN_FOUND=0
37728     WCHAR_LINK=
37729
37730 for ac_func in wcslen
37731 do
37732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37736   echo $ECHO_N "(cached) $ECHO_C" >&6
37737 else
37738   cat >conftest.$ac_ext <<_ACEOF
37739 /* confdefs.h.  */
37740 _ACEOF
37741 cat confdefs.h >>conftest.$ac_ext
37742 cat >>conftest.$ac_ext <<_ACEOF
37743 /* end confdefs.h.  */
37744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37745    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37746 #define $ac_func innocuous_$ac_func
37747
37748 /* System header to define __stub macros and hopefully few prototypes,
37749     which can conflict with char $ac_func (); below.
37750     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37751     <limits.h> exists even on freestanding compilers.  */
37752
37753 #ifdef __STDC__
37754 # include <limits.h>
37755 #else
37756 # include <assert.h>
37757 #endif
37758
37759 #undef $ac_func
37760
37761 /* Override any GCC internal prototype to avoid an error.
37762    Use char because int might match the return type of a GCC
37763    builtin and then its argument prototype would still apply.  */
37764 #ifdef __cplusplus
37765 extern "C"
37766 #endif
37767 char $ac_func ();
37768 /* The GNU C library defines this for functions which it implements
37769     to always fail with ENOSYS.  Some functions are actually named
37770     something starting with __ and the normal name is an alias.  */
37771 #if defined __stub_$ac_func || defined __stub___$ac_func
37772 choke me
37773 #endif
37774
37775 int
37776 main ()
37777 {
37778 return $ac_func ();
37779   ;
37780   return 0;
37781 }
37782 _ACEOF
37783 rm -f conftest.$ac_objext conftest$ac_exeext
37784 if { (ac_try="$ac_link"
37785 case "(($ac_try" in
37786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37787   *) ac_try_echo=$ac_try;;
37788 esac
37789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37790   (eval "$ac_link") 2>conftest.er1
37791   ac_status=$?
37792   grep -v '^ *+' conftest.er1 >conftest.err
37793   rm -f conftest.er1
37794   cat conftest.err >&5
37795   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37796   (exit $ac_status); } && {
37797          test -z "$ac_c_werror_flag" ||
37798          test ! -s conftest.err
37799        } && test -s conftest$ac_exeext &&
37800        $as_test_x conftest$ac_exeext; then
37801   eval "$as_ac_var=yes"
37802 else
37803   echo "$as_me: failed program was:" >&5
37804 sed 's/^/| /' conftest.$ac_ext >&5
37805
37806         eval "$as_ac_var=no"
37807 fi
37808
37809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37810       conftest$ac_exeext conftest.$ac_ext
37811 fi
37812 ac_res=`eval echo '${'$as_ac_var'}'`
37813                { echo "$as_me:$LINENO: result: $ac_res" >&5
37814 echo "${ECHO_T}$ac_res" >&6; }
37815 if test `eval echo '${'$as_ac_var'}'` = yes; then
37816   cat >>confdefs.h <<_ACEOF
37817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
37818 _ACEOF
37819  WCSLEN_FOUND=1
37820 fi
37821 done
37822
37823
37824     if test "$WCSLEN_FOUND" = 0; then
37825         if test "$TOOLKIT" = "MSW"; then
37826             { echo "$as_me:$LINENO: checking for wcslen in -lmsvcrt" >&5
37827 echo $ECHO_N "checking for wcslen in -lmsvcrt... $ECHO_C" >&6; }
37828 if test "${ac_cv_lib_msvcrt_wcslen+set}" = set; then
37829   echo $ECHO_N "(cached) $ECHO_C" >&6
37830 else
37831   ac_check_lib_save_LIBS=$LIBS
37832 LIBS="-lmsvcrt  $LIBS"
37833 cat >conftest.$ac_ext <<_ACEOF
37834 /* confdefs.h.  */
37835 _ACEOF
37836 cat confdefs.h >>conftest.$ac_ext
37837 cat >>conftest.$ac_ext <<_ACEOF
37838 /* end confdefs.h.  */
37839
37840 /* Override any GCC internal prototype to avoid an error.
37841    Use char because int might match the return type of a GCC
37842    builtin and then its argument prototype would still apply.  */
37843 #ifdef __cplusplus
37844 extern "C"
37845 #endif
37846 char wcslen ();
37847 int
37848 main ()
37849 {
37850 return wcslen ();
37851   ;
37852   return 0;
37853 }
37854 _ACEOF
37855 rm -f conftest.$ac_objext conftest$ac_exeext
37856 if { (ac_try="$ac_link"
37857 case "(($ac_try" in
37858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37859   *) ac_try_echo=$ac_try;;
37860 esac
37861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37862   (eval "$ac_link") 2>conftest.er1
37863   ac_status=$?
37864   grep -v '^ *+' conftest.er1 >conftest.err
37865   rm -f conftest.er1
37866   cat conftest.err >&5
37867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37868   (exit $ac_status); } && {
37869          test -z "$ac_c_werror_flag" ||
37870          test ! -s conftest.err
37871        } && test -s conftest$ac_exeext &&
37872        $as_test_x conftest$ac_exeext; then
37873   ac_cv_lib_msvcrt_wcslen=yes
37874 else
37875   echo "$as_me: failed program was:" >&5
37876 sed 's/^/| /' conftest.$ac_ext >&5
37877
37878         ac_cv_lib_msvcrt_wcslen=no
37879 fi
37880
37881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37882       conftest$ac_exeext conftest.$ac_ext
37883 LIBS=$ac_check_lib_save_LIBS
37884 fi
37885 { echo "$as_me:$LINENO: result: $ac_cv_lib_msvcrt_wcslen" >&5
37886 echo "${ECHO_T}$ac_cv_lib_msvcrt_wcslen" >&6; }
37887 if test $ac_cv_lib_msvcrt_wcslen = yes; then
37888   WCHAR_OK=1
37889 fi
37890
37891         else
37892             { echo "$as_me:$LINENO: checking for wcslen in -lw" >&5
37893 echo $ECHO_N "checking for wcslen in -lw... $ECHO_C" >&6; }
37894 if test "${ac_cv_lib_w_wcslen+set}" = set; then
37895   echo $ECHO_N "(cached) $ECHO_C" >&6
37896 else
37897   ac_check_lib_save_LIBS=$LIBS
37898 LIBS="-lw  $LIBS"
37899 cat >conftest.$ac_ext <<_ACEOF
37900 /* confdefs.h.  */
37901 _ACEOF
37902 cat confdefs.h >>conftest.$ac_ext
37903 cat >>conftest.$ac_ext <<_ACEOF
37904 /* end confdefs.h.  */
37905
37906 /* Override any GCC internal prototype to avoid an error.
37907    Use char because int might match the return type of a GCC
37908    builtin and then its argument prototype would still apply.  */
37909 #ifdef __cplusplus
37910 extern "C"
37911 #endif
37912 char wcslen ();
37913 int
37914 main ()
37915 {
37916 return wcslen ();
37917   ;
37918   return 0;
37919 }
37920 _ACEOF
37921 rm -f conftest.$ac_objext conftest$ac_exeext
37922 if { (ac_try="$ac_link"
37923 case "(($ac_try" in
37924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37925   *) ac_try_echo=$ac_try;;
37926 esac
37927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
37928   (eval "$ac_link") 2>conftest.er1
37929   ac_status=$?
37930   grep -v '^ *+' conftest.er1 >conftest.err
37931   rm -f conftest.er1
37932   cat conftest.err >&5
37933   echo "$as_me:$LINENO: \$? = $ac_status" >&5
37934   (exit $ac_status); } && {
37935          test -z "$ac_c_werror_flag" ||
37936          test ! -s conftest.err
37937        } && test -s conftest$ac_exeext &&
37938        $as_test_x conftest$ac_exeext; then
37939   ac_cv_lib_w_wcslen=yes
37940 else
37941   echo "$as_me: failed program was:" >&5
37942 sed 's/^/| /' conftest.$ac_ext >&5
37943
37944         ac_cv_lib_w_wcslen=no
37945 fi
37946
37947 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37948       conftest$ac_exeext conftest.$ac_ext
37949 LIBS=$ac_check_lib_save_LIBS
37950 fi
37951 { echo "$as_me:$LINENO: result: $ac_cv_lib_w_wcslen" >&5
37952 echo "${ECHO_T}$ac_cv_lib_w_wcslen" >&6; }
37953 if test $ac_cv_lib_w_wcslen = yes; then
37954
37955                             WCHAR_LINK=" -lw"
37956                             WCSLEN_FOUND=1
37957
37958 fi
37959
37960         fi
37961     fi
37962
37963     if test "$WCSLEN_FOUND" = 1; then
37964         cat >>confdefs.h <<\_ACEOF
37965 #define HAVE_WCSLEN 1
37966 _ACEOF
37967
37968     fi
37969
37970
37971 for ac_func in wcsdup
37972 do
37973 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
37974 { echo "$as_me:$LINENO: checking for $ac_func" >&5
37975 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
37976 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37977   echo $ECHO_N "(cached) $ECHO_C" >&6
37978 else
37979   cat >conftest.$ac_ext <<_ACEOF
37980 /* confdefs.h.  */
37981 _ACEOF
37982 cat confdefs.h >>conftest.$ac_ext
37983 cat >>conftest.$ac_ext <<_ACEOF
37984 /* end confdefs.h.  */
37985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37986    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37987 #define $ac_func innocuous_$ac_func
37988
37989 /* System header to define __stub macros and hopefully few prototypes,
37990     which can conflict with char $ac_func (); below.
37991     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37992     <limits.h> exists even on freestanding compilers.  */
37993
37994 #ifdef __STDC__
37995 # include <limits.h>
37996 #else
37997 # include <assert.h>
37998 #endif
37999
38000 #undef $ac_func
38001
38002 /* Override any GCC internal prototype to avoid an error.
38003    Use char because int might match the return type of a GCC
38004    builtin and then its argument prototype would still apply.  */
38005 #ifdef __cplusplus
38006 extern "C"
38007 #endif
38008 char $ac_func ();
38009 /* The GNU C library defines this for functions which it implements
38010     to always fail with ENOSYS.  Some functions are actually named
38011     something starting with __ and the normal name is an alias.  */
38012 #if defined __stub_$ac_func || defined __stub___$ac_func
38013 choke me
38014 #endif
38015
38016 int
38017 main ()
38018 {
38019 return $ac_func ();
38020   ;
38021   return 0;
38022 }
38023 _ACEOF
38024 rm -f conftest.$ac_objext conftest$ac_exeext
38025 if { (ac_try="$ac_link"
38026 case "(($ac_try" in
38027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38028   *) ac_try_echo=$ac_try;;
38029 esac
38030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38031   (eval "$ac_link") 2>conftest.er1
38032   ac_status=$?
38033   grep -v '^ *+' conftest.er1 >conftest.err
38034   rm -f conftest.er1
38035   cat conftest.err >&5
38036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38037   (exit $ac_status); } && {
38038          test -z "$ac_c_werror_flag" ||
38039          test ! -s conftest.err
38040        } && test -s conftest$ac_exeext &&
38041        $as_test_x conftest$ac_exeext; then
38042   eval "$as_ac_var=yes"
38043 else
38044   echo "$as_me: failed program was:" >&5
38045 sed 's/^/| /' conftest.$ac_ext >&5
38046
38047         eval "$as_ac_var=no"
38048 fi
38049
38050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38051       conftest$ac_exeext conftest.$ac_ext
38052 fi
38053 ac_res=`eval echo '${'$as_ac_var'}'`
38054                { echo "$as_me:$LINENO: result: $ac_res" >&5
38055 echo "${ECHO_T}$ac_res" >&6; }
38056 if test `eval echo '${'$as_ac_var'}'` = yes; then
38057   cat >>confdefs.h <<_ACEOF
38058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38059 _ACEOF
38060
38061 fi
38062 done
38063
38064
38065                     if test "$USE_HPUX" = 1 -a "$GCC" != "yes"; then
38066         CPPFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CPPFLAGS"
38067     fi
38068
38069                 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
38070 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
38071 if test "${ac_cv_type_mbstate_t+set}" = set; then
38072   echo $ECHO_N "(cached) $ECHO_C" >&6
38073 else
38074   cat >conftest.$ac_ext <<_ACEOF
38075 /* confdefs.h.  */
38076 _ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h.  */
38080 #include <wchar.h>
38081
38082 typedef mbstate_t ac__type_new_;
38083 int
38084 main ()
38085 {
38086 if ((ac__type_new_ *) 0)
38087   return 0;
38088 if (sizeof (ac__type_new_))
38089   return 0;
38090   ;
38091   return 0;
38092 }
38093 _ACEOF
38094 rm -f conftest.$ac_objext
38095 if { (ac_try="$ac_compile"
38096 case "(($ac_try" in
38097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098   *) ac_try_echo=$ac_try;;
38099 esac
38100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38101   (eval "$ac_compile") 2>conftest.er1
38102   ac_status=$?
38103   grep -v '^ *+' conftest.er1 >conftest.err
38104   rm -f conftest.er1
38105   cat conftest.err >&5
38106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38107   (exit $ac_status); } && {
38108          test -z "$ac_c_werror_flag" ||
38109          test ! -s conftest.err
38110        } && test -s conftest.$ac_objext; then
38111   ac_cv_type_mbstate_t=yes
38112 else
38113   echo "$as_me: failed program was:" >&5
38114 sed 's/^/| /' conftest.$ac_ext >&5
38115
38116         ac_cv_type_mbstate_t=no
38117 fi
38118
38119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38120 fi
38121 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
38122 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
38123 if test $ac_cv_type_mbstate_t = yes; then
38124
38125 cat >>confdefs.h <<_ACEOF
38126 #define HAVE_MBSTATE_T 1
38127 _ACEOF
38128
38129
38130 for ac_func in wcsrtombs
38131 do
38132 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38133 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38134 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38135 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38136   echo $ECHO_N "(cached) $ECHO_C" >&6
38137 else
38138   cat >conftest.$ac_ext <<_ACEOF
38139 /* confdefs.h.  */
38140 _ACEOF
38141 cat confdefs.h >>conftest.$ac_ext
38142 cat >>conftest.$ac_ext <<_ACEOF
38143 /* end confdefs.h.  */
38144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38145    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38146 #define $ac_func innocuous_$ac_func
38147
38148 /* System header to define __stub macros and hopefully few prototypes,
38149     which can conflict with char $ac_func (); below.
38150     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38151     <limits.h> exists even on freestanding compilers.  */
38152
38153 #ifdef __STDC__
38154 # include <limits.h>
38155 #else
38156 # include <assert.h>
38157 #endif
38158
38159 #undef $ac_func
38160
38161 /* Override any GCC internal prototype to avoid an error.
38162    Use char because int might match the return type of a GCC
38163    builtin and then its argument prototype would still apply.  */
38164 #ifdef __cplusplus
38165 extern "C"
38166 #endif
38167 char $ac_func ();
38168 /* The GNU C library defines this for functions which it implements
38169     to always fail with ENOSYS.  Some functions are actually named
38170     something starting with __ and the normal name is an alias.  */
38171 #if defined __stub_$ac_func || defined __stub___$ac_func
38172 choke me
38173 #endif
38174
38175 int
38176 main ()
38177 {
38178 return $ac_func ();
38179   ;
38180   return 0;
38181 }
38182 _ACEOF
38183 rm -f conftest.$ac_objext conftest$ac_exeext
38184 if { (ac_try="$ac_link"
38185 case "(($ac_try" in
38186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38187   *) ac_try_echo=$ac_try;;
38188 esac
38189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38190   (eval "$ac_link") 2>conftest.er1
38191   ac_status=$?
38192   grep -v '^ *+' conftest.er1 >conftest.err
38193   rm -f conftest.er1
38194   cat conftest.err >&5
38195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38196   (exit $ac_status); } && {
38197          test -z "$ac_c_werror_flag" ||
38198          test ! -s conftest.err
38199        } && test -s conftest$ac_exeext &&
38200        $as_test_x conftest$ac_exeext; then
38201   eval "$as_ac_var=yes"
38202 else
38203   echo "$as_me: failed program was:" >&5
38204 sed 's/^/| /' conftest.$ac_ext >&5
38205
38206         eval "$as_ac_var=no"
38207 fi
38208
38209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38210       conftest$ac_exeext conftest.$ac_ext
38211 fi
38212 ac_res=`eval echo '${'$as_ac_var'}'`
38213                { echo "$as_me:$LINENO: result: $ac_res" >&5
38214 echo "${ECHO_T}$ac_res" >&6; }
38215 if test `eval echo '${'$as_ac_var'}'` = yes; then
38216   cat >>confdefs.h <<_ACEOF
38217 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38218 _ACEOF
38219
38220 fi
38221 done
38222
38223 fi
38224
38225 else
38226     { echo "$as_me:$LINENO: WARNING: Wide character support is unavailable" >&5
38227 echo "$as_me: WARNING: Wide character support is unavailable" >&2;}
38228 fi
38229
38230
38231
38232 for ac_func in snprintf vsnprintf
38233 do
38234 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38235 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38236 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38237 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38238   echo $ECHO_N "(cached) $ECHO_C" >&6
38239 else
38240   cat >conftest.$ac_ext <<_ACEOF
38241 /* confdefs.h.  */
38242 _ACEOF
38243 cat confdefs.h >>conftest.$ac_ext
38244 cat >>conftest.$ac_ext <<_ACEOF
38245 /* end confdefs.h.  */
38246 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38247    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38248 #define $ac_func innocuous_$ac_func
38249
38250 /* System header to define __stub macros and hopefully few prototypes,
38251     which can conflict with char $ac_func (); below.
38252     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38253     <limits.h> exists even on freestanding compilers.  */
38254
38255 #ifdef __STDC__
38256 # include <limits.h>
38257 #else
38258 # include <assert.h>
38259 #endif
38260
38261 #undef $ac_func
38262
38263 /* Override any GCC internal prototype to avoid an error.
38264    Use char because int might match the return type of a GCC
38265    builtin and then its argument prototype would still apply.  */
38266 #ifdef __cplusplus
38267 extern "C"
38268 #endif
38269 char $ac_func ();
38270 /* The GNU C library defines this for functions which it implements
38271     to always fail with ENOSYS.  Some functions are actually named
38272     something starting with __ and the normal name is an alias.  */
38273 #if defined __stub_$ac_func || defined __stub___$ac_func
38274 choke me
38275 #endif
38276
38277 int
38278 main ()
38279 {
38280 return $ac_func ();
38281   ;
38282   return 0;
38283 }
38284 _ACEOF
38285 rm -f conftest.$ac_objext conftest$ac_exeext
38286 if { (ac_try="$ac_link"
38287 case "(($ac_try" in
38288   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38289   *) ac_try_echo=$ac_try;;
38290 esac
38291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38292   (eval "$ac_link") 2>conftest.er1
38293   ac_status=$?
38294   grep -v '^ *+' conftest.er1 >conftest.err
38295   rm -f conftest.er1
38296   cat conftest.err >&5
38297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38298   (exit $ac_status); } && {
38299          test -z "$ac_c_werror_flag" ||
38300          test ! -s conftest.err
38301        } && test -s conftest$ac_exeext &&
38302        $as_test_x conftest$ac_exeext; then
38303   eval "$as_ac_var=yes"
38304 else
38305   echo "$as_me: failed program was:" >&5
38306 sed 's/^/| /' conftest.$ac_ext >&5
38307
38308         eval "$as_ac_var=no"
38309 fi
38310
38311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38312       conftest$ac_exeext conftest.$ac_ext
38313 fi
38314 ac_res=`eval echo '${'$as_ac_var'}'`
38315                { echo "$as_me:$LINENO: result: $ac_res" >&5
38316 echo "${ECHO_T}$ac_res" >&6; }
38317 if test `eval echo '${'$as_ac_var'}'` = yes; then
38318   cat >>confdefs.h <<_ACEOF
38319 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38320 _ACEOF
38321
38322 fi
38323 done
38324
38325
38326 if test "$ac_cv_func_vsnprintf" = "yes"; then
38327         { echo "$as_me:$LINENO: checking for vsnprintf declaration" >&5
38328 echo $ECHO_N "checking for vsnprintf declaration... $ECHO_C" >&6; }
38329 if test "${wx_cv_func_vsnprintf_decl+set}" = set; then
38330   echo $ECHO_N "(cached) $ECHO_C" >&6
38331 else
38332
38333                                                             cat >conftest.$ac_ext <<_ACEOF
38334 /* confdefs.h.  */
38335 _ACEOF
38336 cat confdefs.h >>conftest.$ac_ext
38337 cat >>conftest.$ac_ext <<_ACEOF
38338 /* end confdefs.h.  */
38339
38340                     #include <stdio.h>
38341                     #include <stdarg.h>
38342                     #ifdef __MSL__
38343                     #if __MSL__ >= 0x6000
38344                     namespace std {}
38345                     using namespace std;
38346                     #endif
38347                     #endif
38348
38349 int
38350 main ()
38351 {
38352
38353                     char *buf;
38354                     va_list ap;
38355                     vsnprintf(buf, 10u, "%s", ap);
38356
38357   ;
38358   return 0;
38359 }
38360 _ACEOF
38361 rm -f conftest.$ac_objext
38362 if { (ac_try="$ac_compile"
38363 case "(($ac_try" in
38364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38365   *) ac_try_echo=$ac_try;;
38366 esac
38367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38368   (eval "$ac_compile") 2>conftest.er1
38369   ac_status=$?
38370   grep -v '^ *+' conftest.er1 >conftest.err
38371   rm -f conftest.er1
38372   cat conftest.err >&5
38373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38374   (exit $ac_status); } && {
38375          test -z "$ac_c_werror_flag" ||
38376          test ! -s conftest.err
38377        } && test -s conftest.$ac_objext; then
38378   wx_cv_func_vsnprintf_decl=yes
38379 else
38380   echo "$as_me: failed program was:" >&5
38381 sed 's/^/| /' conftest.$ac_ext >&5
38382
38383         wx_cv_func_vsnprintf_decl=no
38384
38385 fi
38386
38387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38388
38389
38390 fi
38391 { echo "$as_me:$LINENO: result: $wx_cv_func_vsnprintf_decl" >&5
38392 echo "${ECHO_T}$wx_cv_func_vsnprintf_decl" >&6; }
38393
38394     if test "$wx_cv_func_vsnprintf_decl" = "yes"; then
38395         cat >>confdefs.h <<\_ACEOF
38396 #define HAVE_VSNPRINTF_DECL 1
38397 _ACEOF
38398
38399
38400                         { echo "$as_me:$LINENO: checking if vsnprintf declaration is broken" >&5
38401 echo $ECHO_N "checking if vsnprintf declaration is broken... $ECHO_C" >&6; }
38402 if test "${wx_cv_func_broken_vsnprintf_decl+set}" = set; then
38403   echo $ECHO_N "(cached) $ECHO_C" >&6
38404 else
38405
38406                 cat >conftest.$ac_ext <<_ACEOF
38407 /* confdefs.h.  */
38408 _ACEOF
38409 cat confdefs.h >>conftest.$ac_ext
38410 cat >>conftest.$ac_ext <<_ACEOF
38411 /* end confdefs.h.  */
38412
38413                         #include <stdio.h>
38414                         #include <stdarg.h>
38415                         #ifdef __MSL__
38416                         #if __MSL__ >= 0x6000
38417                         namespace std {}
38418                         using namespace std;
38419                         #endif
38420                         #endif
38421
38422 int
38423 main ()
38424 {
38425
38426                         char *buf;
38427                         va_list ap;
38428                         const char *fmt = "%s";
38429                         vsnprintf(buf, 10u, fmt, ap);
38430
38431   ;
38432   return 0;
38433 }
38434 _ACEOF
38435 rm -f conftest.$ac_objext
38436 if { (ac_try="$ac_compile"
38437 case "(($ac_try" in
38438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38439   *) ac_try_echo=$ac_try;;
38440 esac
38441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38442   (eval "$ac_compile") 2>conftest.er1
38443   ac_status=$?
38444   grep -v '^ *+' conftest.er1 >conftest.err
38445   rm -f conftest.er1
38446   cat conftest.err >&5
38447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38448   (exit $ac_status); } && {
38449          test -z "$ac_c_werror_flag" ||
38450          test ! -s conftest.err
38451        } && test -s conftest.$ac_objext; then
38452   wx_cv_func_broken_vsnprintf_decl=no
38453 else
38454   echo "$as_me: failed program was:" >&5
38455 sed 's/^/| /' conftest.$ac_ext >&5
38456
38457         wx_cv_func_broken_vsnprintf_decl=yes
38458
38459 fi
38460
38461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38462
38463
38464 fi
38465 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_vsnprintf_decl" >&5
38466 echo "${ECHO_T}$wx_cv_func_broken_vsnprintf_decl" >&6; }
38467
38468         if test "$wx_cv_func_broken_vsnprintf_decl" = "yes"; then
38469             cat >>confdefs.h <<\_ACEOF
38470 #define HAVE_BROKEN_VSNPRINTF_DECL 1
38471 _ACEOF
38472
38473         fi
38474     fi
38475 fi
38476
38477 if test "$ac_cv_func_snprintf" = "yes"; then
38478     { echo "$as_me:$LINENO: checking for snprintf declaration" >&5
38479 echo $ECHO_N "checking for snprintf declaration... $ECHO_C" >&6; }
38480 if test "${wx_cv_func_snprintf_decl+set}" = set; then
38481   echo $ECHO_N "(cached) $ECHO_C" >&6
38482 else
38483
38484             cat >conftest.$ac_ext <<_ACEOF
38485 /* confdefs.h.  */
38486 _ACEOF
38487 cat confdefs.h >>conftest.$ac_ext
38488 cat >>conftest.$ac_ext <<_ACEOF
38489 /* end confdefs.h.  */
38490
38491                     #include <stdio.h>
38492                     #include <stdarg.h>
38493                     #ifdef __MSL__
38494                     #if __MSL__ >= 0x6000
38495                     namespace std {}
38496                     using namespace std;
38497                     #endif
38498                     #endif
38499
38500 int
38501 main ()
38502 {
38503
38504                     char *buf;
38505                     snprintf(buf, 10u, "%s", "wx");
38506
38507   ;
38508   return 0;
38509 }
38510 _ACEOF
38511 rm -f conftest.$ac_objext
38512 if { (ac_try="$ac_compile"
38513 case "(($ac_try" in
38514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38515   *) ac_try_echo=$ac_try;;
38516 esac
38517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38518   (eval "$ac_compile") 2>conftest.er1
38519   ac_status=$?
38520   grep -v '^ *+' conftest.er1 >conftest.err
38521   rm -f conftest.er1
38522   cat conftest.err >&5
38523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38524   (exit $ac_status); } && {
38525          test -z "$ac_c_werror_flag" ||
38526          test ! -s conftest.err
38527        } && test -s conftest.$ac_objext; then
38528   wx_cv_func_snprintf_decl=yes
38529 else
38530   echo "$as_me: failed program was:" >&5
38531 sed 's/^/| /' conftest.$ac_ext >&5
38532
38533         wx_cv_func_snprintf_decl=no
38534
38535 fi
38536
38537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38538
38539
38540 fi
38541 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_decl" >&5
38542 echo "${ECHO_T}$wx_cv_func_snprintf_decl" >&6; }
38543
38544     if test "$wx_cv_func_snprintf_decl" = "yes"; then
38545         cat >>confdefs.h <<\_ACEOF
38546 #define HAVE_SNPRINTF_DECL 1
38547 _ACEOF
38548
38549
38550                         { echo "$as_me:$LINENO: checking if snprintf declaration is broken" >&5
38551 echo $ECHO_N "checking if snprintf declaration is broken... $ECHO_C" >&6; }
38552 if test "${wx_cv_func_broken_snprintf_decl+set}" = set; then
38553   echo $ECHO_N "(cached) $ECHO_C" >&6
38554 else
38555
38556                 cat >conftest.$ac_ext <<_ACEOF
38557 /* confdefs.h.  */
38558 _ACEOF
38559 cat confdefs.h >>conftest.$ac_ext
38560 cat >>conftest.$ac_ext <<_ACEOF
38561 /* end confdefs.h.  */
38562
38563                         #include <stdio.h>
38564                         #include <stdarg.h>
38565                         #ifdef __MSL__
38566                         #if __MSL__ >= 0x6000
38567                         namespace std {}
38568                         using namespace std;
38569                         #endif
38570                         #endif
38571
38572 int
38573 main ()
38574 {
38575
38576                         char *buf;
38577                         const char *fmt = "%s";
38578                         snprintf(buf, 10u, fmt, "wx");
38579
38580   ;
38581   return 0;
38582 }
38583 _ACEOF
38584 rm -f conftest.$ac_objext
38585 if { (ac_try="$ac_compile"
38586 case "(($ac_try" in
38587   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38588   *) ac_try_echo=$ac_try;;
38589 esac
38590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38591   (eval "$ac_compile") 2>conftest.er1
38592   ac_status=$?
38593   grep -v '^ *+' conftest.er1 >conftest.err
38594   rm -f conftest.er1
38595   cat conftest.err >&5
38596   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38597   (exit $ac_status); } && {
38598          test -z "$ac_c_werror_flag" ||
38599          test ! -s conftest.err
38600        } && test -s conftest.$ac_objext; then
38601   wx_cv_func_broken_snprintf_decl=no
38602 else
38603   echo "$as_me: failed program was:" >&5
38604 sed 's/^/| /' conftest.$ac_ext >&5
38605
38606         wx_cv_func_broken_snprintf_decl=yes
38607
38608 fi
38609
38610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38611
38612
38613 fi
38614 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_snprintf_decl" >&5
38615 echo "${ECHO_T}$wx_cv_func_broken_snprintf_decl" >&6; }
38616
38617         if test "$wx_cv_func_broken_snprintf_decl" = "yes"; then
38618             cat >>confdefs.h <<\_ACEOF
38619 #define HAVE_BROKEN_SNPRINTF_DECL 1
38620 _ACEOF
38621
38622         fi
38623     fi
38624
38625     if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
38626
38627                                         { echo "$as_me:$LINENO: checking if snprintf supports positional arguments" >&5
38628 echo $ECHO_N "checking if snprintf supports positional arguments... $ECHO_C" >&6; }
38629 if test "${wx_cv_func_snprintf_pos_params+set}" = set; then
38630   echo $ECHO_N "(cached) $ECHO_C" >&6
38631 else
38632
38633                 if test "$cross_compiling" = yes; then
38634
38635                         { echo "$as_me:$LINENO: WARNING: Assuming Unix98 printf() is not available,
38636 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&5
38637 echo "$as_me: WARNING: Assuming Unix98 printf() is not available,
38638 define HAVE_UNIX98_PRINTF as 1 in setup.h if it is available." >&2;}
38639                         wx_cv_func_snprintf_pos_params=no
38640
38641
38642 else
38643   cat >conftest.$ac_ext <<_ACEOF
38644 /* confdefs.h.  */
38645 _ACEOF
38646 cat confdefs.h >>conftest.$ac_ext
38647 cat >>conftest.$ac_ext <<_ACEOF
38648 /* end confdefs.h.  */
38649
38650                         #include <stdio.h>
38651
38652                         int main (void)
38653                         {
38654                             char buffer[128];
38655                             snprintf (buffer, 128, "%2$d %3$d %1$d", 1, 2, 3);
38656                             if (strcmp ("2 3 1", buffer) == 0)
38657                                 exit (0);
38658                             exit (1);
38659                         }
38660
38661 _ACEOF
38662 rm -f conftest$ac_exeext
38663 if { (ac_try="$ac_link"
38664 case "(($ac_try" in
38665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38666   *) ac_try_echo=$ac_try;;
38667 esac
38668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38669   (eval "$ac_link") 2>&5
38670   ac_status=$?
38671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38673   { (case "(($ac_try" in
38674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38675   *) ac_try_echo=$ac_try;;
38676 esac
38677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38678   (eval "$ac_try") 2>&5
38679   ac_status=$?
38680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38681   (exit $ac_status); }; }; then
38682   wx_cv_func_snprintf_pos_params=no
38683 else
38684   echo "$as_me: program exited with status $ac_status" >&5
38685 echo "$as_me: failed program was:" >&5
38686 sed 's/^/| /' conftest.$ac_ext >&5
38687
38688 ( exit $ac_status )
38689 wx_cv_func_snprintf_pos_params=yes
38690 fi
38691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38692 fi
38693
38694
38695
38696
38697 fi
38698 { echo "$as_me:$LINENO: result: $wx_cv_func_snprintf_pos_params" >&5
38699 echo "${ECHO_T}$wx_cv_func_snprintf_pos_params" >&6; }
38700
38701         if test "$wx_cv_func_snprintf_pos_params" = "yes"; then
38702             cat >>confdefs.h <<\_ACEOF
38703 #define HAVE_UNIX98_PRINTF 1
38704 _ACEOF
38705
38706         fi
38707     fi
38708 fi
38709
38710 if test "$wxUSE_UNICODE" = yes; then
38711
38712
38713 for ac_func in swprintf
38714 do
38715 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
38716 { echo "$as_me:$LINENO: checking for $ac_func" >&5
38717 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
38718 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38719   echo $ECHO_N "(cached) $ECHO_C" >&6
38720 else
38721   cat >conftest.$ac_ext <<_ACEOF
38722 /* confdefs.h.  */
38723 _ACEOF
38724 cat confdefs.h >>conftest.$ac_ext
38725 cat >>conftest.$ac_ext <<_ACEOF
38726 /* end confdefs.h.  */
38727 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38728    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38729 #define $ac_func innocuous_$ac_func
38730
38731 /* System header to define __stub macros and hopefully few prototypes,
38732     which can conflict with char $ac_func (); below.
38733     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38734     <limits.h> exists even on freestanding compilers.  */
38735
38736 #ifdef __STDC__
38737 # include <limits.h>
38738 #else
38739 # include <assert.h>
38740 #endif
38741
38742 #undef $ac_func
38743
38744 /* Override any GCC internal prototype to avoid an error.
38745    Use char because int might match the return type of a GCC
38746    builtin and then its argument prototype would still apply.  */
38747 #ifdef __cplusplus
38748 extern "C"
38749 #endif
38750 char $ac_func ();
38751 /* The GNU C library defines this for functions which it implements
38752     to always fail with ENOSYS.  Some functions are actually named
38753     something starting with __ and the normal name is an alias.  */
38754 #if defined __stub_$ac_func || defined __stub___$ac_func
38755 choke me
38756 #endif
38757
38758 int
38759 main ()
38760 {
38761 return $ac_func ();
38762   ;
38763   return 0;
38764 }
38765 _ACEOF
38766 rm -f conftest.$ac_objext conftest$ac_exeext
38767 if { (ac_try="$ac_link"
38768 case "(($ac_try" in
38769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38770   *) ac_try_echo=$ac_try;;
38771 esac
38772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38773   (eval "$ac_link") 2>conftest.er1
38774   ac_status=$?
38775   grep -v '^ *+' conftest.er1 >conftest.err
38776   rm -f conftest.er1
38777   cat conftest.err >&5
38778   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38779   (exit $ac_status); } && {
38780          test -z "$ac_c_werror_flag" ||
38781          test ! -s conftest.err
38782        } && test -s conftest$ac_exeext &&
38783        $as_test_x conftest$ac_exeext; then
38784   eval "$as_ac_var=yes"
38785 else
38786   echo "$as_me: failed program was:" >&5
38787 sed 's/^/| /' conftest.$ac_ext >&5
38788
38789         eval "$as_ac_var=no"
38790 fi
38791
38792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38793       conftest$ac_exeext conftest.$ac_ext
38794 fi
38795 ac_res=`eval echo '${'$as_ac_var'}'`
38796                { echo "$as_me:$LINENO: result: $ac_res" >&5
38797 echo "${ECHO_T}$ac_res" >&6; }
38798 if test `eval echo '${'$as_ac_var'}'` = yes; then
38799   cat >>confdefs.h <<_ACEOF
38800 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
38801 _ACEOF
38802
38803 fi
38804 done
38805
38806
38807     if test "$ac_cv_func_swprintf" = "yes"; then
38808         { echo "$as_me:$LINENO: checking if swprintf declaration is broken" >&5
38809 echo $ECHO_N "checking if swprintf declaration is broken... $ECHO_C" >&6; }
38810 if test "${wx_cv_func_broken_swprintf_decl+set}" = set; then
38811   echo $ECHO_N "(cached) $ECHO_C" >&6
38812 else
38813
38814                 cat >conftest.$ac_ext <<_ACEOF
38815 /* confdefs.h.  */
38816 _ACEOF
38817 cat confdefs.h >>conftest.$ac_ext
38818 cat >>conftest.$ac_ext <<_ACEOF
38819 /* end confdefs.h.  */
38820
38821                         #include <stdio.h>
38822                         #include <stdarg.h>
38823                         #include <wchar.h>
38824
38825 int
38826 main ()
38827 {
38828
38829                         wchar_t *buf;
38830                         const wchar_t *fmt = L"test";
38831                         swprintf(buf, 10u, fmt);
38832
38833   ;
38834   return 0;
38835 }
38836 _ACEOF
38837 rm -f conftest.$ac_objext
38838 if { (ac_try="$ac_compile"
38839 case "(($ac_try" in
38840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38841   *) ac_try_echo=$ac_try;;
38842 esac
38843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38844   (eval "$ac_compile") 2>conftest.er1
38845   ac_status=$?
38846   grep -v '^ *+' conftest.er1 >conftest.err
38847   rm -f conftest.er1
38848   cat conftest.err >&5
38849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38850   (exit $ac_status); } && {
38851          test -z "$ac_c_werror_flag" ||
38852          test ! -s conftest.err
38853        } && test -s conftest.$ac_objext; then
38854   wx_cv_func_broken_swprintf_decl=no
38855 else
38856   echo "$as_me: failed program was:" >&5
38857 sed 's/^/| /' conftest.$ac_ext >&5
38858
38859         wx_cv_func_broken_swprintf_decl=yes
38860
38861 fi
38862
38863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38864
38865
38866 fi
38867 { echo "$as_me:$LINENO: result: $wx_cv_func_broken_swprintf_decl" >&5
38868 echo "${ECHO_T}$wx_cv_func_broken_swprintf_decl" >&6; }
38869
38870         if test "$wx_cv_func_broken_swprintf_decl" = "yes"; then
38871             cat >>confdefs.h <<\_ACEOF
38872 #define HAVE_BROKEN_SWPRINTF_DECL 1
38873 _ACEOF
38874
38875         fi
38876     fi
38877
38878             wchar_headers="#include <stdio.h>
38879 #include <wchar.h>"
38880     case "${host}" in
38881         *-*-solaris2* )
38882
38883 for ac_header in widec.h
38884 do
38885 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
38886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
38887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
38888 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
38889   echo $ECHO_N "(cached) $ECHO_C" >&6
38890 else
38891   cat >conftest.$ac_ext <<_ACEOF
38892 /* confdefs.h.  */
38893 _ACEOF
38894 cat confdefs.h >>conftest.$ac_ext
38895 cat >>conftest.$ac_ext <<_ACEOF
38896 /* end confdefs.h.  */
38897 $ac_includes_default
38898
38899 #include <$ac_header>
38900 _ACEOF
38901 rm -f conftest.$ac_objext
38902 if { (ac_try="$ac_compile"
38903 case "(($ac_try" in
38904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38905   *) ac_try_echo=$ac_try;;
38906 esac
38907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38908   (eval "$ac_compile") 2>conftest.er1
38909   ac_status=$?
38910   grep -v '^ *+' conftest.er1 >conftest.err
38911   rm -f conftest.er1
38912   cat conftest.err >&5
38913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38914   (exit $ac_status); } && {
38915          test -z "$ac_c_werror_flag" ||
38916          test ! -s conftest.err
38917        } && test -s conftest.$ac_objext; then
38918   eval "$as_ac_Header=yes"
38919 else
38920   echo "$as_me: failed program was:" >&5
38921 sed 's/^/| /' conftest.$ac_ext >&5
38922
38923         eval "$as_ac_Header=no"
38924 fi
38925
38926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38927 fi
38928 ac_res=`eval echo '${'$as_ac_Header'}'`
38929                { echo "$as_me:$LINENO: result: $ac_res" >&5
38930 echo "${ECHO_T}$ac_res" >&6; }
38931 if test `eval echo '${'$as_ac_Header'}'` = yes; then
38932   cat >>confdefs.h <<_ACEOF
38933 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
38934 _ACEOF
38935
38936 fi
38937
38938 done
38939
38940             if test "$ac_cv_header_widec_h" = "yes"; then
38941                 wchar_headers="$wchar_headers
38942 #include <widec.h>"
38943             fi
38944     esac
38945
38946
38947   for wx_func in wputc wputchar putws fputws wprintf vswprintf
38948   do
38949     { echo "$as_me:$LINENO: checking for $wx_func" >&5
38950 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
38951 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
38952   echo $ECHO_N "(cached) $ECHO_C" >&6
38953 else
38954
38955         cat >conftest.$ac_ext <<_ACEOF
38956
38957             /* confdefs.h.  */
38958 _ACEOF
38959 cat confdefs.h >>conftest.$ac_ext
38960 cat >>conftest.$ac_ext <<_ACEOF
38961 /* end confdefs.h.  */
38962
38963                 $wchar_headers
38964                 $ac_includes_default
38965
38966 int
38967 main ()
38968 {
38969
38970                 #ifndef $wx_func
38971                   &$wx_func;
38972                 #endif
38973
38974
38975   ;
38976   return 0;
38977 }
38978
38979 _ACEOF
38980 rm -f conftest.$ac_objext conftest$ac_exeext
38981 if { (ac_try="$ac_link"
38982 case "(($ac_try" in
38983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38984   *) ac_try_echo=$ac_try;;
38985 esac
38986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
38987   (eval "$ac_link") 2>conftest.er1
38988   ac_status=$?
38989   grep -v '^ *+' conftest.er1 >conftest.err
38990   rm -f conftest.er1
38991   cat conftest.err >&5
38992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
38993   (exit $ac_status); } && {
38994          test -z "$ac_c_werror_flag" ||
38995          test ! -s conftest.err
38996        } && test -s conftest$ac_exeext &&
38997        $as_test_x conftest$ac_exeext; then
38998   eval wx_cv_func_$wx_func=yes
38999 else
39000   echo "$as_me: failed program was:" >&5
39001 sed 's/^/| /' conftest.$ac_ext >&5
39002
39003         eval wx_cv_func_$wx_func=no
39004 fi
39005
39006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39007       conftest$ac_exeext conftest.$ac_ext
39008
39009 fi
39010 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39011                { echo "$as_me:$LINENO: result: $ac_res" >&5
39012 echo "${ECHO_T}$ac_res" >&6; }
39013
39014     if eval test \$wx_cv_func_$wx_func = yes
39015     then
39016       cat >>confdefs.h <<_ACEOF
39017 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39018 _ACEOF
39019
39020
39021     else
39022       :
39023
39024     fi
39025   done
39026
39027
39028                 { echo "$as_me:$LINENO: checking for _vsnwprintf" >&5
39029 echo $ECHO_N "checking for _vsnwprintf... $ECHO_C" >&6; }
39030     cat >conftest.$ac_ext <<_ACEOF
39031 /* confdefs.h.  */
39032 _ACEOF
39033 cat confdefs.h >>conftest.$ac_ext
39034 cat >>conftest.$ac_ext <<_ACEOF
39035 /* end confdefs.h.  */
39036 #include <wchar.h>
39037 int
39038 main ()
39039 {
39040 &_vsnwprintf;
39041   ;
39042   return 0;
39043 }
39044 _ACEOF
39045 rm -f conftest.$ac_objext
39046 if { (ac_try="$ac_compile"
39047 case "(($ac_try" in
39048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39049   *) ac_try_echo=$ac_try;;
39050 esac
39051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39052   (eval "$ac_compile") 2>conftest.er1
39053   ac_status=$?
39054   grep -v '^ *+' conftest.er1 >conftest.err
39055   rm -f conftest.er1
39056   cat conftest.err >&5
39057   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39058   (exit $ac_status); } && {
39059          test -z "$ac_c_werror_flag" ||
39060          test ! -s conftest.err
39061        } && test -s conftest.$ac_objext; then
39062   { echo "$as_me:$LINENO: result: yes" >&5
39063 echo "${ECHO_T}yes" >&6; }
39064                     cat >>confdefs.h <<\_ACEOF
39065 #define HAVE__VSNWPRINTF 1
39066 _ACEOF
39067
39068 else
39069   echo "$as_me: failed program was:" >&5
39070 sed 's/^/| /' conftest.$ac_ext >&5
39071
39072         { echo "$as_me:$LINENO: result: no" >&5
39073 echo "${ECHO_T}no" >&6; }
39074 fi
39075
39076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext;
39077 fi
39078
39079 if test "x$ac_cv_header_fnmatch_h" = "xyes"; then
39080
39081   for wx_func in fnmatch
39082   do
39083     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39084 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39085 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39086   echo $ECHO_N "(cached) $ECHO_C" >&6
39087 else
39088
39089         cat >conftest.$ac_ext <<_ACEOF
39090
39091             /* confdefs.h.  */
39092 _ACEOF
39093 cat confdefs.h >>conftest.$ac_ext
39094 cat >>conftest.$ac_ext <<_ACEOF
39095 /* end confdefs.h.  */
39096
39097                 #include <fnmatch.h>
39098                 $ac_includes_default
39099
39100 int
39101 main ()
39102 {
39103
39104                 #ifndef $wx_func
39105                   &$wx_func;
39106                 #endif
39107
39108
39109   ;
39110   return 0;
39111 }
39112
39113 _ACEOF
39114 rm -f conftest.$ac_objext conftest$ac_exeext
39115 if { (ac_try="$ac_link"
39116 case "(($ac_try" in
39117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39118   *) ac_try_echo=$ac_try;;
39119 esac
39120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39121   (eval "$ac_link") 2>conftest.er1
39122   ac_status=$?
39123   grep -v '^ *+' conftest.er1 >conftest.err
39124   rm -f conftest.er1
39125   cat conftest.err >&5
39126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39127   (exit $ac_status); } && {
39128          test -z "$ac_c_werror_flag" ||
39129          test ! -s conftest.err
39130        } && test -s conftest$ac_exeext &&
39131        $as_test_x conftest$ac_exeext; then
39132   eval wx_cv_func_$wx_func=yes
39133 else
39134   echo "$as_me: failed program was:" >&5
39135 sed 's/^/| /' conftest.$ac_ext >&5
39136
39137         eval wx_cv_func_$wx_func=no
39138 fi
39139
39140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39141       conftest$ac_exeext conftest.$ac_ext
39142
39143 fi
39144 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39145                { echo "$as_me:$LINENO: result: $ac_res" >&5
39146 echo "${ECHO_T}$ac_res" >&6; }
39147
39148     if eval test \$wx_cv_func_$wx_func = yes
39149     then
39150       cat >>confdefs.h <<_ACEOF
39151 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39152 _ACEOF
39153
39154
39155     else
39156       :
39157
39158     fi
39159   done
39160
39161 fi
39162
39163 if test "$wxUSE_FILE" = "yes"; then
39164
39165   for wx_func in fsync
39166   do
39167     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39168 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39169 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39170   echo $ECHO_N "(cached) $ECHO_C" >&6
39171 else
39172
39173         cat >conftest.$ac_ext <<_ACEOF
39174
39175             /* confdefs.h.  */
39176 _ACEOF
39177 cat confdefs.h >>conftest.$ac_ext
39178 cat >>conftest.$ac_ext <<_ACEOF
39179 /* end confdefs.h.  */
39180
39181
39182                 $ac_includes_default
39183
39184 int
39185 main ()
39186 {
39187
39188                 #ifndef $wx_func
39189                   &$wx_func;
39190                 #endif
39191
39192
39193   ;
39194   return 0;
39195 }
39196
39197 _ACEOF
39198 rm -f conftest.$ac_objext conftest$ac_exeext
39199 if { (ac_try="$ac_link"
39200 case "(($ac_try" in
39201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39202   *) ac_try_echo=$ac_try;;
39203 esac
39204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39205   (eval "$ac_link") 2>conftest.er1
39206   ac_status=$?
39207   grep -v '^ *+' conftest.er1 >conftest.err
39208   rm -f conftest.er1
39209   cat conftest.err >&5
39210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39211   (exit $ac_status); } && {
39212          test -z "$ac_c_werror_flag" ||
39213          test ! -s conftest.err
39214        } && test -s conftest$ac_exeext &&
39215        $as_test_x conftest$ac_exeext; then
39216   eval wx_cv_func_$wx_func=yes
39217 else
39218   echo "$as_me: failed program was:" >&5
39219 sed 's/^/| /' conftest.$ac_ext >&5
39220
39221         eval wx_cv_func_$wx_func=no
39222 fi
39223
39224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39225       conftest$ac_exeext conftest.$ac_ext
39226
39227 fi
39228 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39229                { echo "$as_me:$LINENO: result: $ac_res" >&5
39230 echo "${ECHO_T}$ac_res" >&6; }
39231
39232     if eval test \$wx_cv_func_$wx_func = yes
39233     then
39234       cat >>confdefs.h <<_ACEOF
39235 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39236 _ACEOF
39237
39238
39239     else
39240       :
39241
39242     fi
39243   done
39244
39245 fi
39246
39247 ac_ext=cpp
39248 ac_cpp='$CXXCPP $CPPFLAGS'
39249 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39250 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39251 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39252
39253
39254   for wx_func in round
39255   do
39256     { echo "$as_me:$LINENO: checking for $wx_func" >&5
39257 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
39258 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
39259   echo $ECHO_N "(cached) $ECHO_C" >&6
39260 else
39261
39262         cat >conftest.$ac_ext <<_ACEOF
39263
39264             /* confdefs.h.  */
39265 _ACEOF
39266 cat confdefs.h >>conftest.$ac_ext
39267 cat >>conftest.$ac_ext <<_ACEOF
39268 /* end confdefs.h.  */
39269
39270                 #include <math.h>
39271                 $ac_includes_default
39272
39273 int
39274 main ()
39275 {
39276
39277                 #ifndef $wx_func
39278                   &$wx_func;
39279                 #endif
39280
39281
39282   ;
39283   return 0;
39284 }
39285
39286 _ACEOF
39287 rm -f conftest.$ac_objext conftest$ac_exeext
39288 if { (ac_try="$ac_link"
39289 case "(($ac_try" in
39290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39291   *) ac_try_echo=$ac_try;;
39292 esac
39293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39294   (eval "$ac_link") 2>conftest.er1
39295   ac_status=$?
39296   grep -v '^ *+' conftest.er1 >conftest.err
39297   rm -f conftest.er1
39298   cat conftest.err >&5
39299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39300   (exit $ac_status); } && {
39301          test -z "$ac_cxx_werror_flag" ||
39302          test ! -s conftest.err
39303        } && test -s conftest$ac_exeext &&
39304        $as_test_x conftest$ac_exeext; then
39305   eval wx_cv_func_$wx_func=yes
39306 else
39307   echo "$as_me: failed program was:" >&5
39308 sed 's/^/| /' conftest.$ac_ext >&5
39309
39310         eval wx_cv_func_$wx_func=no
39311 fi
39312
39313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39314       conftest$ac_exeext conftest.$ac_ext
39315
39316 fi
39317 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
39318                { echo "$as_me:$LINENO: result: $ac_res" >&5
39319 echo "${ECHO_T}$ac_res" >&6; }
39320
39321     if eval test \$wx_cv_func_$wx_func = yes
39322     then
39323       cat >>confdefs.h <<_ACEOF
39324 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
39325 _ACEOF
39326
39327
39328     else
39329       :
39330
39331     fi
39332   done
39333
39334 ac_ext=c
39335 ac_cpp='$CPP $CPPFLAGS'
39336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39339
39340
39341 if test "$TOOLKIT" != "MSW"; then
39342
39343
39344
39345
39346
39347 # Check whether --with-libiconv-prefix was given.
39348 if test "${with_libiconv_prefix+set}" = set; then
39349   withval=$with_libiconv_prefix;
39350     for dir in `echo "$withval" | tr : ' '`; do
39351       if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
39352       if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
39353     done
39354
39355 fi
39356
39357
39358   { echo "$as_me:$LINENO: checking for iconv" >&5
39359 echo $ECHO_N "checking for iconv... $ECHO_C" >&6; }
39360 if test "${am_cv_func_iconv+set}" = set; then
39361   echo $ECHO_N "(cached) $ECHO_C" >&6
39362 else
39363
39364     am_cv_func_iconv="no, consider installing GNU libiconv"
39365     am_cv_lib_iconv=no
39366     cat >conftest.$ac_ext <<_ACEOF
39367 /* confdefs.h.  */
39368 _ACEOF
39369 cat confdefs.h >>conftest.$ac_ext
39370 cat >>conftest.$ac_ext <<_ACEOF
39371 /* end confdefs.h.  */
39372 #include <stdlib.h>
39373 #include <iconv.h>
39374 int
39375 main ()
39376 {
39377 iconv_t cd = iconv_open("","");
39378        iconv(cd,NULL,NULL,NULL,NULL);
39379        iconv_close(cd);
39380   ;
39381   return 0;
39382 }
39383 _ACEOF
39384 rm -f conftest.$ac_objext conftest$ac_exeext
39385 if { (ac_try="$ac_link"
39386 case "(($ac_try" in
39387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39388   *) ac_try_echo=$ac_try;;
39389 esac
39390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39391   (eval "$ac_link") 2>conftest.er1
39392   ac_status=$?
39393   grep -v '^ *+' conftest.er1 >conftest.err
39394   rm -f conftest.er1
39395   cat conftest.err >&5
39396   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39397   (exit $ac_status); } && {
39398          test -z "$ac_c_werror_flag" ||
39399          test ! -s conftest.err
39400        } && test -s conftest$ac_exeext &&
39401        $as_test_x conftest$ac_exeext; then
39402   am_cv_func_iconv=yes
39403 else
39404   echo "$as_me: failed program was:" >&5
39405 sed 's/^/| /' conftest.$ac_ext >&5
39406
39407
39408 fi
39409
39410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39411       conftest$ac_exeext conftest.$ac_ext
39412     if test "$am_cv_func_iconv" != yes; then
39413       am_save_LIBS="$LIBS"
39414       LIBS="$LIBS -liconv"
39415       cat >conftest.$ac_ext <<_ACEOF
39416 /* confdefs.h.  */
39417 _ACEOF
39418 cat confdefs.h >>conftest.$ac_ext
39419 cat >>conftest.$ac_ext <<_ACEOF
39420 /* end confdefs.h.  */
39421 #include <stdlib.h>
39422 #include <iconv.h>
39423 int
39424 main ()
39425 {
39426 iconv_t cd = iconv_open("","");
39427          iconv(cd,NULL,NULL,NULL,NULL);
39428          iconv_close(cd);
39429   ;
39430   return 0;
39431 }
39432 _ACEOF
39433 rm -f conftest.$ac_objext conftest$ac_exeext
39434 if { (ac_try="$ac_link"
39435 case "(($ac_try" in
39436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39437   *) ac_try_echo=$ac_try;;
39438 esac
39439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39440   (eval "$ac_link") 2>conftest.er1
39441   ac_status=$?
39442   grep -v '^ *+' conftest.er1 >conftest.err
39443   rm -f conftest.er1
39444   cat conftest.err >&5
39445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39446   (exit $ac_status); } && {
39447          test -z "$ac_c_werror_flag" ||
39448          test ! -s conftest.err
39449        } && test -s conftest$ac_exeext &&
39450        $as_test_x conftest$ac_exeext; then
39451   am_cv_lib_iconv=yes
39452         am_cv_func_iconv=yes
39453 else
39454   echo "$as_me: failed program was:" >&5
39455 sed 's/^/| /' conftest.$ac_ext >&5
39456
39457
39458 fi
39459
39460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39461       conftest$ac_exeext conftest.$ac_ext
39462       LIBS="$am_save_LIBS"
39463     fi
39464
39465 fi
39466 { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
39467 echo "${ECHO_T}$am_cv_func_iconv" >&6; }
39468   if test "$am_cv_func_iconv" = yes; then
39469
39470 cat >>confdefs.h <<\_ACEOF
39471 #define HAVE_ICONV 1
39472 _ACEOF
39473
39474     { echo "$as_me:$LINENO: checking if iconv needs const" >&5
39475 echo $ECHO_N "checking if iconv needs const... $ECHO_C" >&6; }
39476 if test "${wx_cv_func_iconv_const+set}" = set; then
39477   echo $ECHO_N "(cached) $ECHO_C" >&6
39478 else
39479   cat >conftest.$ac_ext <<_ACEOF
39480 /* confdefs.h.  */
39481 _ACEOF
39482 cat confdefs.h >>conftest.$ac_ext
39483 cat >>conftest.$ac_ext <<_ACEOF
39484 /* end confdefs.h.  */
39485
39486 #include <stdlib.h>
39487 #include <iconv.h>
39488 extern
39489 #ifdef __cplusplus
39490 "C"
39491 #endif
39492 #if defined(__STDC__) || defined(__cplusplus)
39493 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
39494 #else
39495 size_t iconv();
39496 #endif
39497
39498 int
39499 main ()
39500 {
39501
39502   ;
39503   return 0;
39504 }
39505 _ACEOF
39506 rm -f conftest.$ac_objext
39507 if { (ac_try="$ac_compile"
39508 case "(($ac_try" in
39509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39510   *) ac_try_echo=$ac_try;;
39511 esac
39512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39513   (eval "$ac_compile") 2>conftest.er1
39514   ac_status=$?
39515   grep -v '^ *+' conftest.er1 >conftest.err
39516   rm -f conftest.er1
39517   cat conftest.err >&5
39518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39519   (exit $ac_status); } && {
39520          test -z "$ac_c_werror_flag" ||
39521          test ! -s conftest.err
39522        } && test -s conftest.$ac_objext; then
39523   wx_cv_func_iconv_const="no"
39524 else
39525   echo "$as_me: failed program was:" >&5
39526 sed 's/^/| /' conftest.$ac_ext >&5
39527
39528         wx_cv_func_iconv_const="yes"
39529
39530 fi
39531
39532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39533
39534 fi
39535 { echo "$as_me:$LINENO: result: $wx_cv_func_iconv_const" >&5
39536 echo "${ECHO_T}$wx_cv_func_iconv_const" >&6; }
39537
39538     iconv_const=
39539     if test "x$wx_cv_func_iconv_const" = "xyes"; then
39540         iconv_const="const"
39541     fi
39542
39543
39544 cat >>confdefs.h <<_ACEOF
39545 #define ICONV_CONST $iconv_const
39546 _ACEOF
39547
39548   fi
39549   LIBICONV=
39550   if test "$am_cv_lib_iconv" = yes; then
39551     LIBICONV="-liconv"
39552   fi
39553
39554
39555 LIBS="$LIBICONV $LIBS"
39556
39557 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39558
39559 for ac_func in sigaction
39560 do
39561 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39562 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39563 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39564 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39565   echo $ECHO_N "(cached) $ECHO_C" >&6
39566 else
39567   cat >conftest.$ac_ext <<_ACEOF
39568 /* confdefs.h.  */
39569 _ACEOF
39570 cat confdefs.h >>conftest.$ac_ext
39571 cat >>conftest.$ac_ext <<_ACEOF
39572 /* end confdefs.h.  */
39573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39574    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39575 #define $ac_func innocuous_$ac_func
39576
39577 /* System header to define __stub macros and hopefully few prototypes,
39578     which can conflict with char $ac_func (); below.
39579     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39580     <limits.h> exists even on freestanding compilers.  */
39581
39582 #ifdef __STDC__
39583 # include <limits.h>
39584 #else
39585 # include <assert.h>
39586 #endif
39587
39588 #undef $ac_func
39589
39590 /* Override any GCC internal prototype to avoid an error.
39591    Use char because int might match the return type of a GCC
39592    builtin and then its argument prototype would still apply.  */
39593 #ifdef __cplusplus
39594 extern "C"
39595 #endif
39596 char $ac_func ();
39597 /* The GNU C library defines this for functions which it implements
39598     to always fail with ENOSYS.  Some functions are actually named
39599     something starting with __ and the normal name is an alias.  */
39600 #if defined __stub_$ac_func || defined __stub___$ac_func
39601 choke me
39602 #endif
39603
39604 int
39605 main ()
39606 {
39607 return $ac_func ();
39608   ;
39609   return 0;
39610 }
39611 _ACEOF
39612 rm -f conftest.$ac_objext conftest$ac_exeext
39613 if { (ac_try="$ac_link"
39614 case "(($ac_try" in
39615   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39616   *) ac_try_echo=$ac_try;;
39617 esac
39618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39619   (eval "$ac_link") 2>conftest.er1
39620   ac_status=$?
39621   grep -v '^ *+' conftest.er1 >conftest.err
39622   rm -f conftest.er1
39623   cat conftest.err >&5
39624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39625   (exit $ac_status); } && {
39626          test -z "$ac_c_werror_flag" ||
39627          test ! -s conftest.err
39628        } && test -s conftest$ac_exeext &&
39629        $as_test_x conftest$ac_exeext; then
39630   eval "$as_ac_var=yes"
39631 else
39632   echo "$as_me: failed program was:" >&5
39633 sed 's/^/| /' conftest.$ac_ext >&5
39634
39635         eval "$as_ac_var=no"
39636 fi
39637
39638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39639       conftest$ac_exeext conftest.$ac_ext
39640 fi
39641 ac_res=`eval echo '${'$as_ac_var'}'`
39642                { echo "$as_me:$LINENO: result: $ac_res" >&5
39643 echo "${ECHO_T}$ac_res" >&6; }
39644 if test `eval echo '${'$as_ac_var'}'` = yes; then
39645   cat >>confdefs.h <<_ACEOF
39646 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39647 _ACEOF
39648
39649 fi
39650 done
39651
39652
39653     if test "$ac_cv_func_sigaction" = "no"; then
39654         { echo "$as_me:$LINENO: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&5
39655 echo "$as_me: WARNING: No POSIX signal functions on this system, wxApp::OnFatalException will not be called" >&2;}
39656         wxUSE_ON_FATAL_EXCEPTION=no
39657     fi
39658
39659     if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
39660       { echo "$as_me:$LINENO: checking for sa_handler type" >&5
39661 echo $ECHO_N "checking for sa_handler type... $ECHO_C" >&6; }
39662 if test "${wx_cv_type_sa_handler+set}" = set; then
39663   echo $ECHO_N "(cached) $ECHO_C" >&6
39664 else
39665
39666                 ac_ext=cpp
39667 ac_cpp='$CXXCPP $CPPFLAGS'
39668 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39669 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39670 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39671
39672         cat >conftest.$ac_ext <<_ACEOF
39673 /* confdefs.h.  */
39674 _ACEOF
39675 cat confdefs.h >>conftest.$ac_ext
39676 cat >>conftest.$ac_ext <<_ACEOF
39677 /* end confdefs.h.  */
39678 #include <signal.h>
39679 int
39680 main ()
39681 {
39682
39683                         extern void testSigHandler(int);
39684
39685                         struct sigaction sa;
39686                         sa.sa_handler = testSigHandler;
39687
39688   ;
39689   return 0;
39690 }
39691 _ACEOF
39692 rm -f conftest.$ac_objext
39693 if { (ac_try="$ac_compile"
39694 case "(($ac_try" in
39695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39696   *) ac_try_echo=$ac_try;;
39697 esac
39698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39699   (eval "$ac_compile") 2>conftest.er1
39700   ac_status=$?
39701   grep -v '^ *+' conftest.er1 >conftest.err
39702   rm -f conftest.er1
39703   cat conftest.err >&5
39704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39705   (exit $ac_status); } && {
39706          test -z "$ac_cxx_werror_flag" ||
39707          test ! -s conftest.err
39708        } && test -s conftest.$ac_objext; then
39709
39710                         wx_cv_type_sa_handler=int
39711
39712 else
39713   echo "$as_me: failed program was:" >&5
39714 sed 's/^/| /' conftest.$ac_ext >&5
39715
39716
39717                         wx_cv_type_sa_handler=void
39718
39719 fi
39720
39721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39722         ac_ext=c
39723 ac_cpp='$CPP $CPPFLAGS'
39724 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39725 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39726 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39727
39728
39729 fi
39730 { echo "$as_me:$LINENO: result: $wx_cv_type_sa_handler" >&5
39731 echo "${ECHO_T}$wx_cv_type_sa_handler" >&6; }
39732
39733       cat >>confdefs.h <<_ACEOF
39734 #define wxTYPE_SA_HANDLER $wx_cv_type_sa_handler
39735 _ACEOF
39736
39737     fi
39738 fi
39739
39740 if test "$wxUSE_STACKWALKER" = "yes" -a "$wxUSE_UNIX" = "yes"; then
39741     { echo "$as_me:$LINENO: checking for backtrace() in <execinfo.h>" >&5
39742 echo $ECHO_N "checking for backtrace() in <execinfo.h>... $ECHO_C" >&6; }
39743 if test "${wx_cv_func_backtrace+set}" = set; then
39744   echo $ECHO_N "(cached) $ECHO_C" >&6
39745 else
39746
39747             ac_ext=cpp
39748 ac_cpp='$CXXCPP $CPPFLAGS'
39749 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39750 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39751 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39752
39753             cat >conftest.$ac_ext <<_ACEOF
39754 /* confdefs.h.  */
39755 _ACEOF
39756 cat confdefs.h >>conftest.$ac_ext
39757 cat >>conftest.$ac_ext <<_ACEOF
39758 /* end confdefs.h.  */
39759 #include <execinfo.h>
39760 int
39761 main ()
39762 {
39763
39764                     void *trace[1];
39765                     char **messages;
39766
39767                     backtrace(trace, 1);
39768                     messages = backtrace_symbols(trace, 1);
39769
39770   ;
39771   return 0;
39772 }
39773 _ACEOF
39774 rm -f conftest.$ac_objext
39775 if { (ac_try="$ac_compile"
39776 case "(($ac_try" in
39777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39778   *) ac_try_echo=$ac_try;;
39779 esac
39780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39781   (eval "$ac_compile") 2>conftest.er1
39782   ac_status=$?
39783   grep -v '^ *+' conftest.er1 >conftest.err
39784   rm -f conftest.er1
39785   cat conftest.err >&5
39786   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39787   (exit $ac_status); } && {
39788          test -z "$ac_cxx_werror_flag" ||
39789          test ! -s conftest.err
39790        } && test -s conftest.$ac_objext; then
39791   wx_cv_func_backtrace=yes
39792 else
39793   echo "$as_me: failed program was:" >&5
39794 sed 's/^/| /' conftest.$ac_ext >&5
39795
39796         wx_cv_func_backtrace=no
39797
39798 fi
39799
39800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39801             ac_ext=c
39802 ac_cpp='$CPP $CPPFLAGS'
39803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39806
39807
39808
39809 fi
39810 { echo "$as_me:$LINENO: result: $wx_cv_func_backtrace" >&5
39811 echo "${ECHO_T}$wx_cv_func_backtrace" >&6; }
39812
39813
39814     if test "$wx_cv_func_backtrace" = "no"; then
39815         { echo "$as_me:$LINENO: WARNING: backtrace() is not available, wxStackWalker will not be available" >&5
39816 echo "$as_me: WARNING: backtrace() is not available, wxStackWalker will not be available" >&2;}
39817         wxUSE_STACKWALKER=no
39818     else
39819         { echo "$as_me:$LINENO: checking for __cxa_demangle() in <cxxabi.h>" >&5
39820 echo $ECHO_N "checking for __cxa_demangle() in <cxxabi.h>... $ECHO_C" >&6; }
39821 if test "${wx_cv_func_cxa_demangle+set}" = set; then
39822   echo $ECHO_N "(cached) $ECHO_C" >&6
39823 else
39824
39825                 ac_ext=cpp
39826 ac_cpp='$CXXCPP $CPPFLAGS'
39827 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39828 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39829 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
39830
39831                 cat >conftest.$ac_ext <<_ACEOF
39832 /* confdefs.h.  */
39833 _ACEOF
39834 cat confdefs.h >>conftest.$ac_ext
39835 cat >>conftest.$ac_ext <<_ACEOF
39836 /* end confdefs.h.  */
39837 #include <cxxabi.h>
39838 int
39839 main ()
39840 {
39841
39842                         int rc;
39843                         __cxxabiv1::__cxa_demangle("foo", 0, 0, &rc);
39844
39845   ;
39846   return 0;
39847 }
39848 _ACEOF
39849 rm -f conftest.$ac_objext conftest$ac_exeext
39850 if { (ac_try="$ac_link"
39851 case "(($ac_try" in
39852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39853   *) ac_try_echo=$ac_try;;
39854 esac
39855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39856   (eval "$ac_link") 2>conftest.er1
39857   ac_status=$?
39858   grep -v '^ *+' conftest.er1 >conftest.err
39859   rm -f conftest.er1
39860   cat conftest.err >&5
39861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39862   (exit $ac_status); } && {
39863          test -z "$ac_cxx_werror_flag" ||
39864          test ! -s conftest.err
39865        } && test -s conftest$ac_exeext &&
39866        $as_test_x conftest$ac_exeext; then
39867   wx_cv_func_cxa_demangle=yes
39868 else
39869   echo "$as_me: failed program was:" >&5
39870 sed 's/^/| /' conftest.$ac_ext >&5
39871
39872         wx_cv_func_cxa_demangle=no
39873
39874 fi
39875
39876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39877       conftest$ac_exeext conftest.$ac_ext
39878                 ac_ext=c
39879 ac_cpp='$CPP $CPPFLAGS'
39880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
39881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
39882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
39883
39884
39885
39886 fi
39887 { echo "$as_me:$LINENO: result: $wx_cv_func_cxa_demangle" >&5
39888 echo "${ECHO_T}$wx_cv_func_cxa_demangle" >&6; }
39889
39890         if test "$wx_cv_func_cxa_demangle" = "yes"; then
39891             cat >>confdefs.h <<\_ACEOF
39892 #define HAVE_CXA_DEMANGLE 1
39893 _ACEOF
39894
39895         fi
39896     fi
39897 fi
39898
39899 if test "$wxUSE_STACKWALKER" = "yes" -a "$USE_WIN32" != "1" -a "$USE_UNIX" != "1"; then
39900     { echo "$as_me:$LINENO: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&5
39901 echo "$as_me: WARNING: wxStackWalker is only available on Win32 and UNIX... disabled" >&2;}
39902     wxUSE_STACKWALKER=no
39903 fi
39904
39905
39906
39907
39908 for ac_func in mkstemp mktemp
39909 do
39910 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
39911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
39912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
39913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
39914   echo $ECHO_N "(cached) $ECHO_C" >&6
39915 else
39916   cat >conftest.$ac_ext <<_ACEOF
39917 /* confdefs.h.  */
39918 _ACEOF
39919 cat confdefs.h >>conftest.$ac_ext
39920 cat >>conftest.$ac_ext <<_ACEOF
39921 /* end confdefs.h.  */
39922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
39923    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
39924 #define $ac_func innocuous_$ac_func
39925
39926 /* System header to define __stub macros and hopefully few prototypes,
39927     which can conflict with char $ac_func (); below.
39928     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
39929     <limits.h> exists even on freestanding compilers.  */
39930
39931 #ifdef __STDC__
39932 # include <limits.h>
39933 #else
39934 # include <assert.h>
39935 #endif
39936
39937 #undef $ac_func
39938
39939 /* Override any GCC internal prototype to avoid an error.
39940    Use char because int might match the return type of a GCC
39941    builtin and then its argument prototype would still apply.  */
39942 #ifdef __cplusplus
39943 extern "C"
39944 #endif
39945 char $ac_func ();
39946 /* The GNU C library defines this for functions which it implements
39947     to always fail with ENOSYS.  Some functions are actually named
39948     something starting with __ and the normal name is an alias.  */
39949 #if defined __stub_$ac_func || defined __stub___$ac_func
39950 choke me
39951 #endif
39952
39953 int
39954 main ()
39955 {
39956 return $ac_func ();
39957   ;
39958   return 0;
39959 }
39960 _ACEOF
39961 rm -f conftest.$ac_objext conftest$ac_exeext
39962 if { (ac_try="$ac_link"
39963 case "(($ac_try" in
39964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39965   *) ac_try_echo=$ac_try;;
39966 esac
39967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
39968   (eval "$ac_link") 2>conftest.er1
39969   ac_status=$?
39970   grep -v '^ *+' conftest.er1 >conftest.err
39971   rm -f conftest.er1
39972   cat conftest.err >&5
39973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
39974   (exit $ac_status); } && {
39975          test -z "$ac_c_werror_flag" ||
39976          test ! -s conftest.err
39977        } && test -s conftest$ac_exeext &&
39978        $as_test_x conftest$ac_exeext; then
39979   eval "$as_ac_var=yes"
39980 else
39981   echo "$as_me: failed program was:" >&5
39982 sed 's/^/| /' conftest.$ac_ext >&5
39983
39984         eval "$as_ac_var=no"
39985 fi
39986
39987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
39988       conftest$ac_exeext conftest.$ac_ext
39989 fi
39990 ac_res=`eval echo '${'$as_ac_var'}'`
39991                { echo "$as_me:$LINENO: result: $ac_res" >&5
39992 echo "${ECHO_T}$ac_res" >&6; }
39993 if test `eval echo '${'$as_ac_var'}'` = yes; then
39994   cat >>confdefs.h <<_ACEOF
39995 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
39996 _ACEOF
39997  break
39998 fi
39999 done
40000
40001
40002 { echo "$as_me:$LINENO: checking for statfs" >&5
40003 echo $ECHO_N "checking for statfs... $ECHO_C" >&6; }
40004 if test "${wx_cv_func_statfs+set}" = set; then
40005   echo $ECHO_N "(cached) $ECHO_C" >&6
40006 else
40007   cat >conftest.$ac_ext <<_ACEOF
40008 /* confdefs.h.  */
40009 _ACEOF
40010 cat confdefs.h >>conftest.$ac_ext
40011 cat >>conftest.$ac_ext <<_ACEOF
40012 /* end confdefs.h.  */
40013
40014              #if defined(__BSD__)
40015              #include <sys/param.h>
40016              #include <sys/mount.h>
40017              #else
40018              #include <sys/vfs.h>
40019              #endif
40020
40021 int
40022 main ()
40023 {
40024
40025              long l;
40026              struct statfs fs;
40027              statfs("/", &fs);
40028              l = fs.f_bsize;
40029              l += fs.f_blocks;
40030              l += fs.f_bavail;
40031
40032   ;
40033   return 0;
40034 }
40035 _ACEOF
40036 rm -f conftest.$ac_objext
40037 if { (ac_try="$ac_compile"
40038 case "(($ac_try" in
40039   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40040   *) ac_try_echo=$ac_try;;
40041 esac
40042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40043   (eval "$ac_compile") 2>conftest.er1
40044   ac_status=$?
40045   grep -v '^ *+' conftest.er1 >conftest.err
40046   rm -f conftest.er1
40047   cat conftest.err >&5
40048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40049   (exit $ac_status); } && {
40050          test -z "$ac_c_werror_flag" ||
40051          test ! -s conftest.err
40052        } && test -s conftest.$ac_objext; then
40053   wx_cv_func_statfs=yes
40054 else
40055   echo "$as_me: failed program was:" >&5
40056 sed 's/^/| /' conftest.$ac_ext >&5
40057
40058         wx_cv_func_statfs=no
40059
40060 fi
40061
40062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40063
40064 fi
40065 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs" >&5
40066 echo "${ECHO_T}$wx_cv_func_statfs" >&6; }
40067
40068 if test "$wx_cv_func_statfs" = "yes"; then
40069         { echo "$as_me:$LINENO: checking for statfs declaration" >&5
40070 echo $ECHO_N "checking for statfs declaration... $ECHO_C" >&6; }
40071 if test "${wx_cv_func_statfs_decl+set}" = set; then
40072   echo $ECHO_N "(cached) $ECHO_C" >&6
40073 else
40074   ac_ext=cpp
40075 ac_cpp='$CXXCPP $CPPFLAGS'
40076 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40077 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40078 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40079
40080         cat >conftest.$ac_ext <<_ACEOF
40081 /* confdefs.h.  */
40082 _ACEOF
40083 cat confdefs.h >>conftest.$ac_ext
40084 cat >>conftest.$ac_ext <<_ACEOF
40085 /* end confdefs.h.  */
40086
40087                  #if defined(__BSD__)
40088                  #include <sys/param.h>
40089                  #include <sys/mount.h>
40090                  #else
40091                  #include <sys/vfs.h>
40092                  #endif
40093
40094 int
40095 main ()
40096 {
40097
40098                 struct statfs fs;
40099                 statfs("", &fs);
40100
40101   ;
40102   return 0;
40103 }
40104 _ACEOF
40105 rm -f conftest.$ac_objext
40106 if { (ac_try="$ac_compile"
40107 case "(($ac_try" in
40108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40109   *) ac_try_echo=$ac_try;;
40110 esac
40111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40112   (eval "$ac_compile") 2>conftest.er1
40113   ac_status=$?
40114   grep -v '^ *+' conftest.er1 >conftest.err
40115   rm -f conftest.er1
40116   cat conftest.err >&5
40117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40118   (exit $ac_status); } && {
40119          test -z "$ac_cxx_werror_flag" ||
40120          test ! -s conftest.err
40121        } && test -s conftest.$ac_objext; then
40122   wx_cv_func_statfs_decl=yes
40123 else
40124   echo "$as_me: failed program was:" >&5
40125 sed 's/^/| /' conftest.$ac_ext >&5
40126
40127         wx_cv_func_statfs_decl=no
40128
40129 fi
40130
40131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40132         ac_ext=c
40133 ac_cpp='$CPP $CPPFLAGS'
40134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40137
40138
40139 fi
40140 { echo "$as_me:$LINENO: result: $wx_cv_func_statfs_decl" >&5
40141 echo "${ECHO_T}$wx_cv_func_statfs_decl" >&6; }
40142
40143     if test "$wx_cv_func_statfs_decl" = "yes"; then
40144         cat >>confdefs.h <<\_ACEOF
40145 #define HAVE_STATFS_DECL 1
40146 _ACEOF
40147
40148     fi
40149
40150     wx_cv_type_statvfs_t="struct statfs"
40151     cat >>confdefs.h <<\_ACEOF
40152 #define HAVE_STATFS 1
40153 _ACEOF
40154
40155 else
40156     { echo "$as_me:$LINENO: checking for statvfs" >&5
40157 echo $ECHO_N "checking for statvfs... $ECHO_C" >&6; }
40158 if test "${wx_cv_func_statvfs+set}" = set; then
40159   echo $ECHO_N "(cached) $ECHO_C" >&6
40160 else
40161   cat >conftest.$ac_ext <<_ACEOF
40162 /* confdefs.h.  */
40163 _ACEOF
40164 cat confdefs.h >>conftest.$ac_ext
40165 cat >>conftest.$ac_ext <<_ACEOF
40166 /* end confdefs.h.  */
40167
40168                 #include <stddef.h>
40169                 #include <sys/statvfs.h>
40170
40171 int
40172 main ()
40173 {
40174
40175                 statvfs("/", NULL);
40176
40177   ;
40178   return 0;
40179 }
40180 _ACEOF
40181 rm -f conftest.$ac_objext
40182 if { (ac_try="$ac_compile"
40183 case "(($ac_try" in
40184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40185   *) ac_try_echo=$ac_try;;
40186 esac
40187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40188   (eval "$ac_compile") 2>conftest.er1
40189   ac_status=$?
40190   grep -v '^ *+' conftest.er1 >conftest.err
40191   rm -f conftest.er1
40192   cat conftest.err >&5
40193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40194   (exit $ac_status); } && {
40195          test -z "$ac_c_werror_flag" ||
40196          test ! -s conftest.err
40197        } && test -s conftest.$ac_objext; then
40198   wx_cv_func_statvfs=yes
40199 else
40200   echo "$as_me: failed program was:" >&5
40201 sed 's/^/| /' conftest.$ac_ext >&5
40202
40203         wx_cv_func_statvfs=no
40204
40205 fi
40206
40207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40208
40209 fi
40210 { echo "$as_me:$LINENO: result: $wx_cv_func_statvfs" >&5
40211 echo "${ECHO_T}$wx_cv_func_statvfs" >&6; }
40212
40213     if test "$wx_cv_func_statvfs" = "yes"; then
40214                                                                 { echo "$as_me:$LINENO: checking for statvfs argument type" >&5
40215 echo $ECHO_N "checking for statvfs argument type... $ECHO_C" >&6; }
40216 if test "${wx_cv_type_statvfs_t+set}" = set; then
40217   echo $ECHO_N "(cached) $ECHO_C" >&6
40218 else
40219   ac_ext=cpp
40220 ac_cpp='$CXXCPP $CPPFLAGS'
40221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
40224
40225             cat >conftest.$ac_ext <<_ACEOF
40226 /* confdefs.h.  */
40227 _ACEOF
40228 cat confdefs.h >>conftest.$ac_ext
40229 cat >>conftest.$ac_ext <<_ACEOF
40230 /* end confdefs.h.  */
40231
40232                     #include <sys/statvfs.h>
40233
40234 int
40235 main ()
40236 {
40237
40238                     long l;
40239                     statvfs_t fs;
40240                     statvfs("/", &fs);
40241                     l = fs.f_bsize;
40242                     l += fs.f_blocks;
40243                     l += fs.f_bavail;
40244
40245   ;
40246   return 0;
40247 }
40248 _ACEOF
40249 rm -f conftest.$ac_objext
40250 if { (ac_try="$ac_compile"
40251 case "(($ac_try" in
40252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40253   *) ac_try_echo=$ac_try;;
40254 esac
40255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40256   (eval "$ac_compile") 2>conftest.er1
40257   ac_status=$?
40258   grep -v '^ *+' conftest.er1 >conftest.err
40259   rm -f conftest.er1
40260   cat conftest.err >&5
40261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40262   (exit $ac_status); } && {
40263          test -z "$ac_cxx_werror_flag" ||
40264          test ! -s conftest.err
40265        } && test -s conftest.$ac_objext; then
40266   wx_cv_type_statvfs_t=statvfs_t
40267 else
40268   echo "$as_me: failed program was:" >&5
40269 sed 's/^/| /' conftest.$ac_ext >&5
40270
40271
40272                     cat >conftest.$ac_ext <<_ACEOF
40273 /* confdefs.h.  */
40274 _ACEOF
40275 cat confdefs.h >>conftest.$ac_ext
40276 cat >>conftest.$ac_ext <<_ACEOF
40277 /* end confdefs.h.  */
40278
40279                             #include <sys/statvfs.h>
40280
40281 int
40282 main ()
40283 {
40284
40285                             long l;
40286                             struct statvfs fs;
40287                             statvfs("/", &fs);
40288                             l = fs.f_bsize;
40289                             l += fs.f_blocks;
40290                             l += fs.f_bavail;
40291
40292   ;
40293   return 0;
40294 }
40295 _ACEOF
40296 rm -f conftest.$ac_objext
40297 if { (ac_try="$ac_compile"
40298 case "(($ac_try" in
40299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40300   *) ac_try_echo=$ac_try;;
40301 esac
40302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40303   (eval "$ac_compile") 2>conftest.er1
40304   ac_status=$?
40305   grep -v '^ *+' conftest.er1 >conftest.err
40306   rm -f conftest.er1
40307   cat conftest.err >&5
40308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40309   (exit $ac_status); } && {
40310          test -z "$ac_cxx_werror_flag" ||
40311          test ! -s conftest.err
40312        } && test -s conftest.$ac_objext; then
40313   wx_cv_type_statvfs_t="struct statvfs"
40314 else
40315   echo "$as_me: failed program was:" >&5
40316 sed 's/^/| /' conftest.$ac_ext >&5
40317
40318         wx_cv_type_statvfs_t="unknown"
40319
40320 fi
40321
40322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40323
40324
40325 fi
40326
40327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40328             ac_ext=c
40329 ac_cpp='$CPP $CPPFLAGS'
40330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
40331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
40332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
40333
40334
40335 fi
40336 { echo "$as_me:$LINENO: result: $wx_cv_type_statvfs_t" >&5
40337 echo "${ECHO_T}$wx_cv_type_statvfs_t" >&6; }
40338
40339         if test "$wx_cv_type_statvfs_t" != "unknown"; then
40340             cat >>confdefs.h <<\_ACEOF
40341 #define HAVE_STATVFS 1
40342 _ACEOF
40343
40344         fi
40345     else
40346                 wx_cv_type_statvfs_t="unknown"
40347     fi
40348 fi
40349
40350 if test "$wx_cv_type_statvfs_t" != "unknown"; then
40351     cat >>confdefs.h <<_ACEOF
40352 #define WX_STATFS_T $wx_cv_type_statvfs_t
40353 _ACEOF
40354
40355 else
40356     { echo "$as_me:$LINENO: WARNING: wxGetDiskSpace() function won't work without statfs()" >&5
40357 echo "$as_me: WARNING: wxGetDiskSpace() function won't work without statfs()" >&2;}
40358 fi
40359
40360 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
40361
40362
40363 for ac_func in fcntl flock
40364 do
40365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40369   echo $ECHO_N "(cached) $ECHO_C" >&6
40370 else
40371   cat >conftest.$ac_ext <<_ACEOF
40372 /* confdefs.h.  */
40373 _ACEOF
40374 cat confdefs.h >>conftest.$ac_ext
40375 cat >>conftest.$ac_ext <<_ACEOF
40376 /* end confdefs.h.  */
40377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40378    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40379 #define $ac_func innocuous_$ac_func
40380
40381 /* System header to define __stub macros and hopefully few prototypes,
40382     which can conflict with char $ac_func (); below.
40383     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40384     <limits.h> exists even on freestanding compilers.  */
40385
40386 #ifdef __STDC__
40387 # include <limits.h>
40388 #else
40389 # include <assert.h>
40390 #endif
40391
40392 #undef $ac_func
40393
40394 /* Override any GCC internal prototype to avoid an error.
40395    Use char because int might match the return type of a GCC
40396    builtin and then its argument prototype would still apply.  */
40397 #ifdef __cplusplus
40398 extern "C"
40399 #endif
40400 char $ac_func ();
40401 /* The GNU C library defines this for functions which it implements
40402     to always fail with ENOSYS.  Some functions are actually named
40403     something starting with __ and the normal name is an alias.  */
40404 #if defined __stub_$ac_func || defined __stub___$ac_func
40405 choke me
40406 #endif
40407
40408 int
40409 main ()
40410 {
40411 return $ac_func ();
40412   ;
40413   return 0;
40414 }
40415 _ACEOF
40416 rm -f conftest.$ac_objext conftest$ac_exeext
40417 if { (ac_try="$ac_link"
40418 case "(($ac_try" in
40419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40420   *) ac_try_echo=$ac_try;;
40421 esac
40422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40423   (eval "$ac_link") 2>conftest.er1
40424   ac_status=$?
40425   grep -v '^ *+' conftest.er1 >conftest.err
40426   rm -f conftest.er1
40427   cat conftest.err >&5
40428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40429   (exit $ac_status); } && {
40430          test -z "$ac_c_werror_flag" ||
40431          test ! -s conftest.err
40432        } && test -s conftest$ac_exeext &&
40433        $as_test_x conftest$ac_exeext; then
40434   eval "$as_ac_var=yes"
40435 else
40436   echo "$as_me: failed program was:" >&5
40437 sed 's/^/| /' conftest.$ac_ext >&5
40438
40439         eval "$as_ac_var=no"
40440 fi
40441
40442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40443       conftest$ac_exeext conftest.$ac_ext
40444 fi
40445 ac_res=`eval echo '${'$as_ac_var'}'`
40446                { echo "$as_me:$LINENO: result: $ac_res" >&5
40447 echo "${ECHO_T}$ac_res" >&6; }
40448 if test `eval echo '${'$as_ac_var'}'` = yes; then
40449   cat >>confdefs.h <<_ACEOF
40450 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40451 _ACEOF
40452  break
40453 fi
40454 done
40455
40456
40457     if test "$ac_cv_func_fcntl" != "yes" -a "$ac_cv_func_flock" != "yes"; then
40458         { echo "$as_me:$LINENO: WARNING: wxSingleInstanceChecker not available" >&5
40459 echo "$as_me: WARNING: wxSingleInstanceChecker not available" >&2;}
40460         wxUSE_SNGLINST_CHECKER=no
40461     fi
40462 fi
40463
40464
40465 for ac_func in timegm
40466 do
40467 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40468 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40469 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40470 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40471   echo $ECHO_N "(cached) $ECHO_C" >&6
40472 else
40473   cat >conftest.$ac_ext <<_ACEOF
40474 /* confdefs.h.  */
40475 _ACEOF
40476 cat confdefs.h >>conftest.$ac_ext
40477 cat >>conftest.$ac_ext <<_ACEOF
40478 /* end confdefs.h.  */
40479 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40480    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40481 #define $ac_func innocuous_$ac_func
40482
40483 /* System header to define __stub macros and hopefully few prototypes,
40484     which can conflict with char $ac_func (); below.
40485     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40486     <limits.h> exists even on freestanding compilers.  */
40487
40488 #ifdef __STDC__
40489 # include <limits.h>
40490 #else
40491 # include <assert.h>
40492 #endif
40493
40494 #undef $ac_func
40495
40496 /* Override any GCC internal prototype to avoid an error.
40497    Use char because int might match the return type of a GCC
40498    builtin and then its argument prototype would still apply.  */
40499 #ifdef __cplusplus
40500 extern "C"
40501 #endif
40502 char $ac_func ();
40503 /* The GNU C library defines this for functions which it implements
40504     to always fail with ENOSYS.  Some functions are actually named
40505     something starting with __ and the normal name is an alias.  */
40506 #if defined __stub_$ac_func || defined __stub___$ac_func
40507 choke me
40508 #endif
40509
40510 int
40511 main ()
40512 {
40513 return $ac_func ();
40514   ;
40515   return 0;
40516 }
40517 _ACEOF
40518 rm -f conftest.$ac_objext conftest$ac_exeext
40519 if { (ac_try="$ac_link"
40520 case "(($ac_try" in
40521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40522   *) ac_try_echo=$ac_try;;
40523 esac
40524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40525   (eval "$ac_link") 2>conftest.er1
40526   ac_status=$?
40527   grep -v '^ *+' conftest.er1 >conftest.err
40528   rm -f conftest.er1
40529   cat conftest.err >&5
40530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40531   (exit $ac_status); } && {
40532          test -z "$ac_c_werror_flag" ||
40533          test ! -s conftest.err
40534        } && test -s conftest$ac_exeext &&
40535        $as_test_x conftest$ac_exeext; then
40536   eval "$as_ac_var=yes"
40537 else
40538   echo "$as_me: failed program was:" >&5
40539 sed 's/^/| /' conftest.$ac_ext >&5
40540
40541         eval "$as_ac_var=no"
40542 fi
40543
40544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40545       conftest$ac_exeext conftest.$ac_ext
40546 fi
40547 ac_res=`eval echo '${'$as_ac_var'}'`
40548                { echo "$as_me:$LINENO: result: $ac_res" >&5
40549 echo "${ECHO_T}$ac_res" >&6; }
40550 if test `eval echo '${'$as_ac_var'}'` = yes; then
40551   cat >>confdefs.h <<_ACEOF
40552 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40553 _ACEOF
40554
40555 fi
40556 done
40557
40558
40559
40560
40561 for ac_func in setenv putenv
40562 do
40563 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40564 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40565 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40566 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40567   echo $ECHO_N "(cached) $ECHO_C" >&6
40568 else
40569   cat >conftest.$ac_ext <<_ACEOF
40570 /* confdefs.h.  */
40571 _ACEOF
40572 cat confdefs.h >>conftest.$ac_ext
40573 cat >>conftest.$ac_ext <<_ACEOF
40574 /* end confdefs.h.  */
40575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40576    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40577 #define $ac_func innocuous_$ac_func
40578
40579 /* System header to define __stub macros and hopefully few prototypes,
40580     which can conflict with char $ac_func (); below.
40581     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40582     <limits.h> exists even on freestanding compilers.  */
40583
40584 #ifdef __STDC__
40585 # include <limits.h>
40586 #else
40587 # include <assert.h>
40588 #endif
40589
40590 #undef $ac_func
40591
40592 /* Override any GCC internal prototype to avoid an error.
40593    Use char because int might match the return type of a GCC
40594    builtin and then its argument prototype would still apply.  */
40595 #ifdef __cplusplus
40596 extern "C"
40597 #endif
40598 char $ac_func ();
40599 /* The GNU C library defines this for functions which it implements
40600     to always fail with ENOSYS.  Some functions are actually named
40601     something starting with __ and the normal name is an alias.  */
40602 #if defined __stub_$ac_func || defined __stub___$ac_func
40603 choke me
40604 #endif
40605
40606 int
40607 main ()
40608 {
40609 return $ac_func ();
40610   ;
40611   return 0;
40612 }
40613 _ACEOF
40614 rm -f conftest.$ac_objext conftest$ac_exeext
40615 if { (ac_try="$ac_link"
40616 case "(($ac_try" in
40617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40618   *) ac_try_echo=$ac_try;;
40619 esac
40620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40621   (eval "$ac_link") 2>conftest.er1
40622   ac_status=$?
40623   grep -v '^ *+' conftest.er1 >conftest.err
40624   rm -f conftest.er1
40625   cat conftest.err >&5
40626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40627   (exit $ac_status); } && {
40628          test -z "$ac_c_werror_flag" ||
40629          test ! -s conftest.err
40630        } && test -s conftest$ac_exeext &&
40631        $as_test_x conftest$ac_exeext; then
40632   eval "$as_ac_var=yes"
40633 else
40634   echo "$as_me: failed program was:" >&5
40635 sed 's/^/| /' conftest.$ac_ext >&5
40636
40637         eval "$as_ac_var=no"
40638 fi
40639
40640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40641       conftest$ac_exeext conftest.$ac_ext
40642 fi
40643 ac_res=`eval echo '${'$as_ac_var'}'`
40644                { echo "$as_me:$LINENO: result: $ac_res" >&5
40645 echo "${ECHO_T}$ac_res" >&6; }
40646 if test `eval echo '${'$as_ac_var'}'` = yes; then
40647   cat >>confdefs.h <<_ACEOF
40648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40649 _ACEOF
40650  break
40651 fi
40652 done
40653
40654
40655 HAVE_SOME_SLEEP_FUNC=0
40656 if test "$USE_BEOS" = 1; then
40657             cat >>confdefs.h <<\_ACEOF
40658 #define HAVE_SLEEP 1
40659 _ACEOF
40660
40661     HAVE_SOME_SLEEP_FUNC=1
40662 fi
40663
40664 if test "$USE_DARWIN" = 1; then
40665             cat >>confdefs.h <<\_ACEOF
40666 #define HAVE_USLEEP 1
40667 _ACEOF
40668
40669     HAVE_SOME_SLEEP_FUNC=1
40670 fi
40671
40672 if test "$HAVE_SOME_SLEEP_FUNC" != 1; then
40673         POSIX4_LINK=
40674
40675 for ac_func in nanosleep
40676 do
40677 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
40678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
40679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
40680 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40681   echo $ECHO_N "(cached) $ECHO_C" >&6
40682 else
40683   cat >conftest.$ac_ext <<_ACEOF
40684 /* confdefs.h.  */
40685 _ACEOF
40686 cat confdefs.h >>conftest.$ac_ext
40687 cat >>conftest.$ac_ext <<_ACEOF
40688 /* end confdefs.h.  */
40689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40690    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40691 #define $ac_func innocuous_$ac_func
40692
40693 /* System header to define __stub macros and hopefully few prototypes,
40694     which can conflict with char $ac_func (); below.
40695     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40696     <limits.h> exists even on freestanding compilers.  */
40697
40698 #ifdef __STDC__
40699 # include <limits.h>
40700 #else
40701 # include <assert.h>
40702 #endif
40703
40704 #undef $ac_func
40705
40706 /* Override any GCC internal prototype to avoid an error.
40707    Use char because int might match the return type of a GCC
40708    builtin and then its argument prototype would still apply.  */
40709 #ifdef __cplusplus
40710 extern "C"
40711 #endif
40712 char $ac_func ();
40713 /* The GNU C library defines this for functions which it implements
40714     to always fail with ENOSYS.  Some functions are actually named
40715     something starting with __ and the normal name is an alias.  */
40716 #if defined __stub_$ac_func || defined __stub___$ac_func
40717 choke me
40718 #endif
40719
40720 int
40721 main ()
40722 {
40723 return $ac_func ();
40724   ;
40725   return 0;
40726 }
40727 _ACEOF
40728 rm -f conftest.$ac_objext conftest$ac_exeext
40729 if { (ac_try="$ac_link"
40730 case "(($ac_try" in
40731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40732   *) ac_try_echo=$ac_try;;
40733 esac
40734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40735   (eval "$ac_link") 2>conftest.er1
40736   ac_status=$?
40737   grep -v '^ *+' conftest.er1 >conftest.err
40738   rm -f conftest.er1
40739   cat conftest.err >&5
40740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40741   (exit $ac_status); } && {
40742          test -z "$ac_c_werror_flag" ||
40743          test ! -s conftest.err
40744        } && test -s conftest$ac_exeext &&
40745        $as_test_x conftest$ac_exeext; then
40746   eval "$as_ac_var=yes"
40747 else
40748   echo "$as_me: failed program was:" >&5
40749 sed 's/^/| /' conftest.$ac_ext >&5
40750
40751         eval "$as_ac_var=no"
40752 fi
40753
40754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40755       conftest$ac_exeext conftest.$ac_ext
40756 fi
40757 ac_res=`eval echo '${'$as_ac_var'}'`
40758                { echo "$as_me:$LINENO: result: $ac_res" >&5
40759 echo "${ECHO_T}$ac_res" >&6; }
40760 if test `eval echo '${'$as_ac_var'}'` = yes; then
40761   cat >>confdefs.h <<_ACEOF
40762 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
40763 _ACEOF
40764  cat >>confdefs.h <<\_ACEOF
40765 #define HAVE_NANOSLEEP 1
40766 _ACEOF
40767
40768 else
40769
40770             { echo "$as_me:$LINENO: checking for nanosleep in -lposix4" >&5
40771 echo $ECHO_N "checking for nanosleep in -lposix4... $ECHO_C" >&6; }
40772 if test "${ac_cv_lib_posix4_nanosleep+set}" = set; then
40773   echo $ECHO_N "(cached) $ECHO_C" >&6
40774 else
40775   ac_check_lib_save_LIBS=$LIBS
40776 LIBS="-lposix4  $LIBS"
40777 cat >conftest.$ac_ext <<_ACEOF
40778 /* confdefs.h.  */
40779 _ACEOF
40780 cat confdefs.h >>conftest.$ac_ext
40781 cat >>conftest.$ac_ext <<_ACEOF
40782 /* end confdefs.h.  */
40783
40784 /* Override any GCC internal prototype to avoid an error.
40785    Use char because int might match the return type of a GCC
40786    builtin and then its argument prototype would still apply.  */
40787 #ifdef __cplusplus
40788 extern "C"
40789 #endif
40790 char nanosleep ();
40791 int
40792 main ()
40793 {
40794 return nanosleep ();
40795   ;
40796   return 0;
40797 }
40798 _ACEOF
40799 rm -f conftest.$ac_objext conftest$ac_exeext
40800 if { (ac_try="$ac_link"
40801 case "(($ac_try" in
40802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40803   *) ac_try_echo=$ac_try;;
40804 esac
40805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40806   (eval "$ac_link") 2>conftest.er1
40807   ac_status=$?
40808   grep -v '^ *+' conftest.er1 >conftest.err
40809   rm -f conftest.er1
40810   cat conftest.err >&5
40811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40812   (exit $ac_status); } && {
40813          test -z "$ac_c_werror_flag" ||
40814          test ! -s conftest.err
40815        } && test -s conftest$ac_exeext &&
40816        $as_test_x conftest$ac_exeext; then
40817   ac_cv_lib_posix4_nanosleep=yes
40818 else
40819   echo "$as_me: failed program was:" >&5
40820 sed 's/^/| /' conftest.$ac_ext >&5
40821
40822         ac_cv_lib_posix4_nanosleep=no
40823 fi
40824
40825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40826       conftest$ac_exeext conftest.$ac_ext
40827 LIBS=$ac_check_lib_save_LIBS
40828 fi
40829 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_nanosleep" >&5
40830 echo "${ECHO_T}$ac_cv_lib_posix4_nanosleep" >&6; }
40831 if test $ac_cv_lib_posix4_nanosleep = yes; then
40832
40833                     cat >>confdefs.h <<\_ACEOF
40834 #define HAVE_NANOSLEEP 1
40835 _ACEOF
40836
40837                     POSIX4_LINK=" -lposix4"
40838
40839 else
40840
40841
40842   for wx_func in usleep
40843   do
40844     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40845 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40846 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40847   echo $ECHO_N "(cached) $ECHO_C" >&6
40848 else
40849
40850         cat >conftest.$ac_ext <<_ACEOF
40851
40852             /* confdefs.h.  */
40853 _ACEOF
40854 cat confdefs.h >>conftest.$ac_ext
40855 cat >>conftest.$ac_ext <<_ACEOF
40856 /* end confdefs.h.  */
40857
40858
40859                 $ac_includes_default
40860
40861 int
40862 main ()
40863 {
40864
40865                 #ifndef $wx_func
40866                   &$wx_func;
40867                 #endif
40868
40869
40870   ;
40871   return 0;
40872 }
40873
40874 _ACEOF
40875 rm -f conftest.$ac_objext conftest$ac_exeext
40876 if { (ac_try="$ac_link"
40877 case "(($ac_try" in
40878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40879   *) ac_try_echo=$ac_try;;
40880 esac
40881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40882   (eval "$ac_link") 2>conftest.er1
40883   ac_status=$?
40884   grep -v '^ *+' conftest.er1 >conftest.err
40885   rm -f conftest.er1
40886   cat conftest.err >&5
40887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40888   (exit $ac_status); } && {
40889          test -z "$ac_c_werror_flag" ||
40890          test ! -s conftest.err
40891        } && test -s conftest$ac_exeext &&
40892        $as_test_x conftest$ac_exeext; then
40893   eval wx_cv_func_$wx_func=yes
40894 else
40895   echo "$as_me: failed program was:" >&5
40896 sed 's/^/| /' conftest.$ac_ext >&5
40897
40898         eval wx_cv_func_$wx_func=no
40899 fi
40900
40901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40902       conftest$ac_exeext conftest.$ac_ext
40903
40904 fi
40905 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
40906                { echo "$as_me:$LINENO: result: $ac_res" >&5
40907 echo "${ECHO_T}$ac_res" >&6; }
40908
40909     if eval test \$wx_cv_func_$wx_func = yes
40910     then
40911       cat >>confdefs.h <<_ACEOF
40912 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
40913 _ACEOF
40914
40915
40916     else
40917       :
40918       { echo "$as_me:$LINENO: WARNING: wxSleep() function will not work" >&5
40919 echo "$as_me: WARNING: wxSleep() function will not work" >&2;}
40920
40921     fi
40922   done
40923
40924
40925
40926 fi
40927
40928
40929
40930 fi
40931 done
40932
40933 fi
40934
40935
40936   for wx_func in uname
40937   do
40938     { echo "$as_me:$LINENO: checking for $wx_func" >&5
40939 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
40940 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
40941   echo $ECHO_N "(cached) $ECHO_C" >&6
40942 else
40943
40944         cat >conftest.$ac_ext <<_ACEOF
40945
40946             /* confdefs.h.  */
40947 _ACEOF
40948 cat confdefs.h >>conftest.$ac_ext
40949 cat >>conftest.$ac_ext <<_ACEOF
40950 /* end confdefs.h.  */
40951
40952                 #include <sys/utsname.h>
40953                 $ac_includes_default
40954
40955 int
40956 main ()
40957 {
40958
40959                 #ifndef $wx_func
40960                   &$wx_func;
40961                 #endif
40962
40963
40964   ;
40965   return 0;
40966 }
40967
40968 _ACEOF
40969 rm -f conftest.$ac_objext conftest$ac_exeext
40970 if { (ac_try="$ac_link"
40971 case "(($ac_try" in
40972   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40973   *) ac_try_echo=$ac_try;;
40974 esac
40975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
40976   (eval "$ac_link") 2>conftest.er1
40977   ac_status=$?
40978   grep -v '^ *+' conftest.er1 >conftest.err
40979   rm -f conftest.er1
40980   cat conftest.err >&5
40981   echo "$as_me:$LINENO: \$? = $ac_status" >&5
40982   (exit $ac_status); } && {
40983          test -z "$ac_c_werror_flag" ||
40984          test ! -s conftest.err
40985        } && test -s conftest$ac_exeext &&
40986        $as_test_x conftest$ac_exeext; then
40987   eval wx_cv_func_$wx_func=yes
40988 else
40989   echo "$as_me: failed program was:" >&5
40990 sed 's/^/| /' conftest.$ac_ext >&5
40991
40992         eval wx_cv_func_$wx_func=no
40993 fi
40994
40995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40996       conftest$ac_exeext conftest.$ac_ext
40997
40998 fi
40999 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41000                { echo "$as_me:$LINENO: result: $ac_res" >&5
41001 echo "${ECHO_T}$ac_res" >&6; }
41002
41003     if eval test \$wx_cv_func_$wx_func = yes
41004     then
41005       cat >>confdefs.h <<_ACEOF
41006 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41007 _ACEOF
41008
41009
41010     else
41011       :
41012
41013     fi
41014   done
41015
41016 if test "$wx_cv_func_uname" != yes; then
41017
41018   for wx_func in gethostname
41019   do
41020     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41021 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41022 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41023   echo $ECHO_N "(cached) $ECHO_C" >&6
41024 else
41025
41026         cat >conftest.$ac_ext <<_ACEOF
41027
41028             /* confdefs.h.  */
41029 _ACEOF
41030 cat confdefs.h >>conftest.$ac_ext
41031 cat >>conftest.$ac_ext <<_ACEOF
41032 /* end confdefs.h.  */
41033
41034
41035                 $ac_includes_default
41036
41037 int
41038 main ()
41039 {
41040
41041                 #ifndef $wx_func
41042                   &$wx_func;
41043                 #endif
41044
41045
41046   ;
41047   return 0;
41048 }
41049
41050 _ACEOF
41051 rm -f conftest.$ac_objext conftest$ac_exeext
41052 if { (ac_try="$ac_link"
41053 case "(($ac_try" in
41054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41055   *) ac_try_echo=$ac_try;;
41056 esac
41057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41058   (eval "$ac_link") 2>conftest.er1
41059   ac_status=$?
41060   grep -v '^ *+' conftest.er1 >conftest.err
41061   rm -f conftest.er1
41062   cat conftest.err >&5
41063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41064   (exit $ac_status); } && {
41065          test -z "$ac_c_werror_flag" ||
41066          test ! -s conftest.err
41067        } && test -s conftest$ac_exeext &&
41068        $as_test_x conftest$ac_exeext; then
41069   eval wx_cv_func_$wx_func=yes
41070 else
41071   echo "$as_me: failed program was:" >&5
41072 sed 's/^/| /' conftest.$ac_ext >&5
41073
41074         eval wx_cv_func_$wx_func=no
41075 fi
41076
41077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41078       conftest$ac_exeext conftest.$ac_ext
41079
41080 fi
41081 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41082                { echo "$as_me:$LINENO: result: $ac_res" >&5
41083 echo "${ECHO_T}$ac_res" >&6; }
41084
41085     if eval test \$wx_cv_func_$wx_func = yes
41086     then
41087       cat >>confdefs.h <<_ACEOF
41088 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41089 _ACEOF
41090
41091
41092     else
41093       :
41094
41095     fi
41096   done
41097
41098 fi
41099
41100
41101   for wx_func in strtok_r
41102   do
41103     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41104 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41105 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41106   echo $ECHO_N "(cached) $ECHO_C" >&6
41107 else
41108
41109         cat >conftest.$ac_ext <<_ACEOF
41110
41111             /* confdefs.h.  */
41112 _ACEOF
41113 cat confdefs.h >>conftest.$ac_ext
41114 cat >>conftest.$ac_ext <<_ACEOF
41115 /* end confdefs.h.  */
41116
41117                 #define _REENTRANT
41118                 $ac_includes_default
41119
41120 int
41121 main ()
41122 {
41123
41124                 #ifndef $wx_func
41125                   &$wx_func;
41126                 #endif
41127
41128
41129   ;
41130   return 0;
41131 }
41132
41133 _ACEOF
41134 rm -f conftest.$ac_objext conftest$ac_exeext
41135 if { (ac_try="$ac_link"
41136 case "(($ac_try" in
41137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41138   *) ac_try_echo=$ac_try;;
41139 esac
41140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41141   (eval "$ac_link") 2>conftest.er1
41142   ac_status=$?
41143   grep -v '^ *+' conftest.er1 >conftest.err
41144   rm -f conftest.er1
41145   cat conftest.err >&5
41146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41147   (exit $ac_status); } && {
41148          test -z "$ac_c_werror_flag" ||
41149          test ! -s conftest.err
41150        } && test -s conftest$ac_exeext &&
41151        $as_test_x conftest$ac_exeext; then
41152   eval wx_cv_func_$wx_func=yes
41153 else
41154   echo "$as_me: failed program was:" >&5
41155 sed 's/^/| /' conftest.$ac_ext >&5
41156
41157         eval wx_cv_func_$wx_func=no
41158 fi
41159
41160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41161       conftest$ac_exeext conftest.$ac_ext
41162
41163 fi
41164 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41165                { echo "$as_me:$LINENO: result: $ac_res" >&5
41166 echo "${ECHO_T}$ac_res" >&6; }
41167
41168     if eval test \$wx_cv_func_$wx_func = yes
41169     then
41170       cat >>confdefs.h <<_ACEOF
41171 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41172 _ACEOF
41173
41174
41175     else
41176       :
41177
41178     fi
41179   done
41180
41181
41182 INET_LINK=
41183
41184 for ac_func in inet_addr
41185 do
41186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41190   echo $ECHO_N "(cached) $ECHO_C" >&6
41191 else
41192   cat >conftest.$ac_ext <<_ACEOF
41193 /* confdefs.h.  */
41194 _ACEOF
41195 cat confdefs.h >>conftest.$ac_ext
41196 cat >>conftest.$ac_ext <<_ACEOF
41197 /* end confdefs.h.  */
41198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41199    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41200 #define $ac_func innocuous_$ac_func
41201
41202 /* System header to define __stub macros and hopefully few prototypes,
41203     which can conflict with char $ac_func (); below.
41204     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41205     <limits.h> exists even on freestanding compilers.  */
41206
41207 #ifdef __STDC__
41208 # include <limits.h>
41209 #else
41210 # include <assert.h>
41211 #endif
41212
41213 #undef $ac_func
41214
41215 /* Override any GCC internal prototype to avoid an error.
41216    Use char because int might match the return type of a GCC
41217    builtin and then its argument prototype would still apply.  */
41218 #ifdef __cplusplus
41219 extern "C"
41220 #endif
41221 char $ac_func ();
41222 /* The GNU C library defines this for functions which it implements
41223     to always fail with ENOSYS.  Some functions are actually named
41224     something starting with __ and the normal name is an alias.  */
41225 #if defined __stub_$ac_func || defined __stub___$ac_func
41226 choke me
41227 #endif
41228
41229 int
41230 main ()
41231 {
41232 return $ac_func ();
41233   ;
41234   return 0;
41235 }
41236 _ACEOF
41237 rm -f conftest.$ac_objext conftest$ac_exeext
41238 if { (ac_try="$ac_link"
41239 case "(($ac_try" in
41240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41241   *) ac_try_echo=$ac_try;;
41242 esac
41243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41244   (eval "$ac_link") 2>conftest.er1
41245   ac_status=$?
41246   grep -v '^ *+' conftest.er1 >conftest.err
41247   rm -f conftest.er1
41248   cat conftest.err >&5
41249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41250   (exit $ac_status); } && {
41251          test -z "$ac_c_werror_flag" ||
41252          test ! -s conftest.err
41253        } && test -s conftest$ac_exeext &&
41254        $as_test_x conftest$ac_exeext; then
41255   eval "$as_ac_var=yes"
41256 else
41257   echo "$as_me: failed program was:" >&5
41258 sed 's/^/| /' conftest.$ac_ext >&5
41259
41260         eval "$as_ac_var=no"
41261 fi
41262
41263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41264       conftest$ac_exeext conftest.$ac_ext
41265 fi
41266 ac_res=`eval echo '${'$as_ac_var'}'`
41267                { echo "$as_me:$LINENO: result: $ac_res" >&5
41268 echo "${ECHO_T}$ac_res" >&6; }
41269 if test `eval echo '${'$as_ac_var'}'` = yes; then
41270   cat >>confdefs.h <<_ACEOF
41271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41272 _ACEOF
41273  cat >>confdefs.h <<\_ACEOF
41274 #define HAVE_INET_ADDR 1
41275 _ACEOF
41276
41277 else
41278
41279         { echo "$as_me:$LINENO: checking for inet_addr in -lnsl" >&5
41280 echo $ECHO_N "checking for inet_addr in -lnsl... $ECHO_C" >&6; }
41281 if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then
41282   echo $ECHO_N "(cached) $ECHO_C" >&6
41283 else
41284   ac_check_lib_save_LIBS=$LIBS
41285 LIBS="-lnsl  $LIBS"
41286 cat >conftest.$ac_ext <<_ACEOF
41287 /* confdefs.h.  */
41288 _ACEOF
41289 cat confdefs.h >>conftest.$ac_ext
41290 cat >>conftest.$ac_ext <<_ACEOF
41291 /* end confdefs.h.  */
41292
41293 /* Override any GCC internal prototype to avoid an error.
41294    Use char because int might match the return type of a GCC
41295    builtin and then its argument prototype would still apply.  */
41296 #ifdef __cplusplus
41297 extern "C"
41298 #endif
41299 char inet_addr ();
41300 int
41301 main ()
41302 {
41303 return inet_addr ();
41304   ;
41305   return 0;
41306 }
41307 _ACEOF
41308 rm -f conftest.$ac_objext conftest$ac_exeext
41309 if { (ac_try="$ac_link"
41310 case "(($ac_try" in
41311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41312   *) ac_try_echo=$ac_try;;
41313 esac
41314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41315   (eval "$ac_link") 2>conftest.er1
41316   ac_status=$?
41317   grep -v '^ *+' conftest.er1 >conftest.err
41318   rm -f conftest.er1
41319   cat conftest.err >&5
41320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41321   (exit $ac_status); } && {
41322          test -z "$ac_c_werror_flag" ||
41323          test ! -s conftest.err
41324        } && test -s conftest$ac_exeext &&
41325        $as_test_x conftest$ac_exeext; then
41326   ac_cv_lib_nsl_inet_addr=yes
41327 else
41328   echo "$as_me: failed program was:" >&5
41329 sed 's/^/| /' conftest.$ac_ext >&5
41330
41331         ac_cv_lib_nsl_inet_addr=no
41332 fi
41333
41334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41335       conftest$ac_exeext conftest.$ac_ext
41336 LIBS=$ac_check_lib_save_LIBS
41337 fi
41338 { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_inet_addr" >&5
41339 echo "${ECHO_T}$ac_cv_lib_nsl_inet_addr" >&6; }
41340 if test $ac_cv_lib_nsl_inet_addr = yes; then
41341   INET_LINK="nsl"
41342 else
41343
41344                 { echo "$as_me:$LINENO: checking for inet_addr in -lresolv" >&5
41345 echo $ECHO_N "checking for inet_addr in -lresolv... $ECHO_C" >&6; }
41346 if test "${ac_cv_lib_resolv_inet_addr+set}" = set; then
41347   echo $ECHO_N "(cached) $ECHO_C" >&6
41348 else
41349   ac_check_lib_save_LIBS=$LIBS
41350 LIBS="-lresolv  $LIBS"
41351 cat >conftest.$ac_ext <<_ACEOF
41352 /* confdefs.h.  */
41353 _ACEOF
41354 cat confdefs.h >>conftest.$ac_ext
41355 cat >>conftest.$ac_ext <<_ACEOF
41356 /* end confdefs.h.  */
41357
41358 /* Override any GCC internal prototype to avoid an error.
41359    Use char because int might match the return type of a GCC
41360    builtin and then its argument prototype would still apply.  */
41361 #ifdef __cplusplus
41362 extern "C"
41363 #endif
41364 char inet_addr ();
41365 int
41366 main ()
41367 {
41368 return inet_addr ();
41369   ;
41370   return 0;
41371 }
41372 _ACEOF
41373 rm -f conftest.$ac_objext conftest$ac_exeext
41374 if { (ac_try="$ac_link"
41375 case "(($ac_try" in
41376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41377   *) ac_try_echo=$ac_try;;
41378 esac
41379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41380   (eval "$ac_link") 2>conftest.er1
41381   ac_status=$?
41382   grep -v '^ *+' conftest.er1 >conftest.err
41383   rm -f conftest.er1
41384   cat conftest.err >&5
41385   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41386   (exit $ac_status); } && {
41387          test -z "$ac_c_werror_flag" ||
41388          test ! -s conftest.err
41389        } && test -s conftest$ac_exeext &&
41390        $as_test_x conftest$ac_exeext; then
41391   ac_cv_lib_resolv_inet_addr=yes
41392 else
41393   echo "$as_me: failed program was:" >&5
41394 sed 's/^/| /' conftest.$ac_ext >&5
41395
41396         ac_cv_lib_resolv_inet_addr=no
41397 fi
41398
41399 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41400       conftest$ac_exeext conftest.$ac_ext
41401 LIBS=$ac_check_lib_save_LIBS
41402 fi
41403 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_inet_addr" >&5
41404 echo "${ECHO_T}$ac_cv_lib_resolv_inet_addr" >&6; }
41405 if test $ac_cv_lib_resolv_inet_addr = yes; then
41406   INET_LINK="resolv"
41407 else
41408
41409                         { echo "$as_me:$LINENO: checking for inet_addr in -lsocket" >&5
41410 echo $ECHO_N "checking for inet_addr in -lsocket... $ECHO_C" >&6; }
41411 if test "${ac_cv_lib_socket_inet_addr+set}" = set; then
41412   echo $ECHO_N "(cached) $ECHO_C" >&6
41413 else
41414   ac_check_lib_save_LIBS=$LIBS
41415 LIBS="-lsocket  $LIBS"
41416 cat >conftest.$ac_ext <<_ACEOF
41417 /* confdefs.h.  */
41418 _ACEOF
41419 cat confdefs.h >>conftest.$ac_ext
41420 cat >>conftest.$ac_ext <<_ACEOF
41421 /* end confdefs.h.  */
41422
41423 /* Override any GCC internal prototype to avoid an error.
41424    Use char because int might match the return type of a GCC
41425    builtin and then its argument prototype would still apply.  */
41426 #ifdef __cplusplus
41427 extern "C"
41428 #endif
41429 char inet_addr ();
41430 int
41431 main ()
41432 {
41433 return inet_addr ();
41434   ;
41435   return 0;
41436 }
41437 _ACEOF
41438 rm -f conftest.$ac_objext conftest$ac_exeext
41439 if { (ac_try="$ac_link"
41440 case "(($ac_try" in
41441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41442   *) ac_try_echo=$ac_try;;
41443 esac
41444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41445   (eval "$ac_link") 2>conftest.er1
41446   ac_status=$?
41447   grep -v '^ *+' conftest.er1 >conftest.err
41448   rm -f conftest.er1
41449   cat conftest.err >&5
41450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41451   (exit $ac_status); } && {
41452          test -z "$ac_c_werror_flag" ||
41453          test ! -s conftest.err
41454        } && test -s conftest$ac_exeext &&
41455        $as_test_x conftest$ac_exeext; then
41456   ac_cv_lib_socket_inet_addr=yes
41457 else
41458   echo "$as_me: failed program was:" >&5
41459 sed 's/^/| /' conftest.$ac_ext >&5
41460
41461         ac_cv_lib_socket_inet_addr=no
41462 fi
41463
41464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41465       conftest$ac_exeext conftest.$ac_ext
41466 LIBS=$ac_check_lib_save_LIBS
41467 fi
41468 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_inet_addr" >&5
41469 echo "${ECHO_T}$ac_cv_lib_socket_inet_addr" >&6; }
41470 if test $ac_cv_lib_socket_inet_addr = yes; then
41471   INET_LINK="socket"
41472
41473 fi
41474
41475
41476
41477 fi
41478
41479
41480
41481 fi
41482
41483
41484
41485 fi
41486 done
41487
41488
41489
41490 for ac_func in inet_aton
41491 do
41492 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
41493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
41494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
41495 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41496   echo $ECHO_N "(cached) $ECHO_C" >&6
41497 else
41498   cat >conftest.$ac_ext <<_ACEOF
41499 /* confdefs.h.  */
41500 _ACEOF
41501 cat confdefs.h >>conftest.$ac_ext
41502 cat >>conftest.$ac_ext <<_ACEOF
41503 /* end confdefs.h.  */
41504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41505    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41506 #define $ac_func innocuous_$ac_func
41507
41508 /* System header to define __stub macros and hopefully few prototypes,
41509     which can conflict with char $ac_func (); below.
41510     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41511     <limits.h> exists even on freestanding compilers.  */
41512
41513 #ifdef __STDC__
41514 # include <limits.h>
41515 #else
41516 # include <assert.h>
41517 #endif
41518
41519 #undef $ac_func
41520
41521 /* Override any GCC internal prototype to avoid an error.
41522    Use char because int might match the return type of a GCC
41523    builtin and then its argument prototype would still apply.  */
41524 #ifdef __cplusplus
41525 extern "C"
41526 #endif
41527 char $ac_func ();
41528 /* The GNU C library defines this for functions which it implements
41529     to always fail with ENOSYS.  Some functions are actually named
41530     something starting with __ and the normal name is an alias.  */
41531 #if defined __stub_$ac_func || defined __stub___$ac_func
41532 choke me
41533 #endif
41534
41535 int
41536 main ()
41537 {
41538 return $ac_func ();
41539   ;
41540   return 0;
41541 }
41542 _ACEOF
41543 rm -f conftest.$ac_objext conftest$ac_exeext
41544 if { (ac_try="$ac_link"
41545 case "(($ac_try" in
41546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41547   *) ac_try_echo=$ac_try;;
41548 esac
41549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41550   (eval "$ac_link") 2>conftest.er1
41551   ac_status=$?
41552   grep -v '^ *+' conftest.er1 >conftest.err
41553   rm -f conftest.er1
41554   cat conftest.err >&5
41555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556   (exit $ac_status); } && {
41557          test -z "$ac_c_werror_flag" ||
41558          test ! -s conftest.err
41559        } && test -s conftest$ac_exeext &&
41560        $as_test_x conftest$ac_exeext; then
41561   eval "$as_ac_var=yes"
41562 else
41563   echo "$as_me: failed program was:" >&5
41564 sed 's/^/| /' conftest.$ac_ext >&5
41565
41566         eval "$as_ac_var=no"
41567 fi
41568
41569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41570       conftest$ac_exeext conftest.$ac_ext
41571 fi
41572 ac_res=`eval echo '${'$as_ac_var'}'`
41573                { echo "$as_me:$LINENO: result: $ac_res" >&5
41574 echo "${ECHO_T}$ac_res" >&6; }
41575 if test `eval echo '${'$as_ac_var'}'` = yes; then
41576   cat >>confdefs.h <<_ACEOF
41577 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
41578 _ACEOF
41579  cat >>confdefs.h <<\_ACEOF
41580 #define HAVE_INET_ATON 1
41581 _ACEOF
41582
41583 else
41584
41585                         as_ac_Lib=`echo "ac_cv_lib_$INET_LINK''_inet_aton" | $as_tr_sh`
41586 { echo "$as_me:$LINENO: checking for inet_aton in -l$INET_LINK" >&5
41587 echo $ECHO_N "checking for inet_aton in -l$INET_LINK... $ECHO_C" >&6; }
41588 if { as_var=$as_ac_Lib; eval "test \"\${$as_var+set}\" = set"; }; then
41589   echo $ECHO_N "(cached) $ECHO_C" >&6
41590 else
41591   ac_check_lib_save_LIBS=$LIBS
41592 LIBS="-l$INET_LINK  $LIBS"
41593 cat >conftest.$ac_ext <<_ACEOF
41594 /* confdefs.h.  */
41595 _ACEOF
41596 cat confdefs.h >>conftest.$ac_ext
41597 cat >>conftest.$ac_ext <<_ACEOF
41598 /* end confdefs.h.  */
41599
41600 /* Override any GCC internal prototype to avoid an error.
41601    Use char because int might match the return type of a GCC
41602    builtin and then its argument prototype would still apply.  */
41603 #ifdef __cplusplus
41604 extern "C"
41605 #endif
41606 char inet_aton ();
41607 int
41608 main ()
41609 {
41610 return inet_aton ();
41611   ;
41612   return 0;
41613 }
41614 _ACEOF
41615 rm -f conftest.$ac_objext conftest$ac_exeext
41616 if { (ac_try="$ac_link"
41617 case "(($ac_try" in
41618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41619   *) ac_try_echo=$ac_try;;
41620 esac
41621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41622   (eval "$ac_link") 2>conftest.er1
41623   ac_status=$?
41624   grep -v '^ *+' conftest.er1 >conftest.err
41625   rm -f conftest.er1
41626   cat conftest.err >&5
41627   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41628   (exit $ac_status); } && {
41629          test -z "$ac_c_werror_flag" ||
41630          test ! -s conftest.err
41631        } && test -s conftest$ac_exeext &&
41632        $as_test_x conftest$ac_exeext; then
41633   eval "$as_ac_Lib=yes"
41634 else
41635   echo "$as_me: failed program was:" >&5
41636 sed 's/^/| /' conftest.$ac_ext >&5
41637
41638         eval "$as_ac_Lib=no"
41639 fi
41640
41641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41642       conftest$ac_exeext conftest.$ac_ext
41643 LIBS=$ac_check_lib_save_LIBS
41644 fi
41645 ac_res=`eval echo '${'$as_ac_Lib'}'`
41646                { echo "$as_me:$LINENO: result: $ac_res" >&5
41647 echo "${ECHO_T}$ac_res" >&6; }
41648 if test `eval echo '${'$as_ac_Lib'}'` = yes; then
41649   cat >>confdefs.h <<\_ACEOF
41650 #define HAVE_INET_ATON 1
41651 _ACEOF
41652
41653 fi
41654
41655
41656 fi
41657 done
41658
41659
41660 if test "x$INET_LINK" != "x"; then
41661     cat >>confdefs.h <<\_ACEOF
41662 #define HAVE_INET_ADDR 1
41663 _ACEOF
41664
41665     INET_LINK=" -l$INET_LINK"
41666 fi
41667
41668
41669   for wx_func in fdopen
41670   do
41671     { echo "$as_me:$LINENO: checking for $wx_func" >&5
41672 echo $ECHO_N "checking for $wx_func... $ECHO_C" >&6; }
41673 if { as_var=wx_cv_func_$wx_func; eval "test \"\${$as_var+set}\" = set"; }; then
41674   echo $ECHO_N "(cached) $ECHO_C" >&6
41675 else
41676
41677         cat >conftest.$ac_ext <<_ACEOF
41678
41679             /* confdefs.h.  */
41680 _ACEOF
41681 cat confdefs.h >>conftest.$ac_ext
41682 cat >>conftest.$ac_ext <<_ACEOF
41683 /* end confdefs.h.  */
41684
41685
41686                 $ac_includes_default
41687
41688 int
41689 main ()
41690 {
41691
41692                 #ifndef $wx_func
41693                   &$wx_func;
41694                 #endif
41695
41696
41697   ;
41698   return 0;
41699 }
41700
41701 _ACEOF
41702 rm -f conftest.$ac_objext conftest$ac_exeext
41703 if { (ac_try="$ac_link"
41704 case "(($ac_try" in
41705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41706   *) ac_try_echo=$ac_try;;
41707 esac
41708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41709   (eval "$ac_link") 2>conftest.er1
41710   ac_status=$?
41711   grep -v '^ *+' conftest.er1 >conftest.err
41712   rm -f conftest.er1
41713   cat conftest.err >&5
41714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41715   (exit $ac_status); } && {
41716          test -z "$ac_c_werror_flag" ||
41717          test ! -s conftest.err
41718        } && test -s conftest$ac_exeext &&
41719        $as_test_x conftest$ac_exeext; then
41720   eval wx_cv_func_$wx_func=yes
41721 else
41722   echo "$as_me: failed program was:" >&5
41723 sed 's/^/| /' conftest.$ac_ext >&5
41724
41725         eval wx_cv_func_$wx_func=no
41726 fi
41727
41728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41729       conftest$ac_exeext conftest.$ac_ext
41730
41731 fi
41732 ac_res=`eval echo '${'wx_cv_func_$wx_func'}'`
41733                { echo "$as_me:$LINENO: result: $ac_res" >&5
41734 echo "${ECHO_T}$ac_res" >&6; }
41735
41736     if eval test \$wx_cv_func_$wx_func = yes
41737     then
41738       cat >>confdefs.h <<_ACEOF
41739 #define HAVE_`echo $wx_func | tr 'a-z' 'A-Z'` 1
41740 _ACEOF
41741
41742
41743     else
41744       :
41745
41746     fi
41747   done
41748
41749
41750 fi
41751
41752
41753
41754 cat >confcache <<\_ACEOF
41755 # This file is a shell script that caches the results of configure
41756 # tests run on this system so they can be shared between configure
41757 # scripts and configure runs, see configure's option --config-cache.
41758 # It is not useful on other systems.  If it contains results you don't
41759 # want to keep, you may remove or edit it.
41760 #
41761 # config.status only pays attention to the cache file if you give it
41762 # the --recheck option to rerun configure.
41763 #
41764 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41765 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41766 # following values.
41767
41768 _ACEOF
41769
41770 # The following way of writing the cache mishandles newlines in values,
41771 # but we know of no workaround that is simple, portable, and efficient.
41772 # So, we kill variables containing newlines.
41773 # Ultrix sh set writes to stderr and can't be redirected directly,
41774 # and sets the high bit in the cache file unless we assign to the vars.
41775 (
41776   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41777     eval ac_val=\$$ac_var
41778     case $ac_val in #(
41779     *${as_nl}*)
41780       case $ac_var in #(
41781       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
41782 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
41783       esac
41784       case $ac_var in #(
41785       _ | IFS | as_nl) ;; #(
41786       *) $as_unset $ac_var ;;
41787       esac ;;
41788     esac
41789   done
41790
41791   (set) 2>&1 |
41792     case $as_nl`(ac_space=' '; set) 2>&1` in #(
41793     *${as_nl}ac_space=\ *)
41794       # `set' does not quote correctly, so add quotes (double-quote
41795       # substitution turns \\\\ into \\, and sed turns \\ into \).
41796       sed -n \
41797         "s/'/'\\\\''/g;
41798           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41799       ;; #(
41800     *)
41801       # `set' quotes correctly as required by POSIX, so do not add quotes.
41802       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41803       ;;
41804     esac |
41805     sort
41806 ) |
41807   sed '
41808      /^ac_cv_env_/b end
41809      t clear
41810      :clear
41811      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41812      t end
41813      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41814      :end' >>confcache
41815 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41816   if test -w "$cache_file"; then
41817     test "x$cache_file" != "x/dev/null" &&
41818       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
41819 echo "$as_me: updating cache $cache_file" >&6;}
41820     cat confcache >$cache_file
41821   else
41822     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
41823 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41824   fi
41825 fi
41826 rm -f confcache
41827
41828
41829 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
41830
41831
41832     THREADS_LINK=
41833     THREADS_CFLAGS=
41834
41835     if test "$wxUSE_THREADS" = "yes" ; then
41836         if test "$USE_BEOS" = 1; then
41837             { echo "$as_me:$LINENO: WARNING: BeOS threads are not yet supported... disabled" >&5
41838 echo "$as_me: WARNING: BeOS threads are not yet supported... disabled" >&2;}
41839             wxUSE_THREADS="no"
41840         fi
41841     fi
41842
41843     if test "$wxUSE_THREADS" = "yes" ; then
41844
41845
41846                                 THREAD_OPTS="-pthread"
41847         if test "x$SUNCXX" = xyes; then
41848             THREAD_OPTS="-mt lthread $THREAD_OPTS"
41849         fi
41850
41851         case "${host}" in
41852           *-*-solaris2* | *-*-sunos4* )
41853                 if test "x$GCC" = "xyes"; then
41854                                         THREAD_OPTS="-pthreads $THREAD_OPTS"
41855                 fi
41856                 ;;
41857           *-*-freebsd*)
41858                                                 THREAD_OPTS="-kthread lthread $THREAD_OPTS c_r"
41859                 ;;
41860           *-*-darwin* | *-*-cygwin* )
41861                                                 THREAD_OPTS=""
41862                 ;;
41863           *-*-aix*)
41864                                 THREAD_OPTS="pthreads"
41865                 ;;
41866           *-hp-hpux* )
41867                 if test "x$GCC" = "xyes"; then
41868                                         $CXX -dumpspecs | grep 'pthread:' >/dev/null ||
41869                         THREAD_OPTS=""
41870                 else
41871                                                             THREAD_OPTS="-mt"
41872                 fi
41873                 ;;
41874
41875           *-*-irix* )
41876                                                                 if test "x$GCC" = "xyes"; then
41877                     THREAD_OPTS=""
41878                 fi
41879                 ;;
41880
41881           *-*-*UnixWare*)
41882                                 if test "x$GCC" != "xyes"; then
41883                     THREAD_OPTS="-Ethread"
41884                 fi
41885                 ;;
41886         esac
41887
41888                                 THREAD_OPTS="$THREAD_OPTS pthread none"
41889
41890                 THREADS_OK=no
41891         for flag in $THREAD_OPTS; do
41892             case $flag in
41893                 none)
41894                     { echo "$as_me:$LINENO: checking whether pthreads work without any flags" >&5
41895 echo $ECHO_N "checking whether pthreads work without any flags... $ECHO_C" >&6; }
41896                     ;;
41897
41898                 -*)
41899                     { echo "$as_me:$LINENO: checking whether pthreads work with $flag" >&5
41900 echo $ECHO_N "checking whether pthreads work with $flag... $ECHO_C" >&6; }
41901                     THREADS_CFLAGS="$flag"
41902                     ;;
41903
41904                 *)
41905                     { echo "$as_me:$LINENO: checking for the pthreads library -l$flag" >&5
41906 echo $ECHO_N "checking for the pthreads library -l$flag... $ECHO_C" >&6; }
41907                     THREADS_LINK="-l$flag"
41908                     ;;
41909               esac
41910
41911               save_LIBS="$LIBS"
41912               save_CFLAGS="$CFLAGS"
41913               LIBS="$THREADS_LINK $LIBS"
41914               CFLAGS="$THREADS_CFLAGS $CFLAGS"
41915
41916               cat >conftest.$ac_ext <<_ACEOF
41917 /* confdefs.h.  */
41918 _ACEOF
41919 cat confdefs.h >>conftest.$ac_ext
41920 cat >>conftest.$ac_ext <<_ACEOF
41921 /* end confdefs.h.  */
41922 #include <pthread.h>
41923 int
41924 main ()
41925 {
41926 pthread_create(0,0,0,0);
41927   ;
41928   return 0;
41929 }
41930 _ACEOF
41931 rm -f conftest.$ac_objext conftest$ac_exeext
41932 if { (ac_try="$ac_link"
41933 case "(($ac_try" in
41934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41935   *) ac_try_echo=$ac_try;;
41936 esac
41937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
41938   (eval "$ac_link") 2>conftest.er1
41939   ac_status=$?
41940   grep -v '^ *+' conftest.er1 >conftest.err
41941   rm -f conftest.er1
41942   cat conftest.err >&5
41943   echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944   (exit $ac_status); } && {
41945          test -z "$ac_c_werror_flag" ||
41946          test ! -s conftest.err
41947        } && test -s conftest$ac_exeext &&
41948        $as_test_x conftest$ac_exeext; then
41949   THREADS_OK=yes
41950 else
41951   echo "$as_me: failed program was:" >&5
41952 sed 's/^/| /' conftest.$ac_ext >&5
41953
41954
41955 fi
41956
41957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41958       conftest$ac_exeext conftest.$ac_ext
41959
41960               LIBS="$save_LIBS"
41961               CFLAGS="$save_CFLAGS"
41962
41963               { echo "$as_me:$LINENO: result: $THREADS_OK" >&5
41964 echo "${ECHO_T}$THREADS_OK" >&6; }
41965               if test "x$THREADS_OK" = "xyes"; then
41966                       break;
41967               fi
41968
41969               THREADS_LINK=""
41970               THREADS_CFLAGS=""
41971       done
41972
41973       if test "x$THREADS_OK" != "xyes"; then
41974           wxUSE_THREADS=no
41975           { echo "$as_me:$LINENO: WARNING: No thread support on this system... disabled" >&5
41976 echo "$as_me: WARNING: No thread support on this system... disabled" >&2;}
41977       else
41978                               LDFLAGS="$THREADS_CFLAGS $LDFLAGS"
41979           LIBS="$THREADS_LINK $LIBS"
41980
41981           { echo "$as_me:$LINENO: checking if more special flags are required for pthreads" >&5
41982 echo $ECHO_N "checking if more special flags are required for pthreads... $ECHO_C" >&6; }
41983           flag=no
41984           case "${host}" in
41985             *-aix*)
41986                                                                                                                 LDFLAGS="-L/usr/lib/threads $LDFLAGS"
41987                 flag="-D_THREAD_SAFE"
41988                 ;;
41989             *-freebsd*)
41990                 flag="-D_THREAD_SAFE"
41991                 ;;
41992             *-hp-hpux* )
41993                 flag="-D_REENTRANT"
41994                 if test "x$GCC" != "xyes"; then
41995                                         flag="$flag -D_RWSTD_MULTI_THREAD"
41996                 fi
41997                 ;;
41998             *solaris* | alpha*-osf*)
41999                 flag="-D_REENTRANT"
42000                 ;;
42001           esac
42002           { echo "$as_me:$LINENO: result: ${flag}" >&5
42003 echo "${ECHO_T}${flag}" >&6; }
42004           if test "x$flag" != xno; then
42005               THREADS_CFLAGS="$THREADS_CFLAGS $flag"
42006           fi
42007
42008                     WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS $THREADS_CFLAGS"
42009       fi
42010     fi
42011
42012         if test "$wxUSE_THREADS" = "yes" ; then
42013
42014 for ac_func in thr_setconcurrency
42015 do
42016 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
42017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
42018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
42019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42020   echo $ECHO_N "(cached) $ECHO_C" >&6
42021 else
42022   cat >conftest.$ac_ext <<_ACEOF
42023 /* confdefs.h.  */
42024 _ACEOF
42025 cat confdefs.h >>conftest.$ac_ext
42026 cat >>conftest.$ac_ext <<_ACEOF
42027 /* end confdefs.h.  */
42028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42029    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42030 #define $ac_func innocuous_$ac_func
42031
42032 /* System header to define __stub macros and hopefully few prototypes,
42033     which can conflict with char $ac_func (); below.
42034     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42035     <limits.h> exists even on freestanding compilers.  */
42036
42037 #ifdef __STDC__
42038 # include <limits.h>
42039 #else
42040 # include <assert.h>
42041 #endif
42042
42043 #undef $ac_func
42044
42045 /* Override any GCC internal prototype to avoid an error.
42046    Use char because int might match the return type of a GCC
42047    builtin and then its argument prototype would still apply.  */
42048 #ifdef __cplusplus
42049 extern "C"
42050 #endif
42051 char $ac_func ();
42052 /* The GNU C library defines this for functions which it implements
42053     to always fail with ENOSYS.  Some functions are actually named
42054     something starting with __ and the normal name is an alias.  */
42055 #if defined __stub_$ac_func || defined __stub___$ac_func
42056 choke me
42057 #endif
42058
42059 int
42060 main ()
42061 {
42062 return $ac_func ();
42063   ;
42064   return 0;
42065 }
42066 _ACEOF
42067 rm -f conftest.$ac_objext conftest$ac_exeext
42068 if { (ac_try="$ac_link"
42069 case "(($ac_try" in
42070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42071   *) ac_try_echo=$ac_try;;
42072 esac
42073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42074   (eval "$ac_link") 2>conftest.er1
42075   ac_status=$?
42076   grep -v '^ *+' conftest.er1 >conftest.err
42077   rm -f conftest.er1
42078   cat conftest.err >&5
42079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42080   (exit $ac_status); } && {
42081          test -z "$ac_c_werror_flag" ||
42082          test ! -s conftest.err
42083        } && test -s conftest$ac_exeext &&
42084        $as_test_x conftest$ac_exeext; then
42085   eval "$as_ac_var=yes"
42086 else
42087   echo "$as_me: failed program was:" >&5
42088 sed 's/^/| /' conftest.$ac_ext >&5
42089
42090         eval "$as_ac_var=no"
42091 fi
42092
42093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42094       conftest$ac_exeext conftest.$ac_ext
42095 fi
42096 ac_res=`eval echo '${'$as_ac_var'}'`
42097                { echo "$as_me:$LINENO: result: $ac_res" >&5
42098 echo "${ECHO_T}$ac_res" >&6; }
42099 if test `eval echo '${'$as_ac_var'}'` = yes; then
42100   cat >>confdefs.h <<_ACEOF
42101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
42102 _ACEOF
42103
42104 fi
42105 done
42106
42107
42108                   { echo "$as_me:$LINENO: checking for pthread_cleanup_push/pop" >&5
42109 echo $ECHO_N "checking for pthread_cleanup_push/pop... $ECHO_C" >&6; }
42110 if test "${wx_cv_func_pthread_cleanup+set}" = set; then
42111   echo $ECHO_N "(cached) $ECHO_C" >&6
42112 else
42113
42114                                 ac_ext=cpp
42115 ac_cpp='$CXXCPP $CPPFLAGS'
42116 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42117 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42118 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
42119
42120         cat >conftest.$ac_ext <<_ACEOF
42121 /* confdefs.h.  */
42122 _ACEOF
42123 cat confdefs.h >>conftest.$ac_ext
42124 cat >>conftest.$ac_ext <<_ACEOF
42125 /* end confdefs.h.  */
42126 #include <pthread.h>
42127                void ThreadCleanupFunc(void *p);
42128
42129 int
42130 main ()
42131 {
42132
42133                 void *p;
42134                 pthread_cleanup_push(ThreadCleanupFunc, p);
42135                 pthread_cleanup_pop(0);
42136
42137   ;
42138   return 0;
42139 }
42140 _ACEOF
42141 rm -f conftest.$ac_objext
42142 if { (ac_try="$ac_compile"
42143 case "(($ac_try" in
42144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42145   *) ac_try_echo=$ac_try;;
42146 esac
42147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42148   (eval "$ac_compile") 2>conftest.er1
42149   ac_status=$?
42150   grep -v '^ *+' conftest.er1 >conftest.err
42151   rm -f conftest.er1
42152   cat conftest.err >&5
42153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42154   (exit $ac_status); } && {
42155          test -z "$ac_cxx_werror_flag" ||
42156          test ! -s conftest.err
42157        } && test -s conftest.$ac_objext; then
42158
42159                wx_cv_func_pthread_cleanup=yes
42160
42161 else
42162   echo "$as_me: failed program was:" >&5
42163 sed 's/^/| /' conftest.$ac_ext >&5
42164
42165
42166                wx_cv_func_pthread_cleanup=no
42167
42168
42169 fi
42170
42171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42172         ac_ext=c
42173 ac_cpp='$CPP $CPPFLAGS'
42174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
42175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
42176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
42177
42178
42179 fi
42180 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_cleanup" >&5
42181 echo "${ECHO_T}$wx_cv_func_pthread_cleanup" >&6; }
42182       if test "x$wx_cv_func_pthread_cleanup" = "xyes"; then
42183         cat >>confdefs.h <<\_ACEOF
42184 #define wxHAVE_PTHREAD_CLEANUP 1
42185 _ACEOF
42186
42187       fi
42188
42189
42190 for ac_header in sched.h
42191 do
42192 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
42193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
42194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
42195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
42196   echo $ECHO_N "(cached) $ECHO_C" >&6
42197 else
42198   cat >conftest.$ac_ext <<_ACEOF
42199 /* confdefs.h.  */
42200 _ACEOF
42201 cat confdefs.h >>conftest.$ac_ext
42202 cat >>conftest.$ac_ext <<_ACEOF
42203 /* end confdefs.h.  */
42204 $ac_includes_default
42205
42206 #include <$ac_header>
42207 _ACEOF
42208 rm -f conftest.$ac_objext
42209 if { (ac_try="$ac_compile"
42210 case "(($ac_try" in
42211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42212   *) ac_try_echo=$ac_try;;
42213 esac
42214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42215   (eval "$ac_compile") 2>conftest.er1
42216   ac_status=$?
42217   grep -v '^ *+' conftest.er1 >conftest.err
42218   rm -f conftest.er1
42219   cat conftest.err >&5
42220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42221   (exit $ac_status); } && {
42222          test -z "$ac_c_werror_flag" ||
42223          test ! -s conftest.err
42224        } && test -s conftest.$ac_objext; then
42225   eval "$as_ac_Header=yes"
42226 else
42227   echo "$as_me: failed program was:" >&5
42228 sed 's/^/| /' conftest.$ac_ext >&5
42229
42230         eval "$as_ac_Header=no"
42231 fi
42232
42233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42234 fi
42235 ac_res=`eval echo '${'$as_ac_Header'}'`
42236                { echo "$as_me:$LINENO: result: $ac_res" >&5
42237 echo "${ECHO_T}$ac_res" >&6; }
42238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
42239   cat >>confdefs.h <<_ACEOF
42240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
42241 _ACEOF
42242
42243 fi
42244
42245 done
42246
42247       if test "$ac_cv_header_sched_h" = "yes"; then
42248           { echo "$as_me:$LINENO: checking for sched_yield" >&5
42249 echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6; }
42250 if test "${ac_cv_func_sched_yield+set}" = set; then
42251   echo $ECHO_N "(cached) $ECHO_C" >&6
42252 else
42253   cat >conftest.$ac_ext <<_ACEOF
42254 /* confdefs.h.  */
42255 _ACEOF
42256 cat confdefs.h >>conftest.$ac_ext
42257 cat >>conftest.$ac_ext <<_ACEOF
42258 /* end confdefs.h.  */
42259 /* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
42260    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42261 #define sched_yield innocuous_sched_yield
42262
42263 /* System header to define __stub macros and hopefully few prototypes,
42264     which can conflict with char sched_yield (); below.
42265     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42266     <limits.h> exists even on freestanding compilers.  */
42267
42268 #ifdef __STDC__
42269 # include <limits.h>
42270 #else
42271 # include <assert.h>
42272 #endif
42273
42274 #undef sched_yield
42275
42276 /* Override any GCC internal prototype to avoid an error.
42277    Use char because int might match the return type of a GCC
42278    builtin and then its argument prototype would still apply.  */
42279 #ifdef __cplusplus
42280 extern "C"
42281 #endif
42282 char sched_yield ();
42283 /* The GNU C library defines this for functions which it implements
42284     to always fail with ENOSYS.  Some functions are actually named
42285     something starting with __ and the normal name is an alias.  */
42286 #if defined __stub_sched_yield || defined __stub___sched_yield
42287 choke me
42288 #endif
42289
42290 int
42291 main ()
42292 {
42293 return sched_yield ();
42294   ;
42295   return 0;
42296 }
42297 _ACEOF
42298 rm -f conftest.$ac_objext conftest$ac_exeext
42299 if { (ac_try="$ac_link"
42300 case "(($ac_try" in
42301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42302   *) ac_try_echo=$ac_try;;
42303 esac
42304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42305   (eval "$ac_link") 2>conftest.er1
42306   ac_status=$?
42307   grep -v '^ *+' conftest.er1 >conftest.err
42308   rm -f conftest.er1
42309   cat conftest.err >&5
42310   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42311   (exit $ac_status); } && {
42312          test -z "$ac_c_werror_flag" ||
42313          test ! -s conftest.err
42314        } && test -s conftest$ac_exeext &&
42315        $as_test_x conftest$ac_exeext; then
42316   ac_cv_func_sched_yield=yes
42317 else
42318   echo "$as_me: failed program was:" >&5
42319 sed 's/^/| /' conftest.$ac_ext >&5
42320
42321         ac_cv_func_sched_yield=no
42322 fi
42323
42324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42325       conftest$ac_exeext conftest.$ac_ext
42326 fi
42327 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
42328 echo "${ECHO_T}$ac_cv_func_sched_yield" >&6; }
42329 if test $ac_cv_func_sched_yield = yes; then
42330   cat >>confdefs.h <<\_ACEOF
42331 #define HAVE_SCHED_YIELD 1
42332 _ACEOF
42333
42334 else
42335
42336                 { echo "$as_me:$LINENO: checking for sched_yield in -lposix4" >&5
42337 echo $ECHO_N "checking for sched_yield in -lposix4... $ECHO_C" >&6; }
42338 if test "${ac_cv_lib_posix4_sched_yield+set}" = set; then
42339   echo $ECHO_N "(cached) $ECHO_C" >&6
42340 else
42341   ac_check_lib_save_LIBS=$LIBS
42342 LIBS="-lposix4  $LIBS"
42343 cat >conftest.$ac_ext <<_ACEOF
42344 /* confdefs.h.  */
42345 _ACEOF
42346 cat confdefs.h >>conftest.$ac_ext
42347 cat >>conftest.$ac_ext <<_ACEOF
42348 /* end confdefs.h.  */
42349
42350 /* Override any GCC internal prototype to avoid an error.
42351    Use char because int might match the return type of a GCC
42352    builtin and then its argument prototype would still apply.  */
42353 #ifdef __cplusplus
42354 extern "C"
42355 #endif
42356 char sched_yield ();
42357 int
42358 main ()
42359 {
42360 return sched_yield ();
42361   ;
42362   return 0;
42363 }
42364 _ACEOF
42365 rm -f conftest.$ac_objext conftest$ac_exeext
42366 if { (ac_try="$ac_link"
42367 case "(($ac_try" in
42368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42369   *) ac_try_echo=$ac_try;;
42370 esac
42371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42372   (eval "$ac_link") 2>conftest.er1
42373   ac_status=$?
42374   grep -v '^ *+' conftest.er1 >conftest.err
42375   rm -f conftest.er1
42376   cat conftest.err >&5
42377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42378   (exit $ac_status); } && {
42379          test -z "$ac_c_werror_flag" ||
42380          test ! -s conftest.err
42381        } && test -s conftest$ac_exeext &&
42382        $as_test_x conftest$ac_exeext; then
42383   ac_cv_lib_posix4_sched_yield=yes
42384 else
42385   echo "$as_me: failed program was:" >&5
42386 sed 's/^/| /' conftest.$ac_ext >&5
42387
42388         ac_cv_lib_posix4_sched_yield=no
42389 fi
42390
42391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42392       conftest$ac_exeext conftest.$ac_ext
42393 LIBS=$ac_check_lib_save_LIBS
42394 fi
42395 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_yield" >&5
42396 echo "${ECHO_T}$ac_cv_lib_posix4_sched_yield" >&6; }
42397 if test $ac_cv_lib_posix4_sched_yield = yes; then
42398   cat >>confdefs.h <<\_ACEOF
42399 #define HAVE_SCHED_YIELD 1
42400 _ACEOF
42401  POSIX4_LINK=" -lposix4"
42402 else
42403   { echo "$as_me:$LINENO: WARNING: wxThread::Yield will not work properly" >&5
42404 echo "$as_me: WARNING: wxThread::Yield will not work properly" >&2;}
42405
42406 fi
42407
42408
42409
42410 fi
42411
42412       fi
42413
42414                                           HAVE_PRIOR_FUNCS=0
42415       { echo "$as_me:$LINENO: checking for pthread_attr_getschedpolicy" >&5
42416 echo $ECHO_N "checking for pthread_attr_getschedpolicy... $ECHO_C" >&6; }
42417 if test "${ac_cv_func_pthread_attr_getschedpolicy+set}" = set; then
42418   echo $ECHO_N "(cached) $ECHO_C" >&6
42419 else
42420   cat >conftest.$ac_ext <<_ACEOF
42421 /* confdefs.h.  */
42422 _ACEOF
42423 cat confdefs.h >>conftest.$ac_ext
42424 cat >>conftest.$ac_ext <<_ACEOF
42425 /* end confdefs.h.  */
42426 /* Define pthread_attr_getschedpolicy to an innocuous variant, in case <limits.h> declares pthread_attr_getschedpolicy.
42427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42428 #define pthread_attr_getschedpolicy innocuous_pthread_attr_getschedpolicy
42429
42430 /* System header to define __stub macros and hopefully few prototypes,
42431     which can conflict with char pthread_attr_getschedpolicy (); below.
42432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42433     <limits.h> exists even on freestanding compilers.  */
42434
42435 #ifdef __STDC__
42436 # include <limits.h>
42437 #else
42438 # include <assert.h>
42439 #endif
42440
42441 #undef pthread_attr_getschedpolicy
42442
42443 /* Override any GCC internal prototype to avoid an error.
42444    Use char because int might match the return type of a GCC
42445    builtin and then its argument prototype would still apply.  */
42446 #ifdef __cplusplus
42447 extern "C"
42448 #endif
42449 char pthread_attr_getschedpolicy ();
42450 /* The GNU C library defines this for functions which it implements
42451     to always fail with ENOSYS.  Some functions are actually named
42452     something starting with __ and the normal name is an alias.  */
42453 #if defined __stub_pthread_attr_getschedpolicy || defined __stub___pthread_attr_getschedpolicy
42454 choke me
42455 #endif
42456
42457 int
42458 main ()
42459 {
42460 return pthread_attr_getschedpolicy ();
42461   ;
42462   return 0;
42463 }
42464 _ACEOF
42465 rm -f conftest.$ac_objext conftest$ac_exeext
42466 if { (ac_try="$ac_link"
42467 case "(($ac_try" in
42468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42469   *) ac_try_echo=$ac_try;;
42470 esac
42471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42472   (eval "$ac_link") 2>conftest.er1
42473   ac_status=$?
42474   grep -v '^ *+' conftest.er1 >conftest.err
42475   rm -f conftest.er1
42476   cat conftest.err >&5
42477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42478   (exit $ac_status); } && {
42479          test -z "$ac_c_werror_flag" ||
42480          test ! -s conftest.err
42481        } && test -s conftest$ac_exeext &&
42482        $as_test_x conftest$ac_exeext; then
42483   ac_cv_func_pthread_attr_getschedpolicy=yes
42484 else
42485   echo "$as_me: failed program was:" >&5
42486 sed 's/^/| /' conftest.$ac_ext >&5
42487
42488         ac_cv_func_pthread_attr_getschedpolicy=no
42489 fi
42490
42491 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42492       conftest$ac_exeext conftest.$ac_ext
42493 fi
42494 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_getschedpolicy" >&5
42495 echo "${ECHO_T}$ac_cv_func_pthread_attr_getschedpolicy" >&6; }
42496 if test $ac_cv_func_pthread_attr_getschedpolicy = yes; then
42497   { echo "$as_me:$LINENO: checking for pthread_attr_setschedparam" >&5
42498 echo $ECHO_N "checking for pthread_attr_setschedparam... $ECHO_C" >&6; }
42499 if test "${ac_cv_func_pthread_attr_setschedparam+set}" = set; then
42500   echo $ECHO_N "(cached) $ECHO_C" >&6
42501 else
42502   cat >conftest.$ac_ext <<_ACEOF
42503 /* confdefs.h.  */
42504 _ACEOF
42505 cat confdefs.h >>conftest.$ac_ext
42506 cat >>conftest.$ac_ext <<_ACEOF
42507 /* end confdefs.h.  */
42508 /* Define pthread_attr_setschedparam to an innocuous variant, in case <limits.h> declares pthread_attr_setschedparam.
42509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42510 #define pthread_attr_setschedparam innocuous_pthread_attr_setschedparam
42511
42512 /* System header to define __stub macros and hopefully few prototypes,
42513     which can conflict with char pthread_attr_setschedparam (); below.
42514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42515     <limits.h> exists even on freestanding compilers.  */
42516
42517 #ifdef __STDC__
42518 # include <limits.h>
42519 #else
42520 # include <assert.h>
42521 #endif
42522
42523 #undef pthread_attr_setschedparam
42524
42525 /* Override any GCC internal prototype to avoid an error.
42526    Use char because int might match the return type of a GCC
42527    builtin and then its argument prototype would still apply.  */
42528 #ifdef __cplusplus
42529 extern "C"
42530 #endif
42531 char pthread_attr_setschedparam ();
42532 /* The GNU C library defines this for functions which it implements
42533     to always fail with ENOSYS.  Some functions are actually named
42534     something starting with __ and the normal name is an alias.  */
42535 #if defined __stub_pthread_attr_setschedparam || defined __stub___pthread_attr_setschedparam
42536 choke me
42537 #endif
42538
42539 int
42540 main ()
42541 {
42542 return pthread_attr_setschedparam ();
42543   ;
42544   return 0;
42545 }
42546 _ACEOF
42547 rm -f conftest.$ac_objext conftest$ac_exeext
42548 if { (ac_try="$ac_link"
42549 case "(($ac_try" in
42550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42551   *) ac_try_echo=$ac_try;;
42552 esac
42553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42554   (eval "$ac_link") 2>conftest.er1
42555   ac_status=$?
42556   grep -v '^ *+' conftest.er1 >conftest.err
42557   rm -f conftest.er1
42558   cat conftest.err >&5
42559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42560   (exit $ac_status); } && {
42561          test -z "$ac_c_werror_flag" ||
42562          test ! -s conftest.err
42563        } && test -s conftest$ac_exeext &&
42564        $as_test_x conftest$ac_exeext; then
42565   ac_cv_func_pthread_attr_setschedparam=yes
42566 else
42567   echo "$as_me: failed program was:" >&5
42568 sed 's/^/| /' conftest.$ac_ext >&5
42569
42570         ac_cv_func_pthread_attr_setschedparam=no
42571 fi
42572
42573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42574       conftest$ac_exeext conftest.$ac_ext
42575 fi
42576 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setschedparam" >&5
42577 echo "${ECHO_T}$ac_cv_func_pthread_attr_setschedparam" >&6; }
42578 if test $ac_cv_func_pthread_attr_setschedparam = yes; then
42579   { echo "$as_me:$LINENO: checking for sched_get_priority_max" >&5
42580 echo $ECHO_N "checking for sched_get_priority_max... $ECHO_C" >&6; }
42581 if test "${ac_cv_func_sched_get_priority_max+set}" = set; then
42582   echo $ECHO_N "(cached) $ECHO_C" >&6
42583 else
42584   cat >conftest.$ac_ext <<_ACEOF
42585 /* confdefs.h.  */
42586 _ACEOF
42587 cat confdefs.h >>conftest.$ac_ext
42588 cat >>conftest.$ac_ext <<_ACEOF
42589 /* end confdefs.h.  */
42590 /* Define sched_get_priority_max to an innocuous variant, in case <limits.h> declares sched_get_priority_max.
42591    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42592 #define sched_get_priority_max innocuous_sched_get_priority_max
42593
42594 /* System header to define __stub macros and hopefully few prototypes,
42595     which can conflict with char sched_get_priority_max (); below.
42596     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42597     <limits.h> exists even on freestanding compilers.  */
42598
42599 #ifdef __STDC__
42600 # include <limits.h>
42601 #else
42602 # include <assert.h>
42603 #endif
42604
42605 #undef sched_get_priority_max
42606
42607 /* Override any GCC internal prototype to avoid an error.
42608    Use char because int might match the return type of a GCC
42609    builtin and then its argument prototype would still apply.  */
42610 #ifdef __cplusplus
42611 extern "C"
42612 #endif
42613 char sched_get_priority_max ();
42614 /* The GNU C library defines this for functions which it implements
42615     to always fail with ENOSYS.  Some functions are actually named
42616     something starting with __ and the normal name is an alias.  */
42617 #if defined __stub_sched_get_priority_max || defined __stub___sched_get_priority_max
42618 choke me
42619 #endif
42620
42621 int
42622 main ()
42623 {
42624 return sched_get_priority_max ();
42625   ;
42626   return 0;
42627 }
42628 _ACEOF
42629 rm -f conftest.$ac_objext conftest$ac_exeext
42630 if { (ac_try="$ac_link"
42631 case "(($ac_try" in
42632   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42633   *) ac_try_echo=$ac_try;;
42634 esac
42635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42636   (eval "$ac_link") 2>conftest.er1
42637   ac_status=$?
42638   grep -v '^ *+' conftest.er1 >conftest.err
42639   rm -f conftest.er1
42640   cat conftest.err >&5
42641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42642   (exit $ac_status); } && {
42643          test -z "$ac_c_werror_flag" ||
42644          test ! -s conftest.err
42645        } && test -s conftest$ac_exeext &&
42646        $as_test_x conftest$ac_exeext; then
42647   ac_cv_func_sched_get_priority_max=yes
42648 else
42649   echo "$as_me: failed program was:" >&5
42650 sed 's/^/| /' conftest.$ac_ext >&5
42651
42652         ac_cv_func_sched_get_priority_max=no
42653 fi
42654
42655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42656       conftest$ac_exeext conftest.$ac_ext
42657 fi
42658 { echo "$as_me:$LINENO: result: $ac_cv_func_sched_get_priority_max" >&5
42659 echo "${ECHO_T}$ac_cv_func_sched_get_priority_max" >&6; }
42660 if test $ac_cv_func_sched_get_priority_max = yes; then
42661   HAVE_PRIOR_FUNCS=1
42662 else
42663   { echo "$as_me:$LINENO: checking for sched_get_priority_max in -lposix4" >&5
42664 echo $ECHO_N "checking for sched_get_priority_max in -lposix4... $ECHO_C" >&6; }
42665 if test "${ac_cv_lib_posix4_sched_get_priority_max+set}" = set; then
42666   echo $ECHO_N "(cached) $ECHO_C" >&6
42667 else
42668   ac_check_lib_save_LIBS=$LIBS
42669 LIBS="-lposix4  $LIBS"
42670 cat >conftest.$ac_ext <<_ACEOF
42671 /* confdefs.h.  */
42672 _ACEOF
42673 cat confdefs.h >>conftest.$ac_ext
42674 cat >>conftest.$ac_ext <<_ACEOF
42675 /* end confdefs.h.  */
42676
42677 /* Override any GCC internal prototype to avoid an error.
42678    Use char because int might match the return type of a GCC
42679    builtin and then its argument prototype would still apply.  */
42680 #ifdef __cplusplus
42681 extern "C"
42682 #endif
42683 char sched_get_priority_max ();
42684 int
42685 main ()
42686 {
42687 return sched_get_priority_max ();
42688   ;
42689   return 0;
42690 }
42691 _ACEOF
42692 rm -f conftest.$ac_objext conftest$ac_exeext
42693 if { (ac_try="$ac_link"
42694 case "(($ac_try" in
42695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42696   *) ac_try_echo=$ac_try;;
42697 esac
42698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42699   (eval "$ac_link") 2>conftest.er1
42700   ac_status=$?
42701   grep -v '^ *+' conftest.er1 >conftest.err
42702   rm -f conftest.er1
42703   cat conftest.err >&5
42704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42705   (exit $ac_status); } && {
42706          test -z "$ac_c_werror_flag" ||
42707          test ! -s conftest.err
42708        } && test -s conftest$ac_exeext &&
42709        $as_test_x conftest$ac_exeext; then
42710   ac_cv_lib_posix4_sched_get_priority_max=yes
42711 else
42712   echo "$as_me: failed program was:" >&5
42713 sed 's/^/| /' conftest.$ac_ext >&5
42714
42715         ac_cv_lib_posix4_sched_get_priority_max=no
42716 fi
42717
42718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42719       conftest$ac_exeext conftest.$ac_ext
42720 LIBS=$ac_check_lib_save_LIBS
42721 fi
42722 { echo "$as_me:$LINENO: result: $ac_cv_lib_posix4_sched_get_priority_max" >&5
42723 echo "${ECHO_T}$ac_cv_lib_posix4_sched_get_priority_max" >&6; }
42724 if test $ac_cv_lib_posix4_sched_get_priority_max = yes; then
42725
42726                                 HAVE_PRIOR_FUNCS=1
42727                                 POSIX4_LINK=" -lposix4"
42728
42729 fi
42730
42731
42732 fi
42733
42734
42735 fi
42736
42737
42738 fi
42739
42740
42741       if test "$HAVE_PRIOR_FUNCS" = 1; then
42742         cat >>confdefs.h <<\_ACEOF
42743 #define HAVE_THREAD_PRIORITY_FUNCTIONS 1
42744 _ACEOF
42745
42746       else
42747         { echo "$as_me:$LINENO: WARNING: Setting thread priority will not work" >&5
42748 echo "$as_me: WARNING: Setting thread priority will not work" >&2;}
42749       fi
42750
42751       { echo "$as_me:$LINENO: checking for pthread_cancel" >&5
42752 echo $ECHO_N "checking for pthread_cancel... $ECHO_C" >&6; }
42753 if test "${ac_cv_func_pthread_cancel+set}" = set; then
42754   echo $ECHO_N "(cached) $ECHO_C" >&6
42755 else
42756   cat >conftest.$ac_ext <<_ACEOF
42757 /* confdefs.h.  */
42758 _ACEOF
42759 cat confdefs.h >>conftest.$ac_ext
42760 cat >>conftest.$ac_ext <<_ACEOF
42761 /* end confdefs.h.  */
42762 /* Define pthread_cancel to an innocuous variant, in case <limits.h> declares pthread_cancel.
42763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42764 #define pthread_cancel innocuous_pthread_cancel
42765
42766 /* System header to define __stub macros and hopefully few prototypes,
42767     which can conflict with char pthread_cancel (); below.
42768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42769     <limits.h> exists even on freestanding compilers.  */
42770
42771 #ifdef __STDC__
42772 # include <limits.h>
42773 #else
42774 # include <assert.h>
42775 #endif
42776
42777 #undef pthread_cancel
42778
42779 /* Override any GCC internal prototype to avoid an error.
42780    Use char because int might match the return type of a GCC
42781    builtin and then its argument prototype would still apply.  */
42782 #ifdef __cplusplus
42783 extern "C"
42784 #endif
42785 char pthread_cancel ();
42786 /* The GNU C library defines this for functions which it implements
42787     to always fail with ENOSYS.  Some functions are actually named
42788     something starting with __ and the normal name is an alias.  */
42789 #if defined __stub_pthread_cancel || defined __stub___pthread_cancel
42790 choke me
42791 #endif
42792
42793 int
42794 main ()
42795 {
42796 return pthread_cancel ();
42797   ;
42798   return 0;
42799 }
42800 _ACEOF
42801 rm -f conftest.$ac_objext conftest$ac_exeext
42802 if { (ac_try="$ac_link"
42803 case "(($ac_try" in
42804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42805   *) ac_try_echo=$ac_try;;
42806 esac
42807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42808   (eval "$ac_link") 2>conftest.er1
42809   ac_status=$?
42810   grep -v '^ *+' conftest.er1 >conftest.err
42811   rm -f conftest.er1
42812   cat conftest.err >&5
42813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42814   (exit $ac_status); } && {
42815          test -z "$ac_c_werror_flag" ||
42816          test ! -s conftest.err
42817        } && test -s conftest$ac_exeext &&
42818        $as_test_x conftest$ac_exeext; then
42819   ac_cv_func_pthread_cancel=yes
42820 else
42821   echo "$as_me: failed program was:" >&5
42822 sed 's/^/| /' conftest.$ac_ext >&5
42823
42824         ac_cv_func_pthread_cancel=no
42825 fi
42826
42827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42828       conftest$ac_exeext conftest.$ac_ext
42829 fi
42830 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_cancel" >&5
42831 echo "${ECHO_T}$ac_cv_func_pthread_cancel" >&6; }
42832 if test $ac_cv_func_pthread_cancel = yes; then
42833   cat >>confdefs.h <<\_ACEOF
42834 #define HAVE_PTHREAD_CANCEL 1
42835 _ACEOF
42836
42837 else
42838   { echo "$as_me:$LINENO: WARNING: wxThread::Kill() will not work properly" >&5
42839 echo "$as_me: WARNING: wxThread::Kill() will not work properly" >&2;}
42840 fi
42841
42842
42843       { echo "$as_me:$LINENO: checking for pthread_mutex_timedlock" >&5
42844 echo $ECHO_N "checking for pthread_mutex_timedlock... $ECHO_C" >&6; }
42845 if test "${ac_cv_func_pthread_mutex_timedlock+set}" = set; then
42846   echo $ECHO_N "(cached) $ECHO_C" >&6
42847 else
42848   cat >conftest.$ac_ext <<_ACEOF
42849 /* confdefs.h.  */
42850 _ACEOF
42851 cat confdefs.h >>conftest.$ac_ext
42852 cat >>conftest.$ac_ext <<_ACEOF
42853 /* end confdefs.h.  */
42854 /* Define pthread_mutex_timedlock to an innocuous variant, in case <limits.h> declares pthread_mutex_timedlock.
42855    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42856 #define pthread_mutex_timedlock innocuous_pthread_mutex_timedlock
42857
42858 /* System header to define __stub macros and hopefully few prototypes,
42859     which can conflict with char pthread_mutex_timedlock (); below.
42860     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42861     <limits.h> exists even on freestanding compilers.  */
42862
42863 #ifdef __STDC__
42864 # include <limits.h>
42865 #else
42866 # include <assert.h>
42867 #endif
42868
42869 #undef pthread_mutex_timedlock
42870
42871 /* Override any GCC internal prototype to avoid an error.
42872    Use char because int might match the return type of a GCC
42873    builtin and then its argument prototype would still apply.  */
42874 #ifdef __cplusplus
42875 extern "C"
42876 #endif
42877 char pthread_mutex_timedlock ();
42878 /* The GNU C library defines this for functions which it implements
42879     to always fail with ENOSYS.  Some functions are actually named
42880     something starting with __ and the normal name is an alias.  */
42881 #if defined __stub_pthread_mutex_timedlock || defined __stub___pthread_mutex_timedlock
42882 choke me
42883 #endif
42884
42885 int
42886 main ()
42887 {
42888 return pthread_mutex_timedlock ();
42889   ;
42890   return 0;
42891 }
42892 _ACEOF
42893 rm -f conftest.$ac_objext conftest$ac_exeext
42894 if { (ac_try="$ac_link"
42895 case "(($ac_try" in
42896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42897   *) ac_try_echo=$ac_try;;
42898 esac
42899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42900   (eval "$ac_link") 2>conftest.er1
42901   ac_status=$?
42902   grep -v '^ *+' conftest.er1 >conftest.err
42903   rm -f conftest.er1
42904   cat conftest.err >&5
42905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42906   (exit $ac_status); } && {
42907          test -z "$ac_c_werror_flag" ||
42908          test ! -s conftest.err
42909        } && test -s conftest$ac_exeext &&
42910        $as_test_x conftest$ac_exeext; then
42911   ac_cv_func_pthread_mutex_timedlock=yes
42912 else
42913   echo "$as_me: failed program was:" >&5
42914 sed 's/^/| /' conftest.$ac_ext >&5
42915
42916         ac_cv_func_pthread_mutex_timedlock=no
42917 fi
42918
42919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42920       conftest$ac_exeext conftest.$ac_ext
42921 fi
42922 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_mutex_timedlock" >&5
42923 echo "${ECHO_T}$ac_cv_func_pthread_mutex_timedlock" >&6; }
42924 if test $ac_cv_func_pthread_mutex_timedlock = yes; then
42925   cat >>confdefs.h <<\_ACEOF
42926 #define HAVE_PTHREAD_MUTEX_TIMEDLOCK 1
42927 _ACEOF
42928
42929 else
42930   { echo "$as_me:$LINENO: WARNING: wxMutex::LockTimeout() will not work" >&5
42931 echo "$as_me: WARNING: wxMutex::LockTimeout() will not work" >&2;}
42932 fi
42933
42934
42935       { echo "$as_me:$LINENO: checking for pthread_attr_setstacksize" >&5
42936 echo $ECHO_N "checking for pthread_attr_setstacksize... $ECHO_C" >&6; }
42937 if test "${ac_cv_func_pthread_attr_setstacksize+set}" = set; then
42938   echo $ECHO_N "(cached) $ECHO_C" >&6
42939 else
42940   cat >conftest.$ac_ext <<_ACEOF
42941 /* confdefs.h.  */
42942 _ACEOF
42943 cat confdefs.h >>conftest.$ac_ext
42944 cat >>conftest.$ac_ext <<_ACEOF
42945 /* end confdefs.h.  */
42946 /* Define pthread_attr_setstacksize to an innocuous variant, in case <limits.h> declares pthread_attr_setstacksize.
42947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42948 #define pthread_attr_setstacksize innocuous_pthread_attr_setstacksize
42949
42950 /* System header to define __stub macros and hopefully few prototypes,
42951     which can conflict with char pthread_attr_setstacksize (); below.
42952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42953     <limits.h> exists even on freestanding compilers.  */
42954
42955 #ifdef __STDC__
42956 # include <limits.h>
42957 #else
42958 # include <assert.h>
42959 #endif
42960
42961 #undef pthread_attr_setstacksize
42962
42963 /* Override any GCC internal prototype to avoid an error.
42964    Use char because int might match the return type of a GCC
42965    builtin and then its argument prototype would still apply.  */
42966 #ifdef __cplusplus
42967 extern "C"
42968 #endif
42969 char pthread_attr_setstacksize ();
42970 /* The GNU C library defines this for functions which it implements
42971     to always fail with ENOSYS.  Some functions are actually named
42972     something starting with __ and the normal name is an alias.  */
42973 #if defined __stub_pthread_attr_setstacksize || defined __stub___pthread_attr_setstacksize
42974 choke me
42975 #endif
42976
42977 int
42978 main ()
42979 {
42980 return pthread_attr_setstacksize ();
42981   ;
42982   return 0;
42983 }
42984 _ACEOF
42985 rm -f conftest.$ac_objext conftest$ac_exeext
42986 if { (ac_try="$ac_link"
42987 case "(($ac_try" in
42988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42989   *) ac_try_echo=$ac_try;;
42990 esac
42991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
42992   (eval "$ac_link") 2>conftest.er1
42993   ac_status=$?
42994   grep -v '^ *+' conftest.er1 >conftest.err
42995   rm -f conftest.er1
42996   cat conftest.err >&5
42997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
42998   (exit $ac_status); } && {
42999          test -z "$ac_c_werror_flag" ||
43000          test ! -s conftest.err
43001        } && test -s conftest$ac_exeext &&
43002        $as_test_x conftest$ac_exeext; then
43003   ac_cv_func_pthread_attr_setstacksize=yes
43004 else
43005   echo "$as_me: failed program was:" >&5
43006 sed 's/^/| /' conftest.$ac_ext >&5
43007
43008         ac_cv_func_pthread_attr_setstacksize=no
43009 fi
43010
43011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43012       conftest$ac_exeext conftest.$ac_ext
43013 fi
43014 { echo "$as_me:$LINENO: result: $ac_cv_func_pthread_attr_setstacksize" >&5
43015 echo "${ECHO_T}$ac_cv_func_pthread_attr_setstacksize" >&6; }
43016 if test $ac_cv_func_pthread_attr_setstacksize = yes; then
43017   cat >>confdefs.h <<\_ACEOF
43018 #define HAVE_PTHREAD_ATTR_SETSTACKSIZE 1
43019 _ACEOF
43020
43021 fi
43022
43023
43024
43025       { echo "$as_me:$LINENO: checking for pthread_mutexattr_t" >&5
43026 echo $ECHO_N "checking for pthread_mutexattr_t... $ECHO_C" >&6; }
43027 if test "${wx_cv_type_pthread_mutexattr_t+set}" = set; then
43028   echo $ECHO_N "(cached) $ECHO_C" >&6
43029 else
43030
43031         cat >conftest.$ac_ext <<_ACEOF
43032 /* confdefs.h.  */
43033 _ACEOF
43034 cat confdefs.h >>conftest.$ac_ext
43035 cat >>conftest.$ac_ext <<_ACEOF
43036 /* end confdefs.h.  */
43037 #include <pthread.h>
43038 int
43039 main ()
43040 {
43041
43042                pthread_mutexattr_t attr;
43043                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
43044
43045   ;
43046   return 0;
43047 }
43048 _ACEOF
43049 rm -f conftest.$ac_objext
43050 if { (ac_try="$ac_compile"
43051 case "(($ac_try" in
43052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43053   *) ac_try_echo=$ac_try;;
43054 esac
43055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43056   (eval "$ac_compile") 2>conftest.er1
43057   ac_status=$?
43058   grep -v '^ *+' conftest.er1 >conftest.err
43059   rm -f conftest.er1
43060   cat conftest.err >&5
43061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43062   (exit $ac_status); } && {
43063          test -z "$ac_c_werror_flag" ||
43064          test ! -s conftest.err
43065        } && test -s conftest.$ac_objext; then
43066   wx_cv_type_pthread_mutexattr_t=yes
43067 else
43068   echo "$as_me: failed program was:" >&5
43069 sed 's/^/| /' conftest.$ac_ext >&5
43070
43071         wx_cv_type_pthread_mutexattr_t=no
43072
43073 fi
43074
43075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43076
43077 fi
43078 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_mutexattr_t" >&5
43079 echo "${ECHO_T}$wx_cv_type_pthread_mutexattr_t" >&6; }
43080
43081       if test "$wx_cv_type_pthread_mutexattr_t" = "yes"; then
43082         cat >>confdefs.h <<\_ACEOF
43083 #define HAVE_PTHREAD_MUTEXATTR_T 1
43084 _ACEOF
43085
43086
43087                         { echo "$as_me:$LINENO: checking for pthread_mutexattr_settype declaration" >&5
43088 echo $ECHO_N "checking for pthread_mutexattr_settype declaration... $ECHO_C" >&6; }
43089 if test "${wx_cv_func_pthread_mutexattr_settype_decl+set}" = set; then
43090   echo $ECHO_N "(cached) $ECHO_C" >&6
43091 else
43092
43093                        cat >conftest.$ac_ext <<_ACEOF
43094 /* confdefs.h.  */
43095 _ACEOF
43096 cat confdefs.h >>conftest.$ac_ext
43097 cat >>conftest.$ac_ext <<_ACEOF
43098 /* end confdefs.h.  */
43099 #include <pthread.h>
43100 int
43101 main ()
43102 {
43103
43104                                pthread_mutexattr_t attr;
43105                                pthread_mutexattr_settype(&attr, PTHREAD_MUTEX_RECURSIVE);
43106
43107   ;
43108   return 0;
43109 }
43110 _ACEOF
43111 rm -f conftest.$ac_objext
43112 if { (ac_try="$ac_compile"
43113 case "(($ac_try" in
43114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43115   *) ac_try_echo=$ac_try;;
43116 esac
43117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43118   (eval "$ac_compile") 2>conftest.er1
43119   ac_status=$?
43120   grep -v '^ *+' conftest.er1 >conftest.err
43121   rm -f conftest.er1
43122   cat conftest.err >&5
43123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43124   (exit $ac_status); } && {
43125          test -z "$ac_c_werror_flag" ||
43126          test ! -s conftest.err
43127        } && test -s conftest.$ac_objext; then
43128   wx_cv_func_pthread_mutexattr_settype_decl=yes
43129 else
43130   echo "$as_me: failed program was:" >&5
43131 sed 's/^/| /' conftest.$ac_ext >&5
43132
43133         wx_cv_func_pthread_mutexattr_settype_decl=no
43134
43135 fi
43136
43137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43138
43139 fi
43140 { echo "$as_me:$LINENO: result: $wx_cv_func_pthread_mutexattr_settype_decl" >&5
43141 echo "${ECHO_T}$wx_cv_func_pthread_mutexattr_settype_decl" >&6; }
43142         if test "$wx_cv_func_pthread_mutexattr_settype_decl" = "yes"; then
43143             cat >>confdefs.h <<\_ACEOF
43144 #define HAVE_PTHREAD_MUTEXATTR_SETTYPE_DECL 1
43145 _ACEOF
43146
43147         fi
43148       else
43149                 { echo "$as_me:$LINENO: checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER" >&5
43150 echo $ECHO_N "checking for PTHREAD_RECURSIVE_MUTEX_INITIALIZER... $ECHO_C" >&6; }
43151 if test "${wx_cv_type_pthread_rec_mutex_init+set}" = set; then
43152   echo $ECHO_N "(cached) $ECHO_C" >&6
43153 else
43154
43155             cat >conftest.$ac_ext <<_ACEOF
43156 /* confdefs.h.  */
43157 _ACEOF
43158 cat confdefs.h >>conftest.$ac_ext
43159 cat >>conftest.$ac_ext <<_ACEOF
43160 /* end confdefs.h.  */
43161 #include <pthread.h>
43162 int
43163 main ()
43164 {
43165
43166                     pthread_mutex_t attr = PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP;
43167
43168   ;
43169   return 0;
43170 }
43171 _ACEOF
43172 rm -f conftest.$ac_objext
43173 if { (ac_try="$ac_compile"
43174 case "(($ac_try" in
43175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43176   *) ac_try_echo=$ac_try;;
43177 esac
43178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43179   (eval "$ac_compile") 2>conftest.er1
43180   ac_status=$?
43181   grep -v '^ *+' conftest.er1 >conftest.err
43182   rm -f conftest.er1
43183   cat conftest.err >&5
43184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43185   (exit $ac_status); } && {
43186          test -z "$ac_c_werror_flag" ||
43187          test ! -s conftest.err
43188        } && test -s conftest.$ac_objext; then
43189
43190                     wx_cv_type_pthread_rec_mutex_init=yes
43191
43192 else
43193   echo "$as_me: failed program was:" >&5
43194 sed 's/^/| /' conftest.$ac_ext >&5
43195
43196
43197                     wx_cv_type_pthread_rec_mutex_init=no
43198
43199
43200 fi
43201
43202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43203
43204 fi
43205 { echo "$as_me:$LINENO: result: $wx_cv_type_pthread_rec_mutex_init" >&5
43206 echo "${ECHO_T}$wx_cv_type_pthread_rec_mutex_init" >&6; }
43207         if test "$wx_cv_type_pthread_rec_mutex_init" = "yes"; then
43208           cat >>confdefs.h <<\_ACEOF
43209 #define HAVE_PTHREAD_RECURSIVE_MUTEX_INITIALIZER 1
43210 _ACEOF
43211
43212         else
43213                     { echo "$as_me:$LINENO: WARNING: wxMutex won't be recursive on this platform" >&5
43214 echo "$as_me: WARNING: wxMutex won't be recursive on this platform" >&2;}
43215         fi
43216       fi
43217     fi
43218
43219 else
43220     if test "$wxUSE_THREADS" = "yes" ; then
43221       case "${host}" in
43222         *-*-mingw32* )
43223                         { echo "$as_me:$LINENO: checking if compiler supports -mthreads" >&5
43224 echo $ECHO_N "checking if compiler supports -mthreads... $ECHO_C" >&6; }
43225 if test "${wx_cv_cflags_mthread+set}" = set; then
43226   echo $ECHO_N "(cached) $ECHO_C" >&6
43227 else
43228
43229                     CFLAGS_OLD="$CFLAGS"
43230                     CFLAGS="-mthreads $CFLAGS"
43231                     cat >conftest.$ac_ext <<_ACEOF
43232 /* confdefs.h.  */
43233 _ACEOF
43234 cat confdefs.h >>conftest.$ac_ext
43235 cat >>conftest.$ac_ext <<_ACEOF
43236 /* end confdefs.h.  */
43237
43238 int
43239 main ()
43240 {
43241
43242   ;
43243   return 0;
43244 }
43245 _ACEOF
43246 rm -f conftest.$ac_objext
43247 if { (ac_try="$ac_compile"
43248 case "(($ac_try" in
43249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43250   *) ac_try_echo=$ac_try;;
43251 esac
43252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43253   (eval "$ac_compile") 2>conftest.er1
43254   ac_status=$?
43255   grep -v '^ *+' conftest.er1 >conftest.err
43256   rm -f conftest.er1
43257   cat conftest.err >&5
43258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43259   (exit $ac_status); } && {
43260          test -z "$ac_c_werror_flag" ||
43261          test ! -s conftest.err
43262        } && test -s conftest.$ac_objext; then
43263   wx_cv_cflags_mthread=yes
43264 else
43265   echo "$as_me: failed program was:" >&5
43266 sed 's/^/| /' conftest.$ac_ext >&5
43267
43268         wx_cv_cflags_mthread=no
43269
43270 fi
43271
43272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43273
43274
43275 fi
43276 { echo "$as_me:$LINENO: result: $wx_cv_cflags_mthread" >&5
43277 echo "${ECHO_T}$wx_cv_cflags_mthread" >&6; }
43278
43279             if test "$wx_cv_cflags_mthread" = "yes"; then
43280                                 WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mthreads"
43281                 LDFLAGS="$LDFLAGS -mthreads"
43282             else
43283                                 CFLAGS="$CFLAGS_OLD"
43284             fi
43285         ;;
43286         *-pc-os2*emx )
43287             WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -Zmt -D__ST_MT_ERRNO__"
43288             LDFLAGS="$LDFLAGS -Zmt"
43289         ;;
43290       esac
43291     fi
43292 fi
43293
43294 { echo "$as_me:$LINENO: checking for localtime_r" >&5
43295 echo $ECHO_N "checking for localtime_r... $ECHO_C" >&6; }
43296 if test "${ac_cv_func_localtime_r+set}" = set; then
43297   echo $ECHO_N "(cached) $ECHO_C" >&6
43298 else
43299   cat >conftest.$ac_ext <<_ACEOF
43300 /* confdefs.h.  */
43301 _ACEOF
43302 cat confdefs.h >>conftest.$ac_ext
43303 cat >>conftest.$ac_ext <<_ACEOF
43304 /* end confdefs.h.  */
43305 /* Define localtime_r to an innocuous variant, in case <limits.h> declares localtime_r.
43306    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43307 #define localtime_r innocuous_localtime_r
43308
43309 /* System header to define __stub macros and hopefully few prototypes,
43310     which can conflict with char localtime_r (); below.
43311     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43312     <limits.h> exists even on freestanding compilers.  */
43313
43314 #ifdef __STDC__
43315 # include <limits.h>
43316 #else
43317 # include <assert.h>
43318 #endif
43319
43320 #undef localtime_r
43321
43322 /* Override any GCC internal prototype to avoid an error.
43323    Use char because int might match the return type of a GCC
43324    builtin and then its argument prototype would still apply.  */
43325 #ifdef __cplusplus
43326 extern "C"
43327 #endif
43328 char localtime_r ();
43329 /* The GNU C library defines this for functions which it implements
43330     to always fail with ENOSYS.  Some functions are actually named
43331     something starting with __ and the normal name is an alias.  */
43332 #if defined __stub_localtime_r || defined __stub___localtime_r
43333 choke me
43334 #endif
43335
43336 int
43337 main ()
43338 {
43339 return localtime_r ();
43340   ;
43341   return 0;
43342 }
43343 _ACEOF
43344 rm -f conftest.$ac_objext conftest$ac_exeext
43345 if { (ac_try="$ac_link"
43346 case "(($ac_try" in
43347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43348   *) ac_try_echo=$ac_try;;
43349 esac
43350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43351   (eval "$ac_link") 2>conftest.er1
43352   ac_status=$?
43353   grep -v '^ *+' conftest.er1 >conftest.err
43354   rm -f conftest.er1
43355   cat conftest.err >&5
43356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43357   (exit $ac_status); } && {
43358          test -z "$ac_c_werror_flag" ||
43359          test ! -s conftest.err
43360        } && test -s conftest$ac_exeext &&
43361        $as_test_x conftest$ac_exeext; then
43362   ac_cv_func_localtime_r=yes
43363 else
43364   echo "$as_me: failed program was:" >&5
43365 sed 's/^/| /' conftest.$ac_ext >&5
43366
43367         ac_cv_func_localtime_r=no
43368 fi
43369
43370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43371       conftest$ac_exeext conftest.$ac_ext
43372 fi
43373 { echo "$as_me:$LINENO: result: $ac_cv_func_localtime_r" >&5
43374 echo "${ECHO_T}$ac_cv_func_localtime_r" >&6; }
43375 if test $ac_cv_func_localtime_r = yes; then
43376    cat >>confdefs.h <<\_ACEOF
43377 #define HAVE_LOCALTIME_R 1
43378 _ACEOF
43379
43380 fi
43381
43382 { echo "$as_me:$LINENO: checking for gmtime_r" >&5
43383 echo $ECHO_N "checking for gmtime_r... $ECHO_C" >&6; }
43384 if test "${ac_cv_func_gmtime_r+set}" = set; then
43385   echo $ECHO_N "(cached) $ECHO_C" >&6
43386 else
43387   cat >conftest.$ac_ext <<_ACEOF
43388 /* confdefs.h.  */
43389 _ACEOF
43390 cat confdefs.h >>conftest.$ac_ext
43391 cat >>conftest.$ac_ext <<_ACEOF
43392 /* end confdefs.h.  */
43393 /* Define gmtime_r to an innocuous variant, in case <limits.h> declares gmtime_r.
43394    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43395 #define gmtime_r innocuous_gmtime_r
43396
43397 /* System header to define __stub macros and hopefully few prototypes,
43398     which can conflict with char gmtime_r (); below.
43399     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43400     <limits.h> exists even on freestanding compilers.  */
43401
43402 #ifdef __STDC__
43403 # include <limits.h>
43404 #else
43405 # include <assert.h>
43406 #endif
43407
43408 #undef gmtime_r
43409
43410 /* Override any GCC internal prototype to avoid an error.
43411    Use char because int might match the return type of a GCC
43412    builtin and then its argument prototype would still apply.  */
43413 #ifdef __cplusplus
43414 extern "C"
43415 #endif
43416 char gmtime_r ();
43417 /* The GNU C library defines this for functions which it implements
43418     to always fail with ENOSYS.  Some functions are actually named
43419     something starting with __ and the normal name is an alias.  */
43420 #if defined __stub_gmtime_r || defined __stub___gmtime_r
43421 choke me
43422 #endif
43423
43424 int
43425 main ()
43426 {
43427 return gmtime_r ();
43428   ;
43429   return 0;
43430 }
43431 _ACEOF
43432 rm -f conftest.$ac_objext conftest$ac_exeext
43433 if { (ac_try="$ac_link"
43434 case "(($ac_try" in
43435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43436   *) ac_try_echo=$ac_try;;
43437 esac
43438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43439   (eval "$ac_link") 2>conftest.er1
43440   ac_status=$?
43441   grep -v '^ *+' conftest.er1 >conftest.err
43442   rm -f conftest.er1
43443   cat conftest.err >&5
43444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43445   (exit $ac_status); } && {
43446          test -z "$ac_c_werror_flag" ||
43447          test ! -s conftest.err
43448        } && test -s conftest$ac_exeext &&
43449        $as_test_x conftest$ac_exeext; then
43450   ac_cv_func_gmtime_r=yes
43451 else
43452   echo "$as_me: failed program was:" >&5
43453 sed 's/^/| /' conftest.$ac_ext >&5
43454
43455         ac_cv_func_gmtime_r=no
43456 fi
43457
43458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43459       conftest$ac_exeext conftest.$ac_ext
43460 fi
43461 { echo "$as_me:$LINENO: result: $ac_cv_func_gmtime_r" >&5
43462 echo "${ECHO_T}$ac_cv_func_gmtime_r" >&6; }
43463 if test $ac_cv_func_gmtime_r = yes; then
43464    cat >>confdefs.h <<\_ACEOF
43465 #define HAVE_GMTIME_R 1
43466 _ACEOF
43467
43468 fi
43469
43470 { echo "$as_me:$LINENO: checking for readdir_r" >&5
43471 echo $ECHO_N "checking for readdir_r... $ECHO_C" >&6; }
43472 if test "${ac_cv_func_readdir_r+set}" = set; then
43473   echo $ECHO_N "(cached) $ECHO_C" >&6
43474 else
43475   cat >conftest.$ac_ext <<_ACEOF
43476 /* confdefs.h.  */
43477 _ACEOF
43478 cat confdefs.h >>conftest.$ac_ext
43479 cat >>conftest.$ac_ext <<_ACEOF
43480 /* end confdefs.h.  */
43481 /* Define readdir_r to an innocuous variant, in case <limits.h> declares readdir_r.
43482    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43483 #define readdir_r innocuous_readdir_r
43484
43485 /* System header to define __stub macros and hopefully few prototypes,
43486     which can conflict with char readdir_r (); below.
43487     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43488     <limits.h> exists even on freestanding compilers.  */
43489
43490 #ifdef __STDC__
43491 # include <limits.h>
43492 #else
43493 # include <assert.h>
43494 #endif
43495
43496 #undef readdir_r
43497
43498 /* Override any GCC internal prototype to avoid an error.
43499    Use char because int might match the return type of a GCC
43500    builtin and then its argument prototype would still apply.  */
43501 #ifdef __cplusplus
43502 extern "C"
43503 #endif
43504 char readdir_r ();
43505 /* The GNU C library defines this for functions which it implements
43506     to always fail with ENOSYS.  Some functions are actually named
43507     something starting with __ and the normal name is an alias.  */
43508 #if defined __stub_readdir_r || defined __stub___readdir_r
43509 choke me
43510 #endif
43511
43512 int
43513 main ()
43514 {
43515 return readdir_r ();
43516   ;
43517   return 0;
43518 }
43519 _ACEOF
43520 rm -f conftest.$ac_objext conftest$ac_exeext
43521 if { (ac_try="$ac_link"
43522 case "(($ac_try" in
43523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43524   *) ac_try_echo=$ac_try;;
43525 esac
43526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43527   (eval "$ac_link") 2>conftest.er1
43528   ac_status=$?
43529   grep -v '^ *+' conftest.er1 >conftest.err
43530   rm -f conftest.er1
43531   cat conftest.err >&5
43532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43533   (exit $ac_status); } && {
43534          test -z "$ac_c_werror_flag" ||
43535          test ! -s conftest.err
43536        } && test -s conftest$ac_exeext &&
43537        $as_test_x conftest$ac_exeext; then
43538   ac_cv_func_readdir_r=yes
43539 else
43540   echo "$as_me: failed program was:" >&5
43541 sed 's/^/| /' conftest.$ac_ext >&5
43542
43543         ac_cv_func_readdir_r=no
43544 fi
43545
43546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43547       conftest$ac_exeext conftest.$ac_ext
43548 fi
43549 { echo "$as_me:$LINENO: result: $ac_cv_func_readdir_r" >&5
43550 echo "${ECHO_T}$ac_cv_func_readdir_r" >&6; }
43551 if test $ac_cv_func_readdir_r = yes; then
43552    cat >>confdefs.h <<\_ACEOF
43553 #define HAVE_READDIR_R 1
43554 _ACEOF
43555
43556 fi
43557
43558
43559
43560
43561     ac_ext=c
43562 ac_cpp='$CPP $CPPFLAGS'
43563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43566
43567     { echo "$as_me:$LINENO: checking how many arguments gethostbyname_r() takes" >&5
43568 echo $ECHO_N "checking how many arguments gethostbyname_r() takes... $ECHO_C" >&6; }
43569
43570     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then
43571   echo $ECHO_N "(cached) $ECHO_C" >&6
43572 else
43573
43574
43575 ################################################################
43576
43577 ac_cv_func_which_gethostbyname_r=unknown
43578
43579 #
43580 # ONE ARGUMENT (sanity check)
43581 #
43582
43583 # This should fail, as there is no variant of gethostbyname_r() that takes
43584 # a single argument. If it actually compiles, then we can assume that
43585 # netdb.h is not declaring the function, and the compiler is thereby
43586 # assuming an implicit prototype. In which case, we're out of luck.
43587 #
43588 cat >conftest.$ac_ext <<_ACEOF
43589 /* confdefs.h.  */
43590 _ACEOF
43591 cat confdefs.h >>conftest.$ac_ext
43592 cat >>conftest.$ac_ext <<_ACEOF
43593 /* end confdefs.h.  */
43594 #include <netdb.h>
43595 int
43596 main ()
43597 {
43598
43599             char *name = "www.gnu.org";
43600             (void)gethostbyname_r(name) /* ; */
43601
43602   ;
43603   return 0;
43604 }
43605 _ACEOF
43606 rm -f conftest.$ac_objext
43607 if { (ac_try="$ac_compile"
43608 case "(($ac_try" in
43609   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43610   *) ac_try_echo=$ac_try;;
43611 esac
43612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43613   (eval "$ac_compile") 2>conftest.er1
43614   ac_status=$?
43615   grep -v '^ *+' conftest.er1 >conftest.err
43616   rm -f conftest.er1
43617   cat conftest.err >&5
43618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43619   (exit $ac_status); } && {
43620          test -z "$ac_c_werror_flag" ||
43621          test ! -s conftest.err
43622        } && test -s conftest.$ac_objext; then
43623   ac_cv_func_which_gethostbyname_r=no
43624 else
43625   echo "$as_me: failed program was:" >&5
43626 sed 's/^/| /' conftest.$ac_ext >&5
43627
43628
43629 fi
43630
43631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43632
43633 #
43634 # SIX ARGUMENTS
43635 # (e.g. Linux)
43636 #
43637
43638 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43639
43640 cat >conftest.$ac_ext <<_ACEOF
43641 /* confdefs.h.  */
43642 _ACEOF
43643 cat confdefs.h >>conftest.$ac_ext
43644 cat >>conftest.$ac_ext <<_ACEOF
43645 /* end confdefs.h.  */
43646 #include <netdb.h>
43647 int
43648 main ()
43649 {
43650
43651             char *name = "www.gnu.org";
43652             struct hostent ret, *retp;
43653             char buf[1024];
43654             int buflen = 1024;
43655             int my_h_errno;
43656             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
43657
43658   ;
43659   return 0;
43660 }
43661 _ACEOF
43662 rm -f conftest.$ac_objext
43663 if { (ac_try="$ac_compile"
43664 case "(($ac_try" in
43665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43666   *) ac_try_echo=$ac_try;;
43667 esac
43668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43669   (eval "$ac_compile") 2>conftest.er1
43670   ac_status=$?
43671   grep -v '^ *+' conftest.er1 >conftest.err
43672   rm -f conftest.er1
43673   cat conftest.err >&5
43674   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43675   (exit $ac_status); } && {
43676          test -z "$ac_c_werror_flag" ||
43677          test ! -s conftest.err
43678        } && test -s conftest.$ac_objext; then
43679   ac_cv_func_which_gethostbyname_r=six
43680 else
43681   echo "$as_me: failed program was:" >&5
43682 sed 's/^/| /' conftest.$ac_ext >&5
43683
43684
43685 fi
43686
43687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43688
43689 fi
43690
43691 #
43692 # FIVE ARGUMENTS
43693 # (e.g. Solaris)
43694 #
43695
43696 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43697
43698 cat >conftest.$ac_ext <<_ACEOF
43699 /* confdefs.h.  */
43700 _ACEOF
43701 cat confdefs.h >>conftest.$ac_ext
43702 cat >>conftest.$ac_ext <<_ACEOF
43703 /* end confdefs.h.  */
43704 #include <netdb.h>
43705 int
43706 main ()
43707 {
43708
43709             char *name = "www.gnu.org";
43710             struct hostent ret;
43711             char buf[1024];
43712             int buflen = 1024;
43713             int my_h_errno;
43714             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
43715
43716   ;
43717   return 0;
43718 }
43719 _ACEOF
43720 rm -f conftest.$ac_objext
43721 if { (ac_try="$ac_compile"
43722 case "(($ac_try" in
43723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43724   *) ac_try_echo=$ac_try;;
43725 esac
43726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43727   (eval "$ac_compile") 2>conftest.er1
43728   ac_status=$?
43729   grep -v '^ *+' conftest.er1 >conftest.err
43730   rm -f conftest.er1
43731   cat conftest.err >&5
43732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43733   (exit $ac_status); } && {
43734          test -z "$ac_c_werror_flag" ||
43735          test ! -s conftest.err
43736        } && test -s conftest.$ac_objext; then
43737   ac_cv_func_which_gethostbyname_r=five
43738 else
43739   echo "$as_me: failed program was:" >&5
43740 sed 's/^/| /' conftest.$ac_ext >&5
43741
43742
43743 fi
43744
43745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43746
43747 fi
43748
43749 #
43750 # THREE ARGUMENTS
43751 # (e.g. AIX, HP-UX, Tru64)
43752 #
43753
43754 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
43755
43756 cat >conftest.$ac_ext <<_ACEOF
43757 /* confdefs.h.  */
43758 _ACEOF
43759 cat confdefs.h >>conftest.$ac_ext
43760 cat >>conftest.$ac_ext <<_ACEOF
43761 /* end confdefs.h.  */
43762 #include <netdb.h>
43763 int
43764 main ()
43765 {
43766
43767             char *name = "www.gnu.org";
43768             struct hostent ret;
43769             struct hostent_data data;
43770             (void)gethostbyname_r(name, &ret, &data) /* ; */
43771
43772   ;
43773   return 0;
43774 }
43775 _ACEOF
43776 rm -f conftest.$ac_objext
43777 if { (ac_try="$ac_compile"
43778 case "(($ac_try" in
43779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43780   *) ac_try_echo=$ac_try;;
43781 esac
43782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43783   (eval "$ac_compile") 2>conftest.er1
43784   ac_status=$?
43785   grep -v '^ *+' conftest.er1 >conftest.err
43786   rm -f conftest.er1
43787   cat conftest.err >&5
43788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43789   (exit $ac_status); } && {
43790          test -z "$ac_c_werror_flag" ||
43791          test ! -s conftest.err
43792        } && test -s conftest.$ac_objext; then
43793   ac_cv_func_which_gethostbyname_r=three
43794 else
43795   echo "$as_me: failed program was:" >&5
43796 sed 's/^/| /' conftest.$ac_ext >&5
43797
43798
43799 fi
43800
43801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43802
43803 fi
43804
43805 ################################################################
43806
43807
43808 fi
43809
43810 case "$ac_cv_func_which_gethostbyname_r" in
43811     three)
43812     { echo "$as_me:$LINENO: result: three" >&5
43813 echo "${ECHO_T}three" >&6; }
43814     cat >>confdefs.h <<\_ACEOF
43815 #define HAVE_FUNC_GETHOSTBYNAME_R_3 1
43816 _ACEOF
43817
43818     ;;
43819
43820     five)
43821     { echo "$as_me:$LINENO: result: five" >&5
43822 echo "${ECHO_T}five" >&6; }
43823     cat >>confdefs.h <<\_ACEOF
43824 #define HAVE_FUNC_GETHOSTBYNAME_R_5 1
43825 _ACEOF
43826
43827     ;;
43828
43829     six)
43830     { echo "$as_me:$LINENO: result: six" >&5
43831 echo "${ECHO_T}six" >&6; }
43832     cat >>confdefs.h <<\_ACEOF
43833 #define HAVE_FUNC_GETHOSTBYNAME_R_6 1
43834 _ACEOF
43835
43836     ;;
43837
43838     no)
43839     { echo "$as_me:$LINENO: result: cannot find function declaration in netdb.h" >&5
43840 echo "${ECHO_T}cannot find function declaration in netdb.h" >&6; }
43841     ;;
43842
43843     unknown)
43844     { echo "$as_me:$LINENO: result: can't tell" >&5
43845 echo "${ECHO_T}can't tell" >&6; }
43846     ;;
43847
43848     *)
43849     { { echo "$as_me:$LINENO: error: internal error" >&5
43850 echo "$as_me: error: internal error" >&2;}
43851    { (exit 1); exit 1; }; }
43852     ;;
43853 esac
43854
43855 ac_ext=c
43856 ac_cpp='$CPP $CPPFLAGS'
43857 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43858 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43859 ac_compiler_gnu=$ac_cv_c_compiler_gnu
43860
43861
43862
43863       if test "x$ac_cv_func_which_gethostbyname_r" = "xno" -o \
43864               "x$ac_cv_func_which_gethostbyname_r" = "xunknown" ; then
43865           { echo "$as_me:$LINENO: checking for gethostbyname" >&5
43866 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
43867 if test "${ac_cv_func_gethostbyname+set}" = set; then
43868   echo $ECHO_N "(cached) $ECHO_C" >&6
43869 else
43870   cat >conftest.$ac_ext <<_ACEOF
43871 /* confdefs.h.  */
43872 _ACEOF
43873 cat confdefs.h >>conftest.$ac_ext
43874 cat >>conftest.$ac_ext <<_ACEOF
43875 /* end confdefs.h.  */
43876 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
43877    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
43878 #define gethostbyname innocuous_gethostbyname
43879
43880 /* System header to define __stub macros and hopefully few prototypes,
43881     which can conflict with char gethostbyname (); below.
43882     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
43883     <limits.h> exists even on freestanding compilers.  */
43884
43885 #ifdef __STDC__
43886 # include <limits.h>
43887 #else
43888 # include <assert.h>
43889 #endif
43890
43891 #undef gethostbyname
43892
43893 /* Override any GCC internal prototype to avoid an error.
43894    Use char because int might match the return type of a GCC
43895    builtin and then its argument prototype would still apply.  */
43896 #ifdef __cplusplus
43897 extern "C"
43898 #endif
43899 char gethostbyname ();
43900 /* The GNU C library defines this for functions which it implements
43901     to always fail with ENOSYS.  Some functions are actually named
43902     something starting with __ and the normal name is an alias.  */
43903 #if defined __stub_gethostbyname || defined __stub___gethostbyname
43904 choke me
43905 #endif
43906
43907 int
43908 main ()
43909 {
43910 return gethostbyname ();
43911   ;
43912   return 0;
43913 }
43914 _ACEOF
43915 rm -f conftest.$ac_objext conftest$ac_exeext
43916 if { (ac_try="$ac_link"
43917 case "(($ac_try" in
43918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43919   *) ac_try_echo=$ac_try;;
43920 esac
43921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43922   (eval "$ac_link") 2>conftest.er1
43923   ac_status=$?
43924   grep -v '^ *+' conftest.er1 >conftest.err
43925   rm -f conftest.er1
43926   cat conftest.err >&5
43927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
43928   (exit $ac_status); } && {
43929          test -z "$ac_c_werror_flag" ||
43930          test ! -s conftest.err
43931        } && test -s conftest$ac_exeext &&
43932        $as_test_x conftest$ac_exeext; then
43933   ac_cv_func_gethostbyname=yes
43934 else
43935   echo "$as_me: failed program was:" >&5
43936 sed 's/^/| /' conftest.$ac_ext >&5
43937
43938         ac_cv_func_gethostbyname=no
43939 fi
43940
43941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
43942       conftest$ac_exeext conftest.$ac_ext
43943 fi
43944 { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
43945 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
43946 if test $ac_cv_func_gethostbyname = yes; then
43947    cat >>confdefs.h <<\_ACEOF
43948 #define HAVE_GETHOSTBYNAME 1
43949 _ACEOF
43950
43951 fi
43952
43953       fi
43954
43955 { echo "$as_me:$LINENO: checking how many arguments getservbyname_r() takes" >&5
43956 echo $ECHO_N "checking how many arguments getservbyname_r() takes... $ECHO_C" >&6; }
43957 if test "${ac_cv_func_which_getservbyname_r+set}" = set; then
43958   echo $ECHO_N "(cached) $ECHO_C" >&6
43959 else
43960
43961                 ac_ext=cpp
43962 ac_cpp='$CXXCPP $CPPFLAGS'
43963 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
43964 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
43965 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
43966
43967
43968         cat >conftest.$ac_ext <<_ACEOF
43969 /* confdefs.h.  */
43970 _ACEOF
43971 cat confdefs.h >>conftest.$ac_ext
43972 cat >>conftest.$ac_ext <<_ACEOF
43973 /* end confdefs.h.  */
43974 #include <netdb.h>
43975 int
43976 main ()
43977 {
43978
43979                 char *name;
43980                 char *proto;
43981                 struct servent *se, *res;
43982                 char buffer[2048];
43983                 int buflen = 2048;
43984                 (void) getservbyname_r(name, proto, se, buffer, buflen, &res)
43985
43986   ;
43987   return 0;
43988 }
43989 _ACEOF
43990 rm -f conftest.$ac_objext
43991 if { (ac_try="$ac_compile"
43992 case "(($ac_try" in
43993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43994   *) ac_try_echo=$ac_try;;
43995 esac
43996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
43997   (eval "$ac_compile") 2>conftest.er1
43998   ac_status=$?
43999   grep -v '^ *+' conftest.er1 >conftest.err
44000   rm -f conftest.er1
44001   cat conftest.err >&5
44002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44003   (exit $ac_status); } && {
44004          test -z "$ac_cxx_werror_flag" ||
44005          test ! -s conftest.err
44006        } && test -s conftest.$ac_objext; then
44007   ac_cv_func_which_getservbyname_r=six
44008 else
44009   echo "$as_me: failed program was:" >&5
44010 sed 's/^/| /' conftest.$ac_ext >&5
44011
44012
44013                 cat >conftest.$ac_ext <<_ACEOF
44014 /* confdefs.h.  */
44015 _ACEOF
44016 cat confdefs.h >>conftest.$ac_ext
44017 cat >>conftest.$ac_ext <<_ACEOF
44018 /* end confdefs.h.  */
44019 #include <netdb.h>
44020 int
44021 main ()
44022 {
44023
44024                         char *name;
44025                         char *proto;
44026                         struct servent *se;
44027                         char buffer[2048];
44028                         int buflen = 2048;
44029                         (void) getservbyname_r(name, proto, se, buffer, buflen)
44030
44031   ;
44032   return 0;
44033 }
44034 _ACEOF
44035 rm -f conftest.$ac_objext
44036 if { (ac_try="$ac_compile"
44037 case "(($ac_try" in
44038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44039   *) ac_try_echo=$ac_try;;
44040 esac
44041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44042   (eval "$ac_compile") 2>conftest.er1
44043   ac_status=$?
44044   grep -v '^ *+' conftest.er1 >conftest.err
44045   rm -f conftest.er1
44046   cat conftest.err >&5
44047   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44048   (exit $ac_status); } && {
44049          test -z "$ac_cxx_werror_flag" ||
44050          test ! -s conftest.err
44051        } && test -s conftest.$ac_objext; then
44052   ac_cv_func_which_getservbyname_r=five
44053 else
44054   echo "$as_me: failed program was:" >&5
44055 sed 's/^/| /' conftest.$ac_ext >&5
44056
44057
44058                         cat >conftest.$ac_ext <<_ACEOF
44059 /* confdefs.h.  */
44060 _ACEOF
44061 cat confdefs.h >>conftest.$ac_ext
44062 cat >>conftest.$ac_ext <<_ACEOF
44063 /* end confdefs.h.  */
44064 #include <netdb.h>
44065 int
44066 main ()
44067 {
44068
44069                                 char *name;
44070                                 char *proto;
44071                                 struct servent *se;
44072                                 struct servent_data data;
44073                                 (void) getservbyname_r(name, proto, se, &data);
44074
44075   ;
44076   return 0;
44077 }
44078 _ACEOF
44079 rm -f conftest.$ac_objext
44080 if { (ac_try="$ac_compile"
44081 case "(($ac_try" in
44082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44083   *) ac_try_echo=$ac_try;;
44084 esac
44085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44086   (eval "$ac_compile") 2>conftest.er1
44087   ac_status=$?
44088   grep -v '^ *+' conftest.er1 >conftest.err
44089   rm -f conftest.er1
44090   cat conftest.err >&5
44091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44092   (exit $ac_status); } && {
44093          test -z "$ac_cxx_werror_flag" ||
44094          test ! -s conftest.err
44095        } && test -s conftest.$ac_objext; then
44096   ac_cv_func_which_getservbyname_r=four
44097 else
44098   echo "$as_me: failed program was:" >&5
44099 sed 's/^/| /' conftest.$ac_ext >&5
44100
44101         ac_cv_func_which_getservbyname_r=no
44102
44103 fi
44104
44105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44106
44107
44108 fi
44109
44110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44111
44112
44113 fi
44114
44115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44116         ac_ext=c
44117 ac_cpp='$CPP $CPPFLAGS'
44118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
44119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
44120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
44121
44122
44123
44124 fi
44125 { echo "$as_me:$LINENO: result: $ac_cv_func_which_getservbyname_r" >&5
44126 echo "${ECHO_T}$ac_cv_func_which_getservbyname_r" >&6; }
44127
44128 if test $ac_cv_func_which_getservbyname_r = six; then
44129   cat >>confdefs.h <<\_ACEOF
44130 #define HAVE_FUNC_GETSERVBYNAME_R_6 1
44131 _ACEOF
44132
44133 elif test $ac_cv_func_which_getservbyname_r = five; then
44134   cat >>confdefs.h <<\_ACEOF
44135 #define HAVE_FUNC_GETSERVBYNAME_R_5 1
44136 _ACEOF
44137
44138 elif test $ac_cv_func_which_getservbyname_r = four; then
44139   cat >>confdefs.h <<\_ACEOF
44140 #define HAVE_FUNC_GETSERVBYNAME_R_4 1
44141 _ACEOF
44142
44143 fi
44144
44145
44146       if test "x$ac_cv_func_which_getservbyname_r" = "xno" -o \
44147               "x$ac_cv_func_which_getservbyname_r" = "xunknown" ; then
44148
44149 for ac_func in getservbyname
44150 do
44151 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44152 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44153 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44154 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44155   echo $ECHO_N "(cached) $ECHO_C" >&6
44156 else
44157   cat >conftest.$ac_ext <<_ACEOF
44158 /* confdefs.h.  */
44159 _ACEOF
44160 cat confdefs.h >>conftest.$ac_ext
44161 cat >>conftest.$ac_ext <<_ACEOF
44162 /* end confdefs.h.  */
44163 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44164    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44165 #define $ac_func innocuous_$ac_func
44166
44167 /* System header to define __stub macros and hopefully few prototypes,
44168     which can conflict with char $ac_func (); below.
44169     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44170     <limits.h> exists even on freestanding compilers.  */
44171
44172 #ifdef __STDC__
44173 # include <limits.h>
44174 #else
44175 # include <assert.h>
44176 #endif
44177
44178 #undef $ac_func
44179
44180 /* Override any GCC internal prototype to avoid an error.
44181    Use char because int might match the return type of a GCC
44182    builtin and then its argument prototype would still apply.  */
44183 #ifdef __cplusplus
44184 extern "C"
44185 #endif
44186 char $ac_func ();
44187 /* The GNU C library defines this for functions which it implements
44188     to always fail with ENOSYS.  Some functions are actually named
44189     something starting with __ and the normal name is an alias.  */
44190 #if defined __stub_$ac_func || defined __stub___$ac_func
44191 choke me
44192 #endif
44193
44194 int
44195 main ()
44196 {
44197 return $ac_func ();
44198   ;
44199   return 0;
44200 }
44201 _ACEOF
44202 rm -f conftest.$ac_objext conftest$ac_exeext
44203 if { (ac_try="$ac_link"
44204 case "(($ac_try" in
44205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44206   *) ac_try_echo=$ac_try;;
44207 esac
44208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44209   (eval "$ac_link") 2>conftest.er1
44210   ac_status=$?
44211   grep -v '^ *+' conftest.er1 >conftest.err
44212   rm -f conftest.er1
44213   cat conftest.err >&5
44214   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44215   (exit $ac_status); } && {
44216          test -z "$ac_c_werror_flag" ||
44217          test ! -s conftest.err
44218        } && test -s conftest$ac_exeext &&
44219        $as_test_x conftest$ac_exeext; then
44220   eval "$as_ac_var=yes"
44221 else
44222   echo "$as_me: failed program was:" >&5
44223 sed 's/^/| /' conftest.$ac_ext >&5
44224
44225         eval "$as_ac_var=no"
44226 fi
44227
44228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44229       conftest$ac_exeext conftest.$ac_ext
44230 fi
44231 ac_res=`eval echo '${'$as_ac_var'}'`
44232                { echo "$as_me:$LINENO: result: $ac_res" >&5
44233 echo "${ECHO_T}$ac_res" >&6; }
44234 if test `eval echo '${'$as_ac_var'}'` = yes; then
44235   cat >>confdefs.h <<_ACEOF
44236 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44237 _ACEOF
44238   cat >>confdefs.h <<\_ACEOF
44239 #define HAVE_GETSERVBYNAME 1
44240 _ACEOF
44241
44242 fi
44243 done
44244
44245       fi
44246
44247 if test "$wxUSE_THREADS" = "yes"; then
44248   cat >>confdefs.h <<\_ACEOF
44249 #define wxUSE_THREADS 1
44250 _ACEOF
44251
44252
44253   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS thread"
44254 else
44255       if test "$wx_cv_func_strtok_r" = "yes"; then
44256     { echo "$as_me:$LINENO: checking if -D_REENTRANT is needed" >&5
44257 echo $ECHO_N "checking if -D_REENTRANT is needed... $ECHO_C" >&6; }
44258     if test "$NEEDS_D_REENTRANT_FOR_R_FUNCS" = 1; then
44259         WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D_REENTRANT"
44260         { echo "$as_me:$LINENO: result: yes" >&5
44261 echo "${ECHO_T}yes" >&6; }
44262     else
44263         { echo "$as_me:$LINENO: result: no" >&5
44264 echo "${ECHO_T}no" >&6; }
44265     fi
44266   fi
44267 fi
44268
44269 if test "$WXGTK20" = 1 ; then
44270   cat >>confdefs.h <<_ACEOF
44271 #define __WXGTK20__ $WXGTK20
44272 _ACEOF
44273
44274   WXGTK12=1
44275 fi
44276
44277 if test "$WXGTK12" = 1 ; then
44278   cat >>confdefs.h <<_ACEOF
44279 #define __WXGTK12__ $WXGTK12
44280 _ACEOF
44281
44282 fi
44283
44284 if test "$WXGTK127" = 1 ; then
44285   cat >>confdefs.h <<_ACEOF
44286 #define __WXGTK127__ $WXGTK127
44287 _ACEOF
44288
44289 fi
44290
44291 if test "$WXGPE" = 1 ; then
44292   cat >>confdefs.h <<_ACEOF
44293 #define __WXGPE__ $WXGPE
44294 _ACEOF
44295
44296 fi
44297
44298 DEBUG_CFLAGS=
44299 if test "$wxUSE_DEBUG_INFO" = "yes" ; then
44300     DEBUG_CFLAGS="-g"
44301     wxUSE_OPTIMISE=no
44302 fi
44303
44304 if test "$wxUSE_DEBUG_GDB" = "yes" ; then
44305     wxUSE_DEBUG_INFO=yes
44306     if test "$GCC" = yes; then
44307         DEBUG_CFLAGS="-ggdb"
44308     fi
44309 fi
44310
44311 if test "$wxUSE_DEBUG_FLAG" = "yes" ; then
44312     cat >>confdefs.h <<\_ACEOF
44313 #define WXDEBUG 1
44314 _ACEOF
44315
44316     WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS -D__WXDEBUG__"
44317 else
44318     if test "$wxUSE_GTK" = 1 ; then
44319         if test "x$wxGTK_VERSION" = "x1" ; then
44320             CPPFLAGS="-DGTK_NO_CHECK_CASTS $CPPFLAGS"
44321         fi
44322     fi
44323 fi
44324
44325 if test "$wxUSE_MEM_TRACING" = "yes" ; then
44326     cat >>confdefs.h <<\_ACEOF
44327 #define wxUSE_MEMORY_TRACING 1
44328 _ACEOF
44329
44330     cat >>confdefs.h <<\_ACEOF
44331 #define wxUSE_GLOBAL_MEMORY_OPERATORS 1
44332 _ACEOF
44333
44334     cat >>confdefs.h <<\_ACEOF
44335 #define wxUSE_DEBUG_NEW_ALWAYS 1
44336 _ACEOF
44337
44338     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS memcheck"
44339 fi
44340
44341 if test "$wxUSE_DMALLOC" = "yes" ; then
44342     DMALLOC_LIBS="-ldmallocthcxx"
44343 fi
44344
44345 PROFILE_FLAGS=
44346 if test "$wxUSE_PROFILE" = "yes" ; then
44347     PROFILE_FLAGS=" -pg"
44348 fi
44349
44350 if test "$GCC" = "yes" ; then
44351     if test "$wxUSE_NO_RTTI" = "yes" ; then
44352         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-rtti"
44353     fi
44354     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
44355         WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fno-exceptions"
44356     fi
44357     if test "$wxUSE_PERMISSIVE" = "yes" ; then
44358         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -fpermissive"
44359     fi
44360
44361                                                 case "${host}" in
44362       powerpc*-*-aix* )
44363         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -mminimal-toc"
44364         ;;
44365       *-hppa* )
44366         WXCONFIG_CFLAGS="$WXCONFIG_CFLAGS -ffunction-sections"
44367         ;;
44368     esac
44369 fi
44370
44371 OPTIMISE_CFLAGS=
44372 if test "$wxUSE_OPTIMISE" = "no" ; then
44373     if test "$GCC" = yes ; then
44374                         OPTIMISE_CFLAGS="-O0"
44375     fi
44376 else
44377     if test "$GCC" = yes ; then
44378         case "${host}" in
44379             *-pc-os2_emx | *-pc-os2-emx )
44380                                                 OPTIMISE_CFLAGS="-O2"
44381             ;;
44382             *)
44383                                                                 OPTIMISE_CFLAGS="-O2 -fno-strict-aliasing"
44384             ;;
44385         esac
44386     else
44387         OPTIMISE_CFLAGS="-O"
44388     fi
44389 fi
44390
44391
44392 if test "x$WXWIN_COMPATIBILITY_2_6" = "xyes"; then
44393     cat >>confdefs.h <<\_ACEOF
44394 #define WXWIN_COMPATIBILITY_2_6 1
44395 _ACEOF
44396
44397
44398     WXWIN_COMPATIBILITY_2_8="yes"
44399 fi
44400
44401 if test "x$WXWIN_COMPATIBILITY_2_8" != "xno"; then
44402     cat >>confdefs.h <<\_ACEOF
44403 #define WXWIN_COMPATIBILITY_2_8 1
44404 _ACEOF
44405
44406 fi
44407
44408
44409 if test "$wxUSE_GUI" = "yes"; then
44410     cat >>confdefs.h <<\_ACEOF
44411 #define wxUSE_GUI 1
44412 _ACEOF
44413
44414
44415                                             fi
44416
44417
44418 if test "$wxUSE_UNIX" = "yes"; then
44419   cat >>confdefs.h <<\_ACEOF
44420 #define wxUSE_UNIX 1
44421 _ACEOF
44422
44423 fi
44424
44425
44426 if test "$TOOLKIT" != "MSW" -a "$USE_OS2" != 1; then
44427
44428     HAVE_DL_FUNCS=0
44429     HAVE_SHL_FUNCS=0
44430     if test "$wxUSE_DYNAMIC_LOADER" = "yes" -o "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44431         if test "$USE_DARWIN" = 1; then
44432                         HAVE_DL_FUNCS=1
44433         elif test "$USE_DOS" = 1; then
44434             HAVE_DL_FUNCS=0
44435         else
44436
44437 for ac_func in dlopen
44438 do
44439 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44440 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44441 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44442 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44443   echo $ECHO_N "(cached) $ECHO_C" >&6
44444 else
44445   cat >conftest.$ac_ext <<_ACEOF
44446 /* confdefs.h.  */
44447 _ACEOF
44448 cat confdefs.h >>conftest.$ac_ext
44449 cat >>conftest.$ac_ext <<_ACEOF
44450 /* end confdefs.h.  */
44451 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44452    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44453 #define $ac_func innocuous_$ac_func
44454
44455 /* System header to define __stub macros and hopefully few prototypes,
44456     which can conflict with char $ac_func (); below.
44457     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44458     <limits.h> exists even on freestanding compilers.  */
44459
44460 #ifdef __STDC__
44461 # include <limits.h>
44462 #else
44463 # include <assert.h>
44464 #endif
44465
44466 #undef $ac_func
44467
44468 /* Override any GCC internal prototype to avoid an error.
44469    Use char because int might match the return type of a GCC
44470    builtin and then its argument prototype would still apply.  */
44471 #ifdef __cplusplus
44472 extern "C"
44473 #endif
44474 char $ac_func ();
44475 /* The GNU C library defines this for functions which it implements
44476     to always fail with ENOSYS.  Some functions are actually named
44477     something starting with __ and the normal name is an alias.  */
44478 #if defined __stub_$ac_func || defined __stub___$ac_func
44479 choke me
44480 #endif
44481
44482 int
44483 main ()
44484 {
44485 return $ac_func ();
44486   ;
44487   return 0;
44488 }
44489 _ACEOF
44490 rm -f conftest.$ac_objext conftest$ac_exeext
44491 if { (ac_try="$ac_link"
44492 case "(($ac_try" in
44493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44494   *) ac_try_echo=$ac_try;;
44495 esac
44496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44497   (eval "$ac_link") 2>conftest.er1
44498   ac_status=$?
44499   grep -v '^ *+' conftest.er1 >conftest.err
44500   rm -f conftest.er1
44501   cat conftest.err >&5
44502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44503   (exit $ac_status); } && {
44504          test -z "$ac_c_werror_flag" ||
44505          test ! -s conftest.err
44506        } && test -s conftest$ac_exeext &&
44507        $as_test_x conftest$ac_exeext; then
44508   eval "$as_ac_var=yes"
44509 else
44510   echo "$as_me: failed program was:" >&5
44511 sed 's/^/| /' conftest.$ac_ext >&5
44512
44513         eval "$as_ac_var=no"
44514 fi
44515
44516 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44517       conftest$ac_exeext conftest.$ac_ext
44518 fi
44519 ac_res=`eval echo '${'$as_ac_var'}'`
44520                { echo "$as_me:$LINENO: result: $ac_res" >&5
44521 echo "${ECHO_T}$ac_res" >&6; }
44522 if test `eval echo '${'$as_ac_var'}'` = yes; then
44523   cat >>confdefs.h <<_ACEOF
44524 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44525 _ACEOF
44526
44527                 cat >>confdefs.h <<\_ACEOF
44528 #define HAVE_DLOPEN 1
44529 _ACEOF
44530
44531                 HAVE_DL_FUNCS=1
44532
44533 else
44534
44535                 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
44536 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
44537 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
44538   echo $ECHO_N "(cached) $ECHO_C" >&6
44539 else
44540   ac_check_lib_save_LIBS=$LIBS
44541 LIBS="-ldl  $LIBS"
44542 cat >conftest.$ac_ext <<_ACEOF
44543 /* confdefs.h.  */
44544 _ACEOF
44545 cat confdefs.h >>conftest.$ac_ext
44546 cat >>conftest.$ac_ext <<_ACEOF
44547 /* end confdefs.h.  */
44548
44549 /* Override any GCC internal prototype to avoid an error.
44550    Use char because int might match the return type of a GCC
44551    builtin and then its argument prototype would still apply.  */
44552 #ifdef __cplusplus
44553 extern "C"
44554 #endif
44555 char dlopen ();
44556 int
44557 main ()
44558 {
44559 return dlopen ();
44560   ;
44561   return 0;
44562 }
44563 _ACEOF
44564 rm -f conftest.$ac_objext conftest$ac_exeext
44565 if { (ac_try="$ac_link"
44566 case "(($ac_try" in
44567   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44568   *) ac_try_echo=$ac_try;;
44569 esac
44570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44571   (eval "$ac_link") 2>conftest.er1
44572   ac_status=$?
44573   grep -v '^ *+' conftest.er1 >conftest.err
44574   rm -f conftest.er1
44575   cat conftest.err >&5
44576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44577   (exit $ac_status); } && {
44578          test -z "$ac_c_werror_flag" ||
44579          test ! -s conftest.err
44580        } && test -s conftest$ac_exeext &&
44581        $as_test_x conftest$ac_exeext; then
44582   ac_cv_lib_dl_dlopen=yes
44583 else
44584   echo "$as_me: failed program was:" >&5
44585 sed 's/^/| /' conftest.$ac_ext >&5
44586
44587         ac_cv_lib_dl_dlopen=no
44588 fi
44589
44590 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44591       conftest$ac_exeext conftest.$ac_ext
44592 LIBS=$ac_check_lib_save_LIBS
44593 fi
44594 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
44595 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
44596 if test $ac_cv_lib_dl_dlopen = yes; then
44597
44598                                 cat >>confdefs.h <<\_ACEOF
44599 #define HAVE_DLOPEN 1
44600 _ACEOF
44601
44602                                 HAVE_DL_FUNCS=1
44603                                 DL_LINK=" -ldl$DL_LINK"
44604
44605 else
44606
44607
44608 for ac_func in shl_load
44609 do
44610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44614   echo $ECHO_N "(cached) $ECHO_C" >&6
44615 else
44616   cat >conftest.$ac_ext <<_ACEOF
44617 /* confdefs.h.  */
44618 _ACEOF
44619 cat confdefs.h >>conftest.$ac_ext
44620 cat >>conftest.$ac_ext <<_ACEOF
44621 /* end confdefs.h.  */
44622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44623    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44624 #define $ac_func innocuous_$ac_func
44625
44626 /* System header to define __stub macros and hopefully few prototypes,
44627     which can conflict with char $ac_func (); below.
44628     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44629     <limits.h> exists even on freestanding compilers.  */
44630
44631 #ifdef __STDC__
44632 # include <limits.h>
44633 #else
44634 # include <assert.h>
44635 #endif
44636
44637 #undef $ac_func
44638
44639 /* Override any GCC internal prototype to avoid an error.
44640    Use char because int might match the return type of a GCC
44641    builtin and then its argument prototype would still apply.  */
44642 #ifdef __cplusplus
44643 extern "C"
44644 #endif
44645 char $ac_func ();
44646 /* The GNU C library defines this for functions which it implements
44647     to always fail with ENOSYS.  Some functions are actually named
44648     something starting with __ and the normal name is an alias.  */
44649 #if defined __stub_$ac_func || defined __stub___$ac_func
44650 choke me
44651 #endif
44652
44653 int
44654 main ()
44655 {
44656 return $ac_func ();
44657   ;
44658   return 0;
44659 }
44660 _ACEOF
44661 rm -f conftest.$ac_objext conftest$ac_exeext
44662 if { (ac_try="$ac_link"
44663 case "(($ac_try" in
44664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44665   *) ac_try_echo=$ac_try;;
44666 esac
44667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44668   (eval "$ac_link") 2>conftest.er1
44669   ac_status=$?
44670   grep -v '^ *+' conftest.er1 >conftest.err
44671   rm -f conftest.er1
44672   cat conftest.err >&5
44673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44674   (exit $ac_status); } && {
44675          test -z "$ac_c_werror_flag" ||
44676          test ! -s conftest.err
44677        } && test -s conftest$ac_exeext &&
44678        $as_test_x conftest$ac_exeext; then
44679   eval "$as_ac_var=yes"
44680 else
44681   echo "$as_me: failed program was:" >&5
44682 sed 's/^/| /' conftest.$ac_ext >&5
44683
44684         eval "$as_ac_var=no"
44685 fi
44686
44687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44688       conftest$ac_exeext conftest.$ac_ext
44689 fi
44690 ac_res=`eval echo '${'$as_ac_var'}'`
44691                { echo "$as_me:$LINENO: result: $ac_res" >&5
44692 echo "${ECHO_T}$ac_res" >&6; }
44693 if test `eval echo '${'$as_ac_var'}'` = yes; then
44694   cat >>confdefs.h <<_ACEOF
44695 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44696 _ACEOF
44697
44698                                                 cat >>confdefs.h <<\_ACEOF
44699 #define HAVE_SHL_LOAD 1
44700 _ACEOF
44701
44702                                                 HAVE_SHL_FUNCS=1
44703
44704 else
44705
44706                                                 { echo "$as_me:$LINENO: checking for dld in -lshl_load" >&5
44707 echo $ECHO_N "checking for dld in -lshl_load... $ECHO_C" >&6; }
44708 if test "${ac_cv_lib_shl_load_dld+set}" = set; then
44709   echo $ECHO_N "(cached) $ECHO_C" >&6
44710 else
44711   ac_check_lib_save_LIBS=$LIBS
44712 LIBS="-lshl_load  $LIBS"
44713 cat >conftest.$ac_ext <<_ACEOF
44714 /* confdefs.h.  */
44715 _ACEOF
44716 cat confdefs.h >>conftest.$ac_ext
44717 cat >>conftest.$ac_ext <<_ACEOF
44718 /* end confdefs.h.  */
44719
44720 /* Override any GCC internal prototype to avoid an error.
44721    Use char because int might match the return type of a GCC
44722    builtin and then its argument prototype would still apply.  */
44723 #ifdef __cplusplus
44724 extern "C"
44725 #endif
44726 char dld ();
44727 int
44728 main ()
44729 {
44730 return dld ();
44731   ;
44732   return 0;
44733 }
44734 _ACEOF
44735 rm -f conftest.$ac_objext conftest$ac_exeext
44736 if { (ac_try="$ac_link"
44737 case "(($ac_try" in
44738   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44739   *) ac_try_echo=$ac_try;;
44740 esac
44741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44742   (eval "$ac_link") 2>conftest.er1
44743   ac_status=$?
44744   grep -v '^ *+' conftest.er1 >conftest.err
44745   rm -f conftest.er1
44746   cat conftest.err >&5
44747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44748   (exit $ac_status); } && {
44749          test -z "$ac_c_werror_flag" ||
44750          test ! -s conftest.err
44751        } && test -s conftest$ac_exeext &&
44752        $as_test_x conftest$ac_exeext; then
44753   ac_cv_lib_shl_load_dld=yes
44754 else
44755   echo "$as_me: failed program was:" >&5
44756 sed 's/^/| /' conftest.$ac_ext >&5
44757
44758         ac_cv_lib_shl_load_dld=no
44759 fi
44760
44761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44762       conftest$ac_exeext conftest.$ac_ext
44763 LIBS=$ac_check_lib_save_LIBS
44764 fi
44765 { echo "$as_me:$LINENO: result: $ac_cv_lib_shl_load_dld" >&5
44766 echo "${ECHO_T}$ac_cv_lib_shl_load_dld" >&6; }
44767 if test $ac_cv_lib_shl_load_dld = yes; then
44768
44769                                                                 HAVE_SHL_FUNCS=1
44770                                                                 DL_LINK=" -ldld$DL_LINK"
44771
44772 fi
44773
44774
44775 fi
44776 done
44777
44778
44779 fi
44780
44781
44782 fi
44783 done
44784
44785
44786                 if test "$HAVE_DL_FUNCS" = 1; then
44787
44788 for ac_func in dlerror
44789 do
44790 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
44791 { echo "$as_me:$LINENO: checking for $ac_func" >&5
44792 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
44793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44794   echo $ECHO_N "(cached) $ECHO_C" >&6
44795 else
44796   cat >conftest.$ac_ext <<_ACEOF
44797 /* confdefs.h.  */
44798 _ACEOF
44799 cat confdefs.h >>conftest.$ac_ext
44800 cat >>conftest.$ac_ext <<_ACEOF
44801 /* end confdefs.h.  */
44802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44804 #define $ac_func innocuous_$ac_func
44805
44806 /* System header to define __stub macros and hopefully few prototypes,
44807     which can conflict with char $ac_func (); below.
44808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44809     <limits.h> exists even on freestanding compilers.  */
44810
44811 #ifdef __STDC__
44812 # include <limits.h>
44813 #else
44814 # include <assert.h>
44815 #endif
44816
44817 #undef $ac_func
44818
44819 /* Override any GCC internal prototype to avoid an error.
44820    Use char because int might match the return type of a GCC
44821    builtin and then its argument prototype would still apply.  */
44822 #ifdef __cplusplus
44823 extern "C"
44824 #endif
44825 char $ac_func ();
44826 /* The GNU C library defines this for functions which it implements
44827     to always fail with ENOSYS.  Some functions are actually named
44828     something starting with __ and the normal name is an alias.  */
44829 #if defined __stub_$ac_func || defined __stub___$ac_func
44830 choke me
44831 #endif
44832
44833 int
44834 main ()
44835 {
44836 return $ac_func ();
44837   ;
44838   return 0;
44839 }
44840 _ACEOF
44841 rm -f conftest.$ac_objext conftest$ac_exeext
44842 if { (ac_try="$ac_link"
44843 case "(($ac_try" in
44844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44845   *) ac_try_echo=$ac_try;;
44846 esac
44847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44848   (eval "$ac_link") 2>conftest.er1
44849   ac_status=$?
44850   grep -v '^ *+' conftest.er1 >conftest.err
44851   rm -f conftest.er1
44852   cat conftest.err >&5
44853   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44854   (exit $ac_status); } && {
44855          test -z "$ac_c_werror_flag" ||
44856          test ! -s conftest.err
44857        } && test -s conftest$ac_exeext &&
44858        $as_test_x conftest$ac_exeext; then
44859   eval "$as_ac_var=yes"
44860 else
44861   echo "$as_me: failed program was:" >&5
44862 sed 's/^/| /' conftest.$ac_ext >&5
44863
44864         eval "$as_ac_var=no"
44865 fi
44866
44867 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44868       conftest$ac_exeext conftest.$ac_ext
44869 fi
44870 ac_res=`eval echo '${'$as_ac_var'}'`
44871                { echo "$as_me:$LINENO: result: $ac_res" >&5
44872 echo "${ECHO_T}$ac_res" >&6; }
44873 if test `eval echo '${'$as_ac_var'}'` = yes; then
44874   cat >>confdefs.h <<_ACEOF
44875 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
44876 _ACEOF
44877  cat >>confdefs.h <<\_ACEOF
44878 #define HAVE_DLERROR 1
44879 _ACEOF
44880
44881 else
44882
44883                     { echo "$as_me:$LINENO: checking for dlerror in -ldl" >&5
44884 echo $ECHO_N "checking for dlerror in -ldl... $ECHO_C" >&6; }
44885 if test "${ac_cv_lib_dl_dlerror+set}" = set; then
44886   echo $ECHO_N "(cached) $ECHO_C" >&6
44887 else
44888   ac_check_lib_save_LIBS=$LIBS
44889 LIBS="-ldl  $LIBS"
44890 cat >conftest.$ac_ext <<_ACEOF
44891 /* confdefs.h.  */
44892 _ACEOF
44893 cat confdefs.h >>conftest.$ac_ext
44894 cat >>conftest.$ac_ext <<_ACEOF
44895 /* end confdefs.h.  */
44896
44897 /* Override any GCC internal prototype to avoid an error.
44898    Use char because int might match the return type of a GCC
44899    builtin and then its argument prototype would still apply.  */
44900 #ifdef __cplusplus
44901 extern "C"
44902 #endif
44903 char dlerror ();
44904 int
44905 main ()
44906 {
44907 return dlerror ();
44908   ;
44909   return 0;
44910 }
44911 _ACEOF
44912 rm -f conftest.$ac_objext conftest$ac_exeext
44913 if { (ac_try="$ac_link"
44914 case "(($ac_try" in
44915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44916   *) ac_try_echo=$ac_try;;
44917 esac
44918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
44919   (eval "$ac_link") 2>conftest.er1
44920   ac_status=$?
44921   grep -v '^ *+' conftest.er1 >conftest.err
44922   rm -f conftest.er1
44923   cat conftest.err >&5
44924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
44925   (exit $ac_status); } && {
44926          test -z "$ac_c_werror_flag" ||
44927          test ! -s conftest.err
44928        } && test -s conftest$ac_exeext &&
44929        $as_test_x conftest$ac_exeext; then
44930   ac_cv_lib_dl_dlerror=yes
44931 else
44932   echo "$as_me: failed program was:" >&5
44933 sed 's/^/| /' conftest.$ac_ext >&5
44934
44935         ac_cv_lib_dl_dlerror=no
44936 fi
44937
44938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44939       conftest$ac_exeext conftest.$ac_ext
44940 LIBS=$ac_check_lib_save_LIBS
44941 fi
44942 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlerror" >&5
44943 echo "${ECHO_T}$ac_cv_lib_dl_dlerror" >&6; }
44944 if test $ac_cv_lib_dl_dlerror = yes; then
44945   cat >>confdefs.h <<\_ACEOF
44946 #define HAVE_DLERROR 1
44947 _ACEOF
44948
44949 fi
44950
44951
44952
44953 fi
44954 done
44955
44956         fi
44957         fi
44958
44959         if test "$HAVE_DL_FUNCS" = 0; then
44960             if test "$HAVE_SHL_FUNCS" = 0; then
44961               if test "$USE_UNIX" = 1 -o "$USE_DOS" = 1; then
44962                   { echo "$as_me:$LINENO: WARNING: Missing dynamic loading support, several features will be disabled" >&5
44963 echo "$as_me: WARNING: Missing dynamic loading support, several features will be disabled" >&2;}
44964                   wxUSE_DYNAMIC_LOADER=no
44965                   wxUSE_DYNLIB_CLASS=no
44966               else
44967                   { echo "$as_me:$LINENO: WARNING: Assuming wxLibrary class works on this platform" >&5
44968 echo "$as_me: WARNING: Assuming wxLibrary class works on this platform" >&2;}
44969               fi
44970             fi
44971         fi
44972     fi
44973 fi
44974
44975 if test "$wxUSE_DYNAMIC_LOADER" = "yes" ; then
44976     cat >>confdefs.h <<\_ACEOF
44977 #define wxUSE_DYNAMIC_LOADER 1
44978 _ACEOF
44979
44980 fi
44981 if test "$wxUSE_DYNLIB_CLASS" = "yes" ; then
44982     cat >>confdefs.h <<\_ACEOF
44983 #define wxUSE_DYNLIB_CLASS 1
44984 _ACEOF
44985
44986 fi
44987
44988
44989
44990 if test "$wxUSE_PLUGINS" = "yes" ; then
44991     if test "$wxUSE_SHARED" = "no" ; then
44992         { echo "$as_me:$LINENO: WARNING: plugins supported only in shared build, disabling" >&5
44993 echo "$as_me: WARNING: plugins supported only in shared build, disabling" >&2;}
44994         wxUSE_PLUGINS=no
44995     fi
44996     if test "$wxUSE_MONOLITHIC" = "yes" ; then
44997         { echo "$as_me:$LINENO: WARNING: plugins not supported monolithic build, disabling" >&5
44998 echo "$as_me: WARNING: plugins not supported monolithic build, disabling" >&2;}
44999         wxUSE_PLUGINS=no
45000     fi
45001     if test "$wxUSE_DYNLIB_CLASS" = "no" ; then
45002         { echo "$as_me:$LINENO: WARNING: plugins require wxDynamicLibrary, disabling" >&5
45003 echo "$as_me: WARNING: plugins require wxDynamicLibrary, disabling" >&2;}
45004         wxUSE_PLUGINS=no
45005     fi
45006     if test "$wxUSE_PLUGINS" = "yes" ; then
45007         cat >>confdefs.h <<\_ACEOF
45008 #define wxUSE_PLUGINS 1
45009 _ACEOF
45010
45011     fi
45012 fi
45013
45014
45015 if test "$wxUSE_STL" = "yes"; then
45016   cat >>confdefs.h <<\_ACEOF
45017 #define wxUSE_STL 1
45018 _ACEOF
45019
45020 fi
45021
45022 if test "$wxUSE_EXTENDED_RTTI" = "yes"; then
45023   cat >>confdefs.h <<\_ACEOF
45024 #define wxUSE_EXTENDED_RTTI 1
45025 _ACEOF
45026
45027 fi
45028
45029 if test "$wxUSE_APPLE_IEEE" = "yes"; then
45030   cat >>confdefs.h <<\_ACEOF
45031 #define wxUSE_APPLE_IEEE 1
45032 _ACEOF
45033
45034 fi
45035
45036 if test "$wxUSE_TIMER" = "yes"; then
45037   cat >>confdefs.h <<\_ACEOF
45038 #define wxUSE_TIMER 1
45039 _ACEOF
45040
45041 fi
45042
45043 if test "$USE_UNIX" = "1" ; then
45044         if test "$wxUSE_MGL" != 1; then
45045                                 { echo "$as_me:$LINENO: checking for SNDCTL_DSP_SPEED in sys/soundcard.h" >&5
45046 echo $ECHO_N "checking for SNDCTL_DSP_SPEED in sys/soundcard.h... $ECHO_C" >&6; }
45047 if test "${ac_cv_header_sys_soundcard+set}" = set; then
45048   echo $ECHO_N "(cached) $ECHO_C" >&6
45049 else
45050
45051             cat >conftest.$ac_ext <<_ACEOF
45052 /* confdefs.h.  */
45053 _ACEOF
45054 cat confdefs.h >>conftest.$ac_ext
45055 cat >>conftest.$ac_ext <<_ACEOF
45056 /* end confdefs.h.  */
45057
45058                     #include <sys/ioctl.h>
45059                     #include <sys/soundcard.h>
45060
45061 int
45062 main ()
45063 {
45064
45065                     ioctl(0, SNDCTL_DSP_SPEED, 0);
45066
45067   ;
45068   return 0;
45069 }
45070 _ACEOF
45071 rm -f conftest.$ac_objext conftest$ac_exeext
45072 if { (ac_try="$ac_link"
45073 case "(($ac_try" in
45074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45075   *) ac_try_echo=$ac_try;;
45076 esac
45077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45078   (eval "$ac_link") 2>conftest.er1
45079   ac_status=$?
45080   grep -v '^ *+' conftest.er1 >conftest.err
45081   rm -f conftest.er1
45082   cat conftest.err >&5
45083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45084   (exit $ac_status); } && {
45085          test -z "$ac_c_werror_flag" ||
45086          test ! -s conftest.err
45087        } && test -s conftest$ac_exeext &&
45088        $as_test_x conftest$ac_exeext; then
45089   ac_cv_header_sys_soundcard=yes
45090 else
45091   echo "$as_me: failed program was:" >&5
45092 sed 's/^/| /' conftest.$ac_ext >&5
45093
45094
45095                     saveLibs="$LIBS"
45096                     LIBS="$saveLibs -lossaudio"
45097                     cat >conftest.$ac_ext <<_ACEOF
45098 /* confdefs.h.  */
45099 _ACEOF
45100 cat confdefs.h >>conftest.$ac_ext
45101 cat >>conftest.$ac_ext <<_ACEOF
45102 /* end confdefs.h.  */
45103
45104                             #include <sys/ioctl.h>
45105                             #include <sys/soundcard.h>
45106
45107 int
45108 main ()
45109 {
45110
45111                             ioctl(0, SNDCTL_DSP_SPEED, 0);
45112
45113   ;
45114   return 0;
45115 }
45116 _ACEOF
45117 rm -f conftest.$ac_objext conftest$ac_exeext
45118 if { (ac_try="$ac_link"
45119 case "(($ac_try" in
45120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45121   *) ac_try_echo=$ac_try;;
45122 esac
45123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45124   (eval "$ac_link") 2>conftest.er1
45125   ac_status=$?
45126   grep -v '^ *+' conftest.er1 >conftest.err
45127   rm -f conftest.er1
45128   cat conftest.err >&5
45129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45130   (exit $ac_status); } && {
45131          test -z "$ac_c_werror_flag" ||
45132          test ! -s conftest.err
45133        } && test -s conftest$ac_exeext &&
45134        $as_test_x conftest$ac_exeext; then
45135   ac_cv_header_sys_soundcard=yes
45136 else
45137   echo "$as_me: failed program was:" >&5
45138 sed 's/^/| /' conftest.$ac_ext >&5
45139
45140
45141                             LIBS="$saveLibs"
45142                             ac_cv_header_sys_soundcard=no
45143
45144
45145 fi
45146
45147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45148       conftest$ac_exeext conftest.$ac_ext
45149
45150
45151 fi
45152
45153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45154       conftest$ac_exeext conftest.$ac_ext
45155
45156 fi
45157 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_soundcard" >&5
45158 echo "${ECHO_T}$ac_cv_header_sys_soundcard" >&6; }
45159     fi
45160
45161     if test "$ac_cv_header_sys_soundcard" = "yes"; then
45162         cat >>confdefs.h <<\_ACEOF
45163 #define HAVE_SYS_SOUNDCARD_H 1
45164 _ACEOF
45165
45166     fi
45167 fi
45168
45169 WITH_PLUGIN_SDL=0
45170 if test "$wxUSE_SOUND" = "yes"; then
45171   if test "$USE_UNIX" = "1" ; then
45172     if test "$wxUSE_LIBSDL" != "no"; then
45173
45174 # Check whether --with-sdl-prefix was given.
45175 if test "${with_sdl_prefix+set}" = set; then
45176   withval=$with_sdl_prefix; sdl_prefix="$withval"
45177 else
45178   sdl_prefix=""
45179 fi
45180
45181
45182 # Check whether --with-sdl-exec-prefix was given.
45183 if test "${with_sdl_exec_prefix+set}" = set; then
45184   withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
45185 else
45186   sdl_exec_prefix=""
45187 fi
45188
45189 # Check whether --enable-sdltest was given.
45190 if test "${enable_sdltest+set}" = set; then
45191   enableval=$enable_sdltest;
45192 else
45193   enable_sdltest=yes
45194 fi
45195
45196
45197   if test x$sdl_exec_prefix != x ; then
45198     sdl_args="$sdl_args --exec-prefix=$sdl_exec_prefix"
45199     if test x${SDL_CONFIG+set} != xset ; then
45200       SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
45201     fi
45202   fi
45203   if test x$sdl_prefix != x ; then
45204     sdl_args="$sdl_args --prefix=$sdl_prefix"
45205     if test x${SDL_CONFIG+set} != xset ; then
45206       SDL_CONFIG=$sdl_prefix/bin/sdl-config
45207     fi
45208   fi
45209
45210   if test "x$prefix" != xNONE; then
45211     PATH="$prefix/bin:$prefix/usr/bin:$PATH"
45212   fi
45213   # Extract the first word of "sdl-config", so it can be a program name with args.
45214 set dummy sdl-config; ac_word=$2
45215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45217 if test "${ac_cv_path_SDL_CONFIG+set}" = set; then
45218   echo $ECHO_N "(cached) $ECHO_C" >&6
45219 else
45220   case $SDL_CONFIG in
45221   [\\/]* | ?:[\\/]*)
45222   ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
45223   ;;
45224   *)
45225   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45226 for as_dir in $PATH
45227 do
45228   IFS=$as_save_IFS
45229   test -z "$as_dir" && as_dir=.
45230   for ac_exec_ext in '' $ac_executable_extensions; do
45231   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45232     ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45233     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45234     break 2
45235   fi
45236 done
45237 done
45238 IFS=$as_save_IFS
45239
45240   test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
45241   ;;
45242 esac
45243 fi
45244 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
45245 if test -n "$SDL_CONFIG"; then
45246   { echo "$as_me:$LINENO: result: $SDL_CONFIG" >&5
45247 echo "${ECHO_T}$SDL_CONFIG" >&6; }
45248 else
45249   { echo "$as_me:$LINENO: result: no" >&5
45250 echo "${ECHO_T}no" >&6; }
45251 fi
45252
45253
45254   min_sdl_version=1.2.0
45255   { echo "$as_me:$LINENO: checking for SDL - version >= $min_sdl_version" >&5
45256 echo $ECHO_N "checking for SDL - version >= $min_sdl_version... $ECHO_C" >&6; }
45257   no_sdl=""
45258   if test "$SDL_CONFIG" = "no" ; then
45259     no_sdl=yes
45260   else
45261     SDL_CFLAGS=`$SDL_CONFIG $sdlconf_args --cflags`
45262     SDL_LIBS=`$SDL_CONFIG $sdlconf_args --libs`
45263
45264     sdl_major_version=`$SDL_CONFIG $sdl_args --version | \
45265            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
45266     sdl_minor_version=`$SDL_CONFIG $sdl_args --version | \
45267            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
45268     sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
45269            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
45270     if test "x$enable_sdltest" = "xyes" ; then
45271       ac_save_CFLAGS="$CFLAGS"
45272       ac_save_CXXFLAGS="$CXXFLAGS"
45273       ac_save_LIBS="$LIBS"
45274       CFLAGS="$CFLAGS $SDL_CFLAGS"
45275       CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45276       LIBS="$LIBS $SDL_LIBS"
45277       rm -f conf.sdltest
45278       if test "$cross_compiling" = yes; then
45279   echo $ac_n "cross compiling; assumed OK... $ac_c"
45280 else
45281   cat >conftest.$ac_ext <<_ACEOF
45282 /* confdefs.h.  */
45283 _ACEOF
45284 cat confdefs.h >>conftest.$ac_ext
45285 cat >>conftest.$ac_ext <<_ACEOF
45286 /* end confdefs.h.  */
45287
45288 #include <stdio.h>
45289 #include <stdlib.h>
45290 #include <string.h>
45291 #include "SDL.h"
45292
45293 char*
45294 my_strdup (char *str)
45295 {
45296   char *new_str;
45297
45298   if (str)
45299     {
45300       new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
45301       strcpy (new_str, str);
45302     }
45303   else
45304     new_str = NULL;
45305
45306   return new_str;
45307 }
45308
45309 int main (int argc, char *argv[])
45310 {
45311   int major, minor, micro;
45312   char *tmp_version;
45313
45314   /* This hangs on some systems (?)
45315   system ("touch conf.sdltest");
45316   */
45317   { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
45318
45319   /* HP/UX 9 (%@#!) writes to sscanf strings */
45320   tmp_version = my_strdup("$min_sdl_version");
45321   if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
45322      printf("%s, bad version string\n", "$min_sdl_version");
45323      exit(1);
45324    }
45325
45326    if (($sdl_major_version > major) ||
45327       (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
45328       (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
45329     {
45330       return 0;
45331     }
45332   else
45333     {
45334       printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
45335       printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
45336       printf("*** best to upgrade to the required version.\n");
45337       printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
45338       printf("*** to point to the correct copy of sdl-config, and remove the file\n");
45339       printf("*** config.cache before re-running configure\n");
45340       return 1;
45341     }
45342 }
45343
45344
45345 _ACEOF
45346 rm -f conftest$ac_exeext
45347 if { (ac_try="$ac_link"
45348 case "(($ac_try" in
45349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45350   *) ac_try_echo=$ac_try;;
45351 esac
45352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45353   (eval "$ac_link") 2>&5
45354   ac_status=$?
45355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45356   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45357   { (case "(($ac_try" in
45358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45359   *) ac_try_echo=$ac_try;;
45360 esac
45361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45362   (eval "$ac_try") 2>&5
45363   ac_status=$?
45364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45365   (exit $ac_status); }; }; then
45366   :
45367 else
45368   echo "$as_me: program exited with status $ac_status" >&5
45369 echo "$as_me: failed program was:" >&5
45370 sed 's/^/| /' conftest.$ac_ext >&5
45371
45372 ( exit $ac_status )
45373 no_sdl=yes
45374 fi
45375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45376 fi
45377
45378
45379        CFLAGS="$ac_save_CFLAGS"
45380        CXXFLAGS="$ac_save_CXXFLAGS"
45381        LIBS="$ac_save_LIBS"
45382      fi
45383   fi
45384   if test "x$no_sdl" = x ; then
45385      { echo "$as_me:$LINENO: result: yes" >&5
45386 echo "${ECHO_T}yes" >&6; }
45387
45388                     EXTRALIBS_SDL="$SDL_LIBS"
45389                     CFLAGS="$SDL_CFLAGS $CFLAGS"
45390                     CXXFLAGS="$SDL_CFLAGS $CXXFLAGS"
45391                     cat >>confdefs.h <<\_ACEOF
45392 #define wxUSE_LIBSDL 1
45393 _ACEOF
45394
45395
45396   else
45397      { echo "$as_me:$LINENO: result: no" >&5
45398 echo "${ECHO_T}no" >&6; }
45399      if test "$SDL_CONFIG" = "no" ; then
45400        echo "*** The sdl-config script installed by SDL could not be found"
45401        echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
45402        echo "*** your path, or set the SDL_CONFIG environment variable to the"
45403        echo "*** full path to sdl-config."
45404      else
45405        if test -f conf.sdltest ; then
45406         :
45407        else
45408           echo "*** Could not run SDL test program, checking why..."
45409           CFLAGS="$CFLAGS $SDL_CFLAGS"
45410           CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
45411           LIBS="$LIBS $SDL_LIBS"
45412           cat >conftest.$ac_ext <<_ACEOF
45413 /* confdefs.h.  */
45414 _ACEOF
45415 cat confdefs.h >>conftest.$ac_ext
45416 cat >>conftest.$ac_ext <<_ACEOF
45417 /* end confdefs.h.  */
45418
45419 #include <stdio.h>
45420 #include "SDL.h"
45421
45422 int main(int argc, char *argv[])
45423 { return 0; }
45424 #undef  main
45425 #define main K_and_R_C_main
45426
45427 int
45428 main ()
45429 {
45430  return 0;
45431   ;
45432   return 0;
45433 }
45434 _ACEOF
45435 rm -f conftest.$ac_objext conftest$ac_exeext
45436 if { (ac_try="$ac_link"
45437 case "(($ac_try" in
45438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45439   *) ac_try_echo=$ac_try;;
45440 esac
45441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
45442   (eval "$ac_link") 2>conftest.er1
45443   ac_status=$?
45444   grep -v '^ *+' conftest.er1 >conftest.err
45445   rm -f conftest.er1
45446   cat conftest.err >&5
45447   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45448   (exit $ac_status); } && {
45449          test -z "$ac_c_werror_flag" ||
45450          test ! -s conftest.err
45451        } && test -s conftest$ac_exeext &&
45452        $as_test_x conftest$ac_exeext; then
45453    echo "*** The test program compiled, but did not run. This usually means"
45454           echo "*** that the run-time linker is not finding SDL or finding the wrong"
45455           echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
45456           echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
45457           echo "*** to the installed location  Also, make sure you have run ldconfig if that"
45458           echo "*** is required on your system"
45459           echo "***"
45460           echo "*** If you have an old version installed, it is best to remove it, although"
45461           echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
45462 else
45463   echo "$as_me: failed program was:" >&5
45464 sed 's/^/| /' conftest.$ac_ext >&5
45465
45466          echo "*** The test program failed to compile or link. See the file config.log for the"
45467           echo "*** exact error that occured. This usually means SDL was incorrectly installed"
45468           echo "*** or that you have moved SDL since it was installed. In the latter case, you"
45469           echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
45470 fi
45471
45472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45473       conftest$ac_exeext conftest.$ac_ext
45474           CFLAGS="$ac_save_CFLAGS"
45475           CXXFLAGS="$ac_save_CXXFLAGS"
45476           LIBS="$ac_save_LIBS"
45477        fi
45478      fi
45479      SDL_CFLAGS=""
45480      SDL_LIBS=""
45481      wxUSE_LIBSDL="no"
45482   fi
45483
45484
45485   rm -f conf.sdltest
45486
45487       if test "$wxUSE_LIBSDL" = "yes" -a "$wxUSE_PLUGINS" = "yes" ; then
45488         WITH_PLUGIN_SDL=1
45489       fi
45490     fi
45491   else
45492         if test "$wxUSE_MGL" = 1; then
45493         { echo "$as_me:$LINENO: WARNING: wxSound not supported in MGL under DOS... disabled" >&5
45494 echo "$as_me: WARNING: wxSound not supported in MGL under DOS... disabled" >&2;}
45495         wxUSE_SOUND="no"
45496     fi
45497   fi
45498 fi
45499
45500 if test "$wxUSE_SOUND" = "yes"; then
45501   cat >>confdefs.h <<\_ACEOF
45502 #define wxUSE_SOUND 1
45503 _ACEOF
45504
45505   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sound"
45506 fi
45507
45508 if test "$WXGTK20" = 1; then
45509
45510
45511 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
45512         if test -n "$ac_tool_prefix"; then
45513   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45514 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45517 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
45518   echo $ECHO_N "(cached) $ECHO_C" >&6
45519 else
45520   case $PKG_CONFIG in
45521   [\\/]* | ?:[\\/]*)
45522   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
45523   ;;
45524   *)
45525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45526 for as_dir in $PATH
45527 do
45528   IFS=$as_save_IFS
45529   test -z "$as_dir" && as_dir=.
45530   for ac_exec_ext in '' $ac_executable_extensions; do
45531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45532     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45534     break 2
45535   fi
45536 done
45537 done
45538 IFS=$as_save_IFS
45539
45540   ;;
45541 esac
45542 fi
45543 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
45544 if test -n "$PKG_CONFIG"; then
45545   { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
45546 echo "${ECHO_T}$PKG_CONFIG" >&6; }
45547 else
45548   { echo "$as_me:$LINENO: result: no" >&5
45549 echo "${ECHO_T}no" >&6; }
45550 fi
45551
45552
45553 fi
45554 if test -z "$ac_cv_path_PKG_CONFIG"; then
45555   ac_pt_PKG_CONFIG=$PKG_CONFIG
45556   # Extract the first word of "pkg-config", so it can be a program name with args.
45557 set dummy pkg-config; ac_word=$2
45558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
45559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
45560 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
45561   echo $ECHO_N "(cached) $ECHO_C" >&6
45562 else
45563   case $ac_pt_PKG_CONFIG in
45564   [\\/]* | ?:[\\/]*)
45565   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
45566   ;;
45567   *)
45568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45569 for as_dir in $PATH
45570 do
45571   IFS=$as_save_IFS
45572   test -z "$as_dir" && as_dir=.
45573   for ac_exec_ext in '' $ac_executable_extensions; do
45574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
45575     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
45576     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
45577     break 2
45578   fi
45579 done
45580 done
45581 IFS=$as_save_IFS
45582
45583   ;;
45584 esac
45585 fi
45586 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
45587 if test -n "$ac_pt_PKG_CONFIG"; then
45588   { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
45589 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; }
45590 else
45591   { echo "$as_me:$LINENO: result: no" >&5
45592 echo "${ECHO_T}no" >&6; }
45593 fi
45594
45595   if test "x$ac_pt_PKG_CONFIG" = x; then
45596     PKG_CONFIG=""
45597   else
45598     case $cross_compiling:$ac_tool_warned in
45599 yes:)
45600 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
45601 whose name does not start with the host triplet.  If you think this
45602 configuration is useful to you, please write to autoconf@gnu.org." >&5
45603 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
45604 whose name does not start with the host triplet.  If you think this
45605 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
45606 ac_tool_warned=yes ;;
45607 esac
45608     PKG_CONFIG=$ac_pt_PKG_CONFIG
45609   fi
45610 else
45611   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
45612 fi
45613
45614 fi
45615 if test -n "$PKG_CONFIG"; then
45616         _pkg_min_version=0.9.0
45617         { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
45618 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; }
45619         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
45620                 { echo "$as_me:$LINENO: result: yes" >&5
45621 echo "${ECHO_T}yes" >&6; }
45622         else
45623                 { echo "$as_me:$LINENO: result: no" >&5
45624 echo "${ECHO_T}no" >&6; }
45625                 PKG_CONFIG=""
45626         fi
45627
45628 fi
45629
45630     if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
45631         if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
45632
45633
45634 pkg_failed=no
45635 { echo "$as_me:$LINENO: checking for LIBGNOMEPRINTUI" >&5
45636 echo $ECHO_N "checking for LIBGNOMEPRINTUI... $ECHO_C" >&6; }
45637
45638 if test -n "$PKG_CONFIG"; then
45639     if test -n "$LIBGNOMEPRINTUI_CFLAGS"; then
45640         pkg_cv_LIBGNOMEPRINTUI_CFLAGS="$LIBGNOMEPRINTUI_CFLAGS"
45641     else
45642         if test -n "$PKG_CONFIG" && \
45643     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45644   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45645   ac_status=$?
45646   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45647   (exit $ac_status); }; then
45648   pkg_cv_LIBGNOMEPRINTUI_CFLAGS=`$PKG_CONFIG --cflags "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45649 else
45650   pkg_failed=yes
45651 fi
45652     fi
45653 else
45654         pkg_failed=untried
45655 fi
45656 if test -n "$PKG_CONFIG"; then
45657     if test -n "$LIBGNOMEPRINTUI_LIBS"; then
45658         pkg_cv_LIBGNOMEPRINTUI_LIBS="$LIBGNOMEPRINTUI_LIBS"
45659     else
45660         if test -n "$PKG_CONFIG" && \
45661     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgnomeprintui-2.2 >= 2.8\"") >&5
45662   ($PKG_CONFIG --exists --print-errors "libgnomeprintui-2.2 >= 2.8") 2>&5
45663   ac_status=$?
45664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45665   (exit $ac_status); }; then
45666   pkg_cv_LIBGNOMEPRINTUI_LIBS=`$PKG_CONFIG --libs "libgnomeprintui-2.2 >= 2.8" 2>/dev/null`
45667 else
45668   pkg_failed=yes
45669 fi
45670     fi
45671 else
45672         pkg_failed=untried
45673 fi
45674
45675
45676
45677 if test $pkg_failed = yes; then
45678
45679 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45680         _pkg_short_errors_supported=yes
45681 else
45682         _pkg_short_errors_supported=no
45683 fi
45684         if test $_pkg_short_errors_supported = yes; then
45685                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45686         else
45687                 LIBGNOMEPRINTUI_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgnomeprintui-2.2 >= 2.8"`
45688         fi
45689         # Put the nasty error message in config.log where it belongs
45690         echo "$LIBGNOMEPRINTUI_PKG_ERRORS" >&5
45691
45692
45693                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45694 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45695                         wxUSE_LIBGNOMEPRINT="no"
45696
45697
45698 elif test $pkg_failed = untried; then
45699
45700                         { echo "$as_me:$LINENO: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&5
45701 echo "$as_me: WARNING: libgnomeprintui not found, library will use standard PostScript printing" >&2;}
45702                         wxUSE_LIBGNOMEPRINT="no"
45703
45704
45705 else
45706         LIBGNOMEPRINTUI_CFLAGS=$pkg_cv_LIBGNOMEPRINTUI_CFLAGS
45707         LIBGNOMEPRINTUI_LIBS=$pkg_cv_LIBGNOMEPRINTUI_LIBS
45708         { echo "$as_me:$LINENO: result: yes" >&5
45709 echo "${ECHO_T}yes" >&6; }
45710
45711                         CFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CFLAGS"
45712                         CXXFLAGS="$LIBGNOMEPRINTUI_CFLAGS $CXXFLAGS"
45713                         cat >>confdefs.h <<\_ACEOF
45714 #define wxUSE_LIBGNOMEPRINT 1
45715 _ACEOF
45716
45717
45718 fi
45719         fi
45720     fi
45721
45722     if test "$wxUSE_MIMETYPE" = "yes" ; then
45723         if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
45724
45725
45726 pkg_failed=no
45727 { echo "$as_me:$LINENO: checking for GNOMEVFS" >&5
45728 echo $ECHO_N "checking for GNOMEVFS... $ECHO_C" >&6; }
45729
45730 if test -n "$PKG_CONFIG"; then
45731     if test -n "$GNOMEVFS_CFLAGS"; then
45732         pkg_cv_GNOMEVFS_CFLAGS="$GNOMEVFS_CFLAGS"
45733     else
45734         if test -n "$PKG_CONFIG" && \
45735     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45736   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45737   ac_status=$?
45738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45739   (exit $ac_status); }; then
45740   pkg_cv_GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45741 else
45742   pkg_failed=yes
45743 fi
45744     fi
45745 else
45746         pkg_failed=untried
45747 fi
45748 if test -n "$PKG_CONFIG"; then
45749     if test -n "$GNOMEVFS_LIBS"; then
45750         pkg_cv_GNOMEVFS_LIBS="$GNOMEVFS_LIBS"
45751     else
45752         if test -n "$PKG_CONFIG" && \
45753     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gnome-vfs-2.0 >= 2.0\"") >&5
45754   ($PKG_CONFIG --exists --print-errors "gnome-vfs-2.0 >= 2.0") 2>&5
45755   ac_status=$?
45756   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45757   (exit $ac_status); }; then
45758   pkg_cv_GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.0" 2>/dev/null`
45759 else
45760   pkg_failed=yes
45761 fi
45762     fi
45763 else
45764         pkg_failed=untried
45765 fi
45766
45767
45768
45769 if test $pkg_failed = yes; then
45770
45771 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45772         _pkg_short_errors_supported=yes
45773 else
45774         _pkg_short_errors_supported=no
45775 fi
45776         if test $_pkg_short_errors_supported = yes; then
45777                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45778         else
45779                 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.0"`
45780         fi
45781         # Put the nasty error message in config.log where it belongs
45782         echo "$GNOMEVFS_PKG_ERRORS" >&5
45783
45784
45785                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45786 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45787                         wxUSE_LIBGNOMEVFS="no"
45788
45789
45790 elif test $pkg_failed = untried; then
45791
45792                         { echo "$as_me:$LINENO: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&5
45793 echo "$as_me: WARNING: libgnomevfs not found, library won't be able to associate MIME type" >&2;}
45794                         wxUSE_LIBGNOMEVFS="no"
45795
45796
45797 else
45798         GNOMEVFS_CFLAGS=$pkg_cv_GNOMEVFS_CFLAGS
45799         GNOMEVFS_LIBS=$pkg_cv_GNOMEVFS_LIBS
45800         { echo "$as_me:$LINENO: result: yes" >&5
45801 echo "${ECHO_T}yes" >&6; }
45802
45803                         CFLAGS="$GNOMEVFS_CFLAGS $CFLAGS"
45804                         CXXFLAGS="$GNOMEVFS_CFLAGS $CXXFLAGS"
45805                         cat >>confdefs.h <<\_ACEOF
45806 #define wxUSE_LIBGNOMEVFS 1
45807 _ACEOF
45808
45809
45810 fi
45811         fi
45812     fi
45813
45814     if test "$wxUSE_LIBHILDON" = "yes" ; then
45815
45816 pkg_failed=no
45817 { echo "$as_me:$LINENO: checking for HILDON" >&5
45818 echo $ECHO_N "checking for HILDON... $ECHO_C" >&6; }
45819
45820 if test -n "$PKG_CONFIG"; then
45821     if test -n "$HILDON_CFLAGS"; then
45822         pkg_cv_HILDON_CFLAGS="$HILDON_CFLAGS"
45823     else
45824         if test -n "$PKG_CONFIG" && \
45825     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45826   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45827   ac_status=$?
45828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45829   (exit $ac_status); }; then
45830   pkg_cv_HILDON_CFLAGS=`$PKG_CONFIG --cflags "hildon-lgpl >= 0.9" 2>/dev/null`
45831 else
45832   pkg_failed=yes
45833 fi
45834     fi
45835 else
45836         pkg_failed=untried
45837 fi
45838 if test -n "$PKG_CONFIG"; then
45839     if test -n "$HILDON_LIBS"; then
45840         pkg_cv_HILDON_LIBS="$HILDON_LIBS"
45841     else
45842         if test -n "$PKG_CONFIG" && \
45843     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"hildon-lgpl >= 0.9\"") >&5
45844   ($PKG_CONFIG --exists --print-errors "hildon-lgpl >= 0.9") 2>&5
45845   ac_status=$?
45846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
45847   (exit $ac_status); }; then
45848   pkg_cv_HILDON_LIBS=`$PKG_CONFIG --libs "hildon-lgpl >= 0.9" 2>/dev/null`
45849 else
45850   pkg_failed=yes
45851 fi
45852     fi
45853 else
45854         pkg_failed=untried
45855 fi
45856
45857
45858
45859 if test $pkg_failed = yes; then
45860
45861 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
45862         _pkg_short_errors_supported=yes
45863 else
45864         _pkg_short_errors_supported=no
45865 fi
45866         if test $_pkg_short_errors_supported = yes; then
45867                 HILDON_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45868         else
45869                 HILDON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hildon-lgpl >= 0.9"`
45870         fi
45871         # Put the nasty error message in config.log where it belongs
45872         echo "$HILDON_PKG_ERRORS" >&5
45873
45874
45875                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45876 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45877                         wxUSE_LIBHILDON="no"
45878
45879
45880 elif test $pkg_failed = untried; then
45881
45882                 { echo "$as_me:$LINENO: WARNING: libhildon_lgpl not found" >&5
45883 echo "$as_me: WARNING: libhildon_lgpl not found" >&2;}
45884                         wxUSE_LIBHILDON="no"
45885
45886
45887 else
45888         HILDON_CFLAGS=$pkg_cv_HILDON_CFLAGS
45889         HILDON_LIBS=$pkg_cv_HILDON_LIBS
45890         { echo "$as_me:$LINENO: result: yes" >&5
45891 echo "${ECHO_T}yes" >&6; }
45892
45893                 EXTRALIBS_HILDON="$HILDON_LIBS"
45894                 CFLAGS="$CFLAGS $HILDON_CFLAGS"
45895                 CXXFLAGS="$CXXFLAGS $HILDON_CFLAGS"
45896                 cat >>confdefs.h <<\_ACEOF
45897 #define wxUSE_LIBHILDON 1
45898 _ACEOF
45899
45900
45901 fi
45902     fi
45903 fi
45904
45905 if test "$wxUSE_CMDLINE_PARSER" = "yes"; then
45906   cat >>confdefs.h <<\_ACEOF
45907 #define wxUSE_CMDLINE_PARSER 1
45908 _ACEOF
45909
45910 fi
45911
45912 if test "$wxUSE_STOPWATCH" = "yes"; then
45913   cat >>confdefs.h <<\_ACEOF
45914 #define wxUSE_STOPWATCH 1
45915 _ACEOF
45916
45917 fi
45918
45919 if test "$wxUSE_DATETIME" = "yes"; then
45920   cat >>confdefs.h <<\_ACEOF
45921 #define wxUSE_DATETIME 1
45922 _ACEOF
45923
45924 fi
45925
45926 if test "$wxUSE_FILE" = "yes"; then
45927   cat >>confdefs.h <<\_ACEOF
45928 #define wxUSE_FILE 1
45929 _ACEOF
45930
45931 fi
45932
45933 if test "$wxUSE_FFILE" = "yes"; then
45934   cat >>confdefs.h <<\_ACEOF
45935 #define wxUSE_FFILE 1
45936 _ACEOF
45937
45938 fi
45939
45940 if test "$wxUSE_ARCHIVE_STREAMS" = "yes"; then
45941   if test "$wxUSE_STREAMS" != yes; then
45942     { echo "$as_me:$LINENO: WARNING: wxArchive requires wxStreams... disabled" >&5
45943 echo "$as_me: WARNING: wxArchive requires wxStreams... disabled" >&2;}
45944     wxUSE_ARCHIVE_STREAMS=no
45945   else
45946     cat >>confdefs.h <<\_ACEOF
45947 #define wxUSE_ARCHIVE_STREAMS 1
45948 _ACEOF
45949
45950   fi
45951 fi
45952
45953 if test "$wxUSE_ZIPSTREAM" = "yes"; then
45954   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45955     { echo "$as_me:$LINENO: WARNING: wxZip requires wxArchive... disabled" >&5
45956 echo "$as_me: WARNING: wxZip requires wxArchive... disabled" >&2;}
45957   elif test "$wxUSE_ZLIB" = "no"; then
45958     { echo "$as_me:$LINENO: WARNING: wxZip requires wxZlib... disabled" >&5
45959 echo "$as_me: WARNING: wxZip requires wxZlib... disabled" >&2;}
45960   else
45961     cat >>confdefs.h <<\_ACEOF
45962 #define wxUSE_ZIPSTREAM 1
45963 _ACEOF
45964
45965   fi
45966 fi
45967
45968 if test "$wxUSE_TARSTREAM" = "yes"; then
45969   if test "$wxUSE_ARCHIVE_STREAMS" != "yes"; then
45970     { echo "$as_me:$LINENO: WARNING: wxTar requires wxArchive... disabled" >&5
45971 echo "$as_me: WARNING: wxTar requires wxArchive... disabled" >&2;}
45972   else
45973     cat >>confdefs.h <<\_ACEOF
45974 #define wxUSE_TARSTREAM 1
45975 _ACEOF
45976
45977   fi
45978 fi
45979
45980 if test "$wxUSE_FILESYSTEM" = "yes"; then
45981   if test "$wxUSE_STREAMS" != yes -o \( "$wxUSE_FILE" != yes -a "$wxUSE_FFILE" != yes \); then
45982     { echo "$as_me:$LINENO: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&5
45983 echo "$as_me: WARNING: wxFileSystem requires wxStreams and wxFile or wxFFile... disabled" >&2;}
45984     wxUSE_FILESYSTEM=no
45985   else
45986     cat >>confdefs.h <<\_ACEOF
45987 #define wxUSE_FILESYSTEM 1
45988 _ACEOF
45989
45990   fi
45991 fi
45992
45993 if test "$wxUSE_FS_ARCHIVE" = "yes"; then
45994   if test "$wxUSE_FILESYSTEM" != yes -o "$wxUSE_ARCHIVE_STREAMS" != yes; then
45995     { echo "$as_me:$LINENO: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&5
45996 echo "$as_me: WARNING: wxArchiveFSHandler requires wxArchive and wxFileSystem... disabled" >&2;}
45997   else
45998     cat >>confdefs.h <<\_ACEOF
45999 #define wxUSE_FS_ARCHIVE 1
46000 _ACEOF
46001
46002   fi
46003 fi
46004
46005 if test "$wxUSE_FS_ZIP" = "yes"; then
46006   if test "$wxUSE_FS_ARCHIVE" != yes; then
46007     { echo "$as_me:$LINENO: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&5
46008 echo "$as_me: WARNING: wxZipFSHandler requires wxArchiveFSHandler... disabled" >&2;}
46009   else
46010     cat >>confdefs.h <<\_ACEOF
46011 #define wxUSE_FS_ZIP 1
46012 _ACEOF
46013
46014   fi
46015 fi
46016
46017 if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
46018   if test "$USE_UNIX" != 1; then
46019     { echo "$as_me:$LINENO: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&5
46020 echo "$as_me: WARNING: Catching fatal exceptions not currently supported on this system, wxApp::OnFatalException will not be called" >&2;}
46021     wxUSE_ON_FATAL_EXCEPTION=no
46022   else
46023     cat >>confdefs.h <<\_ACEOF
46024 #define wxUSE_ON_FATAL_EXCEPTION 1
46025 _ACEOF
46026
46027   fi
46028 fi
46029
46030 if test "$wxUSE_STACKWALKER" = "yes"; then
46031     cat >>confdefs.h <<\_ACEOF
46032 #define wxUSE_STACKWALKER 1
46033 _ACEOF
46034
46035 fi
46036
46037 if test "$wxUSE_DEBUGREPORT" = "yes"; then
46038     if test "$USE_UNIX" != "1" -a "$USE_WIN32" != "1"; then
46039         { echo "$as_me:$LINENO: WARNING: Creating debug reports not currently supported on this system, disabled" >&5
46040 echo "$as_me: WARNING: Creating debug reports not currently supported on this system, disabled" >&2;}
46041         wxUSE_DEBUGREPORT=no
46042     else
46043         cat >>confdefs.h <<\_ACEOF
46044 #define wxUSE_DEBUGREPORT 1
46045 _ACEOF
46046
46047         if test "$wxUSE_ON_FATAL_EXCEPTION" = "yes"; then
46048             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS debugrpt"
46049         fi
46050     fi
46051 fi
46052
46053 if test "$wxUSE_SNGLINST_CHECKER" = "yes"; then
46054   cat >>confdefs.h <<\_ACEOF
46055 #define wxUSE_SNGLINST_CHECKER 1
46056 _ACEOF
46057
46058 fi
46059
46060 if test "$wxUSE_BUSYINFO" = "yes"; then
46061   cat >>confdefs.h <<\_ACEOF
46062 #define wxUSE_BUSYINFO 1
46063 _ACEOF
46064
46065 fi
46066
46067 if test "$wxUSE_STD_IOSTREAM" = "yes"; then
46068   cat >>confdefs.h <<\_ACEOF
46069 #define wxUSE_STD_IOSTREAM 1
46070 _ACEOF
46071
46072 fi
46073
46074 if test "$wxUSE_STD_STRING" = "yes"; then
46075   cat >>confdefs.h <<\_ACEOF
46076 #define wxUSE_STD_STRING 1
46077 _ACEOF
46078
46079 fi
46080
46081 if test "$wxUSE_STDPATHS" = "yes"; then
46082   cat >>confdefs.h <<\_ACEOF
46083 #define wxUSE_STDPATHS 1
46084 _ACEOF
46085
46086 fi
46087
46088 if test "$wxUSE_TEXTBUFFER" = "yes"; then
46089     cat >>confdefs.h <<\_ACEOF
46090 #define wxUSE_TEXTBUFFER 1
46091 _ACEOF
46092
46093 fi
46094
46095 if test "$wxUSE_TEXTFILE" = "yes"; then
46096   if test "$wxUSE_FILE" != "yes" -o "$wxUSE_TEXTBUFFER" != "yes" ; then
46097     { echo "$as_me:$LINENO: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&5
46098 echo "$as_me: WARNING: wxTextFile requires wxFile and wxTextBuffer... disabled" >&2;}
46099   else
46100     cat >>confdefs.h <<\_ACEOF
46101 #define wxUSE_TEXTFILE 1
46102 _ACEOF
46103
46104   fi
46105 fi
46106
46107 if test "$wxUSE_CONFIG" = "yes" ; then
46108   if test "$wxUSE_TEXTFILE" != "yes"; then
46109     { echo "$as_me:$LINENO: WARNING: wxConfig requires wxTextFile... disabled" >&5
46110 echo "$as_me: WARNING: wxConfig requires wxTextFile... disabled" >&2;}
46111   else
46112     cat >>confdefs.h <<\_ACEOF
46113 #define wxUSE_CONFIG 1
46114 _ACEOF
46115
46116     cat >>confdefs.h <<\_ACEOF
46117 #define wxUSE_CONFIG_NATIVE 1
46118 _ACEOF
46119
46120     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS config"
46121   fi
46122 fi
46123
46124 if test "$wxUSE_INTL" = "yes" ; then
46125   if test "$wxUSE_FILE" != "yes"; then
46126     { echo "$as_me:$LINENO: WARNING: I18n code requires wxFile... disabled" >&5
46127 echo "$as_me: WARNING: I18n code requires wxFile... disabled" >&2;}
46128   else
46129     cat >>confdefs.h <<\_ACEOF
46130 #define wxUSE_INTL 1
46131 _ACEOF
46132
46133     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS internat"
46134     GUIDIST="$GUIDIST INTL_DIST"
46135   fi
46136 fi
46137
46138 if test "$wxUSE_LOG" = "yes"; then
46139   cat >>confdefs.h <<\_ACEOF
46140 #define wxUSE_LOG 1
46141 _ACEOF
46142
46143
46144     if test "$wxUSE_LOGGUI" = "yes"; then
46145       cat >>confdefs.h <<\_ACEOF
46146 #define wxUSE_LOGGUI 1
46147 _ACEOF
46148
46149     fi
46150
46151     if test "$wxUSE_LOGWINDOW" = "yes"; then
46152       cat >>confdefs.h <<\_ACEOF
46153 #define wxUSE_LOGWINDOW 1
46154 _ACEOF
46155
46156     fi
46157
46158     if test "$wxUSE_LOGDIALOG" = "yes"; then
46159       cat >>confdefs.h <<\_ACEOF
46160 #define wxUSE_LOG_DIALOG 1
46161 _ACEOF
46162
46163     fi
46164
46165         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS keyboard"
46166 fi
46167
46168 if test "$wxUSE_LONGLONG" = "yes"; then
46169   cat >>confdefs.h <<\_ACEOF
46170 #define wxUSE_LONGLONG 1
46171 _ACEOF
46172
46173 fi
46174
46175 if test "$wxUSE_GEOMETRY" = "yes"; then
46176   cat >>confdefs.h <<\_ACEOF
46177 #define wxUSE_GEOMETRY 1
46178 _ACEOF
46179
46180 fi
46181
46182 if test "$wxUSE_BASE64" = "yes"; then
46183   cat >>confdefs.h <<\_ACEOF
46184 #define wxUSE_BASE64 1
46185 _ACEOF
46186
46187 fi
46188
46189 if test "$wxUSE_STREAMS" = "yes" ; then
46190   cat >>confdefs.h <<\_ACEOF
46191 #define wxUSE_STREAMS 1
46192 _ACEOF
46193
46194 fi
46195
46196 if test "$wxUSE_PRINTF_POS_PARAMS" = "yes"; then
46197   cat >>confdefs.h <<\_ACEOF
46198 #define wxUSE_PRINTF_POS_PARAMS 1
46199 _ACEOF
46200
46201 fi
46202
46203 if test "$wxUSE_OBJC_UNIQUIFYING" = "yes"; then
46204   cat >>confdefs.h <<\_ACEOF
46205 #define wxUSE_OBJC_UNIQUIFYING 1
46206 _ACEOF
46207
46208 fi
46209
46210
46211 if test "$wxUSE_CONSOLE_EVENTLOOP" = "yes"; then
46212     cat >>confdefs.h <<\_ACEOF
46213 #define wxUSE_CONSOLE_EVENTLOOP 1
46214 _ACEOF
46215
46216
46217     if test "$wxUSE_UNIX" = "yes"; then
46218         if test "$wxUSE_SELECT_DISPATCHER" = "yes"; then
46219             cat >>confdefs.h <<\_ACEOF
46220 #define wxUSE_SELECT_DISPATCHER 1
46221 _ACEOF
46222
46223         fi
46224
46225         if test "$wxUSE_EPOLL_DISPATCHER" = "yes"; then
46226
46227 for ac_header in sys/epoll.h
46228 do
46229 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
46230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46231   { echo "$as_me:$LINENO: checking for $ac_header" >&5
46232 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46234   echo $ECHO_N "(cached) $ECHO_C" >&6
46235 fi
46236 ac_res=`eval echo '${'$as_ac_Header'}'`
46237                { echo "$as_me:$LINENO: result: $ac_res" >&5
46238 echo "${ECHO_T}$ac_res" >&6; }
46239 else
46240   # Is the header compilable?
46241 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
46242 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
46243 cat >conftest.$ac_ext <<_ACEOF
46244 /* confdefs.h.  */
46245 _ACEOF
46246 cat confdefs.h >>conftest.$ac_ext
46247 cat >>conftest.$ac_ext <<_ACEOF
46248 /* end confdefs.h.  */
46249 $ac_includes_default
46250 #include <$ac_header>
46251 _ACEOF
46252 rm -f conftest.$ac_objext
46253 if { (ac_try="$ac_compile"
46254 case "(($ac_try" in
46255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46256   *) ac_try_echo=$ac_try;;
46257 esac
46258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46259   (eval "$ac_compile") 2>conftest.er1
46260   ac_status=$?
46261   grep -v '^ *+' conftest.er1 >conftest.err
46262   rm -f conftest.er1
46263   cat conftest.err >&5
46264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46265   (exit $ac_status); } && {
46266          test -z "$ac_c_werror_flag" ||
46267          test ! -s conftest.err
46268        } && test -s conftest.$ac_objext; then
46269   ac_header_compiler=yes
46270 else
46271   echo "$as_me: failed program was:" >&5
46272 sed 's/^/| /' conftest.$ac_ext >&5
46273
46274         ac_header_compiler=no
46275 fi
46276
46277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46278 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46279 echo "${ECHO_T}$ac_header_compiler" >&6; }
46280
46281 # Is the header present?
46282 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
46283 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
46284 cat >conftest.$ac_ext <<_ACEOF
46285 /* confdefs.h.  */
46286 _ACEOF
46287 cat confdefs.h >>conftest.$ac_ext
46288 cat >>conftest.$ac_ext <<_ACEOF
46289 /* end confdefs.h.  */
46290 #include <$ac_header>
46291 _ACEOF
46292 if { (ac_try="$ac_cpp conftest.$ac_ext"
46293 case "(($ac_try" in
46294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46295   *) ac_try_echo=$ac_try;;
46296 esac
46297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46298   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46299   ac_status=$?
46300   grep -v '^ *+' conftest.er1 >conftest.err
46301   rm -f conftest.er1
46302   cat conftest.err >&5
46303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46304   (exit $ac_status); } >/dev/null && {
46305          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46306          test ! -s conftest.err
46307        }; then
46308   ac_header_preproc=yes
46309 else
46310   echo "$as_me: failed program was:" >&5
46311 sed 's/^/| /' conftest.$ac_ext >&5
46312
46313   ac_header_preproc=no
46314 fi
46315
46316 rm -f conftest.err conftest.$ac_ext
46317 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46318 echo "${ECHO_T}$ac_header_preproc" >&6; }
46319
46320 # So?  What about this header?
46321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46322   yes:no: )
46323     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46324 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46325     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46326 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46327     ac_header_preproc=yes
46328     ;;
46329   no:yes:* )
46330     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46331 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46332     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46333 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46334     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46335 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46336     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46337 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46339 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46340     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46341 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46342     ( cat <<\_ASBOX
46343 ## ----------------------------------------- ##
46344 ## Report this to wx-dev@lists.wxwidgets.org ##
46345 ## ----------------------------------------- ##
46346 _ASBOX
46347      ) | sed "s/^/$as_me: WARNING:     /" >&2
46348     ;;
46349 esac
46350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
46351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
46352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46353   echo $ECHO_N "(cached) $ECHO_C" >&6
46354 else
46355   eval "$as_ac_Header=\$ac_header_preproc"
46356 fi
46357 ac_res=`eval echo '${'$as_ac_Header'}'`
46358                { echo "$as_me:$LINENO: result: $ac_res" >&5
46359 echo "${ECHO_T}$ac_res" >&6; }
46360
46361 fi
46362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
46363   cat >>confdefs.h <<_ACEOF
46364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
46365 _ACEOF
46366
46367 fi
46368
46369 done
46370
46371             if test "$ac_cv_header_sys_epoll_h" = "yes"; then
46372                 cat >>confdefs.h <<\_ACEOF
46373 #define wxUSE_EPOLL_DISPATCHER 1
46374 _ACEOF
46375
46376             else
46377                 { echo "$as_me:$LINENO: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&5
46378 echo "$as_me: WARNING: sys/epoll.h not available, wxEpollDispatcher disabled" >&2;}
46379             fi
46380         fi
46381     fi
46382 fi
46383
46384
46385
46386
46387 for ac_func in gettimeofday ftime
46388 do
46389 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
46390 { echo "$as_me:$LINENO: checking for $ac_func" >&5
46391 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
46392 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46393   echo $ECHO_N "(cached) $ECHO_C" >&6
46394 else
46395   cat >conftest.$ac_ext <<_ACEOF
46396 /* confdefs.h.  */
46397 _ACEOF
46398 cat confdefs.h >>conftest.$ac_ext
46399 cat >>conftest.$ac_ext <<_ACEOF
46400 /* end confdefs.h.  */
46401 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46402    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46403 #define $ac_func innocuous_$ac_func
46404
46405 /* System header to define __stub macros and hopefully few prototypes,
46406     which can conflict with char $ac_func (); below.
46407     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46408     <limits.h> exists even on freestanding compilers.  */
46409
46410 #ifdef __STDC__
46411 # include <limits.h>
46412 #else
46413 # include <assert.h>
46414 #endif
46415
46416 #undef $ac_func
46417
46418 /* Override any GCC internal prototype to avoid an error.
46419    Use char because int might match the return type of a GCC
46420    builtin and then its argument prototype would still apply.  */
46421 #ifdef __cplusplus
46422 extern "C"
46423 #endif
46424 char $ac_func ();
46425 /* The GNU C library defines this for functions which it implements
46426     to always fail with ENOSYS.  Some functions are actually named
46427     something starting with __ and the normal name is an alias.  */
46428 #if defined __stub_$ac_func || defined __stub___$ac_func
46429 choke me
46430 #endif
46431
46432 int
46433 main ()
46434 {
46435 return $ac_func ();
46436   ;
46437   return 0;
46438 }
46439 _ACEOF
46440 rm -f conftest.$ac_objext conftest$ac_exeext
46441 if { (ac_try="$ac_link"
46442 case "(($ac_try" in
46443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46444   *) ac_try_echo=$ac_try;;
46445 esac
46446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46447   (eval "$ac_link") 2>conftest.er1
46448   ac_status=$?
46449   grep -v '^ *+' conftest.er1 >conftest.err
46450   rm -f conftest.er1
46451   cat conftest.err >&5
46452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46453   (exit $ac_status); } && {
46454          test -z "$ac_c_werror_flag" ||
46455          test ! -s conftest.err
46456        } && test -s conftest$ac_exeext &&
46457        $as_test_x conftest$ac_exeext; then
46458   eval "$as_ac_var=yes"
46459 else
46460   echo "$as_me: failed program was:" >&5
46461 sed 's/^/| /' conftest.$ac_ext >&5
46462
46463         eval "$as_ac_var=no"
46464 fi
46465
46466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46467       conftest$ac_exeext conftest.$ac_ext
46468 fi
46469 ac_res=`eval echo '${'$as_ac_var'}'`
46470                { echo "$as_me:$LINENO: result: $ac_res" >&5
46471 echo "${ECHO_T}$ac_res" >&6; }
46472 if test `eval echo '${'$as_ac_var'}'` = yes; then
46473   cat >>confdefs.h <<_ACEOF
46474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
46475 _ACEOF
46476  break
46477 fi
46478 done
46479
46480
46481 if test "$ac_cv_func_gettimeofday" = "yes"; then
46482     { echo "$as_me:$LINENO: checking whether gettimeofday takes two arguments" >&5
46483 echo $ECHO_N "checking whether gettimeofday takes two arguments... $ECHO_C" >&6; }
46484 if test "${wx_cv_func_gettimeofday_has_2_args+set}" = set; then
46485   echo $ECHO_N "(cached) $ECHO_C" >&6
46486 else
46487
46488                 cat >conftest.$ac_ext <<_ACEOF
46489 /* confdefs.h.  */
46490 _ACEOF
46491 cat confdefs.h >>conftest.$ac_ext
46492 cat >>conftest.$ac_ext <<_ACEOF
46493 /* end confdefs.h.  */
46494
46495                 #include <sys/time.h>
46496                 #include <unistd.h>
46497
46498 int
46499 main ()
46500 {
46501
46502                 struct timeval tv;
46503                 gettimeofday(&tv, NULL);
46504
46505   ;
46506   return 0;
46507 }
46508 _ACEOF
46509 rm -f conftest.$ac_objext
46510 if { (ac_try="$ac_compile"
46511 case "(($ac_try" in
46512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46513   *) ac_try_echo=$ac_try;;
46514 esac
46515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46516   (eval "$ac_compile") 2>conftest.er1
46517   ac_status=$?
46518   grep -v '^ *+' conftest.er1 >conftest.err
46519   rm -f conftest.er1
46520   cat conftest.err >&5
46521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46522   (exit $ac_status); } && {
46523          test -z "$ac_c_werror_flag" ||
46524          test ! -s conftest.err
46525        } && test -s conftest.$ac_objext; then
46526   wx_cv_func_gettimeofday_has_2_args=yes
46527 else
46528   echo "$as_me: failed program was:" >&5
46529 sed 's/^/| /' conftest.$ac_ext >&5
46530
46531         cat >conftest.$ac_ext <<_ACEOF
46532 /* confdefs.h.  */
46533 _ACEOF
46534 cat confdefs.h >>conftest.$ac_ext
46535 cat >>conftest.$ac_ext <<_ACEOF
46536 /* end confdefs.h.  */
46537
46538                     #include <sys/time.h>
46539                     #include <unistd.h>
46540
46541 int
46542 main ()
46543 {
46544
46545                     struct timeval tv;
46546                     gettimeofday(&tv);
46547
46548   ;
46549   return 0;
46550 }
46551 _ACEOF
46552 rm -f conftest.$ac_objext
46553 if { (ac_try="$ac_compile"
46554 case "(($ac_try" in
46555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46556   *) ac_try_echo=$ac_try;;
46557 esac
46558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46559   (eval "$ac_compile") 2>conftest.er1
46560   ac_status=$?
46561   grep -v '^ *+' conftest.er1 >conftest.err
46562   rm -f conftest.er1
46563   cat conftest.err >&5
46564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46565   (exit $ac_status); } && {
46566          test -z "$ac_c_werror_flag" ||
46567          test ! -s conftest.err
46568        } && test -s conftest.$ac_objext; then
46569   wx_cv_func_gettimeofday_has_2_args=no
46570 else
46571   echo "$as_me: failed program was:" >&5
46572 sed 's/^/| /' conftest.$ac_ext >&5
46573
46574
46575                     { echo "$as_me:$LINENO: WARNING: failed to determine number of gettimeofday() arguments" >&5
46576 echo "$as_me: WARNING: failed to determine number of gettimeofday() arguments" >&2;}
46577                     wx_cv_func_gettimeofday_has_2_args=unknown
46578
46579
46580 fi
46581
46582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46583
46584 fi
46585
46586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46587
46588 fi
46589 { echo "$as_me:$LINENO: result: $wx_cv_func_gettimeofday_has_2_args" >&5
46590 echo "${ECHO_T}$wx_cv_func_gettimeofday_has_2_args" >&6; }
46591
46592     if test "$wx_cv_func_gettimeofday_has_2_args" != "yes"; then
46593         cat >>confdefs.h <<\_ACEOF
46594 #define WX_GETTIMEOFDAY_NO_TZ 1
46595 _ACEOF
46596
46597     fi
46598 fi
46599
46600 if test "$wxUSE_DATETIME" = "yes"; then
46601         { echo "$as_me:$LINENO: checking for strptime" >&5
46602 echo $ECHO_N "checking for strptime... $ECHO_C" >&6; }
46603 if test "${ac_cv_func_strptime+set}" = set; then
46604   echo $ECHO_N "(cached) $ECHO_C" >&6
46605 else
46606   cat >conftest.$ac_ext <<_ACEOF
46607 /* confdefs.h.  */
46608 _ACEOF
46609 cat confdefs.h >>conftest.$ac_ext
46610 cat >>conftest.$ac_ext <<_ACEOF
46611 /* end confdefs.h.  */
46612 /* Define strptime to an innocuous variant, in case <limits.h> declares strptime.
46613    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46614 #define strptime innocuous_strptime
46615
46616 /* System header to define __stub macros and hopefully few prototypes,
46617     which can conflict with char strptime (); below.
46618     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46619     <limits.h> exists even on freestanding compilers.  */
46620
46621 #ifdef __STDC__
46622 # include <limits.h>
46623 #else
46624 # include <assert.h>
46625 #endif
46626
46627 #undef strptime
46628
46629 /* Override any GCC internal prototype to avoid an error.
46630    Use char because int might match the return type of a GCC
46631    builtin and then its argument prototype would still apply.  */
46632 #ifdef __cplusplus
46633 extern "C"
46634 #endif
46635 char strptime ();
46636 /* The GNU C library defines this for functions which it implements
46637     to always fail with ENOSYS.  Some functions are actually named
46638     something starting with __ and the normal name is an alias.  */
46639 #if defined __stub_strptime || defined __stub___strptime
46640 choke me
46641 #endif
46642
46643 int
46644 main ()
46645 {
46646 return strptime ();
46647   ;
46648   return 0;
46649 }
46650 _ACEOF
46651 rm -f conftest.$ac_objext conftest$ac_exeext
46652 if { (ac_try="$ac_link"
46653 case "(($ac_try" in
46654   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46655   *) ac_try_echo=$ac_try;;
46656 esac
46657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46658   (eval "$ac_link") 2>conftest.er1
46659   ac_status=$?
46660   grep -v '^ *+' conftest.er1 >conftest.err
46661   rm -f conftest.er1
46662   cat conftest.err >&5
46663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46664   (exit $ac_status); } && {
46665          test -z "$ac_c_werror_flag" ||
46666          test ! -s conftest.err
46667        } && test -s conftest$ac_exeext &&
46668        $as_test_x conftest$ac_exeext; then
46669   ac_cv_func_strptime=yes
46670 else
46671   echo "$as_me: failed program was:" >&5
46672 sed 's/^/| /' conftest.$ac_ext >&5
46673
46674         ac_cv_func_strptime=no
46675 fi
46676
46677 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46678       conftest$ac_exeext conftest.$ac_ext
46679 fi
46680 { echo "$as_me:$LINENO: result: $ac_cv_func_strptime" >&5
46681 echo "${ECHO_T}$ac_cv_func_strptime" >&6; }
46682
46683     if test "$ac_cv_func_strptime" = "yes"; then
46684         { echo "$as_me:$LINENO: checking for strptime declaration" >&5
46685 echo $ECHO_N "checking for strptime declaration... $ECHO_C" >&6; }
46686 if test "${wx_cv_func_strptime_decl+set}" = set; then
46687   echo $ECHO_N "(cached) $ECHO_C" >&6
46688 else
46689
46690                 ac_ext=cpp
46691 ac_cpp='$CXXCPP $CPPFLAGS'
46692 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46693 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46694 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46695
46696                 cat >conftest.$ac_ext <<_ACEOF
46697 /* confdefs.h.  */
46698 _ACEOF
46699 cat confdefs.h >>conftest.$ac_ext
46700 cat >>conftest.$ac_ext <<_ACEOF
46701 /* end confdefs.h.  */
46702
46703                         #include <time.h>
46704
46705 int
46706 main ()
46707 {
46708
46709                         struct tm t;
46710                         strptime("foo", "bar", &t);
46711
46712   ;
46713   return 0;
46714 }
46715 _ACEOF
46716 rm -f conftest.$ac_objext
46717 if { (ac_try="$ac_compile"
46718 case "(($ac_try" in
46719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46720   *) ac_try_echo=$ac_try;;
46721 esac
46722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46723   (eval "$ac_compile") 2>conftest.er1
46724   ac_status=$?
46725   grep -v '^ *+' conftest.er1 >conftest.err
46726   rm -f conftest.er1
46727   cat conftest.err >&5
46728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46729   (exit $ac_status); } && {
46730          test -z "$ac_cxx_werror_flag" ||
46731          test ! -s conftest.err
46732        } && test -s conftest.$ac_objext; then
46733   wx_cv_func_strptime_decl=yes
46734 else
46735   echo "$as_me: failed program was:" >&5
46736 sed 's/^/| /' conftest.$ac_ext >&5
46737
46738         wx_cv_func_strptime_decl=no
46739
46740 fi
46741
46742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46743                 ac_ext=c
46744 ac_cpp='$CPP $CPPFLAGS'
46745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
46748
46749
46750
46751 fi
46752 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_decl" >&5
46753 echo "${ECHO_T}$wx_cv_func_strptime_decl" >&6; }
46754     fi
46755     if test "$wx_cv_func_strptime_decl" = "yes"; then
46756         cat >>confdefs.h <<\_ACEOF
46757 #define HAVE_STRPTIME_DECL 1
46758 _ACEOF
46759
46760     else
46761         wx_strptime_decl="extern char *strptime(const char *, const char *, struct tm *);"
46762     fi
46763     if test "$ac_cv_func_strptime" = "yes"; then
46764                                         { echo "$as_me:$LINENO: checking whether strptime() fails on invalid strings" >&5
46765 echo $ECHO_N "checking whether strptime() fails on invalid strings... $ECHO_C" >&6; }
46766 if test "${wx_cv_func_strptime_ok+set}" = set; then
46767   echo $ECHO_N "(cached) $ECHO_C" >&6
46768 else
46769   if test "$cross_compiling" = yes; then
46770                   wx_cv_func_strptime_ok=no
46771
46772 else
46773   cat >conftest.$ac_ext <<_ACEOF
46774
46775                     #include <stdlib.h>
46776                     #include <time.h>
46777                     #include "confdefs.h"
46778
46779                     $wx_strptime_decl
46780
46781                     int main()
46782                     {
46783                         struct tm t;
46784                         return !!strptime("", "%x", &t);
46785                     }
46786
46787 _ACEOF
46788 rm -f conftest$ac_exeext
46789 if { (ac_try="$ac_link"
46790 case "(($ac_try" in
46791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46792   *) ac_try_echo=$ac_try;;
46793 esac
46794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46795   (eval "$ac_link") 2>&5
46796   ac_status=$?
46797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46798   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46799   { (case "(($ac_try" in
46800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46801   *) ac_try_echo=$ac_try;;
46802 esac
46803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46804   (eval "$ac_try") 2>&5
46805   ac_status=$?
46806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46807   (exit $ac_status); }; }; then
46808   wx_cv_func_strptime_ok=yes
46809 else
46810   echo "$as_me: program exited with status $ac_status" >&5
46811 echo "$as_me: failed program was:" >&5
46812 sed 's/^/| /' conftest.$ac_ext >&5
46813
46814 ( exit $ac_status )
46815 wx_cv_func_strptime_ok=no
46816 fi
46817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46818 fi
46819
46820
46821
46822 fi
46823 { echo "$as_me:$LINENO: result: $wx_cv_func_strptime_ok" >&5
46824 echo "${ECHO_T}$wx_cv_func_strptime_ok" >&6; }
46825
46826         if test "$wx_cv_func_strptime_ok" = "yes"; then
46827             cat >>confdefs.h <<\_ACEOF
46828 #define HAVE_STRPTIME 1
46829 _ACEOF
46830
46831         fi
46832     fi
46833
46834             { echo "$as_me:$LINENO: checking for timezone variable in <time.h>" >&5
46835 echo $ECHO_N "checking for timezone variable in <time.h>... $ECHO_C" >&6; }
46836 if test "${wx_cv_var_timezone+set}" = set; then
46837   echo $ECHO_N "(cached) $ECHO_C" >&6
46838 else
46839
46840                         ac_ext=cpp
46841 ac_cpp='$CXXCPP $CPPFLAGS'
46842 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
46843 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
46844 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
46845
46846                         cat >conftest.$ac_ext <<_ACEOF
46847 /* confdefs.h.  */
46848 _ACEOF
46849 cat confdefs.h >>conftest.$ac_ext
46850 cat >>conftest.$ac_ext <<_ACEOF
46851 /* end confdefs.h.  */
46852
46853                                 #include <time.h>
46854
46855 int
46856 main ()
46857 {
46858
46859                                 int tz;
46860                                 tz = timezone;
46861
46862   ;
46863   return 0;
46864 }
46865 _ACEOF
46866 rm -f conftest.$ac_objext
46867 if { (ac_try="$ac_compile"
46868 case "(($ac_try" in
46869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46870   *) ac_try_echo=$ac_try;;
46871 esac
46872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46873   (eval "$ac_compile") 2>conftest.er1
46874   ac_status=$?
46875   grep -v '^ *+' conftest.er1 >conftest.err
46876   rm -f conftest.er1
46877   cat conftest.err >&5
46878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46879   (exit $ac_status); } && {
46880          test -z "$ac_cxx_werror_flag" ||
46881          test ! -s conftest.err
46882        } && test -s conftest.$ac_objext; then
46883
46884                                 wx_cv_var_timezone=timezone
46885
46886 else
46887   echo "$as_me: failed program was:" >&5
46888 sed 's/^/| /' conftest.$ac_ext >&5
46889
46890
46891                                 cat >conftest.$ac_ext <<_ACEOF
46892 /* confdefs.h.  */
46893 _ACEOF
46894 cat confdefs.h >>conftest.$ac_ext
46895 cat >>conftest.$ac_ext <<_ACEOF
46896 /* end confdefs.h.  */
46897
46898                                         #include <time.h>
46899
46900 int
46901 main ()
46902 {
46903
46904                                         int tz;
46905                                         tz = _timezone;
46906
46907   ;
46908   return 0;
46909 }
46910 _ACEOF
46911 rm -f conftest.$ac_objext
46912 if { (ac_try="$ac_compile"
46913 case "(($ac_try" in
46914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46915   *) ac_try_echo=$ac_try;;
46916 esac
46917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46918   (eval "$ac_compile") 2>conftest.er1
46919   ac_status=$?
46920   grep -v '^ *+' conftest.er1 >conftest.err
46921   rm -f conftest.er1
46922   cat conftest.err >&5
46923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46924   (exit $ac_status); } && {
46925          test -z "$ac_cxx_werror_flag" ||
46926          test ! -s conftest.err
46927        } && test -s conftest.$ac_objext; then
46928
46929                                         wx_cv_var_timezone=_timezone
46930
46931 else
46932   echo "$as_me: failed program was:" >&5
46933 sed 's/^/| /' conftest.$ac_ext >&5
46934
46935
46936                                         cat >conftest.$ac_ext <<_ACEOF
46937 /* confdefs.h.  */
46938 _ACEOF
46939 cat confdefs.h >>conftest.$ac_ext
46940 cat >>conftest.$ac_ext <<_ACEOF
46941 /* end confdefs.h.  */
46942
46943                                                 #include <time.h>
46944
46945 int
46946 main ()
46947 {
46948
46949                                                 int tz;
46950                                                 tz = __timezone;
46951
46952   ;
46953   return 0;
46954 }
46955 _ACEOF
46956 rm -f conftest.$ac_objext
46957 if { (ac_try="$ac_compile"
46958 case "(($ac_try" in
46959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46960   *) ac_try_echo=$ac_try;;
46961 esac
46962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
46963   (eval "$ac_compile") 2>conftest.er1
46964   ac_status=$?
46965   grep -v '^ *+' conftest.er1 >conftest.err
46966   rm -f conftest.er1
46967   cat conftest.err >&5
46968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
46969   (exit $ac_status); } && {
46970          test -z "$ac_cxx_werror_flag" ||
46971          test ! -s conftest.err
46972        } && test -s conftest.$ac_objext; then
46973
46974                                                 wx_cv_var_timezone=__timezone
46975
46976 else
46977   echo "$as_me: failed program was:" >&5
46978 sed 's/^/| /' conftest.$ac_ext >&5
46979
46980
46981                                                 if test "$USE_DOS" = 0 ; then
46982                                                     { echo "$as_me:$LINENO: WARNING: no timezone variable" >&5
46983 echo "$as_me: WARNING: no timezone variable" >&2;}
46984                                                 fi
46985
46986
46987 fi
46988
46989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46990
46991
46992 fi
46993
46994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46995
46996
46997 fi
46998
46999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47000                         ac_ext=c
47001 ac_cpp='$CPP $CPPFLAGS'
47002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47005
47006
47007
47008 fi
47009 { echo "$as_me:$LINENO: result: $wx_cv_var_timezone" >&5
47010 echo "${ECHO_T}$wx_cv_var_timezone" >&6; }
47011
47012         if test "x$wx_cv_var_timezone" != x ; then
47013         cat >>confdefs.h <<_ACEOF
47014 #define WX_TIMEZONE $wx_cv_var_timezone
47015 _ACEOF
47016
47017     fi
47018
47019
47020 for ac_func in localtime
47021 do
47022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
47023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
47024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
47025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47026   echo $ECHO_N "(cached) $ECHO_C" >&6
47027 else
47028   cat >conftest.$ac_ext <<_ACEOF
47029 /* confdefs.h.  */
47030 _ACEOF
47031 cat confdefs.h >>conftest.$ac_ext
47032 cat >>conftest.$ac_ext <<_ACEOF
47033 /* end confdefs.h.  */
47034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47035    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47036 #define $ac_func innocuous_$ac_func
47037
47038 /* System header to define __stub macros and hopefully few prototypes,
47039     which can conflict with char $ac_func (); below.
47040     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47041     <limits.h> exists even on freestanding compilers.  */
47042
47043 #ifdef __STDC__
47044 # include <limits.h>
47045 #else
47046 # include <assert.h>
47047 #endif
47048
47049 #undef $ac_func
47050
47051 /* Override any GCC internal prototype to avoid an error.
47052    Use char because int might match the return type of a GCC
47053    builtin and then its argument prototype would still apply.  */
47054 #ifdef __cplusplus
47055 extern "C"
47056 #endif
47057 char $ac_func ();
47058 /* The GNU C library defines this for functions which it implements
47059     to always fail with ENOSYS.  Some functions are actually named
47060     something starting with __ and the normal name is an alias.  */
47061 #if defined __stub_$ac_func || defined __stub___$ac_func
47062 choke me
47063 #endif
47064
47065 int
47066 main ()
47067 {
47068 return $ac_func ();
47069   ;
47070   return 0;
47071 }
47072 _ACEOF
47073 rm -f conftest.$ac_objext conftest$ac_exeext
47074 if { (ac_try="$ac_link"
47075 case "(($ac_try" in
47076   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47077   *) ac_try_echo=$ac_try;;
47078 esac
47079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47080   (eval "$ac_link") 2>conftest.er1
47081   ac_status=$?
47082   grep -v '^ *+' conftest.er1 >conftest.err
47083   rm -f conftest.er1
47084   cat conftest.err >&5
47085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47086   (exit $ac_status); } && {
47087          test -z "$ac_c_werror_flag" ||
47088          test ! -s conftest.err
47089        } && test -s conftest$ac_exeext &&
47090        $as_test_x conftest$ac_exeext; then
47091   eval "$as_ac_var=yes"
47092 else
47093   echo "$as_me: failed program was:" >&5
47094 sed 's/^/| /' conftest.$ac_ext >&5
47095
47096         eval "$as_ac_var=no"
47097 fi
47098
47099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47100       conftest$ac_exeext conftest.$ac_ext
47101 fi
47102 ac_res=`eval echo '${'$as_ac_var'}'`
47103                { echo "$as_me:$LINENO: result: $ac_res" >&5
47104 echo "${ECHO_T}$ac_res" >&6; }
47105 if test `eval echo '${'$as_ac_var'}'` = yes; then
47106   cat >>confdefs.h <<_ACEOF
47107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
47108 _ACEOF
47109
47110 fi
47111 done
47112
47113
47114     if test "$ac_cv_func_localtime" = "yes"; then
47115         { echo "$as_me:$LINENO: checking for tm_gmtoff in struct tm" >&5
47116 echo $ECHO_N "checking for tm_gmtoff in struct tm... $ECHO_C" >&6; }
47117 if test "${wx_cv_struct_tm_has_gmtoff+set}" = set; then
47118   echo $ECHO_N "(cached) $ECHO_C" >&6
47119 else
47120
47121             cat >conftest.$ac_ext <<_ACEOF
47122 /* confdefs.h.  */
47123 _ACEOF
47124 cat confdefs.h >>conftest.$ac_ext
47125 cat >>conftest.$ac_ext <<_ACEOF
47126 /* end confdefs.h.  */
47127
47128                     #include <time.h>
47129
47130 int
47131 main ()
47132 {
47133
47134                     struct tm tm;
47135                     tm.tm_gmtoff++;
47136
47137   ;
47138   return 0;
47139 }
47140 _ACEOF
47141 rm -f conftest.$ac_objext
47142 if { (ac_try="$ac_compile"
47143 case "(($ac_try" in
47144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47145   *) ac_try_echo=$ac_try;;
47146 esac
47147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47148   (eval "$ac_compile") 2>conftest.er1
47149   ac_status=$?
47150   grep -v '^ *+' conftest.er1 >conftest.err
47151   rm -f conftest.er1
47152   cat conftest.err >&5
47153   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47154   (exit $ac_status); } && {
47155          test -z "$ac_c_werror_flag" ||
47156          test ! -s conftest.err
47157        } && test -s conftest.$ac_objext; then
47158
47159                     wx_cv_struct_tm_has_gmtoff=yes
47160
47161 else
47162   echo "$as_me: failed program was:" >&5
47163 sed 's/^/| /' conftest.$ac_ext >&5
47164
47165         wx_cv_struct_tm_has_gmtoff=no
47166
47167 fi
47168
47169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47170
47171 fi
47172 { echo "$as_me:$LINENO: result: $wx_cv_struct_tm_has_gmtoff" >&5
47173 echo "${ECHO_T}$wx_cv_struct_tm_has_gmtoff" >&6; }
47174     fi
47175
47176     if test "$wx_cv_struct_tm_has_gmtoff" = "yes"; then
47177         cat >>confdefs.h <<\_ACEOF
47178 #define WX_GMTOFF_IN_TM 1
47179 _ACEOF
47180
47181     fi
47182
47183     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS typetest"
47184 fi
47185
47186
47187 if test "$wxUSE_SOCKETS" = "yes"; then
47188     if test "$wxUSE_MGL" = "1"; then
47189         { echo "$as_me:$LINENO: WARNING: wxSocket not yet supported under MGL... disabled" >&5
47190 echo "$as_me: WARNING: wxSocket not yet supported under MGL... disabled" >&2;}
47191         wxUSE_SOCKETS="no"
47192     fi
47193 fi
47194
47195 if test "$wxUSE_SOCKETS" = "yes"; then
47196         if test "$TOOLKIT" != "MSW"; then
47197                 { echo "$as_me:$LINENO: checking for socket" >&5
47198 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
47199 if test "${ac_cv_func_socket+set}" = set; then
47200   echo $ECHO_N "(cached) $ECHO_C" >&6
47201 else
47202   cat >conftest.$ac_ext <<_ACEOF
47203 /* confdefs.h.  */
47204 _ACEOF
47205 cat confdefs.h >>conftest.$ac_ext
47206 cat >>conftest.$ac_ext <<_ACEOF
47207 /* end confdefs.h.  */
47208 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
47209    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47210 #define socket innocuous_socket
47211
47212 /* System header to define __stub macros and hopefully few prototypes,
47213     which can conflict with char socket (); below.
47214     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47215     <limits.h> exists even on freestanding compilers.  */
47216
47217 #ifdef __STDC__
47218 # include <limits.h>
47219 #else
47220 # include <assert.h>
47221 #endif
47222
47223 #undef socket
47224
47225 /* Override any GCC internal prototype to avoid an error.
47226    Use char because int might match the return type of a GCC
47227    builtin and then its argument prototype would still apply.  */
47228 #ifdef __cplusplus
47229 extern "C"
47230 #endif
47231 char socket ();
47232 /* The GNU C library defines this for functions which it implements
47233     to always fail with ENOSYS.  Some functions are actually named
47234     something starting with __ and the normal name is an alias.  */
47235 #if defined __stub_socket || defined __stub___socket
47236 choke me
47237 #endif
47238
47239 int
47240 main ()
47241 {
47242 return socket ();
47243   ;
47244   return 0;
47245 }
47246 _ACEOF
47247 rm -f conftest.$ac_objext conftest$ac_exeext
47248 if { (ac_try="$ac_link"
47249 case "(($ac_try" in
47250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47251   *) ac_try_echo=$ac_try;;
47252 esac
47253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47254   (eval "$ac_link") 2>conftest.er1
47255   ac_status=$?
47256   grep -v '^ *+' conftest.er1 >conftest.err
47257   rm -f conftest.er1
47258   cat conftest.err >&5
47259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47260   (exit $ac_status); } && {
47261          test -z "$ac_c_werror_flag" ||
47262          test ! -s conftest.err
47263        } && test -s conftest$ac_exeext &&
47264        $as_test_x conftest$ac_exeext; then
47265   ac_cv_func_socket=yes
47266 else
47267   echo "$as_me: failed program was:" >&5
47268 sed 's/^/| /' conftest.$ac_ext >&5
47269
47270         ac_cv_func_socket=no
47271 fi
47272
47273 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47274       conftest$ac_exeext conftest.$ac_ext
47275 fi
47276 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
47277 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
47278 if test $ac_cv_func_socket = yes; then
47279   :
47280 else
47281
47282                 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
47283 echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
47284 if test "${ac_cv_lib_socket_socket+set}" = set; then
47285   echo $ECHO_N "(cached) $ECHO_C" >&6
47286 else
47287   ac_check_lib_save_LIBS=$LIBS
47288 LIBS="-lsocket  $LIBS"
47289 cat >conftest.$ac_ext <<_ACEOF
47290 /* confdefs.h.  */
47291 _ACEOF
47292 cat confdefs.h >>conftest.$ac_ext
47293 cat >>conftest.$ac_ext <<_ACEOF
47294 /* end confdefs.h.  */
47295
47296 /* Override any GCC internal prototype to avoid an error.
47297    Use char because int might match the return type of a GCC
47298    builtin and then its argument prototype would still apply.  */
47299 #ifdef __cplusplus
47300 extern "C"
47301 #endif
47302 char socket ();
47303 int
47304 main ()
47305 {
47306 return socket ();
47307   ;
47308   return 0;
47309 }
47310 _ACEOF
47311 rm -f conftest.$ac_objext conftest$ac_exeext
47312 if { (ac_try="$ac_link"
47313 case "(($ac_try" in
47314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47315   *) ac_try_echo=$ac_try;;
47316 esac
47317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47318   (eval "$ac_link") 2>conftest.er1
47319   ac_status=$?
47320   grep -v '^ *+' conftest.er1 >conftest.err
47321   rm -f conftest.er1
47322   cat conftest.err >&5
47323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47324   (exit $ac_status); } && {
47325          test -z "$ac_c_werror_flag" ||
47326          test ! -s conftest.err
47327        } && test -s conftest$ac_exeext &&
47328        $as_test_x conftest$ac_exeext; then
47329   ac_cv_lib_socket_socket=yes
47330 else
47331   echo "$as_me: failed program was:" >&5
47332 sed 's/^/| /' conftest.$ac_ext >&5
47333
47334         ac_cv_lib_socket_socket=no
47335 fi
47336
47337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47338       conftest$ac_exeext conftest.$ac_ext
47339 LIBS=$ac_check_lib_save_LIBS
47340 fi
47341 { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
47342 echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; }
47343 if test $ac_cv_lib_socket_socket = yes; then
47344   if test "$INET_LINK" != " -lsocket"; then
47345                         INET_LINK="$INET_LINK -lsocket"
47346                     fi
47347 else
47348
47349                         { echo "$as_me:$LINENO: WARNING: socket library not found - sockets will be disabled" >&5
47350 echo "$as_me: WARNING: socket library not found - sockets will be disabled" >&2;}
47351                         wxUSE_SOCKETS=no
47352
47353
47354 fi
47355
47356
47357
47358 fi
47359
47360     fi
47361 fi
47362
47363 if test "$wxUSE_SOCKETS" = "yes" ; then
47364                 if test "$TOOLKIT" != "MSW"; then
47365                                         { echo "$as_me:$LINENO: checking what is the type of the third argument of getsockname" >&5
47366 echo $ECHO_N "checking what is the type of the third argument of getsockname... $ECHO_C" >&6; }
47367 if test "${wx_cv_type_getsockname3+set}" = set; then
47368   echo $ECHO_N "(cached) $ECHO_C" >&6
47369 else
47370
47371                 ac_ext=cpp
47372 ac_cpp='$CXXCPP $CPPFLAGS'
47373 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47374 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47375 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47376
47377                 cat >conftest.$ac_ext <<_ACEOF
47378 /* confdefs.h.  */
47379 _ACEOF
47380 cat confdefs.h >>conftest.$ac_ext
47381 cat >>conftest.$ac_ext <<_ACEOF
47382 /* end confdefs.h.  */
47383
47384                         #include <sys/types.h>
47385                         #include <sys/socket.h>
47386
47387 int
47388 main ()
47389 {
47390
47391                         socklen_t len;
47392                         getsockname(0, 0, &len);
47393
47394   ;
47395   return 0;
47396 }
47397 _ACEOF
47398 rm -f conftest.$ac_objext
47399 if { (ac_try="$ac_compile"
47400 case "(($ac_try" in
47401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47402   *) ac_try_echo=$ac_try;;
47403 esac
47404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47405   (eval "$ac_compile") 2>conftest.er1
47406   ac_status=$?
47407   grep -v '^ *+' conftest.er1 >conftest.err
47408   rm -f conftest.er1
47409   cat conftest.err >&5
47410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47411   (exit $ac_status); } && {
47412          test -z "$ac_cxx_werror_flag" ||
47413          test ! -s conftest.err
47414        } && test -s conftest.$ac_objext; then
47415   wx_cv_type_getsockname3=socklen_t
47416 else
47417   echo "$as_me: failed program was:" >&5
47418 sed 's/^/| /' conftest.$ac_ext >&5
47419
47420
47421                                                                                                                                                                         CFLAGS_OLD="$CFLAGS"
47422                         if test "$GCC" = yes ; then
47423                             CFLAGS="-Werror $CFLAGS"
47424                         fi
47425
47426                         cat >conftest.$ac_ext <<_ACEOF
47427 /* confdefs.h.  */
47428 _ACEOF
47429 cat confdefs.h >>conftest.$ac_ext
47430 cat >>conftest.$ac_ext <<_ACEOF
47431 /* end confdefs.h.  */
47432
47433                                 #include <sys/types.h>
47434                                 #include <sys/socket.h>
47435
47436 int
47437 main ()
47438 {
47439
47440                                 size_t len;
47441                                 getsockname(0, 0, &len);
47442
47443   ;
47444   return 0;
47445 }
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_cxx_werror_flag" ||
47462          test ! -s conftest.err
47463        } && test -s conftest.$ac_objext; then
47464   wx_cv_type_getsockname3=size_t
47465 else
47466   echo "$as_me: failed program was:" >&5
47467 sed 's/^/| /' conftest.$ac_ext >&5
47468
47469         cat >conftest.$ac_ext <<_ACEOF
47470 /* confdefs.h.  */
47471 _ACEOF
47472 cat confdefs.h >>conftest.$ac_ext
47473 cat >>conftest.$ac_ext <<_ACEOF
47474 /* end confdefs.h.  */
47475
47476                                     #include <sys/types.h>
47477                                     #include <sys/socket.h>
47478
47479 int
47480 main ()
47481 {
47482
47483                                     int len;
47484                                     getsockname(0, 0, &len);
47485
47486   ;
47487   return 0;
47488 }
47489 _ACEOF
47490 rm -f conftest.$ac_objext
47491 if { (ac_try="$ac_compile"
47492 case "(($ac_try" in
47493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47494   *) ac_try_echo=$ac_try;;
47495 esac
47496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47497   (eval "$ac_compile") 2>conftest.er1
47498   ac_status=$?
47499   grep -v '^ *+' conftest.er1 >conftest.err
47500   rm -f conftest.er1
47501   cat conftest.err >&5
47502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47503   (exit $ac_status); } && {
47504          test -z "$ac_cxx_werror_flag" ||
47505          test ! -s conftest.err
47506        } && test -s conftest.$ac_objext; then
47507   wx_cv_type_getsockname3=int
47508 else
47509   echo "$as_me: failed program was:" >&5
47510 sed 's/^/| /' conftest.$ac_ext >&5
47511
47512         wx_cv_type_getsockname3=unknown
47513
47514 fi
47515
47516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47517
47518 fi
47519
47520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47521
47522                         CFLAGS="$CFLAGS_OLD"
47523
47524
47525 fi
47526
47527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47528                 ac_ext=c
47529 ac_cpp='$CPP $CPPFLAGS'
47530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47533
47534
47535 fi
47536 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockname3" >&5
47537 echo "${ECHO_T}$wx_cv_type_getsockname3" >&6; }
47538
47539         if test "$wx_cv_type_getsockname3" = "unknown"; then
47540             wxUSE_SOCKETS=no
47541             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47542 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47543         else
47544             cat >>confdefs.h <<_ACEOF
47545 #define WX_SOCKLEN_T $wx_cv_type_getsockname3
47546 _ACEOF
47547
47548         fi
47549                 { echo "$as_me:$LINENO: checking what is the type of the fifth argument of getsockopt" >&5
47550 echo $ECHO_N "checking what is the type of the fifth argument of getsockopt... $ECHO_C" >&6; }
47551 if test "${wx_cv_type_getsockopt5+set}" = set; then
47552   echo $ECHO_N "(cached) $ECHO_C" >&6
47553 else
47554
47555                                                                                                 ac_ext=cpp
47556 ac_cpp='$CXXCPP $CPPFLAGS'
47557 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47558 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47559 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47560
47561                 cat >conftest.$ac_ext <<_ACEOF
47562 /* confdefs.h.  */
47563 _ACEOF
47564 cat confdefs.h >>conftest.$ac_ext
47565 cat >>conftest.$ac_ext <<_ACEOF
47566 /* end confdefs.h.  */
47567
47568                         #include <sys/types.h>
47569                         #include <sys/socket.h>
47570
47571 int
47572 main ()
47573 {
47574
47575                         socklen_t len;
47576                         getsockopt(0, 0, 0, 0, &len);
47577
47578   ;
47579   return 0;
47580 }
47581 _ACEOF
47582 rm -f conftest.$ac_objext
47583 if { (ac_try="$ac_compile"
47584 case "(($ac_try" in
47585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47586   *) ac_try_echo=$ac_try;;
47587 esac
47588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47589   (eval "$ac_compile") 2>conftest.er1
47590   ac_status=$?
47591   grep -v '^ *+' conftest.er1 >conftest.err
47592   rm -f conftest.er1
47593   cat conftest.err >&5
47594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47595   (exit $ac_status); } && {
47596          test -z "$ac_cxx_werror_flag" ||
47597          test ! -s conftest.err
47598        } && test -s conftest.$ac_objext; then
47599   wx_cv_type_getsockopt5=socklen_t
47600 else
47601   echo "$as_me: failed program was:" >&5
47602 sed 's/^/| /' conftest.$ac_ext >&5
47603
47604
47605                         cat >conftest.$ac_ext <<_ACEOF
47606 /* confdefs.h.  */
47607 _ACEOF
47608 cat confdefs.h >>conftest.$ac_ext
47609 cat >>conftest.$ac_ext <<_ACEOF
47610 /* end confdefs.h.  */
47611
47612                                 #include <sys/types.h>
47613                                 #include <sys/socket.h>
47614
47615 int
47616 main ()
47617 {
47618
47619                                 size_t len;
47620                                 getsockopt(0, 0, 0, 0, &len);
47621
47622   ;
47623   return 0;
47624 }
47625 _ACEOF
47626 rm -f conftest.$ac_objext
47627 if { (ac_try="$ac_compile"
47628 case "(($ac_try" in
47629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47630   *) ac_try_echo=$ac_try;;
47631 esac
47632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47633   (eval "$ac_compile") 2>conftest.er1
47634   ac_status=$?
47635   grep -v '^ *+' conftest.er1 >conftest.err
47636   rm -f conftest.er1
47637   cat conftest.err >&5
47638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47639   (exit $ac_status); } && {
47640          test -z "$ac_cxx_werror_flag" ||
47641          test ! -s conftest.err
47642        } && test -s conftest.$ac_objext; then
47643   wx_cv_type_getsockopt5=size_t
47644 else
47645   echo "$as_me: failed program was:" >&5
47646 sed 's/^/| /' conftest.$ac_ext >&5
47647
47648         cat >conftest.$ac_ext <<_ACEOF
47649 /* confdefs.h.  */
47650 _ACEOF
47651 cat confdefs.h >>conftest.$ac_ext
47652 cat >>conftest.$ac_ext <<_ACEOF
47653 /* end confdefs.h.  */
47654
47655                                     #include <sys/types.h>
47656                                     #include <sys/socket.h>
47657
47658 int
47659 main ()
47660 {
47661
47662                                     int len;
47663                                     getsockopt(0, 0, 0, 0, &len);
47664
47665   ;
47666   return 0;
47667 }
47668 _ACEOF
47669 rm -f conftest.$ac_objext
47670 if { (ac_try="$ac_compile"
47671 case "(($ac_try" in
47672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47673   *) ac_try_echo=$ac_try;;
47674 esac
47675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47676   (eval "$ac_compile") 2>conftest.er1
47677   ac_status=$?
47678   grep -v '^ *+' conftest.er1 >conftest.err
47679   rm -f conftest.er1
47680   cat conftest.err >&5
47681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47682   (exit $ac_status); } && {
47683          test -z "$ac_cxx_werror_flag" ||
47684          test ! -s conftest.err
47685        } && test -s conftest.$ac_objext; then
47686   wx_cv_type_getsockopt5=int
47687 else
47688   echo "$as_me: failed program was:" >&5
47689 sed 's/^/| /' conftest.$ac_ext >&5
47690
47691         wx_cv_type_getsockopt5=unknown
47692
47693 fi
47694
47695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47696
47697 fi
47698
47699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47700
47701
47702 fi
47703
47704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47705                 ac_ext=c
47706 ac_cpp='$CPP $CPPFLAGS'
47707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47710
47711
47712 fi
47713 { echo "$as_me:$LINENO: result: $wx_cv_type_getsockopt5" >&5
47714 echo "${ECHO_T}$wx_cv_type_getsockopt5" >&6; }
47715
47716         if test "$wx_cv_type_getsockopt5" = "unknown"; then
47717             wxUSE_SOCKETS=no
47718             { echo "$as_me:$LINENO: WARNING: Couldn't find socklen_t synonym for this system" >&5
47719 echo "$as_me: WARNING: Couldn't find socklen_t synonym for this system" >&2;}
47720         else
47721             cat >>confdefs.h <<_ACEOF
47722 #define SOCKOPTLEN_T $wx_cv_type_getsockopt5
47723 _ACEOF
47724
47725         fi
47726     fi
47727 fi
47728
47729 if test "$wxUSE_SOCKETS" = "yes" ; then
47730     cat >>confdefs.h <<\_ACEOF
47731 #define wxUSE_SOCKETS 1
47732 _ACEOF
47733
47734     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sockets"
47735 fi
47736
47737 if test "$wxUSE_PROTOCOL" = "yes"; then
47738     if test "$wxUSE_SOCKETS" != "yes"; then
47739         { echo "$as_me:$LINENO: WARNING: Protocol classes require sockets... disabled" >&5
47740 echo "$as_me: WARNING: Protocol classes require sockets... disabled" >&2;}
47741         wxUSE_PROTOCOL=no
47742     fi
47743 fi
47744
47745 if test "$wxUSE_PROTOCOL" = "yes"; then
47746     cat >>confdefs.h <<\_ACEOF
47747 #define wxUSE_PROTOCOL 1
47748 _ACEOF
47749
47750
47751     if test "$wxUSE_PROTOCOL_HTTP" = "yes"; then
47752         cat >>confdefs.h <<\_ACEOF
47753 #define wxUSE_PROTOCOL_HTTP 1
47754 _ACEOF
47755
47756     fi
47757     if test "$wxUSE_PROTOCOL_FTP" = "yes"; then
47758         cat >>confdefs.h <<\_ACEOF
47759 #define wxUSE_PROTOCOL_FTP 1
47760 _ACEOF
47761
47762     fi
47763     if test "$wxUSE_PROTOCOL_FILE" = "yes"; then
47764         cat >>confdefs.h <<\_ACEOF
47765 #define wxUSE_PROTOCOL_FILE 1
47766 _ACEOF
47767
47768     fi
47769 else
47770     if test "$wxUSE_FS_INET" = "yes"; then
47771         { echo "$as_me:$LINENO: WARNING: HTTP filesystem require protocol classes... disabled" >&5
47772 echo "$as_me: WARNING: HTTP filesystem require protocol classes... disabled" >&2;}
47773         wxUSE_FS_INET="no"
47774     fi
47775 fi
47776
47777 if test "$wxUSE_URL" = "yes"; then
47778     if test "$wxUSE_PROTOCOL" != "yes"; then
47779         { echo "$as_me:$LINENO: WARNING: wxURL class requires wxProtocol... disabled" >&5
47780 echo "$as_me: WARNING: wxURL class requires wxProtocol... disabled" >&2;}
47781         wxUSE_URL=no
47782     fi
47783     if test "$wxUSE_URL" = "yes"; then
47784         cat >>confdefs.h <<\_ACEOF
47785 #define wxUSE_URL 1
47786 _ACEOF
47787
47788     fi
47789 fi
47790
47791 if test "$wxUSE_VARIANT" = "yes"; then
47792     cat >>confdefs.h <<\_ACEOF
47793 #define wxUSE_VARIANT 1
47794 _ACEOF
47795
47796 fi
47797
47798 if test "$wxUSE_FS_INET" = "yes"; then
47799   cat >>confdefs.h <<\_ACEOF
47800 #define wxUSE_FS_INET 1
47801 _ACEOF
47802
47803 fi
47804
47805
47806 if test "$wxUSE_GUI" = "yes" -a "$wxUSE_JOYSTICK" = "yes"; then
47807     wxUSE_JOYSTICK=no
47808
47809         if test "$TOOLKIT" = "MSW"; then
47810         wxUSE_JOYSTICK=yes
47811
47812         elif test "$TOOLKIT" = "MAC" -o "$TOOLKIT" = "COCOA"; then
47813         if test "$USE_DARWIN" = 1; then
47814                         { echo "$as_me:$LINENO: checking headers have declarations needed for joystick support" >&5
47815 echo $ECHO_N "checking headers have declarations needed for joystick support... $ECHO_C" >&6; }
47816             ac_ext=cpp
47817 ac_cpp='$CXXCPP $CPPFLAGS'
47818 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47819 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47820 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
47821
47822             cat >conftest.$ac_ext <<_ACEOF
47823 /* confdefs.h.  */
47824 _ACEOF
47825 cat confdefs.h >>conftest.$ac_ext
47826 cat >>conftest.$ac_ext <<_ACEOF
47827 /* end confdefs.h.  */
47828  #include <IOKit/hid/IOHIDLib.h>
47829 int
47830 main ()
47831 {
47832  IOHIDQueueInterface *qi = NULL;
47833                               IOHIDCallbackFunction cb = NULL;
47834                               qi->setEventCallout(NULL, cb, NULL, NULL);
47835   ;
47836   return 0;
47837 }
47838 _ACEOF
47839 rm -f conftest.$ac_objext
47840 if { (ac_try="$ac_compile"
47841 case "(($ac_try" in
47842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47843   *) ac_try_echo=$ac_try;;
47844 esac
47845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47846   (eval "$ac_compile") 2>conftest.er1
47847   ac_status=$?
47848   grep -v '^ *+' conftest.er1 >conftest.err
47849   rm -f conftest.er1
47850   cat conftest.err >&5
47851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47852   (exit $ac_status); } && {
47853          test -z "$ac_cxx_werror_flag" ||
47854          test ! -s conftest.err
47855        } && test -s conftest.$ac_objext; then
47856    wxUSE_JOYSTICK=yes
47857
47858 else
47859   echo "$as_me: failed program was:" >&5
47860 sed 's/^/| /' conftest.$ac_ext >&5
47861
47862
47863 fi
47864
47865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47866             ac_ext=c
47867 ac_cpp='$CPP $CPPFLAGS'
47868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
47869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
47870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
47871
47872             { echo "$as_me:$LINENO: result: $wxUSE_JOYSTICK" >&5
47873 echo "${ECHO_T}$wxUSE_JOYSTICK" >&6; }
47874         fi
47875
47876         else
47877                 if test "$wxUSE_MGL" != "1"; then
47878
47879 for ac_header in linux/joystick.h
47880 do
47881 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
47882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
47883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
47884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47885   echo $ECHO_N "(cached) $ECHO_C" >&6
47886 else
47887   cat >conftest.$ac_ext <<_ACEOF
47888 /* confdefs.h.  */
47889 _ACEOF
47890 cat confdefs.h >>conftest.$ac_ext
47891 cat >>conftest.$ac_ext <<_ACEOF
47892 /* end confdefs.h.  */
47893 $ac_includes_default
47894
47895 #include <$ac_header>
47896 _ACEOF
47897 rm -f conftest.$ac_objext
47898 if { (ac_try="$ac_compile"
47899 case "(($ac_try" in
47900   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47901   *) ac_try_echo=$ac_try;;
47902 esac
47903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
47904   (eval "$ac_compile") 2>conftest.er1
47905   ac_status=$?
47906   grep -v '^ *+' conftest.er1 >conftest.err
47907   rm -f conftest.er1
47908   cat conftest.err >&5
47909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
47910   (exit $ac_status); } && {
47911          test -z "$ac_c_werror_flag" ||
47912          test ! -s conftest.err
47913        } && test -s conftest.$ac_objext; then
47914   eval "$as_ac_Header=yes"
47915 else
47916   echo "$as_me: failed program was:" >&5
47917 sed 's/^/| /' conftest.$ac_ext >&5
47918
47919         eval "$as_ac_Header=no"
47920 fi
47921
47922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47923 fi
47924 ac_res=`eval echo '${'$as_ac_Header'}'`
47925                { echo "$as_me:$LINENO: result: $ac_res" >&5
47926 echo "${ECHO_T}$ac_res" >&6; }
47927 if test `eval echo '${'$as_ac_Header'}'` = yes; then
47928   cat >>confdefs.h <<_ACEOF
47929 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
47930 _ACEOF
47931  wxUSE_JOYSTICK=yes
47932 fi
47933
47934 done
47935
47936         fi
47937     fi
47938
47939     if test "$wxUSE_JOYSTICK" = "yes"; then
47940         cat >>confdefs.h <<\_ACEOF
47941 #define wxUSE_JOYSTICK 1
47942 _ACEOF
47943
47944         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS joytest"
47945     else
47946         { echo "$as_me:$LINENO: WARNING: Joystick not supported by this system... disabled" >&5
47947 echo "$as_me: WARNING: Joystick not supported by this system... disabled" >&2;}
47948     fi
47949 fi
47950
47951
47952
47953 if test "$wxUSE_FONTENUM" = "yes" ; then
47954   cat >>confdefs.h <<\_ACEOF
47955 #define wxUSE_FONTENUM 1
47956 _ACEOF
47957
47958 fi
47959
47960 if test "$wxUSE_FONTMAP" = "yes" ; then
47961   cat >>confdefs.h <<\_ACEOF
47962 #define wxUSE_FONTMAP 1
47963 _ACEOF
47964
47965 fi
47966
47967 if test "$wxUSE_UNICODE" = "yes" ; then
47968   cat >>confdefs.h <<\_ACEOF
47969 #define wxUSE_UNICODE 1
47970 _ACEOF
47971
47972
47973   if test "$USE_WIN32" != 1; then
47974       wxUSE_UNICODE_MSLU=no
47975   fi
47976
47977   if test "$USE_WIN32" = 1 -a "$wxUSE_UNICODE_MSLU" = "yes"; then
47978         { echo "$as_me:$LINENO: checking for main in -lunicows" >&5
47979 echo $ECHO_N "checking for main in -lunicows... $ECHO_C" >&6; }
47980 if test "${ac_cv_lib_unicows_main+set}" = set; then
47981   echo $ECHO_N "(cached) $ECHO_C" >&6
47982 else
47983   ac_check_lib_save_LIBS=$LIBS
47984 LIBS="-lunicows  $LIBS"
47985 cat >conftest.$ac_ext <<_ACEOF
47986 /* confdefs.h.  */
47987 _ACEOF
47988 cat confdefs.h >>conftest.$ac_ext
47989 cat >>conftest.$ac_ext <<_ACEOF
47990 /* end confdefs.h.  */
47991
47992
47993 int
47994 main ()
47995 {
47996 return main ();
47997   ;
47998   return 0;
47999 }
48000 _ACEOF
48001 rm -f conftest.$ac_objext conftest$ac_exeext
48002 if { (ac_try="$ac_link"
48003 case "(($ac_try" in
48004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48005   *) ac_try_echo=$ac_try;;
48006 esac
48007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48008   (eval "$ac_link") 2>conftest.er1
48009   ac_status=$?
48010   grep -v '^ *+' conftest.er1 >conftest.err
48011   rm -f conftest.er1
48012   cat conftest.err >&5
48013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48014   (exit $ac_status); } && {
48015          test -z "$ac_c_werror_flag" ||
48016          test ! -s conftest.err
48017        } && test -s conftest$ac_exeext &&
48018        $as_test_x conftest$ac_exeext; then
48019   ac_cv_lib_unicows_main=yes
48020 else
48021   echo "$as_me: failed program was:" >&5
48022 sed 's/^/| /' conftest.$ac_ext >&5
48023
48024         ac_cv_lib_unicows_main=no
48025 fi
48026
48027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48028       conftest$ac_exeext conftest.$ac_ext
48029 LIBS=$ac_check_lib_save_LIBS
48030 fi
48031 { echo "$as_me:$LINENO: result: $ac_cv_lib_unicows_main" >&5
48032 echo "${ECHO_T}$ac_cv_lib_unicows_main" >&6; }
48033 if test $ac_cv_lib_unicows_main = yes; then
48034
48035                 cat >>confdefs.h <<\_ACEOF
48036 #define wxUSE_UNICODE_MSLU 1
48037 _ACEOF
48038
48039
48040 else
48041
48042                 { echo "$as_me:$LINENO: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
48043                              Applications will only run on Windows NT/2000/XP!" >&5
48044 echo "$as_me: WARNING: Compiler doesn't support MSLU (libunicows.a), disabled.
48045                              Applications will only run on Windows NT/2000/XP!" >&2;}
48046                 wxUSE_UNICODE_MSLU=no
48047
48048 fi
48049
48050     fi
48051 fi
48052
48053 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_UTF8" = "yes"; then
48054     cat >>confdefs.h <<\_ACEOF
48055 #define wxUSE_UNICODE_UTF8 1
48056 _ACEOF
48057
48058
48059     if test "$wxUSE_UNICODE_UTF8_LOCALE" = "yes"; then
48060         cat >>confdefs.h <<\_ACEOF
48061 #define wxUSE_UTF8_LOCALE_ONLY 1
48062 _ACEOF
48063
48064     fi
48065 fi
48066
48067 if test "$wxUSE_wxUSE_EXPERIMENTAL_PRINTF" = "yes"; then
48068   cat >>confdefs.h <<\_ACEOF
48069 #define wxUSE_EXPERIMENTAL_PRINTF 1
48070 _ACEOF
48071
48072 fi
48073
48074
48075 if test "$wxUSE_CONSTRAINTS" = "yes"; then
48076     cat >>confdefs.h <<\_ACEOF
48077 #define wxUSE_CONSTRAINTS 1
48078 _ACEOF
48079
48080     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS layout"
48081 fi
48082
48083 if test "$wxUSE_MDI" = "yes"; then
48084     cat >>confdefs.h <<\_ACEOF
48085 #define wxUSE_MDI 1
48086 _ACEOF
48087
48088
48089     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
48090         cat >>confdefs.h <<\_ACEOF
48091 #define wxUSE_MDI_ARCHITECTURE 1
48092 _ACEOF
48093
48094         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mdi"
48095     fi
48096 fi
48097
48098 if test "$wxUSE_DOC_VIEW_ARCHITECTURE" = "yes" ; then
48099     cat >>confdefs.h <<\_ACEOF
48100 #define wxUSE_DOC_VIEW_ARCHITECTURE 1
48101 _ACEOF
48102
48103     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docview"
48104     if test "$wxUSE_MDI_ARCHITECTURE" = "yes"; then
48105         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS docvwmdi"
48106     fi
48107 fi
48108
48109 if test "$wxUSE_HELP" = "yes"; then
48110     cat >>confdefs.h <<\_ACEOF
48111 #define wxUSE_HELP 1
48112 _ACEOF
48113
48114     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS help"
48115
48116     if test "$wxUSE_MSW" = 1; then
48117       if test "$wxUSE_MS_HTML_HELP" = "yes"; then
48118         cat >>confdefs.h <<\_ACEOF
48119 #define wxUSE_MS_HTML_HELP 1
48120 _ACEOF
48121
48122       fi
48123     fi
48124
48125     if test "$wxUSE_WXHTML_HELP" = "yes"; then
48126       if test "$wxUSE_HTML" = "yes"; then
48127         cat >>confdefs.h <<\_ACEOF
48128 #define wxUSE_WXHTML_HELP 1
48129 _ACEOF
48130
48131       else
48132         { echo "$as_me:$LINENO: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&5
48133 echo "$as_me: WARNING: Cannot use wxHTML-based help without wxHTML so it won't be compiled" >&2;}
48134         wxUSE_WXHTML_HELP=no
48135       fi
48136     fi
48137 fi
48138
48139 if test "$wxUSE_PRINTING_ARCHITECTURE" = "yes" ; then
48140     if test "$wxUSE_CONSTRAINTS" != "yes"; then
48141         { echo "$as_me:$LINENO: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&5
48142 echo "$as_me: WARNING: Printing support cannot be used without constraints so it won't be compiled without it" >&2;}
48143     else
48144         cat >>confdefs.h <<\_ACEOF
48145 #define wxUSE_PRINTING_ARCHITECTURE 1
48146 _ACEOF
48147
48148     fi
48149     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS printing"
48150 fi
48151
48152 if test "$wxUSE_POSTSCRIPT" = "yes" ; then
48153   cat >>confdefs.h <<\_ACEOF
48154 #define wxUSE_POSTSCRIPT 1
48155 _ACEOF
48156
48157 fi
48158
48159 cat >>confdefs.h <<\_ACEOF
48160 #define wxUSE_AFM_FOR_POSTSCRIPT 1
48161 _ACEOF
48162
48163
48164 cat >>confdefs.h <<\_ACEOF
48165 #define wxUSE_NORMALIZED_PS_FONTS 1
48166 _ACEOF
48167
48168
48169 if test "$wxUSE_SVG" = "yes"; then
48170     cat >>confdefs.h <<\_ACEOF
48171 #define wxUSE_SVG 1
48172 _ACEOF
48173
48174 fi
48175
48176
48177 if test "$wxUSE_METAFILE" = "yes"; then
48178     if test "$wxUSE_MSW" != 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_PM" != 1; then
48179         { echo "$as_me:$LINENO: WARNING: wxMetafile is not available on this system... disabled" >&5
48180 echo "$as_me: WARNING: wxMetafile is not available on this system... disabled" >&2;}
48181         wxUSE_METAFILE=no
48182     fi
48183 fi
48184
48185
48186 if test "$USE_WIN32" = 1 -a \( "$wxUSE_DATAOBJ"       = "yes" \
48187                           -o "$wxUSE_CLIPBOARD"     = "yes" \
48188                           -o "$wxUSE_OLE"     = "yes" \
48189                           -o "$wxUSE_DRAG_AND_DROP" = "yes" \) ; then
48190     { echo "$as_me:$LINENO: checking for ole2.h" >&5
48191 echo $ECHO_N "checking for ole2.h... $ECHO_C" >&6; }
48192 if test "${ac_cv_header_ole2_h+set}" = set; then
48193   echo $ECHO_N "(cached) $ECHO_C" >&6
48194 else
48195   cat >conftest.$ac_ext <<_ACEOF
48196 /* confdefs.h.  */
48197 _ACEOF
48198 cat confdefs.h >>conftest.$ac_ext
48199 cat >>conftest.$ac_ext <<_ACEOF
48200 /* end confdefs.h.  */
48201
48202
48203 #include <ole2.h>
48204 _ACEOF
48205 rm -f conftest.$ac_objext
48206 if { (ac_try="$ac_compile"
48207 case "(($ac_try" in
48208   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48209   *) ac_try_echo=$ac_try;;
48210 esac
48211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48212   (eval "$ac_compile") 2>conftest.er1
48213   ac_status=$?
48214   grep -v '^ *+' conftest.er1 >conftest.err
48215   rm -f conftest.er1
48216   cat conftest.err >&5
48217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48218   (exit $ac_status); } && {
48219          test -z "$ac_c_werror_flag" ||
48220          test ! -s conftest.err
48221        } && test -s conftest.$ac_objext; then
48222   ac_cv_header_ole2_h=yes
48223 else
48224   echo "$as_me: failed program was:" >&5
48225 sed 's/^/| /' conftest.$ac_ext >&5
48226
48227         ac_cv_header_ole2_h=no
48228 fi
48229
48230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48231 fi
48232 { echo "$as_me:$LINENO: result: $ac_cv_header_ole2_h" >&5
48233 echo "${ECHO_T}$ac_cv_header_ole2_h" >&6; }
48234
48235
48236
48237     if test "$ac_cv_header_ole2_h" = "yes" ; then
48238         if test "$GCC" = yes ; then
48239             { echo "$as_me:$LINENO: checking if g++ requires -fvtable-thunks" >&5
48240 echo $ECHO_N "checking if g++ requires -fvtable-thunks... $ECHO_C" >&6; }
48241             cat >conftest.$ac_ext <<_ACEOF
48242 /* confdefs.h.  */
48243 _ACEOF
48244 cat confdefs.h >>conftest.$ac_ext
48245 cat >>conftest.$ac_ext <<_ACEOF
48246 /* end confdefs.h.  */
48247 #include <windows.h>
48248                             #include <ole2.h>
48249 int
48250 main ()
48251 {
48252
48253   ;
48254   return 0;
48255 }
48256 _ACEOF
48257 rm -f conftest.$ac_objext
48258 if { (ac_try="$ac_compile"
48259 case "(($ac_try" in
48260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48261   *) ac_try_echo=$ac_try;;
48262 esac
48263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
48264   (eval "$ac_compile") 2>conftest.er1
48265   ac_status=$?
48266   grep -v '^ *+' conftest.er1 >conftest.err
48267   rm -f conftest.er1
48268   cat conftest.err >&5
48269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
48270   (exit $ac_status); } && {
48271          test -z "$ac_c_werror_flag" ||
48272          test ! -s conftest.err
48273        } && test -s conftest.$ac_objext; then
48274   { echo "$as_me:$LINENO: result: no" >&5
48275 echo "${ECHO_T}no" >&6; }
48276 else
48277   echo "$as_me: failed program was:" >&5
48278 sed 's/^/| /' conftest.$ac_ext >&5
48279
48280         { echo "$as_me:$LINENO: result: yes" >&5
48281 echo "${ECHO_T}yes" >&6; }
48282                             WXCONFIG_CXXFLAGS="$WXCONFIG_CXXFLAGS -fvtable-thunks"
48283 fi
48284
48285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48286             LIBS=" -lrpcrt4 -loleaut32 -lole32 -luuid$LIBS"
48287             if test "$wxUSE_OLE" = "yes" ; then
48288                 cat >>confdefs.h <<\_ACEOF
48289 #define wxUSE_OLE 1
48290 _ACEOF
48291
48292                 cat >>confdefs.h <<\_ACEOF
48293 #define wxUSE_OLE_AUTOMATION 1
48294 _ACEOF
48295
48296                 cat >>confdefs.h <<\_ACEOF
48297 #define wxUSE_ACTIVEX 1
48298 _ACEOF
48299
48300                 SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS oleauto"
48301             fi
48302         fi
48303
48304                 if test "$wxUSE_DATAOBJ" = "yes" ; then
48305             cat >>confdefs.h <<\_ACEOF
48306 #define wxUSE_DATAOBJ 1
48307 _ACEOF
48308
48309         fi
48310     else
48311         { echo "$as_me:$LINENO: WARNING: Some features disabled because OLE headers not found" >&5
48312 echo "$as_me: WARNING: Some features disabled because OLE headers not found" >&2;}
48313
48314         wxUSE_CLIPBOARD=no
48315         wxUSE_DRAG_AND_DROP=no
48316         wxUSE_DATAOBJ=no
48317         wxUSE_OLE=no
48318     fi
48319
48320     if test "$wxUSE_METAFILE" = "yes"; then
48321         cat >>confdefs.h <<\_ACEOF
48322 #define wxUSE_METAFILE 1
48323 _ACEOF
48324
48325
48326                 cat >>confdefs.h <<\_ACEOF
48327 #define wxUSE_ENH_METAFILE 1
48328 _ACEOF
48329
48330     fi
48331 fi
48332
48333 if test "$wxUSE_IPC" = "yes"; then
48334     if test "$wxUSE_SOCKETS" != "yes" -a "$USE_WIN32" != 1; then
48335         { echo "$as_me:$LINENO: WARNING: wxWidgets IPC classes require sockets... disabled" >&5
48336 echo "$as_me: WARNING: wxWidgets IPC classes require sockets... disabled" >&2;}
48337         wxUSE_IPC=no
48338     fi
48339
48340     if test "$wxUSE_IPC" = "yes"; then
48341         cat >>confdefs.h <<\_ACEOF
48342 #define wxUSE_IPC 1
48343 _ACEOF
48344
48345         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ipc"
48346     fi
48347 fi
48348
48349 if test "$wxUSE_DATAOBJ" = "yes"; then
48350     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48351         { echo "$as_me:$LINENO: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&5
48352 echo "$as_me: WARNING: wxDataObject not yet supported under $TOOLKIT... disabled" >&2;}
48353         wxUSE_DATAOBJ=no
48354     else
48355         cat >>confdefs.h <<\_ACEOF
48356 #define wxUSE_DATAOBJ 1
48357 _ACEOF
48358
48359     fi
48360 else
48361     { echo "$as_me:$LINENO: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&5
48362 echo "$as_me: WARNING: Clipboard and drag-and-drop require wxDataObject -- disabled" >&2;}
48363     wxUSE_CLIPBOARD=no
48364     wxUSE_DRAG_AND_DROP=no
48365 fi
48366
48367 if test "$wxUSE_CLIPBOARD" = "yes"; then
48368     if test "$wxUSE_MGL" = 1 -o "$wxUSE_DFB" = 1; then
48369         { echo "$as_me:$LINENO: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&5
48370 echo "$as_me: WARNING: Clipboard not yet supported under $TOOLKIT... disabled" >&2;}
48371         wxUSE_CLIPBOARD=no
48372     fi
48373
48374     if test "$wxUSE_CLIPBOARD" = "yes"; then
48375         cat >>confdefs.h <<\_ACEOF
48376 #define wxUSE_CLIPBOARD 1
48377 _ACEOF
48378
48379     fi
48380 fi
48381
48382 if test "$wxUSE_DRAG_AND_DROP" = "yes" ; then
48383     if test "$wxUSE_GTK" = 1; then
48384         if test "$WXGTK12" != 1; then
48385             { echo "$as_me:$LINENO: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&5
48386 echo "$as_me: WARNING: Drag and drop is only supported under GTK+ 1.2... disabled" >&2;}
48387             wxUSE_DRAG_AND_DROP=no
48388         fi
48389     fi
48390
48391     if test "$wxUSE_MOTIF" = 1 -o "$wxUSE_X11" = 1 -o "$wxUSE_MGL" = 1 -o \
48392             "$wxUSE_DFB" = 1; then
48393         { echo "$as_me:$LINENO: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&5
48394 echo "$as_me: WARNING: Drag and drop not yet supported under $TOOLKIT... disabled" >&2;}
48395         wxUSE_DRAG_AND_DROP=no
48396     fi
48397
48398     if test "$wxUSE_DRAG_AND_DROP" = "yes"; then
48399         cat >>confdefs.h <<\_ACEOF
48400 #define wxUSE_DRAG_AND_DROP 1
48401 _ACEOF
48402
48403     fi
48404
48405 fi
48406
48407 if test "$wxUSE_DRAG_AND_DROP" = "yes" -o "$wxUSE_CLIPBOARD" = "yes"; then
48408     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dnd"
48409 fi
48410
48411 if test "$wxUSE_SPLINES" = "yes" ; then
48412   cat >>confdefs.h <<\_ACEOF
48413 #define wxUSE_SPLINES 1
48414 _ACEOF
48415
48416 fi
48417
48418 if test "$wxUSE_MOUSEWHEEL" = "yes" ; then
48419   cat >>confdefs.h <<\_ACEOF
48420 #define wxUSE_MOUSEWHEEL 1
48421 _ACEOF
48422
48423 fi
48424
48425
48426 USES_CONTROLS=0
48427 if test "$wxUSE_CONTROLS" = "yes"; then
48428   USES_CONTROLS=1
48429 fi
48430
48431 if test "$wxUSE_ACCEL" = "yes"; then
48432   cat >>confdefs.h <<\_ACEOF
48433 #define wxUSE_ACCEL 1
48434 _ACEOF
48435
48436   USES_CONTROLS=1
48437 fi
48438
48439 if test "$wxUSE_ANIMATIONCTRL" = "yes"; then
48440   cat >>confdefs.h <<\_ACEOF
48441 #define wxUSE_ANIMATIONCTRL 1
48442 _ACEOF
48443
48444   USES_CONTROLS=1
48445   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS animate"
48446 fi
48447
48448 if test "$wxUSE_BUTTON" = "yes"; then
48449   cat >>confdefs.h <<\_ACEOF
48450 #define wxUSE_BUTTON 1
48451 _ACEOF
48452
48453   USES_CONTROLS=1
48454 fi
48455
48456 if test "$wxUSE_BMPBUTTON" = "yes"; then
48457   cat >>confdefs.h <<\_ACEOF
48458 #define wxUSE_BMPBUTTON 1
48459 _ACEOF
48460
48461   USES_CONTROLS=1
48462 fi
48463
48464 if test "$wxUSE_CALCTRL" = "yes"; then
48465   cat >>confdefs.h <<\_ACEOF
48466 #define wxUSE_CALENDARCTRL 1
48467 _ACEOF
48468
48469   USES_CONTROLS=1
48470   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS calendar"
48471 fi
48472
48473 if test "$wxUSE_CARET" = "yes"; then
48474   cat >>confdefs.h <<\_ACEOF
48475 #define wxUSE_CARET 1
48476 _ACEOF
48477
48478   USES_CONTROLS=1
48479   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS caret"
48480 fi
48481
48482 if test "$wxUSE_COLLPANE" = "yes"; then
48483     cat >>confdefs.h <<\_ACEOF
48484 #define wxUSE_COLLPANE 1
48485 _ACEOF
48486
48487     USES_CONTROLS=1
48488     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS collpane"
48489 fi
48490
48491 if test "$wxUSE_COMBOBOX" = "yes"; then
48492   cat >>confdefs.h <<\_ACEOF
48493 #define wxUSE_COMBOBOX 1
48494 _ACEOF
48495
48496   USES_CONTROLS=1
48497 fi
48498
48499 if test "$wxUSE_COMBOCTRL" = "yes"; then
48500   cat >>confdefs.h <<\_ACEOF
48501 #define wxUSE_COMBOCTRL 1
48502 _ACEOF
48503
48504   USES_CONTROLS=1
48505 fi
48506
48507 if test "$wxUSE_CHOICE" = "yes"; then
48508   cat >>confdefs.h <<\_ACEOF
48509 #define wxUSE_CHOICE 1
48510 _ACEOF
48511
48512   USES_CONTROLS=1
48513 fi
48514
48515 if test "$wxUSE_CHOICEBOOK" = "yes"; then
48516     cat >>confdefs.h <<\_ACEOF
48517 #define wxUSE_CHOICEBOOK 1
48518 _ACEOF
48519
48520     USES_CONTROLS=1
48521 fi
48522
48523 if test "$wxUSE_CHECKBOX" = "yes"; then
48524   cat >>confdefs.h <<\_ACEOF
48525 #define wxUSE_CHECKBOX 1
48526 _ACEOF
48527
48528   USES_CONTROLS=1
48529 fi
48530
48531 if test "$wxUSE_CHECKLST" = "yes"; then
48532   cat >>confdefs.h <<\_ACEOF
48533 #define wxUSE_CHECKLISTBOX 1
48534 _ACEOF
48535
48536   USES_CONTROLS=1
48537   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS checklst"
48538 fi
48539
48540 if test "$wxUSE_COLOURPICKERCTRL" = "yes"; then
48541   cat >>confdefs.h <<\_ACEOF
48542 #define wxUSE_COLOURPICKERCTRL 1
48543 _ACEOF
48544
48545   USES_CONTROLS=1
48546 fi
48547
48548 if test "$wxUSE_DATEPICKCTRL" = "yes"; then
48549   cat >>confdefs.h <<\_ACEOF
48550 #define wxUSE_DATEPICKCTRL 1
48551 _ACEOF
48552
48553   USES_CONTROLS=1
48554 fi
48555
48556 if test "$wxUSE_DIRPICKERCTRL" = "yes"; then
48557   cat >>confdefs.h <<\_ACEOF
48558 #define wxUSE_DIRPICKERCTRL 1
48559 _ACEOF
48560
48561   USES_CONTROLS=1
48562 fi
48563
48564 if test "$wxUSE_FILEPICKERCTRL" = "yes"; then
48565   cat >>confdefs.h <<\_ACEOF
48566 #define wxUSE_FILEPICKERCTRL 1
48567 _ACEOF
48568
48569   USES_CONTROLS=1
48570 fi
48571
48572 if test "$wxUSE_FONTPICKERCTRL" = "yes"; then
48573   cat >>confdefs.h <<\_ACEOF
48574 #define wxUSE_FONTPICKERCTRL 1
48575 _ACEOF
48576
48577   USES_CONTROLS=1
48578 fi
48579
48580 if test "$wxUSE_DISPLAY" = "yes"; then
48581     if test "$wxUSE_DFB" = 1 -o "$wxUSE_MGL" = 1; then
48582         { echo "$as_me:$LINENO: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&5
48583 echo "$as_me: WARNING: wxDisplay not yet supported under $TOOLKIT... disabled" >&2;}
48584         wxUSE_DISPLAY=no
48585     else
48586         cat >>confdefs.h <<\_ACEOF
48587 #define wxUSE_DISPLAY 1
48588 _ACEOF
48589
48590         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS display multimon"
48591     fi
48592 fi
48593
48594 if test "$wxUSE_DETECT_SM" = "yes"; then
48595     cat >>confdefs.h <<\_ACEOF
48596 #define wxUSE_DETECT_SM 1
48597 _ACEOF
48598
48599 fi
48600
48601 if test "$wxUSE_GAUGE" = "yes"; then
48602   cat >>confdefs.h <<\_ACEOF
48603 #define wxUSE_GAUGE 1
48604 _ACEOF
48605
48606   USES_CONTROLS=1
48607 fi
48608
48609 if test "$wxUSE_GRID" = "yes"; then
48610   cat >>confdefs.h <<\_ACEOF
48611 #define wxUSE_GRID 1
48612 _ACEOF
48613
48614   USES_CONTROLS=1
48615   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS grid"
48616 fi
48617
48618 if test "$wxUSE_HYPERLINKCTRL" = "yes"; then
48619   cat >>confdefs.h <<\_ACEOF
48620 #define wxUSE_HYPERLINKCTRL 1
48621 _ACEOF
48622
48623   USES_CONTROLS=1
48624 fi
48625
48626 if test "$wxUSE_BITMAPCOMBOBOX" = "yes"; then
48627   cat >>confdefs.h <<\_ACEOF
48628 #define wxUSE_BITMAPCOMBOBOX 1
48629 _ACEOF
48630
48631   USES_CONTROLS=1
48632 fi
48633
48634 if test "$wxUSE_DATAVIEWCTRL" = "yes"; then
48635   cat >>confdefs.h <<\_ACEOF
48636 #define wxUSE_DATAVIEWCTRL 1
48637 _ACEOF
48638
48639   USES_CONTROLS=1
48640   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dataview"
48641 fi
48642
48643 if test "$wxUSE_IMAGLIST" = "yes"; then
48644     cat >>confdefs.h <<\_ACEOF
48645 #define wxUSE_IMAGLIST 1
48646 _ACEOF
48647
48648 fi
48649
48650 if test "$wxUSE_LISTBOOK" = "yes"; then
48651     cat >>confdefs.h <<\_ACEOF
48652 #define wxUSE_LISTBOOK 1
48653 _ACEOF
48654
48655     USES_CONTROLS=1
48656 fi
48657
48658 if test "$wxUSE_LISTBOX" = "yes"; then
48659     cat >>confdefs.h <<\_ACEOF
48660 #define wxUSE_LISTBOX 1
48661 _ACEOF
48662
48663     USES_CONTROLS=1
48664     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listbox"
48665 fi
48666
48667 if test "$wxUSE_LISTCTRL" = "yes"; then
48668     if test "$wxUSE_IMAGLIST" = "yes"; then
48669         cat >>confdefs.h <<\_ACEOF
48670 #define wxUSE_LISTCTRL 1
48671 _ACEOF
48672
48673         USES_CONTROLS=1
48674         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS listctrl"
48675     else
48676         { echo "$as_me:$LINENO: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&5
48677 echo "$as_me: WARNING: wxListCtrl requires wxImageList and won't be compiled without it" >&2;}
48678     fi
48679 fi
48680
48681 if test "$wxUSE_EDITABLELISTBOX" = "yes"; then
48682     cat >>confdefs.h <<\_ACEOF
48683 #define wxUSE_EDITABLELISTBOX 1
48684 _ACEOF
48685
48686     USES_CONTROLS=1
48687     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS editlbox"
48688 fi
48689
48690 if test "$wxUSE_NOTEBOOK" = "yes"; then
48691     cat >>confdefs.h <<\_ACEOF
48692 #define wxUSE_NOTEBOOK 1
48693 _ACEOF
48694
48695     USES_CONTROLS=1
48696     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS notebook"
48697 fi
48698
48699 if test "$wxUSE_ODCOMBOBOX" = "yes"; then
48700   cat >>confdefs.h <<\_ACEOF
48701 #define wxUSE_ODCOMBOBOX 1
48702 _ACEOF
48703
48704   USES_CONTROLS=1
48705   SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS combo"
48706 fi
48707
48708
48709 if test "$wxUSE_RADIOBOX" = "yes"; then
48710     cat >>confdefs.h <<\_ACEOF
48711 #define wxUSE_RADIOBOX 1
48712 _ACEOF
48713
48714     USES_CONTROLS=1
48715 fi
48716
48717 if test "$wxUSE_RADIOBTN" = "yes"; then
48718     cat >>confdefs.h <<\_ACEOF
48719 #define wxUSE_RADIOBTN 1
48720 _ACEOF
48721
48722     USES_CONTROLS=1
48723 fi
48724
48725 if test "$wxUSE_SASH" = "yes"; then
48726     cat >>confdefs.h <<\_ACEOF
48727 #define wxUSE_SASH 1
48728 _ACEOF
48729
48730     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS sashtest"
48731 fi
48732
48733 if test "$wxUSE_SCROLLBAR" = "yes"; then
48734     cat >>confdefs.h <<\_ACEOF
48735 #define wxUSE_SCROLLBAR 1
48736 _ACEOF
48737
48738     USES_CONTROLS=1
48739     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS scroll scrollsub"
48740 fi
48741
48742 if test "$wxUSE_SEARCHCTRL" = "yes"; then
48743     cat >>confdefs.h <<\_ACEOF
48744 #define wxUSE_SEARCHCTRL 1
48745 _ACEOF
48746
48747     USES_CONTROLS=1
48748 fi
48749
48750 if test "$wxUSE_SLIDER" = "yes"; then
48751     cat >>confdefs.h <<\_ACEOF
48752 #define wxUSE_SLIDER 1
48753 _ACEOF
48754
48755     USES_CONTROLS=1
48756 fi
48757
48758 if test "$wxUSE_SPINBTN" = "yes"; then
48759     cat >>confdefs.h <<\_ACEOF
48760 #define wxUSE_SPINBTN 1
48761 _ACEOF
48762
48763     USES_CONTROLS=1
48764 fi
48765
48766 if test "$wxUSE_SPINCTRL" = "yes"; then
48767     cat >>confdefs.h <<\_ACEOF
48768 #define wxUSE_SPINCTRL 1
48769 _ACEOF
48770
48771     USES_CONTROLS=1
48772 fi
48773
48774 if test "$wxUSE_SPLITTER" = "yes"; then
48775     cat >>confdefs.h <<\_ACEOF
48776 #define wxUSE_SPLITTER 1
48777 _ACEOF
48778
48779     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splitter"
48780 fi
48781
48782 if test "$wxUSE_STATBMP" = "yes"; then
48783     cat >>confdefs.h <<\_ACEOF
48784 #define wxUSE_STATBMP 1
48785 _ACEOF
48786
48787     USES_CONTROLS=1
48788 fi
48789
48790 if test "$wxUSE_STATBOX" = "yes"; then
48791     cat >>confdefs.h <<\_ACEOF
48792 #define wxUSE_STATBOX 1
48793 _ACEOF
48794
48795     USES_CONTROLS=1
48796 fi
48797
48798 if test "$wxUSE_STATTEXT" = "yes"; then
48799     cat >>confdefs.h <<\_ACEOF
48800 #define wxUSE_STATTEXT 1
48801 _ACEOF
48802
48803     USES_CONTROLS=1
48804 fi
48805
48806 if test "$wxUSE_STATLINE" = "yes"; then
48807     cat >>confdefs.h <<\_ACEOF
48808 #define wxUSE_STATLINE 1
48809 _ACEOF
48810
48811     USES_CONTROLS=1
48812 fi
48813
48814 if test "$wxUSE_STATUSBAR" = "yes"; then
48815         cat >>confdefs.h <<\_ACEOF
48816 #define wxUSE_NATIVE_STATUSBAR 1
48817 _ACEOF
48818
48819     cat >>confdefs.h <<\_ACEOF
48820 #define wxUSE_STATUSBAR 1
48821 _ACEOF
48822
48823     USES_CONTROLS=1
48824
48825     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS statbar"
48826 fi
48827
48828 if test "$wxUSE_TAB_DIALOG" = "yes"; then
48829     cat >>confdefs.h <<\_ACEOF
48830 #define wxUSE_TAB_DIALOG 1
48831 _ACEOF
48832
48833 fi
48834
48835 if test "$wxUSE_TEXTCTRL" = "yes"; then
48836     cat >>confdefs.h <<\_ACEOF
48837 #define wxUSE_TEXTCTRL 1
48838 _ACEOF
48839
48840     USES_CONTROLS=1
48841     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS text"
48842 fi
48843
48844 if test "$wxUSE_TOGGLEBTN" = "yes"; then
48845     if test "$wxUSE_COCOA" = 1 ; then
48846         { echo "$as_me:$LINENO: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&5
48847 echo "$as_me: WARNING: Toggle button not yet supported under Mac OS X... disabled" >&2;}
48848         wxUSE_TOGGLEBTN=no
48849     fi
48850
48851     if test "$wxUSE_TOGGLEBTN" = "yes"; then
48852         cat >>confdefs.h <<\_ACEOF
48853 #define wxUSE_TOGGLEBTN 1
48854 _ACEOF
48855
48856         USES_CONTROLS=1
48857     fi
48858 fi
48859
48860 if test "$wxUSE_TOOLBAR" = "yes"; then
48861     cat >>confdefs.h <<\_ACEOF
48862 #define wxUSE_TOOLBAR 1
48863 _ACEOF
48864
48865     USES_CONTROLS=1
48866
48867     if test "$wxUSE_UNIVERSAL" = "yes"; then
48868         wxUSE_TOOLBAR_NATIVE="no"
48869     else
48870         wxUSE_TOOLBAR_NATIVE="yes"
48871         cat >>confdefs.h <<\_ACEOF
48872 #define wxUSE_TOOLBAR_NATIVE 1
48873 _ACEOF
48874
48875     fi
48876
48877     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS toolbar"
48878 fi
48879
48880 if test "$wxUSE_TOOLTIPS" = "yes"; then
48881     if test "$wxUSE_MOTIF" = 1; then
48882         { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet under Motif... disabled" >&5
48883 echo "$as_me: WARNING: wxTooltip not supported yet under Motif... disabled" >&2;}
48884     else
48885         if test "$wxUSE_UNIVERSAL" = "yes"; then
48886             { echo "$as_me:$LINENO: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&5
48887 echo "$as_me: WARNING: wxTooltip not supported yet in wxUniversal... disabled" >&2;}
48888         else
48889             cat >>confdefs.h <<\_ACEOF
48890 #define wxUSE_TOOLTIPS 1
48891 _ACEOF
48892
48893         fi
48894     fi
48895 fi
48896
48897 if test "$wxUSE_TREEBOOK" = "yes"; then
48898     cat >>confdefs.h <<\_ACEOF
48899 #define wxUSE_TREEBOOK 1
48900 _ACEOF
48901
48902     USES_CONTROLS=1
48903 fi
48904
48905 if test "$wxUSE_TOOLBOOK" = "yes"; then
48906     cat >>confdefs.h <<\_ACEOF
48907 #define wxUSE_TOOLBOOK 1
48908 _ACEOF
48909
48910     USES_CONTROLS=1
48911 fi
48912
48913 if test "$wxUSE_TREECTRL" = "yes"; then
48914     if test "$wxUSE_IMAGLIST" = "yes"; then
48915         cat >>confdefs.h <<\_ACEOF
48916 #define wxUSE_TREECTRL 1
48917 _ACEOF
48918
48919         USES_CONTROLS=1
48920         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS treectrl"
48921     else
48922         { echo "$as_me:$LINENO: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&5
48923 echo "$as_me: WARNING: wxTreeCtrl requires wxImageList and won't be compiled without it" >&2;}
48924     fi
48925 fi
48926
48927 if test "$wxUSE_POPUPWIN" = "yes"; then
48928     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 ; then
48929         { echo "$as_me:$LINENO: WARNING: Popup window not yet supported under Mac OS X... disabled" >&5
48930 echo "$as_me: WARNING: Popup window not yet supported under Mac OS X... disabled" >&2;}
48931     else
48932         if test "$wxUSE_PM" = 1; then
48933             { echo "$as_me:$LINENO: WARNING: wxPopupWindow not yet supported under PM... disabled" >&5
48934 echo "$as_me: WARNING: wxPopupWindow not yet supported under PM... disabled" >&2;}
48935         else
48936             cat >>confdefs.h <<\_ACEOF
48937 #define wxUSE_POPUPWIN 1
48938 _ACEOF
48939
48940             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS popup"
48941
48942             USES_CONTROLS=1
48943         fi
48944     fi
48945 fi
48946
48947 if test "$wxUSE_DIALUP_MANAGER" = "yes"; then
48948     if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = 1 -o "$wxUSE_MGL" = 1; then
48949         { echo "$as_me:$LINENO: WARNING: Dialup manager not supported on this platform... disabled" >&5
48950 echo "$as_me: WARNING: Dialup manager not supported on this platform... disabled" >&2;}
48951     else
48952         cat >>confdefs.h <<\_ACEOF
48953 #define wxUSE_DIALUP_MANAGER 1
48954 _ACEOF
48955
48956         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dialup"
48957     fi
48958 fi
48959
48960 if test "$wxUSE_TIPWINDOW" = "yes"; then
48961     if test "$wxUSE_PM" = 1; then
48962         { echo "$as_me:$LINENO: WARNING: wxTipWindow not yet supported under PM... disabled" >&5
48963 echo "$as_me: WARNING: wxTipWindow not yet supported under PM... disabled" >&2;}
48964     else
48965         cat >>confdefs.h <<\_ACEOF
48966 #define wxUSE_TIPWINDOW 1
48967 _ACEOF
48968
48969     fi
48970 fi
48971
48972 if test "$USES_CONTROLS" = 1; then
48973     cat >>confdefs.h <<\_ACEOF
48974 #define wxUSE_CONTROLS 1
48975 _ACEOF
48976
48977 fi
48978
48979
48980 if test "$wxUSE_ACCESSIBILITY" = "yes"; then
48981     cat >>confdefs.h <<\_ACEOF
48982 #define wxUSE_ACCESSIBILITY 1
48983 _ACEOF
48984
48985     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS access"
48986 fi
48987
48988 if test "$wxUSE_DRAGIMAGE" = "yes"; then
48989     cat >>confdefs.h <<\_ACEOF
48990 #define wxUSE_DRAGIMAGE 1
48991 _ACEOF
48992
48993     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS dragimag"
48994 fi
48995
48996 if test "$wxUSE_EXCEPTIONS" = "yes"; then
48997     if test "$wxUSE_NO_EXCEPTIONS" = "yes" ; then
48998         { echo "$as_me:$LINENO: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&5
48999 echo "$as_me: WARNING: --enable-exceptions can't be used with --enable-no_exceptions" >&2;}
49000     else
49001         cat >>confdefs.h <<\_ACEOF
49002 #define wxUSE_EXCEPTIONS 1
49003 _ACEOF
49004
49005         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS except"
49006     fi
49007 fi
49008
49009 USE_HTML=0
49010 if test "$wxUSE_HTML" = "yes"; then
49011     cat >>confdefs.h <<\_ACEOF
49012 #define wxUSE_HTML 1
49013 _ACEOF
49014
49015     USE_HTML=1
49016     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html html/about html/help html/helpview html/printing html/test html/virtual html/widget html/zip htlbox"
49017     if test "$wxUSE_MAC" = 1; then
49018         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS html/htmlctrl"
49019     fi
49020 fi
49021 if test "$wxUSE_WEBKIT" = "yes"; then
49022     if test "$wxUSE_MAC" = 1 -a "$USE_DARWIN" = 1; then
49023         old_CPPFLAGS="$CPPFLAGS"
49024         CPPFLAGS="-x objective-c++ $CPPFLAGS"
49025         { echo "$as_me:$LINENO: checking for WebKit/HIWebView.h" >&5
49026 echo $ECHO_N "checking for WebKit/HIWebView.h... $ECHO_C" >&6; }
49027 if test "${ac_cv_header_WebKit_HIWebView_h+set}" = set; then
49028   echo $ECHO_N "(cached) $ECHO_C" >&6
49029 else
49030   cat >conftest.$ac_ext <<_ACEOF
49031 /* confdefs.h.  */
49032 _ACEOF
49033 cat confdefs.h >>conftest.$ac_ext
49034 cat >>conftest.$ac_ext <<_ACEOF
49035 /* end confdefs.h.  */
49036
49037                            #include <Carbon/Carbon.h>
49038                            #include <WebKit/WebKit.h>
49039
49040
49041 #include <WebKit/HIWebView.h>
49042 _ACEOF
49043 rm -f conftest.$ac_objext
49044 if { (ac_try="$ac_compile"
49045 case "(($ac_try" in
49046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49047   *) ac_try_echo=$ac_try;;
49048 esac
49049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
49050   (eval "$ac_compile") 2>conftest.er1
49051   ac_status=$?
49052   grep -v '^ *+' conftest.er1 >conftest.err
49053   rm -f conftest.er1
49054   cat conftest.err >&5
49055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49056   (exit $ac_status); } && {
49057          test -z "$ac_c_werror_flag" ||
49058          test ! -s conftest.err
49059        } && test -s conftest.$ac_objext; then
49060   ac_cv_header_WebKit_HIWebView_h=yes
49061 else
49062   echo "$as_me: failed program was:" >&5
49063 sed 's/^/| /' conftest.$ac_ext >&5
49064
49065         ac_cv_header_WebKit_HIWebView_h=no
49066 fi
49067
49068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49069 fi
49070 { echo "$as_me:$LINENO: result: $ac_cv_header_WebKit_HIWebView_h" >&5
49071 echo "${ECHO_T}$ac_cv_header_WebKit_HIWebView_h" >&6; }
49072 if test $ac_cv_header_WebKit_HIWebView_h = yes; then
49073
49074                            cat >>confdefs.h <<\_ACEOF
49075 #define wxUSE_WEBKIT 1
49076 _ACEOF
49077
49078                            WEBKIT_LINK="-framework WebKit"
49079
49080 else
49081
49082                            { echo "$as_me:$LINENO: WARNING: WebKit headers not found; disabling wxWebKit" >&5
49083 echo "$as_me: WARNING: WebKit headers not found; disabling wxWebKit" >&2;}
49084                            wxUSE_WEBKIT=no
49085
49086 fi
49087
49088
49089         CPPFLAGS="$old_CPPFLAGS"
49090     elif test "$wxUSE_COCOA" = 1; then
49091         cat >>confdefs.h <<\_ACEOF
49092 #define wxUSE_WEBKIT 1
49093 _ACEOF
49094
49095     else
49096         wxUSE_WEBKIT=no
49097     fi
49098 fi
49099
49100 USE_XRC=0
49101 if test "$wxUSE_XRC" = "yes"; then
49102     if test "$wxUSE_XML" != "yes"; then
49103         { echo "$as_me:$LINENO: WARNING: XML library not built, XRC resources disabled" >&5
49104 echo "$as_me: WARNING: XML library not built, XRC resources disabled" >&2;}
49105         wxUSE_XRC=no
49106     else
49107         cat >>confdefs.h <<\_ACEOF
49108 #define wxUSE_XRC 1
49109 _ACEOF
49110
49111         USE_XRC=1
49112         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS xrc"
49113     fi
49114 fi
49115
49116 USE_AUI=0
49117 if test "$wxUSE_AUI" = "yes"; then
49118    cat >>confdefs.h <<\_ACEOF
49119 #define wxUSE_AUI 1
49120 _ACEOF
49121
49122    USE_AUI=1
49123    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS aui"
49124 fi
49125
49126 USE_STC=0
49127 if test "$wxUSE_STC" = "yes"; then
49128    cat >>confdefs.h <<\_ACEOF
49129 #define wxUSE_STC 1
49130 _ACEOF
49131
49132    USE_STC=1
49133    SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS stc"
49134 fi
49135
49136 if test "$wxUSE_MENUS" = "yes"; then
49137     cat >>confdefs.h <<\_ACEOF
49138 #define wxUSE_MENUS 1
49139 _ACEOF
49140
49141     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS menu"
49142 fi
49143
49144 if test "$wxUSE_METAFILE" = "yes"; then
49145     cat >>confdefs.h <<\_ACEOF
49146 #define wxUSE_METAFILE 1
49147 _ACEOF
49148
49149 fi
49150
49151 if test "$wxUSE_MIMETYPE" = "yes"; then
49152     cat >>confdefs.h <<\_ACEOF
49153 #define wxUSE_MIMETYPE 1
49154 _ACEOF
49155
49156 fi
49157
49158 if test "$wxUSE_MINIFRAME" = "yes"; then
49159     cat >>confdefs.h <<\_ACEOF
49160 #define wxUSE_MINIFRAME 1
49161 _ACEOF
49162
49163     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS minifram"
49164 fi
49165
49166 if test "$wxUSE_SYSTEM_OPTIONS" = "yes"; then
49167     cat >>confdefs.h <<\_ACEOF
49168 #define wxUSE_SYSTEM_OPTIONS 1
49169 _ACEOF
49170
49171 fi
49172
49173 if test "$wxUSE_TASKBARICON" = "yes"; then
49174     cat >>confdefs.h <<\_ACEOF
49175 #define wxUSE_TASKBARICON 1
49176 _ACEOF
49177
49178     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS taskbar"
49179 fi
49180
49181
49182 if test "$wxUSE_VALIDATORS" = "yes"; then
49183     cat >>confdefs.h <<\_ACEOF
49184 #define wxUSE_VALIDATORS 1
49185 _ACEOF
49186
49187     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS validate"
49188 fi
49189
49190 if test "$wxUSE_PALETTE" = "yes" ; then
49191     if test "$wxUSE_DFB" = 1; then
49192         { echo "$as_me:$LINENO: WARNING: wxPalette not yet supported under DFB... disabled" >&5
49193 echo "$as_me: WARNING: wxPalette not yet supported under DFB... disabled" >&2;}
49194         wxUSE_PALETTE=no
49195     else
49196         cat >>confdefs.h <<\_ACEOF
49197 #define wxUSE_PALETTE 1
49198 _ACEOF
49199
49200     fi
49201 fi
49202
49203 if test "$wxUSE_UNICODE" = "yes" -a "$wxUSE_UNICODE_MSLU" = "yes" ; then
49204     LIBS=" -lunicows $LIBS"
49205 fi
49206
49207 USE_RICHTEXT=0
49208 if test "$wxUSE_RICHTEXT" = "yes"; then
49209     cat >>confdefs.h <<\_ACEOF
49210 #define wxUSE_RICHTEXT 1
49211 _ACEOF
49212
49213     USE_RICHTEXT=1
49214     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS richtext"
49215 fi
49216
49217
49218 if test "$wxUSE_IMAGE" = "yes" ; then
49219     cat >>confdefs.h <<\_ACEOF
49220 #define wxUSE_IMAGE 1
49221 _ACEOF
49222
49223
49224     if test "$wxUSE_GIF" = "yes" ; then
49225       cat >>confdefs.h <<\_ACEOF
49226 #define wxUSE_GIF 1
49227 _ACEOF
49228
49229     fi
49230
49231     if test "$wxUSE_PCX" = "yes" ; then
49232       cat >>confdefs.h <<\_ACEOF
49233 #define wxUSE_PCX 1
49234 _ACEOF
49235
49236     fi
49237
49238     if test "$wxUSE_TGA" = "yes" ; then
49239       cat >>confdefs.h <<\_ACEOF
49240 #define wxUSE_TGA 1
49241 _ACEOF
49242
49243     fi
49244
49245     if test "$wxUSE_IFF" = "yes" ; then
49246       cat >>confdefs.h <<\_ACEOF
49247 #define wxUSE_IFF 1
49248 _ACEOF
49249
49250     fi
49251
49252     if test "$wxUSE_PNM" = "yes" ; then
49253       cat >>confdefs.h <<\_ACEOF
49254 #define wxUSE_PNM 1
49255 _ACEOF
49256
49257     fi
49258
49259     if test "$wxUSE_XPM" = "yes" ; then
49260       cat >>confdefs.h <<\_ACEOF
49261 #define wxUSE_XPM 1
49262 _ACEOF
49263
49264     fi
49265
49266     if test "$wxUSE_ICO_CUR" = "yes" ; then
49267       cat >>confdefs.h <<\_ACEOF
49268 #define wxUSE_ICO_CUR 1
49269 _ACEOF
49270
49271     fi
49272 fi
49273
49274
49275 if test "$wxUSE_ABOUTDLG" = "yes"; then
49276     cat >>confdefs.h <<\_ACEOF
49277 #define wxUSE_ABOUTDLG 1
49278 _ACEOF
49279
49280 fi
49281
49282 if test "$wxUSE_CHOICEDLG" = "yes"; then
49283     cat >>confdefs.h <<\_ACEOF
49284 #define wxUSE_CHOICEDLG 1
49285 _ACEOF
49286
49287 fi
49288
49289 if test "$wxUSE_COLOURDLG" = "yes"; then
49290     cat >>confdefs.h <<\_ACEOF
49291 #define wxUSE_COLOURDLG 1
49292 _ACEOF
49293
49294 fi
49295
49296 if test "$wxUSE_FILEDLG" = "yes"; then
49297     cat >>confdefs.h <<\_ACEOF
49298 #define wxUSE_FILEDLG 1
49299 _ACEOF
49300
49301 fi
49302
49303 if test "$wxUSE_FINDREPLDLG" = "yes"; then
49304     cat >>confdefs.h <<\_ACEOF
49305 #define wxUSE_FINDREPLDLG 1
49306 _ACEOF
49307
49308 fi
49309
49310 if test "$wxUSE_FONTDLG" = "yes"; then
49311     cat >>confdefs.h <<\_ACEOF
49312 #define wxUSE_FONTDLG 1
49313 _ACEOF
49314
49315 fi
49316
49317 if test "$wxUSE_DIRDLG" = "yes"; then
49318     if test "$wxUSE_TREECTRL" != "yes"; then
49319         { echo "$as_me:$LINENO: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&5
49320 echo "$as_me: WARNING: wxDirDialog requires wxTreeCtrl so it won't be compiled without it" >&2;}
49321     else
49322         cat >>confdefs.h <<\_ACEOF
49323 #define wxUSE_DIRDLG 1
49324 _ACEOF
49325
49326     fi
49327 fi
49328
49329 if test "$wxUSE_MSGDLG" = "yes"; then
49330     cat >>confdefs.h <<\_ACEOF
49331 #define wxUSE_MSGDLG 1
49332 _ACEOF
49333
49334 fi
49335
49336 if test "$wxUSE_NUMBERDLG" = "yes"; then
49337     cat >>confdefs.h <<\_ACEOF
49338 #define wxUSE_NUMBERDLG 1
49339 _ACEOF
49340
49341 fi
49342
49343 if test "$wxUSE_PROGRESSDLG" = "yes"; then
49344     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49345        { echo "$as_me:$LINENO: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&5
49346 echo "$as_me: WARNING: wxProgressDialog requires constraints so it won't be compiled without them" >&2;}
49347     else
49348         cat >>confdefs.h <<\_ACEOF
49349 #define wxUSE_PROGRESSDLG 1
49350 _ACEOF
49351
49352     fi
49353 fi
49354
49355 if test "$wxUSE_SPLASH" = "yes"; then
49356     cat >>confdefs.h <<\_ACEOF
49357 #define wxUSE_SPLASH 1
49358 _ACEOF
49359
49360     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS splash"
49361 fi
49362
49363 if test "$wxUSE_STARTUP_TIPS" = "yes"; then
49364     if test "$wxUSE_CONSTRAINTS" != "yes"; then
49365        { echo "$as_me:$LINENO: WARNING: Startup tips requires constraints and won't be compiled without them" >&5
49366 echo "$as_me: WARNING: Startup tips requires constraints and won't be compiled without them" >&2;}
49367     else
49368         cat >>confdefs.h <<\_ACEOF
49369 #define wxUSE_STARTUP_TIPS 1
49370 _ACEOF
49371
49372     fi
49373 fi
49374
49375 if test "$wxUSE_TEXTDLG" = "yes"; then
49376     cat >>confdefs.h <<\_ACEOF
49377 #define wxUSE_TEXTDLG 1
49378 _ACEOF
49379
49380 fi
49381
49382 if test "$wxUSE_WIZARDDLG" = "yes"; then
49383     cat >>confdefs.h <<\_ACEOF
49384 #define wxUSE_WIZARDDLG 1
49385 _ACEOF
49386
49387     SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS wizard"
49388 fi
49389
49390
49391 if test "$wxUSE_MSW" = 1 ; then
49392
49393 if test "$wxUSE_DC_CACHEING" = "yes"; then
49394     cat >>confdefs.h <<\_ACEOF
49395 #define wxUSE_DC_CACHEING 1
49396 _ACEOF
49397
49398 fi
49399
49400 if test "$wxUSE_INICONF" = "yes"; then
49401     cat >>confdefs.h <<\_ACEOF
49402 #define wxUSE_INICONF 1
49403 _ACEOF
49404
49405 fi
49406
49407 if test "$wxUSE_DIB" = "yes"; then
49408     cat >>confdefs.h <<\_ACEOF
49409 #define wxUSE_WXDIB 1
49410 _ACEOF
49411
49412 fi
49413
49414 if test "$wxUSE_OWNER_DRAWN" = "yes"; then
49415     cat >>confdefs.h <<\_ACEOF
49416 #define wxUSE_OWNER_DRAWN 1
49417 _ACEOF
49418
49419 fi
49420
49421 if test "$wxUSE_REGKEY" = "yes"; then
49422     cat >>confdefs.h <<\_ACEOF
49423 #define wxUSE_REGKEY 1
49424 _ACEOF
49425
49426 fi
49427
49428 if test "$wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW" = "yes"; then
49429     cat >>confdefs.h <<\_ACEOF
49430 #define wxUSE_POSTSCRIPT_ARCHITECTURE_IN_MSW 1
49431 _ACEOF
49432
49433 fi
49434
49435 if test "$wxUSE_UXTHEME" = "yes"; then
49436     cat >>confdefs.h <<\_ACEOF
49437 #define wxUSE_UXTHEME 1
49438 _ACEOF
49439
49440 fi
49441
49442 fi
49443
49444
49445 if test "$wxUSE_GRAPHICS_CONTEXT" = "yes"; then
49446    if test "$wxUSE_MAC" = 1 -o "$wxUSE_COCOA" = "1"; then
49447       cat >>confdefs.h <<\_ACEOF
49448 #define wxUSE_GRAPHICS_CONTEXT 1
49449 _ACEOF
49450
49451    elif test "$wxUSE_GTK" != 1; then
49452             cat >>confdefs.h <<\_ACEOF
49453 #define wxUSE_GRAPHICS_CONTEXT 1
49454 _ACEOF
49455
49456    else
49457
49458 pkg_failed=no
49459 { echo "$as_me:$LINENO: checking for CAIRO" >&5
49460 echo $ECHO_N "checking for CAIRO... $ECHO_C" >&6; }
49461
49462 if test -n "$PKG_CONFIG"; then
49463     if test -n "$CAIRO_CFLAGS"; then
49464         pkg_cv_CAIRO_CFLAGS="$CAIRO_CFLAGS"
49465     else
49466         if test -n "$PKG_CONFIG" && \
49467     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49468   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49469   ac_status=$?
49470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49471   (exit $ac_status); }; then
49472   pkg_cv_CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo" 2>/dev/null`
49473 else
49474   pkg_failed=yes
49475 fi
49476     fi
49477 else
49478         pkg_failed=untried
49479 fi
49480 if test -n "$PKG_CONFIG"; then
49481     if test -n "$CAIRO_LIBS"; then
49482         pkg_cv_CAIRO_LIBS="$CAIRO_LIBS"
49483     else
49484         if test -n "$PKG_CONFIG" && \
49485     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"cairo\"") >&5
49486   ($PKG_CONFIG --exists --print-errors "cairo") 2>&5
49487   ac_status=$?
49488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49489   (exit $ac_status); }; then
49490   pkg_cv_CAIRO_LIBS=`$PKG_CONFIG --libs "cairo" 2>/dev/null`
49491 else
49492   pkg_failed=yes
49493 fi
49494     fi
49495 else
49496         pkg_failed=untried
49497 fi
49498
49499
49500
49501 if test $pkg_failed = yes; then
49502
49503 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49504         _pkg_short_errors_supported=yes
49505 else
49506         _pkg_short_errors_supported=no
49507 fi
49508         if test $_pkg_short_errors_supported = yes; then
49509                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "cairo"`
49510         else
49511                 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo"`
49512         fi
49513         # Put the nasty error message in config.log where it belongs
49514         echo "$CAIRO_PKG_ERRORS" >&5
49515
49516         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49517 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49518
49519 elif test $pkg_failed = untried; then
49520         { echo "$as_me:$LINENO: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&5
49521 echo "$as_me: WARNING: Cairo library not found, unable to set wxUSE_GRAPHICS_CONTEXT" >&2;}
49522
49523 else
49524         CAIRO_CFLAGS=$pkg_cv_CAIRO_CFLAGS
49525         CAIRO_LIBS=$pkg_cv_CAIRO_LIBS
49526         { echo "$as_me:$LINENO: result: yes" >&5
49527 echo "${ECHO_T}yes" >&6; }
49528         cat >>confdefs.h <<\_ACEOF
49529 #define wxUSE_GRAPHICS_CONTEXT 1
49530 _ACEOF
49531
49532 fi
49533    fi
49534 fi
49535
49536
49537 USE_MEDIA=0
49538
49539 if test "$wxUSE_MEDIACTRL" = "yes"; then
49540     USE_MEDIA=1
49541
49542                 if test "$wxUSE_GTK" = 1; then
49543         wxUSE_GSTREAMER="no"
49544
49545                                                                 GST_VERSION_MAJOR=0
49546         GST_VERSION_MINOR=10
49547         GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49548
49549         if test "$wxUSE_GSTREAMER8" = "no"; then
49550
49551 pkg_failed=no
49552 { echo "$as_me:$LINENO: checking for GST" >&5
49553 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49554
49555 if test -n "$PKG_CONFIG"; then
49556     if test -n "$GST_CFLAGS"; then
49557         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49558     else
49559         if test -n "$PKG_CONFIG" && \
49560     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49561   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49562   ac_status=$?
49563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49564   (exit $ac_status); }; then
49565   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49566 else
49567   pkg_failed=yes
49568 fi
49569     fi
49570 else
49571         pkg_failed=untried
49572 fi
49573 if test -n "$PKG_CONFIG"; then
49574     if test -n "$GST_LIBS"; then
49575         pkg_cv_GST_LIBS="$GST_LIBS"
49576     else
49577         if test -n "$PKG_CONFIG" && \
49578     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-plugins-base-\$GST_VERSION gconf-2.0\"") >&5
49579   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0") 2>&5
49580   ac_status=$?
49581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49582   (exit $ac_status); }; then
49583   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0" 2>/dev/null`
49584 else
49585   pkg_failed=yes
49586 fi
49587     fi
49588 else
49589         pkg_failed=untried
49590 fi
49591
49592
49593
49594 if test $pkg_failed = yes; then
49595
49596 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49597         _pkg_short_errors_supported=yes
49598 else
49599         _pkg_short_errors_supported=no
49600 fi
49601         if test $_pkg_short_errors_supported = yes; then
49602                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49603         else
49604                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-plugins-base-$GST_VERSION gconf-2.0"`
49605         fi
49606         # Put the nasty error message in config.log where it belongs
49607         echo "$GST_PKG_ERRORS" >&5
49608
49609
49610                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49611 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49612                     GST_VERSION_MINOR=8
49613
49614
49615 elif test $pkg_failed = untried; then
49616
49617                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&5
49618 echo "$as_me: WARNING: GStreamer 0.10 not available, falling back to 0.8" >&2;}
49619                     GST_VERSION_MINOR=8
49620
49621
49622 else
49623         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49624         GST_LIBS=$pkg_cv_GST_LIBS
49625         { echo "$as_me:$LINENO: result: yes" >&5
49626 echo "${ECHO_T}yes" >&6; }
49627
49628                     wxUSE_GSTREAMER="yes"
49629                     GST_LIBS="$GST_LIBS -lgstinterfaces-$GST_VERSION"
49630
49631 fi
49632         else
49633                         GST_VERSION_MINOR=8
49634         fi
49635
49636         if test $GST_VERSION_MINOR = "8"; then
49637             GST_VERSION=$GST_VERSION_MAJOR.$GST_VERSION_MINOR
49638
49639 pkg_failed=no
49640 { echo "$as_me:$LINENO: checking for GST" >&5
49641 echo $ECHO_N "checking for GST... $ECHO_C" >&6; }
49642
49643 if test -n "$PKG_CONFIG"; then
49644     if test -n "$GST_CFLAGS"; then
49645         pkg_cv_GST_CFLAGS="$GST_CFLAGS"
49646     else
49647         if test -n "$PKG_CONFIG" && \
49648     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49649   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49650   ac_status=$?
49651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49652   (exit $ac_status); }; then
49653   pkg_cv_GST_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49654 else
49655   pkg_failed=yes
49656 fi
49657     fi
49658 else
49659         pkg_failed=untried
49660 fi
49661 if test -n "$PKG_CONFIG"; then
49662     if test -n "$GST_LIBS"; then
49663         pkg_cv_GST_LIBS="$GST_LIBS"
49664     else
49665         if test -n "$PKG_CONFIG" && \
49666     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gstreamer-\$GST_VERSION gstreamer-interfaces-\$GST_VERSION gstreamer-gconf-\$GST_VERSION\"") >&5
49667   ($PKG_CONFIG --exists --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION") 2>&5
49668   ac_status=$?
49669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
49670   (exit $ac_status); }; then
49671   pkg_cv_GST_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION" 2>/dev/null`
49672 else
49673   pkg_failed=yes
49674 fi
49675     fi
49676 else
49677         pkg_failed=untried
49678 fi
49679
49680
49681
49682 if test $pkg_failed = yes; then
49683
49684 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
49685         _pkg_short_errors_supported=yes
49686 else
49687         _pkg_short_errors_supported=no
49688 fi
49689         if test $_pkg_short_errors_supported = yes; then
49690                 GST_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49691         else
49692                 GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_VERSION gstreamer-interfaces-$GST_VERSION gstreamer-gconf-$GST_VERSION"`
49693         fi
49694         # Put the nasty error message in config.log where it belongs
49695         echo "$GST_PKG_ERRORS" >&5
49696
49697
49698                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49699 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49700
49701 elif test $pkg_failed = untried; then
49702
49703                     { echo "$as_me:$LINENO: WARNING: GStreamer 0.8/0.10 not available." >&5
49704 echo "$as_me: WARNING: GStreamer 0.8/0.10 not available." >&2;}
49705
49706 else
49707         GST_CFLAGS=$pkg_cv_GST_CFLAGS
49708         GST_LIBS=$pkg_cv_GST_LIBS
49709         { echo "$as_me:$LINENO: result: yes" >&5
49710 echo "${ECHO_T}yes" >&6; }
49711         wxUSE_GSTREAMER="yes"
49712 fi
49713         fi
49714
49715
49716         if test "$wxUSE_GSTREAMER" = "yes"; then
49717             CPPFLAGS="$GST_CFLAGS $CPPFLAGS"
49718             LIBS="$GST_LIBS $LIBS"
49719
49720             cat >>confdefs.h <<\_ACEOF
49721 #define wxUSE_GSTREAMER 1
49722 _ACEOF
49723
49724         else
49725             USE_MEDIA=0
49726         fi
49727     fi
49728
49729     if test $USE_MEDIA = 1; then
49730         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS mediaplayer"
49731         cat >>confdefs.h <<\_ACEOF
49732 #define wxUSE_MEDIACTRL 1
49733 _ACEOF
49734
49735     fi
49736 fi
49737
49738
49739 if test "$cross_compiling" = "yes"; then
49740         OSINFO="\"$host\""
49741 else
49742         OSINFO=`uname -s -r -m`
49743     OSINFO="\"$OSINFO\""
49744 fi
49745
49746 cat >>confdefs.h <<_ACEOF
49747 #define WXWIN_OS_DESCRIPTION $OSINFO
49748 _ACEOF
49749
49750
49751
49752 if test "x$prefix" != "xNONE"; then
49753     wxPREFIX=$prefix
49754 else
49755     wxPREFIX=$ac_default_prefix
49756 fi
49757
49758 cat >>confdefs.h <<_ACEOF
49759 #define wxINSTALL_PREFIX "$wxPREFIX"
49760 _ACEOF
49761
49762
49763
49764
49765 STD_BASE_LIBS="base"
49766 STD_GUI_LIBS=""
49767 BUILT_WX_LIBS="base"
49768 ALL_WX_LIBS="xrc stc gl media dbgrid qa html adv core odbc xml net base"
49769
49770 if test "$wxUSE_SOCKETS" = "yes" ; then
49771     STD_BASE_LIBS="net $STD_BASE_LIBS"
49772     BUILT_WX_LIBS="net $BUILT_WX_LIBS"
49773 fi
49774 if test "$wxUSE_ODBC" != "no" ; then
49775     BUILT_WX_LIBS="odbc $BUILT_WX_LIBS"
49776 fi
49777 if test "$wxUSE_XML" = "yes" ; then
49778     STD_BASE_LIBS="xml $STD_BASE_LIBS"
49779     BUILT_WX_LIBS="xml $BUILT_WX_LIBS"
49780 fi
49781
49782 if test "$wxUSE_GUI" = "yes"; then
49783     STD_GUI_LIBS="adv core"
49784     BUILT_WX_LIBS="$STD_GUI_LIBS $BUILT_WX_LIBS"
49785
49786     if test "$wxUSE_DEBUGREPORT" = "yes" ; then
49787         STD_GUI_LIBS="qa $STD_GUI_LIBS"
49788         BUILT_WX_LIBS="qa $BUILT_WX_LIBS"
49789     fi
49790     if test "$wxUSE_ODBC" != "no" ; then
49791         BUILT_WX_LIBS="dbgrid $BUILT_WX_LIBS"
49792     fi
49793     if test "$wxUSE_HTML" = "yes" ; then
49794         STD_GUI_LIBS="html $STD_GUI_LIBS"
49795         BUILT_WX_LIBS="html $BUILT_WX_LIBS"
49796     fi
49797     if test "$wxUSE_MEDIACTRL" = "yes" ; then
49798         BUILT_WX_LIBS="media $BUILT_WX_LIBS"
49799     fi
49800     if test "$wxUSE_OPENGL" = "yes" ; then
49801         BUILT_WX_LIBS="gl $BUILT_WX_LIBS"
49802     fi
49803     if test "$wxUSE_AUI" = "yes" ; then
49804         BUILT_WX_LIBS="aui $BUILT_WX_LIBS"
49805     fi
49806     if test "$wxUSE_STC" = "yes" ; then
49807         BUILT_WX_LIBS="stc $BUILT_WX_LIBS"
49808     fi
49809     if test "$wxUSE_XRC" = "yes" ; then
49810         STD_GUI_LIBS="xrc $STD_GUI_LIBS"
49811         BUILT_WX_LIBS="xrc $BUILT_WX_LIBS"
49812     fi
49813 fi
49814
49815
49816
49817
49818
49819
49820
49821
49822 if test "$wxUSE_MAC" = 1 ; then
49823     if test "$wxUSE_SOUND" = "yes" || test "$wxUSE_MEDIACTRL" = "yes"; then
49824         if test "$USE_DARWIN" = 1; then
49825             LDFLAGS="$LDFLAGS -framework QuickTime"
49826         else
49827             LDFLAGS="$LDFLAGS -lQuickTimeLib"
49828         fi
49829     fi
49830     if test "$USE_DARWIN" = 1; then
49831         LDFLAGS="$LDFLAGS -framework IOKit -framework Carbon -framework Cocoa -framework System"
49832     else
49833         LDFLAGS="$LDFLAGS -lCarbonLib"
49834     fi
49835 fi
49836 if test "$wxUSE_COCOA" = 1 ; then
49837     LDFLAGS="$LDFLAGS -framework IOKit -framework Cocoa"
49838     if test "$wxUSE_MEDIACTRL" = "yes"; then
49839         LDFLAGS="$LDFLAGS -framework QuickTime"
49840     fi
49841 fi
49842 if test "$USE_DARWIN" = 1 -a "$wxUSE_MAC" != 1 -a "$wxUSE_COCOA" != 1 ; then
49843     LDFLAGS="$LDFLAGS -framework IOKit -framework CoreServices -framework System -framework ApplicationServices"
49844 fi
49845
49846 LIBS="$ZLIB_LINK $POSIX4_LINK $INET_LINK $WCHAR_LINK $DL_LINK $LIBS"
49847
49848 if test "$wxUSE_GUI" = "yes"; then
49849
49850
49851         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS artprov controls dialogs drawing \
49852                      dynamic erase event exec font image minimal mobile \
49853                      mobile/wxedit mobile/styles propsize render \
49854                      rotate shaped svg taborder vscroll widgets"
49855
49856     if test "$wxUSE_MONOLITHIC" != "yes"; then
49857         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS console"
49858     fi
49859     if test "$TOOLKIT" = "MSW"; then
49860         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS regtest"
49861         if test "$wxUSE_UNIVERSAL" != "yes"; then
49862             SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw nativdlg"
49863         fi
49864     fi
49865     if test "$TOOLKIT" = "PM" -a "$wxUSE_UNIVERSAL" != "yes"; then
49866         SAMPLES_SUBDIRS="$SAMPLES_SUBDIRS ownerdrw"
49867     fi
49868 else
49869     SAMPLES_SUBDIRS="console"
49870 fi
49871
49872
49873 if test "x$INTELCC" = "xyes" ; then
49874                                         CWARNINGS="-Wall -wd810,869,981,1418,1572,1684"
49875 elif test "$GCC" = yes ; then
49876     CWARNINGS="-Wall -Wundef"
49877 fi
49878
49879 if test "x$INTELCXX" = "xyes" ; then
49880                                                             CXXWARNINGS="-Wall -wd279,383,444,810,869,981,1418,1419"
49881 elif test "$GXX" = yes ; then
49882         CXXWARNINGS="-Wall -Wundef -Wno-ctor-dtor-privacy"
49883 fi
49884
49885
49886 WXCONFIG_CFLAGS=`echo $WXCONFIG_CFLAGS`
49887 WXCONFIG_CXXFLAGS=`echo $WXCONFIG_CFLAGS $WXCONFIG_CXXFLAGS`
49888
49889
49890 CPPFLAGS=`echo $WXCONFIG_CPPFLAGS \
49891  -I\\${wx_top_builddir}/lib/wx/include/${TOOLCHAIN_FULLNAME} \
49892  -I\\${top_srcdir}/include $TOOLKIT_INCLUDE \
49893  $CPPFLAGS `
49894
49895 C_AND_CXX_FLAGS="$DEBUG_CFLAGS $PROFILE_FLAGS $OPTIMISE_CFLAGS"
49896 CFLAGS=`echo $WXCONFIG_CFLAGS $CWARNINGS $C_AND_CXX_FLAGS $CFLAGS `
49897 CXXFLAGS=`echo $WXCONFIG_CXXFLAGS $C_AND_CXX_FLAGS $CXXFLAGS `
49898
49899 WXCONFIG_CPPFLAGS=`echo $WXCONFIG_CPPFLAGS $WXCONFIG_ONLY_CPPFLAGS`
49900
49901
49902 if test "x$MWCC" = "xyes"; then
49903
49904             CC="$CC -cwd source -I-"
49905     CXX="$CXX -cwd source -I-"
49906 fi
49907
49908
49909 LIBS=`echo $LIBS`
49910 EXTRALIBS="$LDFLAGS $LDFLAGS_VERSIONING $LIBS $DMALLOC_LIBS"
49911 EXTRALIBS_XML="$EXPAT_LINK"
49912 EXTRALIBS_HTML="$MSPACK_LINK"
49913 EXTRALIBS_ODBC="$ODBC_LINK"
49914 EXTRALIBS_STC="-lwxscintilla${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX}"
49915 if test "$wxUSE_GUI" = "yes"; then
49916     EXTRALIBS_GUI=`echo $GUI_TK_LIBRARY $PNG_LINK $JPEG_LINK $TIFF_LINK $WEBKIT_LINK $EXTRALIBS_HILDON $EXTRALIBS_GNOMEVFS $EXTRALIBS_GNOMEPRINT`
49917 fi
49918 if test "$wxUSE_OPENGL" = "yes"; then
49919     EXTRALIBS_OPENGL="$LDFLAGS_GL $OPENGL_LIBS"
49920 fi
49921
49922 LDFLAGS="$LDFLAGS $PROFILE_FLAGS"
49923
49924 WXCONFIG_LIBS="$LIBS"
49925
49926 if test "$wxUSE_REGEX" = "builtin" ; then
49927     wxconfig_3rdparty="regex${lib_unicode_suffix} $wxconfig_3rdparty"
49928 fi
49929 if test "$wxUSE_EXPAT" = "builtin" ; then
49930     wxconfig_3rdparty="expat $wxconfig_3rdparty"
49931 fi
49932 if test "$wxUSE_ODBC" = "builtin" ; then
49933     wxconfig_3rdparty="odbc $wxconfig_3rdparty"
49934 fi
49935 if test "$wxUSE_LIBTIFF" = "builtin" ; then
49936     wxconfig_3rdparty="tiff $wxconfig_3rdparty"
49937 fi
49938 if test "$wxUSE_LIBJPEG" = "builtin" ; then
49939     wxconfig_3rdparty="jpeg $wxconfig_3rdparty"
49940 fi
49941 if test "$wxUSE_LIBPNG" = "builtin" ; then
49942     wxconfig_3rdparty="png $wxconfig_3rdparty"
49943 fi
49944 if test "$wxUSE_ZLIB" = "builtin" ; then
49945     wxconfig_3rdparty="zlib $wxconfig_3rdparty"
49946 fi
49947
49948 for i in $wxconfig_3rdparty ; do
49949     WXCONFIG_LIBS="-lwx${i}${lib_debug_suffix}${WX_LIB_FLAVOUR}-${WX_RELEASE}${HOST_SUFFIX} $WXCONFIG_LIBS"
49950 done
49951
49952
49953 if test "x$wxUSE_UNIVERSAL" = "xyes" ; then
49954     WXUNIV=1
49955
49956     case "$wxUNIV_THEMES" in
49957         ''|all)
49958             cat >>confdefs.h <<\_ACEOF
49959 #define wxUSE_ALL_THEMES 1
49960 _ACEOF
49961
49962             ;;
49963
49964         *)
49965             for t in `echo $wxUNIV_THEMES | tr , ' ' | tr a-z A-Z`; do
49966                 cat >>confdefs.h <<_ACEOF
49967 #define wxUSE_THEME_$t 1
49968 _ACEOF
49969
49970             done
49971     esac
49972 else
49973     WXUNIV=0
49974 fi
49975
49976
49977
49978
49979
49980
49981
49982
49983
49984 if test $wxUSE_MONOLITHIC = "yes" ; then
49985     MONOLITHIC=1
49986 else
49987     MONOLITHIC=0
49988 fi
49989
49990 if test $wxUSE_PLUGINS = "yes" ; then
49991     USE_PLUGINS=1
49992 else
49993     USE_PLUGINS=0
49994 fi
49995
49996 if test $wxUSE_ODBC != "no" ; then
49997     USE_ODBC=1
49998 else
49999     USE_ODBC=0
50000 fi
50001
50002 if test "$wxUSE_DEBUGREPORT" = "yes" ; then
50003     USE_QA=1
50004 else
50005     USE_QA=0
50006 fi
50007
50008 if test $wxUSE_OFFICIAL_BUILD = "yes" ; then
50009     OFFICIAL_BUILD=1
50010 else
50011     OFFICIAL_BUILD=0
50012 fi
50013
50014
50015
50016
50017
50018
50019
50020
50021
50022
50023
50024
50025
50026
50027
50028
50029
50030
50031
50032
50033
50034
50035
50036
50037
50038
50039 TOOLKIT_LOWERCASE=`echo $TOOLKIT | tr "[A-Z]" "[a-z]"`
50040
50041
50042
50043
50044
50045
50046
50047
50048 case "$TOOLKIT" in
50049     GTK)
50050         TOOLKIT_DESC="GTK+"
50051         if test "$WXGTK20" = 1; then
50052             TOOLKIT_DESC="$TOOLKIT_DESC 2"
50053             if test "$wxUSE_LIBGNOMEPRINT" = "yes" ; then
50054                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomeprint";
50055             fi
50056             if test "$wxUSE_LIBGNOMEVFS" = "yes" ; then
50057                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA gnomevfs"
50058             fi
50059             if test "$wxUSE_LIBHILDON" = "yes"; then
50060                 TOOLKIT_EXTRA="$TOOLKIT_EXTRA hildon"
50061             fi
50062
50063             if test "$TOOLKIT_EXTRA" != ""; then
50064                 TOOLKIT_DESC="$TOOLKIT_DESC with support for `echo $TOOLKIT_EXTRA | tr -s ' '`"
50065             fi
50066         fi
50067         ;;
50068
50069     ?*)
50070         TOOLKIT_DESC=$TOOLKIT_LOWERCASE
50071         ;;
50072
50073     *)
50074         TOOLKIT_DESC="base only"
50075         ;;
50076 esac
50077
50078 if test "$wxUSE_WINE" = "yes"; then
50079     BAKEFILE_FORCE_PLATFORM=win32
50080 fi
50081
50082 if test "$wxUSE_UNICODE" = yes -a "$GCC" = yes -a "$bk_use_pch" != no
50083 then
50084     { echo "$as_me:$LINENO: checking for gcc precompiled header bug" >&5
50085 echo $ECHO_N "checking for gcc precompiled header bug... $ECHO_C" >&6; }
50086 if test "${wx_cv_gcc_pch_bug+set}" = set; then
50087   echo $ECHO_N "(cached) $ECHO_C" >&6
50088 else
50089
50090             echo '#include <stdio.h>
50091                   const wchar_t test_var[] = L"awidetest";' > conftest.h
50092
50093             echo '#include "conftest.h"
50094                   int main()
50095                   {
50096                      printf("%ls", test_var);
50097                      return 0;
50098                   }' > conftest.cpp
50099
50100             wx_cv_gcc_pch_bug="pch not supported"
50101
50102             if $CXX conftest.h >/dev/null 2>&1
50103             then
50104                 wx_cv_gcc_pch_bug=
50105
50106                 if $CXX -o conftest$PROGRAM_EXT conftest.cpp >/dev/null 2>&1
50107                 then
50108                     if tr -dc '[a-z]' < conftest$PROGRAM_EXT |
50109                         grep awidetest >/dev/null
50110                     then
50111                         wx_cv_gcc_pch_bug=no
50112                     else
50113                         wx_cv_gcc_pch_bug=yes
50114                     fi
50115                 fi
50116             fi
50117
50118             rm -f conftest.h conftest.gch conftest.cpp conftest$PROGRAM_EXT
50119
50120 fi
50121 { echo "$as_me:$LINENO: result: $wx_cv_gcc_pch_bug" >&5
50122 echo "${ECHO_T}$wx_cv_gcc_pch_bug" >&6; }
50123
50124     if test "$wx_cv_gcc_pch_bug" = yes; then
50125                         bk_use_pch=no
50126     fi
50127 fi
50128
50129
50130
50131
50132     if test "x$BAKEFILE_HOST" = "x"; then
50133                if test "x${host}" = "x" ; then
50134                        { { echo "$as_me:$LINENO: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&5
50135 echo "$as_me: error: You must call the autoconf \"CANONICAL_HOST\" macro in your configure.ac (or .in) file." >&2;}
50136    { (exit 1); exit 1; }; }
50137                fi
50138
50139         BAKEFILE_HOST="${host}"
50140     fi
50141
50142     if test "x$BAKEFILE_CHECK_BASICS" != "xno"; then
50143
50144     if test -n "$ac_tool_prefix"; then
50145   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
50146 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
50147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50149 if test "${ac_cv_prog_RANLIB+set}" = set; then
50150   echo $ECHO_N "(cached) $ECHO_C" >&6
50151 else
50152   if test -n "$RANLIB"; then
50153   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
50154 else
50155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50156 for as_dir in $PATH
50157 do
50158   IFS=$as_save_IFS
50159   test -z "$as_dir" && as_dir=.
50160   for ac_exec_ext in '' $ac_executable_extensions; do
50161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50162     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
50163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50164     break 2
50165   fi
50166 done
50167 done
50168 IFS=$as_save_IFS
50169
50170 fi
50171 fi
50172 RANLIB=$ac_cv_prog_RANLIB
50173 if test -n "$RANLIB"; then
50174   { echo "$as_me:$LINENO: result: $RANLIB" >&5
50175 echo "${ECHO_T}$RANLIB" >&6; }
50176 else
50177   { echo "$as_me:$LINENO: result: no" >&5
50178 echo "${ECHO_T}no" >&6; }
50179 fi
50180
50181
50182 fi
50183 if test -z "$ac_cv_prog_RANLIB"; then
50184   ac_ct_RANLIB=$RANLIB
50185   # Extract the first word of "ranlib", so it can be a program name with args.
50186 set dummy ranlib; ac_word=$2
50187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50189 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
50190   echo $ECHO_N "(cached) $ECHO_C" >&6
50191 else
50192   if test -n "$ac_ct_RANLIB"; then
50193   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
50194 else
50195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50196 for as_dir in $PATH
50197 do
50198   IFS=$as_save_IFS
50199   test -z "$as_dir" && as_dir=.
50200   for ac_exec_ext in '' $ac_executable_extensions; do
50201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50202     ac_cv_prog_ac_ct_RANLIB="ranlib"
50203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50204     break 2
50205   fi
50206 done
50207 done
50208 IFS=$as_save_IFS
50209
50210 fi
50211 fi
50212 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
50213 if test -n "$ac_ct_RANLIB"; then
50214   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
50215 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
50216 else
50217   { echo "$as_me:$LINENO: result: no" >&5
50218 echo "${ECHO_T}no" >&6; }
50219 fi
50220
50221   if test "x$ac_ct_RANLIB" = x; then
50222     RANLIB=":"
50223   else
50224     case $cross_compiling:$ac_tool_warned in
50225 yes:)
50226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50227 whose name does not start with the host triplet.  If you think this
50228 configuration is useful to you, please write to autoconf@gnu.org." >&5
50229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50230 whose name does not start with the host triplet.  If you think this
50231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50232 ac_tool_warned=yes ;;
50233 esac
50234     RANLIB=$ac_ct_RANLIB
50235   fi
50236 else
50237   RANLIB="$ac_cv_prog_RANLIB"
50238 fi
50239
50240     # Find a good install program.  We prefer a C program (faster),
50241 # so one script is as good as another.  But avoid the broken or
50242 # incompatible versions:
50243 # SysV /etc/install, /usr/sbin/install
50244 # SunOS /usr/etc/install
50245 # IRIX /sbin/install
50246 # AIX /bin/install
50247 # AmigaOS /C/install, which installs bootblocks on floppy discs
50248 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
50249 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
50250 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
50251 # OS/2's system install, which has a completely different semantic
50252 # ./install, which can be erroneously created by make from ./install.sh.
50253 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
50254 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
50255 if test -z "$INSTALL"; then
50256 if test "${ac_cv_path_install+set}" = set; then
50257   echo $ECHO_N "(cached) $ECHO_C" >&6
50258 else
50259   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50260 for as_dir in $PATH
50261 do
50262   IFS=$as_save_IFS
50263   test -z "$as_dir" && as_dir=.
50264   # Account for people who put trailing slashes in PATH elements.
50265 case $as_dir/ in
50266   ./ | .// | /cC/* | \
50267   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
50268   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
50269   /usr/ucb/* ) ;;
50270   *)
50271     # OSF1 and SCO ODT 3.0 have their own names for install.
50272     # Don't use installbsd from OSF since it installs stuff as root
50273     # by default.
50274     for ac_prog in ginstall scoinst install; do
50275       for ac_exec_ext in '' $ac_executable_extensions; do
50276         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
50277           if test $ac_prog = install &&
50278             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50279             # AIX install.  It has an incompatible calling convention.
50280             :
50281           elif test $ac_prog = install &&
50282             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
50283             # program-specific install script used by HP pwplus--don't use.
50284             :
50285           else
50286             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
50287             break 3
50288           fi
50289         fi
50290       done
50291     done
50292     ;;
50293 esac
50294 done
50295 IFS=$as_save_IFS
50296
50297
50298 fi
50299   if test "${ac_cv_path_install+set}" = set; then
50300     INSTALL=$ac_cv_path_install
50301   else
50302     # As a last resort, use the slow shell script.  Don't cache a
50303     # value for INSTALL within a source directory, because that will
50304     # break other packages using the cache if that directory is
50305     # removed, or if the value is a relative name.
50306     INSTALL=$ac_install_sh
50307   fi
50308 fi
50309 { echo "$as_me:$LINENO: result: $INSTALL" >&5
50310 echo "${ECHO_T}$INSTALL" >&6; }
50311
50312 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
50313 # It thinks the first close brace ends the variable substitution.
50314 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
50315
50316 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
50317
50318 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
50319
50320     { echo "$as_me:$LINENO: checking whether ln -s works" >&5
50321 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
50322 LN_S=$as_ln_s
50323 if test "$LN_S" = "ln -s"; then
50324   { echo "$as_me:$LINENO: result: yes" >&5
50325 echo "${ECHO_T}yes" >&6; }
50326 else
50327   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
50328 echo "${ECHO_T}no, using $LN_S" >&6; }
50329 fi
50330
50331
50332     { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
50333 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
50334 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
50335 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
50336   echo $ECHO_N "(cached) $ECHO_C" >&6
50337 else
50338   cat >conftest.make <<\_ACEOF
50339 SHELL = /bin/sh
50340 all:
50341         @echo '@@@%%%=$(MAKE)=@@@%%%'
50342 _ACEOF
50343 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
50344 case `${MAKE-make} -f conftest.make 2>/dev/null` in
50345   *@@@%%%=?*=@@@%%%*)
50346     eval ac_cv_prog_make_${ac_make}_set=yes;;
50347   *)
50348     eval ac_cv_prog_make_${ac_make}_set=no;;
50349 esac
50350 rm -f conftest.make
50351 fi
50352 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
50353   { echo "$as_me:$LINENO: result: yes" >&5
50354 echo "${ECHO_T}yes" >&6; }
50355   SET_MAKE=
50356 else
50357   { echo "$as_me:$LINENO: result: no" >&5
50358 echo "${ECHO_T}no" >&6; }
50359   SET_MAKE="MAKE=${MAKE-make}"
50360 fi
50361
50362
50363
50364     if test "x$SUNCXX" = "xyes"; then
50365                                 AR=$CXX
50366         AROPTIONS="-xar -o"
50367
50368     elif test "x$SGICC" = "xyes"; then
50369                 AR=$CXX
50370         AROPTIONS="-ar -o"
50371
50372     else
50373         if test -n "$ac_tool_prefix"; then
50374   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
50375 set dummy ${ac_tool_prefix}ar; ac_word=$2
50376 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50378 if test "${ac_cv_prog_AR+set}" = set; then
50379   echo $ECHO_N "(cached) $ECHO_C" >&6
50380 else
50381   if test -n "$AR"; then
50382   ac_cv_prog_AR="$AR" # Let the user override the test.
50383 else
50384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50385 for as_dir in $PATH
50386 do
50387   IFS=$as_save_IFS
50388   test -z "$as_dir" && as_dir=.
50389   for ac_exec_ext in '' $ac_executable_extensions; do
50390   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50391     ac_cv_prog_AR="${ac_tool_prefix}ar"
50392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50393     break 2
50394   fi
50395 done
50396 done
50397 IFS=$as_save_IFS
50398
50399 fi
50400 fi
50401 AR=$ac_cv_prog_AR
50402 if test -n "$AR"; then
50403   { echo "$as_me:$LINENO: result: $AR" >&5
50404 echo "${ECHO_T}$AR" >&6; }
50405 else
50406   { echo "$as_me:$LINENO: result: no" >&5
50407 echo "${ECHO_T}no" >&6; }
50408 fi
50409
50410
50411 fi
50412 if test -z "$ac_cv_prog_AR"; then
50413   ac_ct_AR=$AR
50414   # Extract the first word of "ar", so it can be a program name with args.
50415 set dummy ar; ac_word=$2
50416 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50417 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50418 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
50419   echo $ECHO_N "(cached) $ECHO_C" >&6
50420 else
50421   if test -n "$ac_ct_AR"; then
50422   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
50423 else
50424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50425 for as_dir in $PATH
50426 do
50427   IFS=$as_save_IFS
50428   test -z "$as_dir" && as_dir=.
50429   for ac_exec_ext in '' $ac_executable_extensions; do
50430   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50431     ac_cv_prog_ac_ct_AR="ar"
50432     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50433     break 2
50434   fi
50435 done
50436 done
50437 IFS=$as_save_IFS
50438
50439 fi
50440 fi
50441 ac_ct_AR=$ac_cv_prog_ac_ct_AR
50442 if test -n "$ac_ct_AR"; then
50443   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
50444 echo "${ECHO_T}$ac_ct_AR" >&6; }
50445 else
50446   { echo "$as_me:$LINENO: result: no" >&5
50447 echo "${ECHO_T}no" >&6; }
50448 fi
50449
50450   if test "x$ac_ct_AR" = x; then
50451     AR="ar"
50452   else
50453     case $cross_compiling:$ac_tool_warned in
50454 yes:)
50455 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50456 whose name does not start with the host triplet.  If you think this
50457 configuration is useful to you, please write to autoconf@gnu.org." >&5
50458 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50459 whose name does not start with the host triplet.  If you think this
50460 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50461 ac_tool_warned=yes ;;
50462 esac
50463     AR=$ac_ct_AR
50464   fi
50465 else
50466   AR="$ac_cv_prog_AR"
50467 fi
50468
50469         AROPTIONS=rcu
50470     fi
50471
50472
50473     if test -n "$ac_tool_prefix"; then
50474   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
50475 set dummy ${ac_tool_prefix}strip; ac_word=$2
50476 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50477 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50478 if test "${ac_cv_prog_STRIP+set}" = set; then
50479   echo $ECHO_N "(cached) $ECHO_C" >&6
50480 else
50481   if test -n "$STRIP"; then
50482   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
50483 else
50484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50485 for as_dir in $PATH
50486 do
50487   IFS=$as_save_IFS
50488   test -z "$as_dir" && as_dir=.
50489   for ac_exec_ext in '' $ac_executable_extensions; do
50490   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50491     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
50492     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50493     break 2
50494   fi
50495 done
50496 done
50497 IFS=$as_save_IFS
50498
50499 fi
50500 fi
50501 STRIP=$ac_cv_prog_STRIP
50502 if test -n "$STRIP"; then
50503   { echo "$as_me:$LINENO: result: $STRIP" >&5
50504 echo "${ECHO_T}$STRIP" >&6; }
50505 else
50506   { echo "$as_me:$LINENO: result: no" >&5
50507 echo "${ECHO_T}no" >&6; }
50508 fi
50509
50510
50511 fi
50512 if test -z "$ac_cv_prog_STRIP"; then
50513   ac_ct_STRIP=$STRIP
50514   # Extract the first word of "strip", so it can be a program name with args.
50515 set dummy strip; ac_word=$2
50516 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50517 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50518 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
50519   echo $ECHO_N "(cached) $ECHO_C" >&6
50520 else
50521   if test -n "$ac_ct_STRIP"; then
50522   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
50523 else
50524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50525 for as_dir in $PATH
50526 do
50527   IFS=$as_save_IFS
50528   test -z "$as_dir" && as_dir=.
50529   for ac_exec_ext in '' $ac_executable_extensions; do
50530   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50531     ac_cv_prog_ac_ct_STRIP="strip"
50532     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50533     break 2
50534   fi
50535 done
50536 done
50537 IFS=$as_save_IFS
50538
50539 fi
50540 fi
50541 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
50542 if test -n "$ac_ct_STRIP"; then
50543   { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
50544 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
50545 else
50546   { echo "$as_me:$LINENO: result: no" >&5
50547 echo "${ECHO_T}no" >&6; }
50548 fi
50549
50550   if test "x$ac_ct_STRIP" = x; then
50551     STRIP=":"
50552   else
50553     case $cross_compiling:$ac_tool_warned in
50554 yes:)
50555 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50556 whose name does not start with the host triplet.  If you think this
50557 configuration is useful to you, please write to autoconf@gnu.org." >&5
50558 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50559 whose name does not start with the host triplet.  If you think this
50560 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50561 ac_tool_warned=yes ;;
50562 esac
50563     STRIP=$ac_ct_STRIP
50564   fi
50565 else
50566   STRIP="$ac_cv_prog_STRIP"
50567 fi
50568
50569     if test -n "$ac_tool_prefix"; then
50570   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
50571 set dummy ${ac_tool_prefix}nm; ac_word=$2
50572 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50573 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50574 if test "${ac_cv_prog_NM+set}" = set; then
50575   echo $ECHO_N "(cached) $ECHO_C" >&6
50576 else
50577   if test -n "$NM"; then
50578   ac_cv_prog_NM="$NM" # Let the user override the test.
50579 else
50580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50581 for as_dir in $PATH
50582 do
50583   IFS=$as_save_IFS
50584   test -z "$as_dir" && as_dir=.
50585   for ac_exec_ext in '' $ac_executable_extensions; do
50586   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50587     ac_cv_prog_NM="${ac_tool_prefix}nm"
50588     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50589     break 2
50590   fi
50591 done
50592 done
50593 IFS=$as_save_IFS
50594
50595 fi
50596 fi
50597 NM=$ac_cv_prog_NM
50598 if test -n "$NM"; then
50599   { echo "$as_me:$LINENO: result: $NM" >&5
50600 echo "${ECHO_T}$NM" >&6; }
50601 else
50602   { echo "$as_me:$LINENO: result: no" >&5
50603 echo "${ECHO_T}no" >&6; }
50604 fi
50605
50606
50607 fi
50608 if test -z "$ac_cv_prog_NM"; then
50609   ac_ct_NM=$NM
50610   # Extract the first word of "nm", so it can be a program name with args.
50611 set dummy nm; ac_word=$2
50612 { echo "$as_me:$LINENO: checking for $ac_word" >&5
50613 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
50614 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
50615   echo $ECHO_N "(cached) $ECHO_C" >&6
50616 else
50617   if test -n "$ac_ct_NM"; then
50618   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
50619 else
50620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
50621 for as_dir in $PATH
50622 do
50623   IFS=$as_save_IFS
50624   test -z "$as_dir" && as_dir=.
50625   for ac_exec_ext in '' $ac_executable_extensions; do
50626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
50627     ac_cv_prog_ac_ct_NM="nm"
50628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
50629     break 2
50630   fi
50631 done
50632 done
50633 IFS=$as_save_IFS
50634
50635 fi
50636 fi
50637 ac_ct_NM=$ac_cv_prog_ac_ct_NM
50638 if test -n "$ac_ct_NM"; then
50639   { echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
50640 echo "${ECHO_T}$ac_ct_NM" >&6; }
50641 else
50642   { echo "$as_me:$LINENO: result: no" >&5
50643 echo "${ECHO_T}no" >&6; }
50644 fi
50645
50646   if test "x$ac_ct_NM" = x; then
50647     NM=":"
50648   else
50649     case $cross_compiling:$ac_tool_warned in
50650 yes:)
50651 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
50652 whose name does not start with the host triplet.  If you think this
50653 configuration is useful to you, please write to autoconf@gnu.org." >&5
50654 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
50655 whose name does not start with the host triplet.  If you think this
50656 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
50657 ac_tool_warned=yes ;;
50658 esac
50659     NM=$ac_ct_NM
50660   fi
50661 else
50662   NM="$ac_cv_prog_NM"
50663 fi
50664
50665
50666     case ${BAKEFILE_HOST} in
50667         *-hp-hpux* )
50668                                     INSTALL_DIR="mkdir -p"
50669             ;;
50670         * )
50671                                     INSTALL_DIR='$(INSTALL) -d'
50672             ;;
50673     esac
50674
50675
50676     LDFLAGS_GUI=
50677     case ${BAKEFILE_HOST} in
50678         *-*-cygwin* | *-*-mingw32* )
50679         LDFLAGS_GUI="-mwindows"
50680     esac
50681
50682
50683     fi
50684
50685         { echo "$as_me:$LINENO: checking if make is GNU make" >&5
50686 echo $ECHO_N "checking if make is GNU make... $ECHO_C" >&6; }
50687 if test "${bakefile_cv_prog_makeisgnu+set}" = set; then
50688   echo $ECHO_N "(cached) $ECHO_C" >&6
50689 else
50690
50691         if ( ${SHELL-sh} -c "${MAKE-make} --version" 2> /dev/null |
50692                 egrep -s GNU > /dev/null); then
50693             bakefile_cv_prog_makeisgnu="yes"
50694         else
50695             bakefile_cv_prog_makeisgnu="no"
50696         fi
50697
50698 fi
50699 { echo "$as_me:$LINENO: result: $bakefile_cv_prog_makeisgnu" >&5
50700 echo "${ECHO_T}$bakefile_cv_prog_makeisgnu" >&6; }
50701
50702     if test "x$bakefile_cv_prog_makeisgnu" = "xyes"; then
50703         IF_GNU_MAKE=""
50704     else
50705         IF_GNU_MAKE="#"
50706     fi
50707
50708
50709
50710     PLATFORM_UNIX=0
50711     PLATFORM_WIN32=0
50712     PLATFORM_MSDOS=0
50713     PLATFORM_MAC=0
50714     PLATFORM_MACOS=0
50715     PLATFORM_MACOSX=0
50716     PLATFORM_OS2=0
50717     PLATFORM_BEOS=0
50718
50719     if test "x$BAKEFILE_FORCE_PLATFORM" = "x"; then
50720         case "${BAKEFILE_HOST}" in
50721             *-*-mingw32* )
50722                 PLATFORM_WIN32=1
50723             ;;
50724             *-pc-msdosdjgpp )
50725                 PLATFORM_MSDOS=1
50726             ;;
50727             *-pc-os2_emx | *-pc-os2-emx )
50728                 PLATFORM_OS2=1
50729             ;;
50730             *-*-darwin* )
50731                 PLATFORM_MAC=1
50732                 PLATFORM_MACOSX=1
50733             ;;
50734             *-*-beos* )
50735                 PLATFORM_BEOS=1
50736             ;;
50737             powerpc-apple-macos* )
50738                 PLATFORM_MAC=1
50739                 PLATFORM_MACOS=1
50740             ;;
50741             * )
50742                 PLATFORM_UNIX=1
50743             ;;
50744         esac
50745     else
50746         case "$BAKEFILE_FORCE_PLATFORM" in
50747             win32 )
50748                 PLATFORM_WIN32=1
50749             ;;
50750             msdos )
50751                 PLATFORM_MSDOS=1
50752             ;;
50753             os2 )
50754                 PLATFORM_OS2=1
50755             ;;
50756             darwin )
50757                 PLATFORM_MAC=1
50758                 PLATFORM_MACOSX=1
50759             ;;
50760             unix )
50761                 PLATFORM_UNIX=1
50762             ;;
50763             beos )
50764                 PLATFORM_BEOS=1
50765             ;;
50766             * )
50767                                             ;;
50768         esac
50769     fi
50770
50771
50772
50773
50774
50775
50776
50777
50778
50779
50780
50781     # Check whether --enable-omf was given.
50782 if test "${enable_omf+set}" = set; then
50783   enableval=$enable_omf; bk_os2_use_omf="$enableval"
50784 fi
50785
50786
50787     case "${BAKEFILE_HOST}" in
50788       *-*-darwin* )
50789                         if test "x$GCC" = "xyes"; then
50790             CFLAGS="$CFLAGS -fno-common"
50791             CXXFLAGS="$CXXFLAGS -fno-common"
50792         fi
50793         if test "x$XLCC" = "xyes"; then
50794             CFLAGS="$CFLAGS -qnocommon"
50795             CXXFLAGS="$CXXFLAGS -qnocommon"
50796         fi
50797         ;;
50798
50799       *-pc-os2_emx | *-pc-os2-emx )
50800         if test "x$bk_os2_use_omf" = "xyes" ; then
50801             AR=emxomfar
50802             RANLIB=:
50803             LDFLAGS="-Zomf $LDFLAGS"
50804             CFLAGS="-Zomf $CFLAGS"
50805             CXXFLAGS="-Zomf $CXXFLAGS"
50806             OS2_LIBEXT="lib"
50807         else
50808             OS2_LIBEXT="a"
50809         fi
50810         ;;
50811
50812       i*86-*-beos* )
50813         LDFLAGS="-L/boot/develop/lib/x86 $LDFLAGS"
50814         ;;
50815     esac
50816
50817
50818     SO_SUFFIX="so"
50819     SO_SUFFIX_MODULE="so"
50820     EXEEXT=""
50821     LIBPREFIX="lib"
50822     LIBEXT=".a"
50823     DLLPREFIX="lib"
50824     DLLPREFIX_MODULE=""
50825     DLLIMP_SUFFIX=""
50826     dlldir="$libdir"
50827
50828     case "${BAKEFILE_HOST}" in
50829         *-hp-hpux* )
50830             SO_SUFFIX="sl"
50831             SO_SUFFIX_MODULE="sl"
50832         ;;
50833         *-*-aix* )
50834                                                                         SO_SUFFIX="a"
50835             SO_SUFFIX_MODULE="a"
50836         ;;
50837         *-*-cygwin* )
50838             SO_SUFFIX="dll"
50839             SO_SUFFIX_MODULE="dll"
50840             DLLIMP_SUFFIX="dll.a"
50841             EXEEXT=".exe"
50842             DLLPREFIX="cyg"
50843             dlldir="$bindir"
50844         ;;
50845         *-*-mingw32* )
50846             SO_SUFFIX="dll"
50847             SO_SUFFIX_MODULE="dll"
50848             DLLIMP_SUFFIX="dll.a"
50849             EXEEXT=".exe"
50850             DLLPREFIX=""
50851             dlldir="$bindir"
50852         ;;
50853         *-pc-msdosdjgpp )
50854             EXEEXT=".exe"
50855             DLLPREFIX=""
50856             dlldir="$bindir"
50857         ;;
50858         *-pc-os2_emx | *-pc-os2-emx )
50859             SO_SUFFIX="dll"
50860             SO_SUFFIX_MODULE="dll"
50861             DLLIMP_SUFFIX=$OS2_LIBEXT
50862             EXEEXT=".exe"
50863             DLLPREFIX=""
50864             LIBPREFIX=""
50865             LIBEXT=".$OS2_LIBEXT"
50866             dlldir="$bindir"
50867         ;;
50868         *-*-darwin* )
50869             SO_SUFFIX="dylib"
50870             SO_SUFFIX_MODULE="bundle"
50871         ;;
50872     esac
50873
50874     if test "x$DLLIMP_SUFFIX" = "x" ; then
50875         DLLIMP_SUFFIX="$SO_SUFFIX"
50876     fi
50877
50878
50879
50880
50881
50882
50883
50884
50885
50886
50887
50888
50889         PIC_FLAG=""
50890     if test "x$GCC" = "xyes"; then
50891                 PIC_FLAG="-fPIC"
50892     fi
50893
50894         SHARED_LD_CC="\$(CC) -shared ${PIC_FLAG} -o"
50895     SHARED_LD_CXX="\$(CXX) -shared ${PIC_FLAG} -o"
50896     WINDOWS_IMPLIB=0
50897
50898     case "${BAKEFILE_HOST}" in
50899       *-hp-hpux* )
50900                 if test "x$GCC" != "xyes"; then
50901                         LDFLAGS="$LDFLAGS -L/usr/lib"
50902
50903             SHARED_LD_CC="${CC} -b -o"
50904             SHARED_LD_CXX="${CXX} -b -o"
50905             PIC_FLAG="+Z"
50906         fi
50907       ;;
50908
50909       *-*-linux* )
50910         if test "$INTELCC" = "yes"; then
50911             PIC_FLAG="-KPIC"
50912         elif test "x$SUNCXX" = "xyes"; then
50913             SHARED_LD_CC="${CC} -G -o"
50914             SHARED_LD_CXX="${CXX} -G -o"
50915             PIC_FLAG="-KPIC"
50916         fi
50917       ;;
50918
50919       *-*-solaris2* )
50920         if test "x$SUNCXX" = xyes ; then
50921             SHARED_LD_CC="${CC} -G -o"
50922             SHARED_LD_CXX="${CXX} -G -o"
50923             PIC_FLAG="-KPIC"
50924         fi
50925       ;;
50926
50927       *-*-darwin* )
50928
50929 D='$'
50930 cat <<EOF >shared-ld-sh
50931 #!/bin/sh
50932 #-----------------------------------------------------------------------------
50933 #-- Name:        distrib/mac/shared-ld-sh
50934 #-- Purpose:     Link a mach-o dynamic shared library for Darwin / Mac OS X
50935 #-- Author:      Gilles Depeyrot
50936 #-- Copyright:   (c) 2002 Gilles Depeyrot
50937 #-- Licence:     any use permitted
50938 #-----------------------------------------------------------------------------
50939
50940 verbose=0
50941 args=""
50942 objects=""
50943 linking_flag="-dynamiclib"
50944 ldargs="-r -keep_private_externs -nostdlib"
50945
50946 while test ${D}# -gt 0; do
50947     case ${D}1 in
50948
50949        -v)
50950         verbose=1
50951         ;;
50952
50953        -o|-compatibility_version|-current_version|-framework|-undefined|-install_name)
50954         # collect these options and values
50955         args="${D}{args} ${D}1 ${D}2"
50956         shift
50957         ;;
50958
50959        -s|-Wl,*)
50960         # collect these load args
50961         ldargs="${D}{ldargs} ${D}1"
50962         ;;
50963
50964        -l*|-L*|-flat_namespace|-headerpad_max_install_names)
50965         # collect these options
50966         args="${D}{args} ${D}1"
50967         ;;
50968
50969        -dynamiclib|-bundle)
50970         linking_flag="${D}1"
50971         ;;
50972
50973        -*)
50974         echo "shared-ld: unhandled option '${D}1'"
50975         exit 1
50976         ;;
50977
50978         *.o | *.a | *.dylib)
50979         # collect object files
50980         objects="${D}{objects} ${D}1"
50981         ;;
50982
50983         *)
50984         echo "shared-ld: unhandled argument '${D}1'"
50985         exit 1
50986         ;;
50987
50988     esac
50989     shift
50990 done
50991
50992 status=0
50993
50994 #
50995 # Link one module containing all the others
50996 #
50997 if test ${D}{verbose} = 1; then
50998     echo "c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o"
50999 fi
51000 c++ ${D}{ldargs} ${D}{objects} -o master.${D}${D}.o
51001 status=${D}?
51002
51003 #
51004 # Link the shared library from the single module created, but only if the
51005 # previous command didn't fail:
51006 #
51007 if test ${D}{status} = 0; then
51008     if test ${D}{verbose} = 1; then
51009         echo "c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}"
51010     fi
51011     c++ ${D}{linking_flag} master.${D}${D}.o ${D}{args}
51012     status=${D}?
51013 fi
51014
51015 #
51016 # Remove intermediate module
51017 #
51018 rm -f master.${D}${D}.o
51019
51020 exit ${D}status
51021 EOF
51022
51023         chmod +x shared-ld-sh
51024
51025         SHARED_LD_MODULE_CC="`pwd`/shared-ld-sh -bundle -headerpad_max_install_names -o"
51026         SHARED_LD_MODULE_CXX="$SHARED_LD_MODULE_CC"
51027
51028
51029                                 { echo "$as_me:$LINENO: checking for gcc 3.1 or later" >&5
51030 echo $ECHO_N "checking for gcc 3.1 or later... $ECHO_C" >&6; }
51031 if test "${bakefile_cv_gcc31+set}" = set; then
51032   echo $ECHO_N "(cached) $ECHO_C" >&6
51033 else
51034
51035            cat >conftest.$ac_ext <<_ACEOF
51036 /* confdefs.h.  */
51037 _ACEOF
51038 cat confdefs.h >>conftest.$ac_ext
51039 cat >>conftest.$ac_ext <<_ACEOF
51040 /* end confdefs.h.  */
51041
51042 int
51043 main ()
51044 {
51045
51046                    #if (__GNUC__ < 3) || \
51047                        ((__GNUC__ == 3) && (__GNUC_MINOR__ < 1))
51048                        This is old gcc
51049                    #endif
51050
51051   ;
51052   return 0;
51053 }
51054 _ACEOF
51055 rm -f conftest.$ac_objext
51056 if { (ac_try="$ac_compile"
51057 case "(($ac_try" in
51058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51059   *) ac_try_echo=$ac_try;;
51060 esac
51061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
51062   (eval "$ac_compile") 2>conftest.er1
51063   ac_status=$?
51064   grep -v '^ *+' conftest.er1 >conftest.err
51065   rm -f conftest.er1
51066   cat conftest.err >&5
51067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
51068   (exit $ac_status); } && {
51069          test -z "$ac_c_werror_flag" ||
51070          test ! -s conftest.err
51071        } && test -s conftest.$ac_objext; then
51072
51073                    bakefile_cv_gcc31=yes
51074
51075 else
51076   echo "$as_me: failed program was:" >&5
51077 sed 's/^/| /' conftest.$ac_ext >&5
51078
51079
51080                    bakefile_cv_gcc31=no
51081
51082
51083 fi
51084
51085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51086
51087 fi
51088 { echo "$as_me:$LINENO: result: $bakefile_cv_gcc31" >&5
51089 echo "${ECHO_T}$bakefile_cv_gcc31" >&6; }
51090         if test "$bakefile_cv_gcc31" = "no"; then
51091                         SHARED_LD_CC="`pwd`/shared-ld-sh -dynamiclib -headerpad_max_install_names -o"
51092             SHARED_LD_CXX="$SHARED_LD_CC"
51093         else
51094                         SHARED_LD_CC="\${CC} -dynamiclib -single_module -headerpad_max_install_names -o"
51095             SHARED_LD_CXX="\${CXX} -dynamiclib -single_module -headerpad_max_install_names -o"
51096         fi
51097
51098         if test "x$GCC" == "xyes"; then
51099             PIC_FLAG="-dynamic -fPIC"
51100         fi
51101         if test "x$XLCC" = "xyes"; then
51102             PIC_FLAG="-dynamic -DPIC"
51103         fi
51104       ;;
51105
51106       *-*-aix* )
51107         if test "x$GCC" = "xyes"; then
51108                                                             PIC_FLAG=""
51109
51110                                                                                     case "${BAKEFILE_HOST}" in
51111                 *-*-aix5* )
51112                     LD_EXPFULL="-Wl,-bexpfull"
51113                     ;;
51114             esac
51115
51116             SHARED_LD_CC="\$(CC) -shared $LD_EXPFULL -o"
51117             SHARED_LD_CXX="\$(CXX) -shared $LD_EXPFULL -o"
51118         else
51119                                     # Extract the first word of "makeC++SharedLib", so it can be a program name with args.
51120 set dummy makeC++SharedLib; ac_word=$2
51121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51123 if test "${ac_cv_prog_AIX_CXX_LD+set}" = set; then
51124   echo $ECHO_N "(cached) $ECHO_C" >&6
51125 else
51126   if test -n "$AIX_CXX_LD"; then
51127   ac_cv_prog_AIX_CXX_LD="$AIX_CXX_LD" # Let the user override the test.
51128 else
51129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51130 for as_dir in $PATH
51131 do
51132   IFS=$as_save_IFS
51133   test -z "$as_dir" && as_dir=.
51134   for ac_exec_ext in '' $ac_executable_extensions; do
51135   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51136     ac_cv_prog_AIX_CXX_LD="makeC++SharedLib"
51137     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51138     break 2
51139   fi
51140 done
51141 done
51142 IFS=$as_save_IFS
51143
51144   test -z "$ac_cv_prog_AIX_CXX_LD" && ac_cv_prog_AIX_CXX_LD="/usr/lpp/xlC/bin/makeC++SharedLib"
51145 fi
51146 fi
51147 AIX_CXX_LD=$ac_cv_prog_AIX_CXX_LD
51148 if test -n "$AIX_CXX_LD"; then
51149   { echo "$as_me:$LINENO: result: $AIX_CXX_LD" >&5
51150 echo "${ECHO_T}$AIX_CXX_LD" >&6; }
51151 else
51152   { echo "$as_me:$LINENO: result: no" >&5
51153 echo "${ECHO_T}no" >&6; }
51154 fi
51155
51156
51157             SHARED_LD_CC="$AIX_CC_LD -p 0 -o"
51158             SHARED_LD_CXX="$AIX_CXX_LD -p 0 -o"
51159         fi
51160       ;;
51161
51162       *-*-beos* )
51163                         SHARED_LD_CC="${LD} -nostart -o"
51164         SHARED_LD_CXX="${LD} -nostart -o"
51165       ;;
51166
51167       *-*-irix* )
51168                 if test "x$GCC" != "xyes"; then
51169             PIC_FLAG="-KPIC"
51170         fi
51171       ;;
51172
51173       *-*-cygwin* | *-*-mingw32* )
51174         PIC_FLAG=""
51175         SHARED_LD_CC="\$(CC) -shared -o"
51176         SHARED_LD_CXX="\$(CXX) -shared -o"
51177         WINDOWS_IMPLIB=1
51178       ;;
51179
51180       *-pc-os2_emx | *-pc-os2-emx )
51181         SHARED_LD_CC="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51182         SHARED_LD_CXX="`pwd`/dllar.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
51183         PIC_FLAG=""
51184
51185 D='$'
51186 cat <<EOF >dllar.sh
51187 #!/bin/sh
51188 #
51189 # dllar - a tool to build both a .dll and an .a file
51190 # from a set of object (.o) files for EMX/OS2.
51191 #
51192 #  Written by Andrew Zabolotny, bit@freya.etu.ru
51193 #  Ported to Unix like shell by Stefan Neis, Stefan.Neis@t-online.de
51194 #
51195 #  This script will accept a set of files on the command line.
51196 #  All the public symbols from the .o files will be exported into
51197 #  a .DEF file, then linker will be run (through gcc) against them to
51198 #  build a shared library consisting of all given .o files. All libraries
51199 #  (.a) will be first decompressed into component .o files then act as
51200 #  described above. You can optionally give a description (-d "description")
51201 #  which will be put into .DLL. To see the list of accepted options (as well
51202 #  as command-line format) simply run this program without options. The .DLL
51203 #  is built to be imported by name (there is no guarantee that new versions
51204 #  of the library you build will have same ordinals for same symbols).
51205 #
51206 #  dllar is free software; you can redistribute it and/or modify
51207 #  it under the terms of the GNU General Public License as published by
51208 #  the Free Software Foundation; either version 2, or (at your option)
51209 #  any later version.
51210 #
51211 #  dllar is distributed in the hope that it will be useful,
51212 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
51213 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
51214 #  GNU General Public License for more details.
51215 #
51216 #  You should have received a copy of the GNU General Public License
51217 #  along with dllar; see the file COPYING.  If not, write to the Free
51218 #  Software Foundation, 59 Temple Place - Suite 330, Boston, MA
51219 #  02111-1307, USA.
51220
51221 # To successfuly run this program you will need:
51222 #  - Current drive should have LFN support (HPFS, ext2, network, etc)
51223 #    (Sometimes dllar generates filenames which won't fit 8.3 scheme)
51224 #  - gcc
51225 #    (used to build the .dll)
51226 #  - emxexp
51227 #    (used to create .def file from .o files)
51228 #  - emximp
51229 #    (used to create .a file from .def file)
51230 #  - GNU text utilites (cat, sort, uniq)
51231 #    used to process emxexp output
51232 #  - GNU file utilities (mv, rm)
51233 #  - GNU sed
51234 #  - lxlite (optional, see flag below)
51235 #    (used for general .dll cleanup)
51236 #
51237
51238 flag_USE_LXLITE=1;
51239
51240 #
51241 # helper functions
51242 # basnam, variant of basename, which does _not_ remove the path, _iff_
51243 #                              second argument (suffix to remove) is given
51244 basnam(){
51245     case ${D}# in
51246     1)
51247         echo ${D}1 | sed 's/.*\\///' | sed 's/.*\\\\//'
51248         ;;
51249     2)
51250         echo ${D}1 | sed 's/'${D}2'${D}//'
51251         ;;
51252     *)
51253         echo "error in basnam ${D}*"
51254         exit 8
51255         ;;
51256     esac
51257 }
51258
51259 # Cleanup temporary files and output
51260 CleanUp() {
51261     cd ${D}curDir
51262     for i in ${D}inputFiles ; do
51263         case ${D}i in
51264         *!)
51265             rm -rf \`basnam ${D}i !\`
51266             ;;
51267         *)
51268             ;;
51269         esac
51270     done
51271
51272     # Kill result in case of failure as there is just to many stupid make/nmake
51273     # things out there which doesn't do this.
51274     if [ ${D}# -eq 0 ]; then
51275         rm -f ${D}arcFile ${D}arcFile2 ${D}defFile ${D}dllFile
51276     fi
51277 }
51278
51279 # Print usage and exit script with rc=1.
51280 PrintHelp() {
51281  echo 'Usage: dllar.sh [-o[utput] output_file] [-i[mport] importlib_name]'
51282  echo '       [-name-mangler-script script.sh]'
51283  echo '       [-d[escription] "dll descrption"] [-cc "CC"] [-f[lags] "CFLAGS"]'
51284  echo '       [-ord[inals]] -ex[clude] "symbol(s)"'
51285  echo '       [-libf[lags] "{INIT|TERM}{GLOBAL|INSTANCE}"] [-nocrt[dll]] [-nolxl[ite]]'
51286  echo '       [*.o] [*.a]'
51287  echo '*> "output_file" should have no extension.'
51288  echo '   If it has the .o, .a or .dll extension, it is automatically removed.'
51289  echo '   The import library name is derived from this and is set to "name".a,'
51290  echo '   unless overridden by -import'
51291  echo '*> "importlib_name" should have no extension.'
51292  echo '   If it has the .o, or .a extension, it is automatically removed.'
51293  echo '   This name is used as the import library name and may be longer and'
51294  echo '   more descriptive than the DLL name which has to follow the old '
51295  echo '   8.3 convention of FAT.'
51296  echo '*> "script.sh may be given to override the output_file name by a'
51297  echo '   different name. It is mainly useful if the regular make process'
51298  echo '   of some package does not take into account OS/2 restriction of'
51299  echo '   DLL name lengths. It takes the importlib name as input and is'
51300  echo '   supposed to procude a shorter name as output. The script should'
51301  echo '   expect to get importlib_name without extension and should produce'
51302  echo '   a (max.) 8 letter name without extension.'
51303  echo '*> "cc" is used to use another GCC executable.   (default: gcc.exe)'
51304  echo '*> "flags" should be any set of valid GCC flags. (default: -s -Zcrtdll)'
51305  echo '   These flags will be put at the start of GCC command line.'
51306  echo '*> -ord[inals] tells dllar to export entries by ordinals. Be careful.'
51307  echo '*> -ex[clude] defines symbols which will not be exported. You can define'
51308  echo '   multiple symbols, for example -ex "myfunc yourfunc _GLOBAL*".'
51309  echo '   If the last character of a symbol is "*", all symbols beginning'
51310  echo '   with the prefix before "*" will be exclude, (see _GLOBAL* above).'
51311  echo '*> -libf[lags] can be used to add INITGLOBAL/INITINSTANCE and/or'
51312  echo '   TERMGLOBAL/TERMINSTANCE flags to the dynamically-linked library.'
51313  echo '*> -nocrt[dll] switch will disable linking the library against emx''s'
51314  echo '   C runtime DLLs.'
51315  echo '*> -nolxl[ite] switch will disable running lxlite on the resulting DLL.'
51316  echo '*> All other switches (for example -L./ or -lmylib) will be passed'
51317  echo '   unchanged to GCC at the end of command line.'
51318  echo '*> If you create a DLL from a library and you do not specify -o,'
51319  echo '   the basename for DLL and import library will be set to library name,'
51320  echo '   the initial library will be renamed to 'name'_s.a (_s for static)'
51321  echo '   i.e. "dllar gcc.a" will create gcc.dll and gcc.a, and the initial'
51322  echo '   library will be renamed into gcc_s.a.'
51323  echo '--------'
51324  echo 'Example:'
51325  echo '   dllar -o gcc290.dll libgcc.a -d "GNU C runtime library" -ord'
51326  echo '    -ex "__main __ctordtor*" -libf "INITINSTANCE TERMINSTANCE"'
51327  CleanUp
51328  exit 1
51329 }
51330
51331 # Execute a command.
51332 # If exit code of the commnad <> 0 CleanUp() is called and we'll exit the script.
51333 # @Uses    Whatever CleanUp() uses.
51334 doCommand() {
51335     echo "${D}*"
51336     eval ${D}*
51337     rcCmd=${D}?
51338
51339     if [ ${D}rcCmd -ne 0 ]; then
51340         echo "command failed, exit code="${D}rcCmd
51341         CleanUp
51342         exit ${D}rcCmd
51343     fi
51344 }
51345
51346 # main routine
51347 # setup globals
51348 cmdLine=${D}*
51349 outFile=""
51350 outimpFile=""
51351 inputFiles=""
51352 renameScript=""
51353 description=""
51354 CC=gcc.exe
51355 CFLAGS="-s -Zcrtdll"
51356 EXTRA_CFLAGS=""
51357 EXPORT_BY_ORDINALS=0
51358 exclude_symbols=""
51359 library_flags=""
51360 curDir=\`pwd\`
51361 curDirS=curDir
51362 case ${D}curDirS in
51363 */)
51364   ;;
51365 *)
51366   curDirS=${D}{curDirS}"/"
51367   ;;
51368 esac
51369 # Parse commandline
51370 libsToLink=0
51371 omfLinking=0
51372 while [ ${D}1 ]; do
51373     case ${D}1 in
51374     -ord*)
51375         EXPORT_BY_ORDINALS=1;
51376         ;;
51377     -o*)
51378         shift
51379         outFile=${D}1
51380         ;;
51381     -i*)
51382         shift
51383         outimpFile=${D}1
51384         ;;
51385     -name-mangler-script)
51386         shift
51387         renameScript=${D}1
51388         ;;
51389     -d*)
51390         shift
51391         description=${D}1
51392         ;;
51393     -f*)
51394         shift
51395         CFLAGS=${D}1
51396         ;;
51397     -c*)
51398         shift
51399         CC=${D}1
51400         ;;
51401     -h*)
51402         PrintHelp
51403         ;;
51404     -ex*)
51405         shift
51406         exclude_symbols=${D}{exclude_symbols}${D}1" "
51407         ;;
51408     -libf*)
51409         shift
51410         library_flags=${D}{library_flags}${D}1" "
51411         ;;
51412     -nocrt*)
51413         CFLAGS="-s"
51414         ;;
51415     -nolxl*)
51416         flag_USE_LXLITE=0
51417         ;;
51418     -* | /*)
51419         case ${D}1 in
51420         -L* | -l*)
51421             libsToLink=1
51422             ;;
51423         -Zomf)
51424             omfLinking=1
51425             ;;
51426         *)
51427             ;;
51428         esac
51429         EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51430         ;;
51431     *.dll)
51432         EXTRA_CFLAGS="${D}{EXTRA_CFLAGS} \`basnam ${D}1 .dll\`"
51433         if [ ${D}omfLinking -eq 1 ]; then
51434             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.lib"
51435         else
51436             EXTRA_CFLAGS="${D}{EXTRA_CFLAGS}.a"
51437         fi
51438         ;;
51439     *)
51440         found=0;
51441         if [ ${D}libsToLink -ne 0 ]; then
51442             EXTRA_CFLAGS=${D}{EXTRA_CFLAGS}" "${D}1
51443         else
51444             for file in ${D}1 ; do
51445                 if [ -f ${D}file ]; then
51446                     inputFiles="${D}{inputFiles} ${D}file"
51447                     found=1
51448                 fi
51449             done
51450             if [ ${D}found -eq 0 ]; then
51451                 echo "ERROR: No file(s) found: "${D}1
51452                 exit 8
51453             fi
51454         fi
51455       ;;
51456     esac
51457     shift
51458 done # iterate cmdline words
51459
51460 #
51461 if [ -z "${D}inputFiles" ]; then
51462     echo "dllar: no input files"
51463     PrintHelp
51464 fi
51465
51466 # Now extract all .o files from .a files
51467 newInputFiles=""
51468 for file in ${D}inputFiles ; do
51469     case ${D}file in
51470     *.a | *.lib)
51471         case ${D}file in
51472         *.a)
51473             suffix=".a"
51474             AR="ar"
51475             ;;
51476         *.lib)
51477             suffix=".lib"
51478             AR="emxomfar"
51479             EXTRA_CFLAGS="${D}EXTRA_CFLAGS -Zomf"
51480             ;;
51481         *)
51482             ;;
51483         esac
51484         dirname=\`basnam ${D}file ${D}suffix\`"_%"
51485         mkdir ${D}dirname
51486         if [ ${D}? -ne 0 ]; then
51487             echo "Failed to create subdirectory ./${D}dirname"
51488             CleanUp
51489             exit 8;
51490         fi
51491         # Append '!' to indicate archive
51492         newInputFiles="${D}newInputFiles ${D}{dirname}!"
51493         doCommand "cd ${D}dirname; ${D}AR x ../${D}file"
51494         cd ${D}curDir
51495         found=0;
51496         for subfile in ${D}dirname/*.o* ; do
51497             if [ -f ${D}subfile ]; then
51498                 found=1
51499                 if [ -s ${D}subfile ]; then
51500                     # FIXME: This should be: is file size > 32 byte, _not_ > 0!
51501                     newInputFiles="${D}newInputFiles ${D}subfile"
51502                 fi
51503             fi
51504         done
51505         if [ ${D}found -eq 0 ]; then
51506             echo "WARNING: there are no files in archive \\'${D}file\\'"
51507         fi
51508         ;;
51509     *)
51510         newInputFiles="${D}{newInputFiles} ${D}file"
51511         ;;
51512     esac
51513 done
51514 inputFiles="${D}newInputFiles"
51515
51516 # Output filename(s).
51517 do_backup=0;
51518 if [ -z ${D}outFile ]; then
51519     do_backup=1;
51520     set outFile ${D}inputFiles; outFile=${D}2
51521 fi
51522
51523 # If it is an archive, remove the '!' and the '_%' suffixes
51524 case ${D}outFile in
51525 *_%!)
51526     outFile=\`basnam ${D}outFile _%!\`
51527     ;;
51528 *)
51529     ;;
51530 esac
51531 case ${D}outFile in
51532 *.dll)
51533     outFile=\`basnam ${D}outFile .dll\`
51534     ;;
51535 *.DLL)
51536     outFile=\`basnam ${D}outFile .DLL\`
51537     ;;
51538 *.o)
51539     outFile=\`basnam ${D}outFile .o\`
51540     ;;
51541 *.obj)
51542     outFile=\`basnam ${D}outFile .obj\`
51543     ;;
51544 *.a)
51545     outFile=\`basnam ${D}outFile .a\`
51546     ;;
51547 *.lib)
51548     outFile=\`basnam ${D}outFile .lib\`
51549     ;;
51550 *)
51551     ;;
51552 esac
51553 case ${D}outimpFile in
51554 *.a)
51555     outimpFile=\`basnam ${D}outimpFile .a\`
51556     ;;
51557 *.lib)
51558     outimpFile=\`basnam ${D}outimpFile .lib\`
51559     ;;
51560 *)
51561     ;;
51562 esac
51563 if [ -z ${D}outimpFile ]; then
51564     outimpFile=${D}outFile
51565 fi
51566 defFile="${D}{outFile}.def"
51567 arcFile="${D}{outimpFile}.a"
51568 arcFile2="${D}{outimpFile}.lib"
51569
51570 #create ${D}dllFile as something matching 8.3 restrictions,
51571 if [ -z ${D}renameScript ] ; then
51572     dllFile="${D}outFile"
51573 else
51574     dllFile=\`${D}renameScript ${D}outimpFile\`
51575 fi
51576
51577 if [ ${D}do_backup -ne 0 ] ; then
51578     if [ -f ${D}arcFile ] ; then
51579         doCommand "mv ${D}arcFile ${D}{outFile}_s.a"
51580     fi
51581     if [ -f ${D}arcFile2 ] ; then
51582         doCommand "mv ${D}arcFile2 ${D}{outFile}_s.lib"
51583     fi
51584 fi
51585
51586 # Extract public symbols from all the object files.
51587 tmpdefFile=${D}{defFile}_%
51588 rm -f ${D}tmpdefFile
51589 for file in ${D}inputFiles ; do
51590     case ${D}file in
51591     *!)
51592         ;;
51593     *)
51594         doCommand "emxexp -u ${D}file >> ${D}tmpdefFile"
51595         ;;
51596     esac
51597 done
51598
51599 # Create the def file.
51600 rm -f ${D}defFile
51601 echo "LIBRARY \`basnam ${D}dllFile\` ${D}library_flags" >> ${D}defFile
51602 dllFile="${D}{dllFile}.dll"
51603 if [ ! -z ${D}description ]; then
51604     echo "DESCRIPTION  \\"${D}{description}\\"" >> ${D}defFile
51605 fi
51606 echo "EXPORTS" >> ${D}defFile
51607
51608 doCommand "cat ${D}tmpdefFile | sort.exe | uniq.exe > ${D}{tmpdefFile}%"
51609 grep -v "^ *;" < ${D}{tmpdefFile}% | grep -v "^ *${D}" >${D}tmpdefFile
51610
51611 # Checks if the export is ok or not.
51612 for word in ${D}exclude_symbols; do
51613     grep -v ${D}word < ${D}tmpdefFile >${D}{tmpdefFile}%
51614     mv ${D}{tmpdefFile}% ${D}tmpdefFile
51615 done
51616
51617
51618 if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51619     sed "=" < ${D}tmpdefFile | \\
51620     sed '
51621       N
51622       : loop
51623       s/^\\([0-9]\\+\\)\\([^;]*\\)\\(;.*\\)\\?/\\2 @\\1 NONAME/
51624       t loop
51625     ' > ${D}{tmpdefFile}%
51626     grep -v "^ *${D}" < ${D}{tmpdefFile}% > ${D}tmpdefFile
51627 else
51628     rm -f ${D}{tmpdefFile}%
51629 fi
51630 cat ${D}tmpdefFile >> ${D}defFile
51631 rm -f ${D}tmpdefFile
51632
51633 # Do linking, create implib, and apply lxlite.
51634 gccCmdl="";
51635 for file in ${D}inputFiles ; do
51636     case ${D}file in
51637     *!)
51638         ;;
51639     *)
51640         gccCmdl="${D}gccCmdl ${D}file"
51641         ;;
51642     esac
51643 done
51644 doCommand "${D}CC ${D}CFLAGS -Zdll -o ${D}dllFile ${D}defFile ${D}gccCmdl ${D}EXTRA_CFLAGS"
51645 touch "${D}{outFile}.dll"
51646
51647 doCommand "emximp -o ${D}arcFile ${D}defFile"
51648 if [ ${D}flag_USE_LXLITE -ne 0 ]; then
51649     add_flags="";
51650     if [ ${D}EXPORT_BY_ORDINALS -ne 0 ]; then
51651         add_flags="-ynd"
51652     fi
51653     doCommand "lxlite -cs -t: -mrn -mln ${D}add_flags ${D}dllFile"
51654 fi
51655 doCommand "emxomf -s -l ${D}arcFile"
51656
51657 # Successful exit.
51658 CleanUp 1
51659 exit 0
51660 EOF
51661
51662         chmod +x dllar.sh
51663       ;;
51664
51665       powerpc-apple-macos* | \
51666       *-*-freebsd* | *-*-openbsd* | *-*-netbsd* | *-*-k*bsd*-gnu | \
51667       *-*-mirbsd* | \
51668       *-*-sunos4* | \
51669       *-*-osf* | \
51670       *-*-dgux5* | \
51671       *-*-sysv5* | \
51672       *-pc-msdosdjgpp )
51673               ;;
51674
51675       *)
51676         { { echo "$as_me:$LINENO: error: unknown system type $BAKEFILE_HOST." >&5
51677 echo "$as_me: error: unknown system type $BAKEFILE_HOST." >&2;}
51678    { (exit 1); exit 1; }; }
51679     esac
51680
51681     if test "x$PIC_FLAG" != "x" ; then
51682         PIC_FLAG="$PIC_FLAG -DPIC"
51683     fi
51684
51685     if test "x$SHARED_LD_MODULE_CC" = "x" ; then
51686         SHARED_LD_MODULE_CC="$SHARED_LD_CC"
51687     fi
51688     if test "x$SHARED_LD_MODULE_CXX" = "x" ; then
51689         SHARED_LD_MODULE_CXX="$SHARED_LD_CXX"
51690     fi
51691
51692
51693
51694
51695
51696
51697
51698
51699
51700     USE_SOVERSION=0
51701     USE_SOVERLINUX=0
51702     USE_SOVERSOLARIS=0
51703     USE_SOVERCYGWIN=0
51704     USE_SOSYMLINKS=0
51705     USE_MACVERSION=0
51706     SONAME_FLAG=
51707
51708     case "${BAKEFILE_HOST}" in
51709       *-*-linux* | *-*-freebsd* | *-*-k*bsd*-gnu )
51710         if test "x$SUNCXX" = "xyes"; then
51711             SONAME_FLAG="-h "
51712         else
51713             SONAME_FLAG="-Wl,-soname,"
51714         fi
51715         USE_SOVERSION=1
51716         USE_SOVERLINUX=1
51717         USE_SOSYMLINKS=1
51718       ;;
51719
51720       *-*-solaris2* )
51721         SONAME_FLAG="-h "
51722         USE_SOVERSION=1
51723         USE_SOVERSOLARIS=1
51724         USE_SOSYMLINKS=1
51725       ;;
51726
51727       *-*-darwin* )
51728         USE_MACVERSION=1
51729         USE_SOVERSION=1
51730         USE_SOSYMLINKS=1
51731       ;;
51732
51733       *-*-cygwin* )
51734         USE_SOVERSION=1
51735         USE_SOVERCYGWIN=1
51736       ;;
51737     esac
51738
51739
51740
51741
51742
51743
51744
51745
51746
51747
51748     # Check whether --enable-dependency-tracking was given.
51749 if test "${enable_dependency_tracking+set}" = set; then
51750   enableval=$enable_dependency_tracking; bk_use_trackdeps="$enableval"
51751 fi
51752
51753
51754     { echo "$as_me:$LINENO: checking for dependency tracking method" >&5
51755 echo $ECHO_N "checking for dependency tracking method... $ECHO_C" >&6; }
51756
51757     BK_DEPS=""
51758     if test "x$bk_use_trackdeps" = "xno" ; then
51759         DEPS_TRACKING=0
51760         { echo "$as_me:$LINENO: result: disabled" >&5
51761 echo "${ECHO_T}disabled" >&6; }
51762     else
51763         DEPS_TRACKING=1
51764
51765         if test "x$GCC" = "xyes"; then
51766             DEPSMODE=gcc
51767             case "${BAKEFILE_HOST}" in
51768                 *-*-darwin* )
51769                                                             DEPSFLAG="-no-cpp-precomp -MMD"
51770                 ;;
51771                 * )
51772                     DEPSFLAG="-MMD"
51773                 ;;
51774             esac
51775             { echo "$as_me:$LINENO: result: gcc" >&5
51776 echo "${ECHO_T}gcc" >&6; }
51777         elif test "x$MWCC" = "xyes"; then
51778             DEPSMODE=mwcc
51779             DEPSFLAG="-MM"
51780             { echo "$as_me:$LINENO: result: mwcc" >&5
51781 echo "${ECHO_T}mwcc" >&6; }
51782         elif test "x$SUNCC" = "xyes"; then
51783             DEPSMODE=unixcc
51784             DEPSFLAG="-xM1"
51785             { echo "$as_me:$LINENO: result: Sun cc" >&5
51786 echo "${ECHO_T}Sun cc" >&6; }
51787         elif test "x$SGICC" = "xyes"; then
51788             DEPSMODE=unixcc
51789             DEPSFLAG="-M"
51790             { echo "$as_me:$LINENO: result: SGI cc" >&5
51791 echo "${ECHO_T}SGI cc" >&6; }
51792         elif test "x$HPCC" = "xyes"; then
51793             DEPSMODE=unixcc
51794             DEPSFLAG="+make"
51795             { echo "$as_me:$LINENO: result: HP cc" >&5
51796 echo "${ECHO_T}HP cc" >&6; }
51797         elif test "x$COMPAQCC" = "xyes"; then
51798             DEPSMODE=gcc
51799             DEPSFLAG="-MD"
51800             { echo "$as_me:$LINENO: result: Compaq cc" >&5
51801 echo "${ECHO_T}Compaq cc" >&6; }
51802         else
51803             DEPS_TRACKING=0
51804             { echo "$as_me:$LINENO: result: none" >&5
51805 echo "${ECHO_T}none" >&6; }
51806         fi
51807
51808         if test $DEPS_TRACKING = 1 ; then
51809
51810 D='$'
51811 cat <<EOF >bk-deps
51812 #!/bin/sh
51813
51814 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
51815 # script. It is used to track C/C++ files dependencies in portable way.
51816 #
51817 # Permission is given to use this file in any way.
51818
51819 DEPSMODE=${DEPSMODE}
51820 DEPSDIR=.deps
51821 DEPSFLAG="${DEPSFLAG}"
51822
51823 mkdir -p ${D}DEPSDIR
51824
51825 if test ${D}DEPSMODE = gcc ; then
51826     ${D}* ${D}{DEPSFLAG}
51827     status=${D}?
51828     if test ${D}{status} != 0 ; then
51829         exit ${D}{status}
51830     fi
51831     # move created file to the location we want it in:
51832     while test ${D}# -gt 0; do
51833         case "${D}1" in
51834             -o )
51835                 shift
51836                 objfile=${D}1
51837             ;;
51838             -* )
51839             ;;
51840             * )
51841                 srcfile=${D}1
51842             ;;
51843         esac
51844         shift
51845     done
51846     depfile=\`basename ${D}srcfile | sed -e 's/\\..*${D}/.d/g'\`
51847     depobjname=\`echo ${D}depfile |sed -e 's/\\.d/.o/g'\`
51848     if test -f ${D}depfile ; then
51849         sed -e "s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51850         rm -f ${D}depfile
51851     else
51852         # "g++ -MMD -o fooobj.o foosrc.cpp" produces fooobj.d
51853         depfile=\`basename ${D}objfile | sed -e 's/\\..*${D}/.d/g'\`
51854         if test ! -f ${D}depfile ; then
51855             # "cxx -MD -o fooobj.o foosrc.cpp" creates fooobj.o.d (Compaq C++)
51856             depfile="${D}objfile.d"
51857         fi
51858         if test -f ${D}depfile ; then
51859             sed -e "/^${D}objfile/!s,${D}depobjname:,${D}objfile:,g" ${D}depfile >${D}{DEPSDIR}/${D}{objfile}.d
51860             rm -f ${D}depfile
51861         fi
51862     fi
51863     exit 0
51864 elif test ${D}DEPSMODE = mwcc ; then
51865     ${D}* || exit ${D}?
51866     # Run mwcc again with -MM and redirect into the dep file we want
51867     # NOTE: We can't use shift here because we need ${D}* to be valid
51868     prevarg=
51869     for arg in ${D}* ; do
51870         if test "${D}prevarg" = "-o"; then
51871             objfile=${D}arg
51872         else
51873             case "${D}arg" in
51874                 -* )
51875                 ;;
51876                 * )
51877                     srcfile=${D}arg
51878                 ;;
51879             esac
51880         fi
51881         prevarg="${D}arg"
51882     done
51883     ${D}* ${D}DEPSFLAG >${D}{DEPSDIR}/${D}{objfile}.d
51884     exit 0
51885 elif test ${D}DEPSMODE = unixcc; then
51886     ${D}* || exit ${D}?
51887     # Run compiler again with deps flag and redirect into the dep file.
51888     # It doesn't work if the '-o FILE' option is used, but without it the
51889     # dependency file will contain the wrong name for the object. So it is
51890     # removed from the command line, and the dep file is fixed with sed.
51891     cmd=""
51892     while test ${D}# -gt 0; do
51893         case "${D}1" in
51894             -o )
51895                 shift
51896                 objfile=${D}1
51897             ;;
51898             * )
51899                 eval arg${D}#=\\${D}1
51900                 cmd="${D}cmd \\${D}arg${D}#"
51901             ;;
51902         esac
51903         shift
51904     done
51905     eval "${D}cmd ${D}DEPSFLAG" | sed "s|.*:|${D}objfile:|" >${D}{DEPSDIR}/${D}{objfile}.d
51906     exit 0
51907 else
51908     ${D}*
51909     exit ${D}?
51910 fi
51911 EOF
51912
51913             chmod +x bk-deps
51914                                     BK_DEPS="`pwd`/bk-deps"
51915         fi
51916     fi
51917
51918
51919
51920
51921
51922     case ${BAKEFILE_HOST} in
51923         *-*-cygwin* | *-*-mingw32* )
51924                         if test -n "$ac_tool_prefix"; then
51925   # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
51926 set dummy ${ac_tool_prefix}windres; ac_word=$2
51927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51929 if test "${ac_cv_prog_WINDRES+set}" = set; then
51930   echo $ECHO_N "(cached) $ECHO_C" >&6
51931 else
51932   if test -n "$WINDRES"; then
51933   ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
51934 else
51935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51936 for as_dir in $PATH
51937 do
51938   IFS=$as_save_IFS
51939   test -z "$as_dir" && as_dir=.
51940   for ac_exec_ext in '' $ac_executable_extensions; do
51941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51942     ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
51943     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51944     break 2
51945   fi
51946 done
51947 done
51948 IFS=$as_save_IFS
51949
51950 fi
51951 fi
51952 WINDRES=$ac_cv_prog_WINDRES
51953 if test -n "$WINDRES"; then
51954   { echo "$as_me:$LINENO: result: $WINDRES" >&5
51955 echo "${ECHO_T}$WINDRES" >&6; }
51956 else
51957   { echo "$as_me:$LINENO: result: no" >&5
51958 echo "${ECHO_T}no" >&6; }
51959 fi
51960
51961
51962 fi
51963 if test -z "$ac_cv_prog_WINDRES"; then
51964   ac_ct_WINDRES=$WINDRES
51965   # Extract the first word of "windres", so it can be a program name with args.
51966 set dummy windres; ac_word=$2
51967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
51968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
51969 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
51970   echo $ECHO_N "(cached) $ECHO_C" >&6
51971 else
51972   if test -n "$ac_ct_WINDRES"; then
51973   ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
51974 else
51975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51976 for as_dir in $PATH
51977 do
51978   IFS=$as_save_IFS
51979   test -z "$as_dir" && as_dir=.
51980   for ac_exec_ext in '' $ac_executable_extensions; do
51981   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
51982     ac_cv_prog_ac_ct_WINDRES="windres"
51983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
51984     break 2
51985   fi
51986 done
51987 done
51988 IFS=$as_save_IFS
51989
51990 fi
51991 fi
51992 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
51993 if test -n "$ac_ct_WINDRES"; then
51994   { echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
51995 echo "${ECHO_T}$ac_ct_WINDRES" >&6; }
51996 else
51997   { echo "$as_me:$LINENO: result: no" >&5
51998 echo "${ECHO_T}no" >&6; }
51999 fi
52000
52001   if test "x$ac_ct_WINDRES" = x; then
52002     WINDRES=""
52003   else
52004     case $cross_compiling:$ac_tool_warned in
52005 yes:)
52006 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
52007 whose name does not start with the host triplet.  If you think this
52008 configuration is useful to you, please write to autoconf@gnu.org." >&5
52009 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
52010 whose name does not start with the host triplet.  If you think this
52011 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
52012 ac_tool_warned=yes ;;
52013 esac
52014     WINDRES=$ac_ct_WINDRES
52015   fi
52016 else
52017   WINDRES="$ac_cv_prog_WINDRES"
52018 fi
52019
52020          ;;
52021
52022       *-*-darwin* | powerpc-apple-macos* )
52023             # Extract the first word of "Rez", so it can be a program name with args.
52024 set dummy Rez; ac_word=$2
52025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52027 if test "${ac_cv_prog_REZ+set}" = set; then
52028   echo $ECHO_N "(cached) $ECHO_C" >&6
52029 else
52030   if test -n "$REZ"; then
52031   ac_cv_prog_REZ="$REZ" # Let the user override the test.
52032 else
52033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52034 for as_dir in $PATH
52035 do
52036   IFS=$as_save_IFS
52037   test -z "$as_dir" && as_dir=.
52038   for ac_exec_ext in '' $ac_executable_extensions; do
52039   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52040     ac_cv_prog_REZ="Rez"
52041     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52042     break 2
52043   fi
52044 done
52045 done
52046 IFS=$as_save_IFS
52047
52048   test -z "$ac_cv_prog_REZ" && ac_cv_prog_REZ="/Developer/Tools/Rez"
52049 fi
52050 fi
52051 REZ=$ac_cv_prog_REZ
52052 if test -n "$REZ"; then
52053   { echo "$as_me:$LINENO: result: $REZ" >&5
52054 echo "${ECHO_T}$REZ" >&6; }
52055 else
52056   { echo "$as_me:$LINENO: result: no" >&5
52057 echo "${ECHO_T}no" >&6; }
52058 fi
52059
52060
52061             # Extract the first word of "SetFile", so it can be a program name with args.
52062 set dummy SetFile; ac_word=$2
52063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
52064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
52065 if test "${ac_cv_prog_SETFILE+set}" = set; then
52066   echo $ECHO_N "(cached) $ECHO_C" >&6
52067 else
52068   if test -n "$SETFILE"; then
52069   ac_cv_prog_SETFILE="$SETFILE" # Let the user override the test.
52070 else
52071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
52072 for as_dir in $PATH
52073 do
52074   IFS=$as_save_IFS
52075   test -z "$as_dir" && as_dir=.
52076   for ac_exec_ext in '' $ac_executable_extensions; do
52077   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
52078     ac_cv_prog_SETFILE="SetFile"
52079     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
52080     break 2
52081   fi
52082 done
52083 done
52084 IFS=$as_save_IFS
52085
52086   test -z "$ac_cv_prog_SETFILE" && ac_cv_prog_SETFILE="/Developer/Tools/SetFile"
52087 fi
52088 fi
52089 SETFILE=$ac_cv_prog_SETFILE
52090 if test -n "$SETFILE"; then
52091   { echo "$as_me:$LINENO: result: $SETFILE" >&5
52092 echo "${ECHO_T}$SETFILE" >&6; }
52093 else
52094   { echo "$as_me:$LINENO: result: no" >&5
52095 echo "${ECHO_T}no" >&6; }
52096 fi
52097
52098
52099         ;;
52100     esac
52101
52102
52103
52104
52105
52106
52107     BAKEFILE_BAKEFILE_M4_VERSION="0.2.2"
52108
52109
52110 BAKEFILE_AUTOCONF_INC_M4_VERSION="0.2.2"
52111
52112
52113
52114     # Check whether --enable-precomp-headers was given.
52115 if test "${enable_precomp_headers+set}" = set; then
52116   enableval=$enable_precomp_headers; bk_use_pch="$enableval"
52117 fi
52118
52119
52120     GCC_PCH=0
52121     ICC_PCH=0
52122     USE_PCH=0
52123     BK_MAKE_PCH=""
52124
52125     case ${BAKEFILE_HOST} in
52126         *-*-cygwin* )
52127                                                 bk_use_pch="no"
52128             ;;
52129     esac
52130
52131     if test "x$bk_use_pch" = "x" -o "x$bk_use_pch" = "xyes" ; then
52132         if test "x$GCC" = "xyes"; then
52133                         { echo "$as_me:$LINENO: checking if the compiler supports precompiled headers" >&5
52134 echo $ECHO_N "checking if the compiler supports precompiled headers... $ECHO_C" >&6; }
52135             cat >conftest.$ac_ext <<_ACEOF
52136 /* confdefs.h.  */
52137 _ACEOF
52138 cat confdefs.h >>conftest.$ac_ext
52139 cat >>conftest.$ac_ext <<_ACEOF
52140 /* end confdefs.h.  */
52141
52142 int
52143 main ()
52144 {
52145
52146                     #if !defined(__GNUC__) || !defined(__GNUC_MINOR__)
52147                         There is no PCH support
52148                     #endif
52149                     #if (__GNUC__ < 3)
52150                         There is no PCH support
52151                     #endif
52152                     #if (__GNUC__ == 3) && \
52153                        ((!defined(__APPLE_CC__) && (__GNUC_MINOR__ < 4)) || \
52154                        ( defined(__APPLE_CC__) && (__GNUC_MINOR__ < 3))) || \
52155                        ( defined(__INTEL_COMPILER) )
52156                         There is no PCH support
52157                     #endif
52158
52159   ;
52160   return 0;
52161 }
52162 _ACEOF
52163 rm -f conftest.$ac_objext
52164 if { (ac_try="$ac_compile"
52165 case "(($ac_try" in
52166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52167   *) ac_try_echo=$ac_try;;
52168 esac
52169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52170   (eval "$ac_compile") 2>conftest.er1
52171   ac_status=$?
52172   grep -v '^ *+' conftest.er1 >conftest.err
52173   rm -f conftest.er1
52174   cat conftest.err >&5
52175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52176   (exit $ac_status); } && {
52177          test -z "$ac_c_werror_flag" ||
52178          test ! -s conftest.err
52179        } && test -s conftest.$ac_objext; then
52180
52181                     { echo "$as_me:$LINENO: result: yes" >&5
52182 echo "${ECHO_T}yes" >&6; }
52183                     GCC_PCH=1
52184
52185 else
52186   echo "$as_me: failed program was:" >&5
52187 sed 's/^/| /' conftest.$ac_ext >&5
52188
52189
52190                     cat >conftest.$ac_ext <<_ACEOF
52191 /* confdefs.h.  */
52192 _ACEOF
52193 cat confdefs.h >>conftest.$ac_ext
52194 cat >>conftest.$ac_ext <<_ACEOF
52195 /* end confdefs.h.  */
52196
52197 int
52198 main ()
52199 {
52200
52201                             #if !defined(__INTEL_COMPILER) || \
52202                                 (__INTEL_COMPILER < 800)
52203                                 There is no PCH support
52204                             #endif
52205
52206   ;
52207   return 0;
52208 }
52209 _ACEOF
52210 rm -f conftest.$ac_objext
52211 if { (ac_try="$ac_compile"
52212 case "(($ac_try" in
52213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52214   *) ac_try_echo=$ac_try;;
52215 esac
52216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
52217   (eval "$ac_compile") 2>conftest.er1
52218   ac_status=$?
52219   grep -v '^ *+' conftest.er1 >conftest.err
52220   rm -f conftest.er1
52221   cat conftest.err >&5
52222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
52223   (exit $ac_status); } && {
52224          test -z "$ac_c_werror_flag" ||
52225          test ! -s conftest.err
52226        } && test -s conftest.$ac_objext; then
52227
52228                             { echo "$as_me:$LINENO: result: yes" >&5
52229 echo "${ECHO_T}yes" >&6; }
52230                             ICC_PCH=1
52231
52232 else
52233   echo "$as_me: failed program was:" >&5
52234 sed 's/^/| /' conftest.$ac_ext >&5
52235
52236
52237                             { echo "$as_me:$LINENO: result: no" >&5
52238 echo "${ECHO_T}no" >&6; }
52239
52240 fi
52241
52242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52243
52244 fi
52245
52246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52247             if test $GCC_PCH = 1 -o $ICC_PCH = 1 ; then
52248                 USE_PCH=1
52249
52250 D='$'
52251 cat <<EOF >bk-make-pch
52252 #!/bin/sh
52253
52254 # This script is part of Bakefile (http://bakefile.sourceforge.net) autoconf
52255 # script. It is used to generated precompiled headers.
52256 #
52257 # Permission is given to use this file in any way.
52258
52259 outfile="${D}{1}"
52260 header="${D}{2}"
52261 shift
52262 shift
52263
52264 compiler=""
52265 headerfile=""
52266
52267 while test ${D}{#} -gt 0; do
52268     add_to_cmdline=1
52269     case "${D}{1}" in
52270         -I* )
52271             incdir=\`echo ${D}{1} | sed -e 's/-I\\(.*\\)/\\1/g'\`
52272             if test "x${D}{headerfile}" = "x" -a -f "${D}{incdir}/${D}{header}" ; then
52273                 headerfile="${D}{incdir}/${D}{header}"
52274             fi
52275         ;;
52276         -use-pch|-use_pch )
52277             shift
52278             add_to_cmdline=0
52279         ;;
52280     esac
52281     if test ${D}add_to_cmdline = 1 ; then
52282         compiler="${D}{compiler} ${D}{1}"
52283     fi
52284     shift
52285 done
52286
52287 if test "x${D}{headerfile}" = "x" ; then
52288     echo "error: can't find header ${D}{header} in include paths" >&2
52289 else
52290     if test -f ${D}{outfile} ; then
52291         rm -f ${D}{outfile}
52292     else
52293         mkdir -p \`dirname ${D}{outfile}\`
52294     fi
52295     depsfile=".deps/\`echo ${D}{outfile} | tr '/.' '__'\`.d"
52296     mkdir -p .deps
52297     if test "x${GCC_PCH}" = "x1" ; then
52298         # can do this because gcc is >= 3.4:
52299         ${D}{compiler} -o ${D}{outfile} -MMD -MF "${D}{depsfile}" "${D}{headerfile}"
52300     elif test "x${ICC_PCH}" = "x1" ; then
52301         filename=pch_gen-${D}${D}
52302         file=${D}{filename}.c
52303         dfile=${D}{filename}.d
52304         cat > ${D}file <<EOT
52305 #include "${D}header"
52306 EOT
52307         # using -MF icc complains about differing command lines in creation/use
52308         ${D}compiler -c -create_pch ${D}outfile -MMD ${D}file && \\
52309           sed -e "s,^.*:,${D}outfile:," -e "s, ${D}file,," < ${D}dfile > ${D}depsfile && \\
52310           rm -f ${D}file ${D}dfile ${D}{filename}.o
52311     fi
52312     exit ${D}{?}
52313 fi
52314 EOF
52315
52316                 chmod +x bk-make-pch
52317                                                                 BK_MAKE_PCH="`pwd`/bk-make-pch"
52318             fi
52319         fi
52320     fi
52321
52322
52323
52324
52325
52326     COND_BUILD_DEBUG="#"
52327     if test "x$BUILD" = "xdebug" ; then
52328         COND_BUILD_DEBUG=""
52329     fi
52330
52331     COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT="#"
52332     if test "x$BUILD" = "xdebug" -a "x$DEBUG_FLAG" = "xdefault" ; then
52333         COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT=""
52334     fi
52335
52336     COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT="#"
52337     if test "x$BUILD" = "xdebug" -a "x$DEBUG_INFO" = "xdefault" ; then
52338         COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT=""
52339     fi
52340
52341     COND_BUILD_DEBUG_UNICODE_0="#"
52342     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x0" ; then
52343         COND_BUILD_DEBUG_UNICODE_0=""
52344     fi
52345
52346     COND_BUILD_DEBUG_UNICODE_1="#"
52347     if test "x$BUILD" = "xdebug" -a "x$UNICODE" = "x1" ; then
52348         COND_BUILD_DEBUG_UNICODE_1=""
52349     fi
52350
52351     COND_BUILD_RELEASE="#"
52352     if test "x$BUILD" = "xrelease" ; then
52353         COND_BUILD_RELEASE=""
52354     fi
52355
52356     COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT="#"
52357     if test "x$BUILD" = "xrelease" -a "x$DEBUG_INFO" = "xdefault" ; then
52358         COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT=""
52359     fi
52360
52361     COND_BUILD_RELEASE_UNICODE_0="#"
52362     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x0" ; then
52363         COND_BUILD_RELEASE_UNICODE_0=""
52364     fi
52365
52366     COND_BUILD_RELEASE_UNICODE_1="#"
52367     if test "x$BUILD" = "xrelease" -a "x$UNICODE" = "x1" ; then
52368         COND_BUILD_RELEASE_UNICODE_1=""
52369     fi
52370
52371     COND_DEBUG_FLAG_1="#"
52372     if test "x$DEBUG_FLAG" = "x1" ; then
52373         COND_DEBUG_FLAG_1=""
52374     fi
52375
52376     COND_DEBUG_INFO_0="#"
52377     if test "x$DEBUG_INFO" = "x0" ; then
52378         COND_DEBUG_INFO_0=""
52379     fi
52380
52381     COND_DEBUG_INFO_1="#"
52382     if test "x$DEBUG_INFO" = "x1" ; then
52383         COND_DEBUG_INFO_1=""
52384     fi
52385
52386     COND_DEPS_TRACKING_0="#"
52387     if test "x$DEPS_TRACKING" = "x0" ; then
52388         COND_DEPS_TRACKING_0=""
52389     fi
52390
52391     COND_DEPS_TRACKING_1="#"
52392     if test "x$DEPS_TRACKING" = "x1" ; then
52393         COND_DEPS_TRACKING_1=""
52394     fi
52395
52396     COND_GCC_PCH_1="#"
52397     if test "x$GCC_PCH" = "x1" ; then
52398         COND_GCC_PCH_1=""
52399     fi
52400
52401     COND_ICC_PCH_1="#"
52402     if test "x$ICC_PCH" = "x1" ; then
52403         COND_ICC_PCH_1=""
52404     fi
52405
52406     COND_MONOLITHIC_0="#"
52407     if test "x$MONOLITHIC" = "x0" ; then
52408         COND_MONOLITHIC_0=""
52409     fi
52410
52411     COND_MONOLITHIC_0_SHARED_0="#"
52412     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" ; then
52413         COND_MONOLITHIC_0_SHARED_0=""
52414     fi
52415
52416     COND_MONOLITHIC_0_SHARED_0_USE_AUI_1="#"
52417     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_AUI" = "x1" ; then
52418         COND_MONOLITHIC_0_SHARED_0_USE_AUI_1=""
52419     fi
52420
52421     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1="#"
52422     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" ; then
52423         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1=""
52424     fi
52425
52426     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1="#"
52427     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52428         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1=""
52429     fi
52430
52431     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1="#"
52432     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52433         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1=""
52434     fi
52435
52436     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1="#"
52437     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52438         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1=""
52439     fi
52440
52441     COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1="#"
52442     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52443         COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1=""
52444     fi
52445
52446     COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1="#"
52447     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_ODBC" = "x1" ; then
52448         COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1=""
52449     fi
52450
52451     COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1="#"
52452     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52453         COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1=""
52454     fi
52455
52456     COND_MONOLITHIC_0_SHARED_0_USE_STC_1="#"
52457     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52458         COND_MONOLITHIC_0_SHARED_0_USE_STC_1=""
52459     fi
52460
52461     COND_MONOLITHIC_0_SHARED_0_USE_XRC_1="#"
52462     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52463         COND_MONOLITHIC_0_SHARED_0_USE_XRC_1=""
52464     fi
52465
52466     COND_MONOLITHIC_0_SHARED_1="#"
52467     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" ; then
52468         COND_MONOLITHIC_0_SHARED_1=""
52469     fi
52470
52471     COND_MONOLITHIC_0_SHARED_1_USE_AUI_1="#"
52472     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_AUI" = "x1" ; then
52473         COND_MONOLITHIC_0_SHARED_1_USE_AUI_1=""
52474     fi
52475
52476     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1="#"
52477     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" ; then
52478         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1=""
52479     fi
52480
52481     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1="#"
52482     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_HTML" = "x1" ; then
52483         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1=""
52484     fi
52485
52486     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1="#"
52487     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52488         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1=""
52489     fi
52490
52491     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1="#"
52492     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52493         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1=""
52494     fi
52495
52496     COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1="#"
52497     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_QA" = "x1" ; then
52498         COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1=""
52499     fi
52500
52501     COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1="#"
52502     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_ODBC" = "x1" ; then
52503         COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1=""
52504     fi
52505
52506     COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1="#"
52507     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_RICHTEXT" = "x1" ; then
52508         COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1=""
52509     fi
52510
52511     COND_MONOLITHIC_0_SHARED_1_USE_STC_1="#"
52512     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_STC" = "x1" ; then
52513         COND_MONOLITHIC_0_SHARED_1_USE_STC_1=""
52514     fi
52515
52516     COND_MONOLITHIC_0_SHARED_1_USE_XRC_1="#"
52517     if test "x$MONOLITHIC" = "x0" -a "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52518         COND_MONOLITHIC_0_SHARED_1_USE_XRC_1=""
52519     fi
52520
52521     COND_MONOLITHIC_0_USE_AUI_1="#"
52522     if test "x$MONOLITHIC" = "x0" -a "x$USE_AUI" = "x1" ; then
52523         COND_MONOLITHIC_0_USE_AUI_1=""
52524     fi
52525
52526     COND_MONOLITHIC_0_USE_GUI_1="#"
52527     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" ; then
52528         COND_MONOLITHIC_0_USE_GUI_1=""
52529     fi
52530
52531     COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1="#"
52532     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_MEDIA" = "x1" ; then
52533         COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1=""
52534     fi
52535
52536     COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1="#"
52537     if test "x$MONOLITHIC" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_ODBC" = "x1" ; then
52538         COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1=""
52539     fi
52540
52541     COND_MONOLITHIC_0_USE_HTML_1="#"
52542     if test "x$MONOLITHIC" = "x0" -a "x$USE_HTML" = "x1" ; then
52543         COND_MONOLITHIC_0_USE_HTML_1=""
52544     fi
52545
52546     COND_MONOLITHIC_0_USE_MEDIA_1="#"
52547     if test "x$MONOLITHIC" = "x0" -a "x$USE_MEDIA" = "x1" ; then
52548         COND_MONOLITHIC_0_USE_MEDIA_1=""
52549     fi
52550
52551     COND_MONOLITHIC_0_USE_ODBC_1="#"
52552     if test "x$MONOLITHIC" = "x0" -a "x$USE_ODBC" = "x1" ; then
52553         COND_MONOLITHIC_0_USE_ODBC_1=""
52554     fi
52555
52556     COND_MONOLITHIC_0_USE_QA_1="#"
52557     if test "x$MONOLITHIC" = "x0" -a "x$USE_QA" = "x1" ; then
52558         COND_MONOLITHIC_0_USE_QA_1=""
52559     fi
52560
52561     COND_MONOLITHIC_0_USE_RICHTEXT_1="#"
52562     if test "x$MONOLITHIC" = "x0" -a "x$USE_RICHTEXT" = "x1" ; then
52563         COND_MONOLITHIC_0_USE_RICHTEXT_1=""
52564     fi
52565
52566     COND_MONOLITHIC_0_USE_STC_1="#"
52567     if test "x$MONOLITHIC" = "x0" -a "x$USE_STC" = "x1" ; then
52568         COND_MONOLITHIC_0_USE_STC_1=""
52569     fi
52570
52571     COND_MONOLITHIC_0_USE_XRC_1="#"
52572     if test "x$MONOLITHIC" = "x0" -a "x$USE_XRC" = "x1" ; then
52573         COND_MONOLITHIC_0_USE_XRC_1=""
52574     fi
52575
52576     COND_MONOLITHIC_1="#"
52577     if test "x$MONOLITHIC" = "x1" ; then
52578         COND_MONOLITHIC_1=""
52579     fi
52580
52581     COND_MONOLITHIC_1_SHARED_0="#"
52582     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x0" ; then
52583         COND_MONOLITHIC_1_SHARED_0=""
52584     fi
52585
52586     COND_MONOLITHIC_1_SHARED_1="#"
52587     if test "x$MONOLITHIC" = "x1" -a "x$SHARED" = "x1" ; then
52588         COND_MONOLITHIC_1_SHARED_1=""
52589     fi
52590
52591     COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1="#"
52592     if test "x$OFFICIAL_BUILD" = "x0" -a "x$PLATFORM_WIN32" = "x1" ; then
52593         COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1=""
52594     fi
52595
52596     COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1="#"
52597     if test "x$OFFICIAL_BUILD" = "x1" -a "x$PLATFORM_WIN32" = "x1" ; then
52598         COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1=""
52599     fi
52600
52601     COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1="#"
52602     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERCYGWIN" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52603         COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1=""
52604     fi
52605
52606     COND_PLATFORM_MACOSX_0_USE_SOVERSION_1="#"
52607     if test "x$PLATFORM_MACOSX" = "x0" -a "x$USE_SOVERSION" = "x1" ; then
52608         COND_PLATFORM_MACOSX_0_USE_SOVERSION_1=""
52609     fi
52610
52611     COND_PLATFORM_MACOSX_1="#"
52612     if test "x$PLATFORM_MACOSX" = "x1" ; then
52613         COND_PLATFORM_MACOSX_1=""
52614     fi
52615
52616     COND_PLATFORM_MACOSX_1_TOOLKIT_="#"
52617     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "x" ; then
52618         COND_PLATFORM_MACOSX_1_TOOLKIT_=""
52619     fi
52620
52621     COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA="#"
52622     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xCOCOA" ; then
52623         COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA=""
52624     fi
52625
52626     COND_PLATFORM_MACOSX_1_TOOLKIT_GTK="#"
52627     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xGTK" ; then
52628         COND_PLATFORM_MACOSX_1_TOOLKIT_GTK=""
52629     fi
52630
52631     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC="#"
52632     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" ; then
52633         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC=""
52634     fi
52635
52636     COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1="#"
52637     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52638         COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1=""
52639     fi
52640
52641     COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF="#"
52642     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xMOTIF" ; then
52643         COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF=""
52644     fi
52645
52646     COND_PLATFORM_MACOSX_1_TOOLKIT_X11="#"
52647     if test "x$PLATFORM_MACOSX" = "x1" -a "x$TOOLKIT" = "xX11" ; then
52648         COND_PLATFORM_MACOSX_1_TOOLKIT_X11=""
52649     fi
52650
52651     COND_PLATFORM_MACOSX_1_USE_GUI_1="#"
52652     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_GUI" = "x1" ; then
52653         COND_PLATFORM_MACOSX_1_USE_GUI_1=""
52654     fi
52655
52656     COND_PLATFORM_MACOSX_1_USE_SOVERSION_1="#"
52657     if test "x$PLATFORM_MACOSX" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
52658         COND_PLATFORM_MACOSX_1_USE_SOVERSION_1=""
52659     fi
52660
52661     COND_PLATFORM_MACOS_1="#"
52662     if test "x$PLATFORM_MACOS" = "x1" ; then
52663         COND_PLATFORM_MACOS_1=""
52664     fi
52665
52666     COND_PLATFORM_MAC_1="#"
52667     if test "x$PLATFORM_MAC" = "x1" ; then
52668         COND_PLATFORM_MAC_1=""
52669     fi
52670
52671     COND_PLATFORM_MSDOS_0="#"
52672     if test "x$PLATFORM_MSDOS" = "x0" ; then
52673         COND_PLATFORM_MSDOS_0=""
52674     fi
52675
52676     COND_PLATFORM_MSDOS_1="#"
52677     if test "x$PLATFORM_MSDOS" = "x1" ; then
52678         COND_PLATFORM_MSDOS_1=""
52679     fi
52680
52681     COND_PLATFORM_OS2_1="#"
52682     if test "x$PLATFORM_OS2" = "x1" ; then
52683         COND_PLATFORM_OS2_1=""
52684     fi
52685
52686     COND_PLATFORM_UNIX_0="#"
52687     if test "x$PLATFORM_UNIX" = "x0" ; then
52688         COND_PLATFORM_UNIX_0=""
52689     fi
52690
52691     COND_PLATFORM_UNIX_1="#"
52692     if test "x$PLATFORM_UNIX" = "x1" ; then
52693         COND_PLATFORM_UNIX_1=""
52694     fi
52695
52696     COND_PLATFORM_UNIX_1_TOOLKIT_MGL="#"
52697     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" ; then
52698         COND_PLATFORM_UNIX_1_TOOLKIT_MGL=""
52699     fi
52700
52701     COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1="#"
52702     if test "x$PLATFORM_UNIX" = "x1" -a "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52703         COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1=""
52704     fi
52705
52706     COND_PLATFORM_UNIX_1_USE_GUI_1="#"
52707     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_GUI" = "x1" ; then
52708         COND_PLATFORM_UNIX_1_USE_GUI_1=""
52709     fi
52710
52711     COND_PLATFORM_UNIX_1_USE_PLUGINS_0="#"
52712     if test "x$PLATFORM_UNIX" = "x1" -a "x$USE_PLUGINS" = "x0" ; then
52713         COND_PLATFORM_UNIX_1_USE_PLUGINS_0=""
52714     fi
52715
52716     COND_PLATFORM_WIN32_0="#"
52717     if test "x$PLATFORM_WIN32" = "x0" ; then
52718         COND_PLATFORM_WIN32_0=""
52719     fi
52720
52721     COND_PLATFORM_WIN32_1="#"
52722     if test "x$PLATFORM_WIN32" = "x1" ; then
52723         COND_PLATFORM_WIN32_1=""
52724     fi
52725
52726     COND_SHARED_0="#"
52727     if test "x$SHARED" = "x0" ; then
52728         COND_SHARED_0=""
52729     fi
52730
52731     COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0="#"
52732     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMAC" -a "x$WXUNIV" = "x0" ; then
52733         COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0=""
52734     fi
52735
52736     COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0="#"
52737     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52738         COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0=""
52739     fi
52740
52741     COND_SHARED_0_TOOLKIT_PM_WXUNIV_0="#"
52742     if test "x$SHARED" = "x0" -a "x$TOOLKIT" = "xPM" -a "x$WXUNIV" = "x0" ; then
52743         COND_SHARED_0_TOOLKIT_PM_WXUNIV_0=""
52744     fi
52745
52746     COND_SHARED_0_USE_GUI_1_USE_OPENGL_1="#"
52747     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52748         COND_SHARED_0_USE_GUI_1_USE_OPENGL_1=""
52749     fi
52750
52751     COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
52752     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
52753         COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
52754     fi
52755
52756     COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
52757     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
52758         COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
52759     fi
52760
52761     COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
52762     if test "x$SHARED" = "x0" -a "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
52763         COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
52764     fi
52765
52766     COND_SHARED_0_USE_STC_1="#"
52767     if test "x$SHARED" = "x0" -a "x$USE_STC" = "x1" ; then
52768         COND_SHARED_0_USE_STC_1=""
52769     fi
52770
52771     COND_SHARED_0_USE_XRC_1="#"
52772     if test "x$SHARED" = "x0" -a "x$USE_XRC" = "x1" ; then
52773         COND_SHARED_0_USE_XRC_1=""
52774     fi
52775
52776     COND_SHARED_0_WXUSE_EXPAT_BUILTIN="#"
52777     if test "x$SHARED" = "x0" -a "x$wxUSE_EXPAT" = "xbuiltin" ; then
52778         COND_SHARED_0_WXUSE_EXPAT_BUILTIN=""
52779     fi
52780
52781     COND_SHARED_0_WXUSE_ODBC_BUILTIN="#"
52782     if test "x$SHARED" = "x0" -a "x$wxUSE_ODBC" = "xbuiltin" ; then
52783         COND_SHARED_0_WXUSE_ODBC_BUILTIN=""
52784     fi
52785
52786     COND_SHARED_0_WXUSE_REGEX_BUILTIN="#"
52787     if test "x$SHARED" = "x0" -a "x$wxUSE_REGEX" = "xbuiltin" ; then
52788         COND_SHARED_0_WXUSE_REGEX_BUILTIN=""
52789     fi
52790
52791     COND_SHARED_0_WXUSE_ZLIB_BUILTIN="#"
52792     if test "x$SHARED" = "x0" -a "x$wxUSE_ZLIB" = "xbuiltin" ; then
52793         COND_SHARED_0_WXUSE_ZLIB_BUILTIN=""
52794     fi
52795
52796     COND_SHARED_1="#"
52797     if test "x$SHARED" = "x1" ; then
52798         COND_SHARED_1=""
52799     fi
52800
52801     COND_SHARED_1_USE_GUI_1_USE_OPENGL_1="#"
52802     if test "x$SHARED" = "x1" -a "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
52803         COND_SHARED_1_USE_GUI_1_USE_OPENGL_1=""
52804     fi
52805
52806     COND_SHARED_1_USE_XRC_1="#"
52807     if test "x$SHARED" = "x1" -a "x$USE_XRC" = "x1" ; then
52808         COND_SHARED_1_USE_XRC_1=""
52809     fi
52810
52811     COND_TOOLKIT_="#"
52812     if test "x$TOOLKIT" = "x" ; then
52813         COND_TOOLKIT_=""
52814     fi
52815
52816     COND_TOOLKIT_COCOA="#"
52817     if test "x$TOOLKIT" = "xCOCOA" ; then
52818         COND_TOOLKIT_COCOA=""
52819     fi
52820
52821     COND_TOOLKIT_COCOA_USE_GUI_1="#"
52822     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" ; then
52823         COND_TOOLKIT_COCOA_USE_GUI_1=""
52824     fi
52825
52826     COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0="#"
52827     if test "x$TOOLKIT" = "xCOCOA" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52828         COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0=""
52829     fi
52830
52831     COND_TOOLKIT_DFB="#"
52832     if test "x$TOOLKIT" = "xDFB" ; then
52833         COND_TOOLKIT_DFB=""
52834     fi
52835
52836     COND_TOOLKIT_DFB_USE_GUI_1="#"
52837     if test "x$TOOLKIT" = "xDFB" -a "x$USE_GUI" = "x1" ; then
52838         COND_TOOLKIT_DFB_USE_GUI_1=""
52839     fi
52840
52841     COND_TOOLKIT_GTK="#"
52842     if test "x$TOOLKIT" = "xGTK" ; then
52843         COND_TOOLKIT_GTK=""
52844     fi
52845
52846     COND_TOOLKIT_GTK_TOOLKIT_VERSION_="#"
52847     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" ; then
52848         COND_TOOLKIT_GTK_TOOLKIT_VERSION_=""
52849     fi
52850
52851     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2="#"
52852     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" ; then
52853         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2=""
52854     fi
52855
52856     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1="#"
52857     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" ; then
52858         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1=""
52859     fi
52860
52861     COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0="#"
52862     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x2" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52863         COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0=""
52864     fi
52865
52866     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1="#"
52867     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" ; then
52868         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1=""
52869     fi
52870
52871     COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0="#"
52872     if test "x$TOOLKIT" = "xGTK" -a "x$TOOLKIT_VERSION" = "x" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52873         COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0=""
52874     fi
52875
52876     COND_TOOLKIT_GTK_USE_GUI_1="#"
52877     if test "x$TOOLKIT" = "xGTK" -a "x$USE_GUI" = "x1" ; then
52878         COND_TOOLKIT_GTK_USE_GUI_1=""
52879     fi
52880
52881     COND_TOOLKIT_MAC="#"
52882     if test "x$TOOLKIT" = "xMAC" ; then
52883         COND_TOOLKIT_MAC=""
52884     fi
52885
52886     COND_TOOLKIT_MAC_USE_GUI_1="#"
52887     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" ; then
52888         COND_TOOLKIT_MAC_USE_GUI_1=""
52889     fi
52890
52891     COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0="#"
52892     if test "x$TOOLKIT" = "xMAC" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52893         COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0=""
52894     fi
52895
52896     COND_TOOLKIT_MGL="#"
52897     if test "x$TOOLKIT" = "xMGL" ; then
52898         COND_TOOLKIT_MGL=""
52899     fi
52900
52901     COND_TOOLKIT_MGL_USE_GUI_1="#"
52902     if test "x$TOOLKIT" = "xMGL" -a "x$USE_GUI" = "x1" ; then
52903         COND_TOOLKIT_MGL_USE_GUI_1=""
52904     fi
52905
52906     COND_TOOLKIT_MOTIF="#"
52907     if test "x$TOOLKIT" = "xMOTIF" ; then
52908         COND_TOOLKIT_MOTIF=""
52909     fi
52910
52911     COND_TOOLKIT_MOTIF_USE_GUI_1="#"
52912     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" ; then
52913         COND_TOOLKIT_MOTIF_USE_GUI_1=""
52914     fi
52915
52916     COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0="#"
52917     if test "x$TOOLKIT" = "xMOTIF" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52918         COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0=""
52919     fi
52920
52921     COND_TOOLKIT_MSW="#"
52922     if test "x$TOOLKIT" = "xMSW" ; then
52923         COND_TOOLKIT_MSW=""
52924     fi
52925
52926     COND_TOOLKIT_MSW_USE_GUI_1="#"
52927     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" ; then
52928         COND_TOOLKIT_MSW_USE_GUI_1=""
52929     fi
52930
52931     COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0="#"
52932     if test "x$TOOLKIT" = "xMSW" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52933         COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0=""
52934     fi
52935
52936     COND_TOOLKIT_MSW_WXUNIV_0="#"
52937     if test "x$TOOLKIT" = "xMSW" -a "x$WXUNIV" = "x0" ; then
52938         COND_TOOLKIT_MSW_WXUNIV_0=""
52939     fi
52940
52941     COND_TOOLKIT_PM="#"
52942     if test "x$TOOLKIT" = "xPM" ; then
52943         COND_TOOLKIT_PM=""
52944     fi
52945
52946     COND_TOOLKIT_PM_USE_GUI_1="#"
52947     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" ; then
52948         COND_TOOLKIT_PM_USE_GUI_1=""
52949     fi
52950
52951     COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0="#"
52952     if test "x$TOOLKIT" = "xPM" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52953         COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0=""
52954     fi
52955
52956     COND_TOOLKIT_WINCE="#"
52957     if test "x$TOOLKIT" = "xWINCE" ; then
52958         COND_TOOLKIT_WINCE=""
52959     fi
52960
52961     COND_TOOLKIT_WINCE_USE_GUI_1="#"
52962     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" ; then
52963         COND_TOOLKIT_WINCE_USE_GUI_1=""
52964     fi
52965
52966     COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0="#"
52967     if test "x$TOOLKIT" = "xWINCE" -a "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
52968         COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0=""
52969     fi
52970
52971     COND_TOOLKIT_WINCE_WXUNIV_0="#"
52972     if test "x$TOOLKIT" = "xWINCE" -a "x$WXUNIV" = "x0" ; then
52973         COND_TOOLKIT_WINCE_WXUNIV_0=""
52974     fi
52975
52976     COND_TOOLKIT_X11="#"
52977     if test "x$TOOLKIT" = "xX11" ; then
52978         COND_TOOLKIT_X11=""
52979     fi
52980
52981     COND_TOOLKIT_X11_USE_GUI_1="#"
52982     if test "x$TOOLKIT" = "xX11" -a "x$USE_GUI" = "x1" ; then
52983         COND_TOOLKIT_X11_USE_GUI_1=""
52984     fi
52985
52986     COND_UNICODE_1="#"
52987     if test "x$UNICODE" = "x1" ; then
52988         COND_UNICODE_1=""
52989     fi
52990
52991     COND_USE_EXCEPTIONS_0="#"
52992     if test "x$USE_EXCEPTIONS" = "x0" ; then
52993         COND_USE_EXCEPTIONS_0=""
52994     fi
52995
52996     COND_USE_EXCEPTIONS_1="#"
52997     if test "x$USE_EXCEPTIONS" = "x1" ; then
52998         COND_USE_EXCEPTIONS_1=""
52999     fi
53000
53001     COND_USE_GUI_0="#"
53002     if test "x$USE_GUI" = "x0" ; then
53003         COND_USE_GUI_0=""
53004     fi
53005
53006     COND_USE_GUI_1="#"
53007     if test "x$USE_GUI" = "x1" ; then
53008         COND_USE_GUI_1=""
53009     fi
53010
53011     COND_USE_GUI_1_USE_OPENGL_1="#"
53012     if test "x$USE_GUI" = "x1" -a "x$USE_OPENGL" = "x1" ; then
53013         COND_USE_GUI_1_USE_OPENGL_1=""
53014     fi
53015
53016     COND_USE_GUI_1_WXUNIV_0="#"
53017     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x0" ; then
53018         COND_USE_GUI_1_WXUNIV_0=""
53019     fi
53020
53021     COND_USE_GUI_1_WXUNIV_1="#"
53022     if test "x$USE_GUI" = "x1" -a "x$WXUNIV" = "x1" ; then
53023         COND_USE_GUI_1_WXUNIV_1=""
53024     fi
53025
53026     COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN="#"
53027     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53028         COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN=""
53029     fi
53030
53031     COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN="#"
53032     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53033         COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN=""
53034     fi
53035
53036     COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN="#"
53037     if test "x$USE_GUI" = "x1" -a "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53038         COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN=""
53039     fi
53040
53041     COND_USE_ODBC_1="#"
53042     if test "x$USE_ODBC" = "x1" ; then
53043         COND_USE_ODBC_1=""
53044     fi
53045
53046     COND_USE_OPENGL_1="#"
53047     if test "x$USE_OPENGL" = "x1" ; then
53048         COND_USE_OPENGL_1=""
53049     fi
53050
53051     COND_USE_PCH_1="#"
53052     if test "x$USE_PCH" = "x1" ; then
53053         COND_USE_PCH_1=""
53054     fi
53055
53056     COND_USE_PLUGINS_0="#"
53057     if test "x$USE_PLUGINS" = "x0" ; then
53058         COND_USE_PLUGINS_0=""
53059     fi
53060
53061     COND_USE_RTTI_0="#"
53062     if test "x$USE_RTTI" = "x0" ; then
53063         COND_USE_RTTI_0=""
53064     fi
53065
53066     COND_USE_RTTI_1="#"
53067     if test "x$USE_RTTI" = "x1" ; then
53068         COND_USE_RTTI_1=""
53069     fi
53070
53071     COND_USE_SOSYMLINKS_1="#"
53072     if test "x$USE_SOSYMLINKS" = "x1" ; then
53073         COND_USE_SOSYMLINKS_1=""
53074     fi
53075
53076     COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1="#"
53077     if test "x$USE_SOVERCYGWIN" = "x1" -a "x$USE_SOVERSION" = "x1" ; then
53078         COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1=""
53079     fi
53080
53081     COND_USE_SOVERLINUX_1="#"
53082     if test "x$USE_SOVERLINUX" = "x1" ; then
53083         COND_USE_SOVERLINUX_1=""
53084     fi
53085
53086     COND_USE_SOVERSION_0="#"
53087     if test "x$USE_SOVERSION" = "x0" ; then
53088         COND_USE_SOVERSION_0=""
53089     fi
53090
53091     COND_USE_SOVERSOLARIS_1="#"
53092     if test "x$USE_SOVERSOLARIS" = "x1" ; then
53093         COND_USE_SOVERSOLARIS_1=""
53094     fi
53095
53096     COND_USE_STC_1="#"
53097     if test "x$USE_STC" = "x1" ; then
53098         COND_USE_STC_1=""
53099     fi
53100
53101     COND_USE_THREADS_0="#"
53102     if test "x$USE_THREADS" = "x0" ; then
53103         COND_USE_THREADS_0=""
53104     fi
53105
53106     COND_USE_THREADS_1="#"
53107     if test "x$USE_THREADS" = "x1" ; then
53108         COND_USE_THREADS_1=""
53109     fi
53110
53111     COND_USE_XRC_1="#"
53112     if test "x$USE_XRC" = "x1" ; then
53113         COND_USE_XRC_1=""
53114     fi
53115
53116     COND_WINDOWS_IMPLIB_1="#"
53117     if test "x$WINDOWS_IMPLIB" = "x1" ; then
53118         COND_WINDOWS_IMPLIB_1=""
53119     fi
53120
53121     COND_WITH_PLUGIN_SDL_1="#"
53122     if test "x$WITH_PLUGIN_SDL" = "x1" ; then
53123         COND_WITH_PLUGIN_SDL_1=""
53124     fi
53125
53126     COND_WXUNIV_0="#"
53127     if test "x$WXUNIV" = "x0" ; then
53128         COND_WXUNIV_0=""
53129     fi
53130
53131     COND_WXUNIV_1="#"
53132     if test "x$WXUNIV" = "x1" ; then
53133         COND_WXUNIV_1=""
53134     fi
53135
53136     COND_WXUSE_EXPAT_BUILTIN="#"
53137     if test "x$wxUSE_EXPAT" = "xbuiltin" ; then
53138         COND_WXUSE_EXPAT_BUILTIN=""
53139     fi
53140
53141     COND_WXUSE_LIBJPEG_BUILTIN="#"
53142     if test "x$wxUSE_LIBJPEG" = "xbuiltin" ; then
53143         COND_WXUSE_LIBJPEG_BUILTIN=""
53144     fi
53145
53146     COND_WXUSE_LIBPNG_BUILTIN="#"
53147     if test "x$wxUSE_LIBPNG" = "xbuiltin" ; then
53148         COND_WXUSE_LIBPNG_BUILTIN=""
53149     fi
53150
53151     COND_WXUSE_LIBTIFF_BUILTIN="#"
53152     if test "x$wxUSE_LIBTIFF" = "xbuiltin" ; then
53153         COND_WXUSE_LIBTIFF_BUILTIN=""
53154     fi
53155
53156     COND_WXUSE_ODBC_BUILTIN="#"
53157     if test "x$wxUSE_ODBC" = "xbuiltin" ; then
53158         COND_WXUSE_ODBC_BUILTIN=""
53159     fi
53160
53161     COND_WXUSE_REGEX_BUILTIN="#"
53162     if test "x$wxUSE_REGEX" = "xbuiltin" ; then
53163         COND_WXUSE_REGEX_BUILTIN=""
53164     fi
53165
53166     COND_WXUSE_ZLIB_BUILTIN="#"
53167     if test "x$wxUSE_ZLIB" = "xbuiltin" ; then
53168         COND_WXUSE_ZLIB_BUILTIN=""
53169     fi
53170
53171
53172
53173     if test "$BAKEFILE_AUTOCONF_INC_M4_VERSION" = "" ; then
53174         { { 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
53175 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;}
53176    { (exit 1); exit 1; }; }
53177     fi
53178
53179     if test "$BAKEFILE_BAKEFILE_M4_VERSION" != "$BAKEFILE_AUTOCONF_INC_M4_VERSION" ; then
53180         { { 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
53181 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;}
53182    { (exit 1); exit 1; }; }
53183     fi
53184
53185
53186 if test $GCC_PCH = 1
53187 then
53188     if test "$wx_cv_gcc_pch_bug" = yes; then
53189         { echo "$as_me:$LINENO: WARNING: *** Precompiled header support is broken on this compiler" >&5
53190 echo "$as_me: WARNING: *** Precompiled header support is broken on this compiler" >&2;}
53191         { echo "$as_me:$LINENO: WARNING: *** --enable-precomp-headers is not recommended" >&5
53192 echo "$as_me: WARNING: *** --enable-precomp-headers is not recommended" >&2;}
53193         { echo "$as_me:$LINENO: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&5
53194 echo "$as_me: WARNING: *** see http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13361" >&2;}
53195     fi
53196
53197     CPPFLAGS="-DWX_PRECOMP $CPPFLAGS"
53198 fi
53199
53200
53201 if test "$wxUSE_MAC" = 1 ; then
53202     if test "x$wxUSE_UNIVERSAL_BINARY" != "xno" ; then
53203         sed "s/DEPSMODE=gcc/DEPSMODE=none/" < bk-deps > temp
53204         mv temp bk-deps
53205         chmod +x bk-deps
53206     fi
53207 fi
53208
53209 if test "$wxUSE_SHARED" = "yes"; then
53210
53211                             sanitised_bakefile_mess=`echo "$SHARED_LD_CXX" | tr -d '()'`
53212     EXE_LINKER=`eval echo "$sanitised_bakefile_mess"`
53213
53214                 case "${host}" in
53215       *-pc-os2_emx | *-pc-os2-emx )
53216         SHARED_LD_CC="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53217         SHARED_LD_CXX="`pwd`/dllar.sh -name-mangler-script ./dllnames.sh -libf INITINSTANCE -libf TERMINSTANCE -o"
53218         cp -p ${srcdir}/src/os2/dllnames.sh .
53219         cp -p ${srcdir}/src/os2/dllar.sh .
53220       ;;
53221     esac
53222 else
53223
53224         EXE_LINKER="$CXX -o"
53225
53226 fi
53227 if test "$wxUSE_OMF" = "yes"; then
53228     case "${host}" in
53229       *-pc-os2_emx | *-pc-os2-emx )
53230         LDFLAGS="$LDFLAGS -Zlinker /EXEPACK"
53231         LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53232         WXCONFIG_LDFLAGS_GUI="-Zlinker /PMTYPE:PM"
53233       ;;
53234     esac
53235 fi
53236
53237 WXCONFIG_CPPFLAGS="$WXCONFIG_CPPFLAGS $TOOLCHAIN_DEFS"
53238
53239
53240 case "${host}" in
53241     *-*-solaris2* )
53242                         if "$GCC" = yes; then
53243             CPPFLAGS=`echo $CPPFLAGS | sed 's/-mt//'`
53244             LIBS=`echo $LIBS | sed 's/-mt//'`
53245             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-mt//'`
53246         fi
53247         ;;
53248
53249     *-*-linux* )
53250                         if test "x$SUNCXX" = xyes; then
53251             CPPFLAGS=`echo $CPPFLAGS | sed 's/-pthread//'`
53252             LIBS=`echo $LIBS | sed 's/-pthread//'`
53253             EXTRALIBS_GUI=`echo $EXTRALIBS_GUI | sed 's/-pthread//'`
53254         fi
53255         ;;
53256 esac
53257
53258 CFLAGS="$CFLAGS $CFLAGS_VISIBILITY"
53259 CXXFLAGS="$CXXFLAGS $CXXFLAGS_VISIBILITY"
53260
53261 SAMPLES_SUBDIRS="`echo $SAMPLES_SUBDIRS | tr -s ' ' | tr ' ' '\n' | sort | uniq | tr '\n' ' '| tr -d '\r'`"
53262
53263
53264
53265
53266
53267
53268
53269
53270
53271
53272
53273
53274
53275
53276
53277
53278
53279
53280
53281
53282
53283
53284
53285
53286
53287
53288
53289
53290
53291
53292
53293
53294
53295
53296
53297
53298
53299
53300
53301
53302
53303
53304
53305
53306
53307
53308
53309
53310
53311
53312
53313
53314
53315
53316
53317
53318
53319
53320
53321
53322
53323 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
53324 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
53325 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
53326 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
53327   echo $ECHO_N "(cached) $ECHO_C" >&6
53328 else
53329   cat >conftest.make <<\_ACEOF
53330 SHELL = /bin/sh
53331 all:
53332         @echo '@@@%%%=$(MAKE)=@@@%%%'
53333 _ACEOF
53334 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
53335 case `${MAKE-make} -f conftest.make 2>/dev/null` in
53336   *@@@%%%=?*=@@@%%%*)
53337     eval ac_cv_prog_make_${ac_make}_set=yes;;
53338   *)
53339     eval ac_cv_prog_make_${ac_make}_set=no;;
53340 esac
53341 rm -f conftest.make
53342 fi
53343 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
53344   { echo "$as_me:$LINENO: result: yes" >&5
53345 echo "${ECHO_T}yes" >&6; }
53346   SET_MAKE=
53347 else
53348   { echo "$as_me:$LINENO: result: no" >&5
53349 echo "${ECHO_T}no" >&6; }
53350   SET_MAKE="MAKE=${MAKE-make}"
53351 fi
53352
53353
53354
53355 ac_config_headers="$ac_config_headers lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in"
53356
53357
53358 if test "$USE_WIN32" = 1; then
53359     ac_config_commands="$ac_config_commands
53360             rcdefs.h
53361         "
53362
53363 fi
53364
53365 ac_config_files="$ac_config_files lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in"
53366
53367
53368 ac_config_files="$ac_config_files lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in"
53369
53370
53371 if test "$wx_cv_version_script" = "yes"; then
53372     ac_config_files="$ac_config_files version-script"
53373
53374 fi
53375 ac_config_files="$ac_config_files Makefile"
53376
53377
53378 ac_config_commands="$ac_config_commands wx-config"
53379
53380
53381
53382 if test "$wxWITH_SUBDIRS" != "no"; then
53383 if test "$wxUSE_GUI" = "yes"; then
53384     SUBDIRS="samples demos utils"
53385 else         SUBDIRS="samples utils"
53386 fi
53387
53388
53389
53390 # Check whether --with-cppunit-prefix was given.
53391 if test "${with_cppunit_prefix+set}" = set; then
53392   withval=$with_cppunit_prefix; cppunit_config_prefix="$withval"
53393 else
53394   cppunit_config_prefix=""
53395 fi
53396
53397
53398 # Check whether --with-cppunit-exec-prefix was given.
53399 if test "${with_cppunit_exec_prefix+set}" = set; then
53400   withval=$with_cppunit_exec_prefix; cppunit_config_exec_prefix="$withval"
53401 else
53402   cppunit_config_exec_prefix=""
53403 fi
53404
53405
53406   if test x$cppunit_config_exec_prefix != x ; then
53407      cppunit_config_args="$cppunit_config_args --exec-prefix=$cppunit_config_exec_prefix"
53408      if test x${CPPUNIT_CONFIG+set} != xset ; then
53409         CPPUNIT_CONFIG=$cppunit_config_exec_prefix/bin/cppunit-config
53410      fi
53411   fi
53412   if test x$cppunit_config_prefix != x ; then
53413      cppunit_config_args="$cppunit_config_args --prefix=$cppunit_config_prefix"
53414      if test x${CPPUNIT_CONFIG+set} != xset ; then
53415         CPPUNIT_CONFIG=$cppunit_config_prefix/bin/cppunit-config
53416      fi
53417   fi
53418
53419   # Extract the first word of "cppunit-config", so it can be a program name with args.
53420 set dummy cppunit-config; ac_word=$2
53421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
53422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
53423 if test "${ac_cv_path_CPPUNIT_CONFIG+set}" = set; then
53424   echo $ECHO_N "(cached) $ECHO_C" >&6
53425 else
53426   case $CPPUNIT_CONFIG in
53427   [\\/]* | ?:[\\/]*)
53428   ac_cv_path_CPPUNIT_CONFIG="$CPPUNIT_CONFIG" # Let the user override the test with a path.
53429   ;;
53430   *)
53431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53432 for as_dir in $PATH
53433 do
53434   IFS=$as_save_IFS
53435   test -z "$as_dir" && as_dir=.
53436   for ac_exec_ext in '' $ac_executable_extensions; do
53437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
53438     ac_cv_path_CPPUNIT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
53439     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
53440     break 2
53441   fi
53442 done
53443 done
53444 IFS=$as_save_IFS
53445
53446   test -z "$ac_cv_path_CPPUNIT_CONFIG" && ac_cv_path_CPPUNIT_CONFIG="no"
53447   ;;
53448 esac
53449 fi
53450 CPPUNIT_CONFIG=$ac_cv_path_CPPUNIT_CONFIG
53451 if test -n "$CPPUNIT_CONFIG"; then
53452   { echo "$as_me:$LINENO: result: $CPPUNIT_CONFIG" >&5
53453 echo "${ECHO_T}$CPPUNIT_CONFIG" >&6; }
53454 else
53455   { echo "$as_me:$LINENO: result: no" >&5
53456 echo "${ECHO_T}no" >&6; }
53457 fi
53458
53459
53460   cppunit_version_min=1.8.0
53461
53462   { echo "$as_me:$LINENO: checking for Cppunit - version >= $cppunit_version_min" >&5
53463 echo $ECHO_N "checking for Cppunit - version >= $cppunit_version_min... $ECHO_C" >&6; }
53464   no_cppunit=""
53465   if test "$CPPUNIT_CONFIG" = "no" ; then
53466     { echo "$as_me:$LINENO: result: no" >&5
53467 echo "${ECHO_T}no" >&6; }
53468     no_cppunit=yes
53469   else
53470     CPPUNIT_CFLAGS=`$CPPUNIT_CONFIG --cflags`
53471     CPPUNIT_LIBS=`$CPPUNIT_CONFIG --libs`
53472     cppunit_version=`$CPPUNIT_CONFIG --version`
53473
53474     cppunit_major_version=`echo $cppunit_version | \
53475            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53476     cppunit_minor_version=`echo $cppunit_version | \
53477            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53478     cppunit_micro_version=`echo $cppunit_version | \
53479            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53480
53481     cppunit_major_min=`echo $cppunit_version_min | \
53482            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
53483     cppunit_minor_min=`echo $cppunit_version_min | \
53484            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
53485     cppunit_micro_min=`echo $cppunit_version_min | \
53486            sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
53487
53488     cppunit_version_proper=`expr \
53489         $cppunit_major_version \> $cppunit_major_min \| \
53490         $cppunit_major_version \= $cppunit_major_min \& \
53491         $cppunit_minor_version \> $cppunit_minor_min \| \
53492         $cppunit_major_version \= $cppunit_major_min \& \
53493         $cppunit_minor_version \= $cppunit_minor_min \& \
53494         $cppunit_micro_version \>= $cppunit_micro_min `
53495
53496     if test "$cppunit_version_proper" = "1" ; then
53497       { echo "$as_me:$LINENO: result: $cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&5
53498 echo "${ECHO_T}$cppunit_major_version.$cppunit_minor_version.$cppunit_micro_version" >&6; }
53499     else
53500       { echo "$as_me:$LINENO: result: no" >&5
53501 echo "${ECHO_T}no" >&6; }
53502       no_cppunit=yes
53503     fi
53504   fi
53505
53506   if test "x$no_cppunit" = x ; then
53507      SUBDIRS="$SUBDIRS tests"
53508   else
53509      CPPUNIT_CFLAGS=""
53510      CPPUNIT_LIBS=""
53511      :
53512   fi
53513
53514
53515
53516
53517
53518 for subdir in `echo $SUBDIRS`; do
53519     if test -d ${srcdir}/${subdir} ; then
53520         if test "$wxUSE_GUI" = "yes"; then
53521             if test ${subdir} = "samples"; then
53522                                                 makefiles="samples/Makefile.in $makefiles"
53523                 for sample in `echo $SAMPLES_SUBDIRS`; do
53524                     if test -d $srcdir/samples/$sample; then
53525                         makefiles="samples/$sample/Makefile.in $makefiles"
53526                     fi
53527                 done
53528             else
53529                                                                 disabled_var=DISABLED_`echo $subdir | tr [a-z] [A-Z]`;
53530                 eval "disabled=\$$disabled_var"
53531                 disabled=/`echo X $disabled | sed 's@ @/|/@g'`/
53532                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in) | $EGREP -v "$disabled"`
53533             fi
53534         else                                     if test ${subdir} = "samples"; then
53535                 makefiles="samples/Makefile.in samples/console/Makefile.in"
53536             elif test ${subdir} = "utils"; then
53537                 makefiles=""
53538                 for util in HelpGen tex2rtf ; do
53539                     if test -d $srcdir/utils/$util ; then
53540                         makefiles="utils/$util/Makefile.in \
53541                                    utils/$util/src/Makefile.in \
53542                                    $makefiles"
53543                     fi
53544                 done
53545             else                 makefiles=`(cd $srcdir ; find $subdir -name Makefile.in)`
53546             fi
53547         fi
53548
53549         for mkin in $makefiles ; do
53550             mk=`echo $mkin | sed 's/Makefile\.in/Makefile/g'`
53551             ac_config_files="$ac_config_files $mk"
53552
53553         done
53554     fi
53555 done
53556 fi
53557 cat >confcache <<\_ACEOF
53558 # This file is a shell script that caches the results of configure
53559 # tests run on this system so they can be shared between configure
53560 # scripts and configure runs, see configure's option --config-cache.
53561 # It is not useful on other systems.  If it contains results you don't
53562 # want to keep, you may remove or edit it.
53563 #
53564 # config.status only pays attention to the cache file if you give it
53565 # the --recheck option to rerun configure.
53566 #
53567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
53568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
53569 # following values.
53570
53571 _ACEOF
53572
53573 # The following way of writing the cache mishandles newlines in values,
53574 # but we know of no workaround that is simple, portable, and efficient.
53575 # So, we kill variables containing newlines.
53576 # Ultrix sh set writes to stderr and can't be redirected directly,
53577 # and sets the high bit in the cache file unless we assign to the vars.
53578 (
53579   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
53580     eval ac_val=\$$ac_var
53581     case $ac_val in #(
53582     *${as_nl}*)
53583       case $ac_var in #(
53584       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
53585 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
53586       esac
53587       case $ac_var in #(
53588       _ | IFS | as_nl) ;; #(
53589       *) $as_unset $ac_var ;;
53590       esac ;;
53591     esac
53592   done
53593
53594   (set) 2>&1 |
53595     case $as_nl`(ac_space=' '; set) 2>&1` in #(
53596     *${as_nl}ac_space=\ *)
53597       # `set' does not quote correctly, so add quotes (double-quote
53598       # substitution turns \\\\ into \\, and sed turns \\ into \).
53599       sed -n \
53600         "s/'/'\\\\''/g;
53601           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
53602       ;; #(
53603     *)
53604       # `set' quotes correctly as required by POSIX, so do not add quotes.
53605       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
53606       ;;
53607     esac |
53608     sort
53609 ) |
53610   sed '
53611      /^ac_cv_env_/b end
53612      t clear
53613      :clear
53614      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
53615      t end
53616      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
53617      :end' >>confcache
53618 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
53619   if test -w "$cache_file"; then
53620     test "x$cache_file" != "x/dev/null" &&
53621       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
53622 echo "$as_me: updating cache $cache_file" >&6;}
53623     cat confcache >$cache_file
53624   else
53625     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
53626 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
53627   fi
53628 fi
53629 rm -f confcache
53630
53631 test "x$prefix" = xNONE && prefix=$ac_default_prefix
53632 # Let make expand exec_prefix.
53633 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
53634
53635 DEFS=-DHAVE_CONFIG_H
53636
53637 ac_libobjs=
53638 ac_ltlibobjs=
53639 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
53640   # 1. Remove the extension, and $U if already installed.
53641   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
53642   ac_i=`echo "$ac_i" | sed "$ac_script"`
53643   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
53644   #    will be set to the directory where LIBOBJS objects are built.
53645   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
53646   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
53647 done
53648 LIBOBJS=$ac_libobjs
53649
53650 LTLIBOBJS=$ac_ltlibobjs
53651
53652
53653
53654 : ${CONFIG_STATUS=./config.status}
53655 ac_clean_files_save=$ac_clean_files
53656 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
53657 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
53658 echo "$as_me: creating $CONFIG_STATUS" >&6;}
53659 cat >$CONFIG_STATUS <<_ACEOF
53660 #! $SHELL
53661 # Generated by $as_me.
53662 # Run this file to recreate the current configuration.
53663 # Compiler output produced by configure, useful for debugging
53664 # configure, is in config.log if it exists.
53665
53666 debug=false
53667 ac_cs_recheck=false
53668 ac_cs_silent=false
53669 SHELL=\${CONFIG_SHELL-$SHELL}
53670 _ACEOF
53671
53672 cat >>$CONFIG_STATUS <<\_ACEOF
53673 ## --------------------- ##
53674 ## M4sh Initialization.  ##
53675 ## --------------------- ##
53676
53677 # Be more Bourne compatible
53678 DUALCASE=1; export DUALCASE # for MKS sh
53679 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
53680   emulate sh
53681   NULLCMD=:
53682   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
53683   # is contrary to our usage.  Disable this feature.
53684   alias -g '${1+"$@"}'='"$@"'
53685   setopt NO_GLOB_SUBST
53686 else
53687   case `(set -o) 2>/dev/null` in
53688   *posix*) set -o posix ;;
53689 esac
53690
53691 fi
53692
53693
53694
53695
53696 # PATH needs CR
53697 # Avoid depending upon Character Ranges.
53698 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
53699 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
53700 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
53701 as_cr_digits='0123456789'
53702 as_cr_alnum=$as_cr_Letters$as_cr_digits
53703
53704 # The user is always right.
53705 if test "${PATH_SEPARATOR+set}" != set; then
53706   echo "#! /bin/sh" >conf$$.sh
53707   echo  "exit 0"   >>conf$$.sh
53708   chmod +x conf$$.sh
53709   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53710     PATH_SEPARATOR=';'
53711   else
53712     PATH_SEPARATOR=:
53713   fi
53714   rm -f conf$$.sh
53715 fi
53716
53717 # Support unset when possible.
53718 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53719   as_unset=unset
53720 else
53721   as_unset=false
53722 fi
53723
53724
53725 # IFS
53726 # We need space, tab and new line, in precisely that order.  Quoting is
53727 # there to prevent editors from complaining about space-tab.
53728 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
53729 # splitting by setting IFS to empty value.)
53730 as_nl='
53731 '
53732 IFS=" ""        $as_nl"
53733
53734 # Find who we are.  Look in the path if we contain no directory separator.
53735 case $0 in
53736   *[\\/]* ) as_myself=$0 ;;
53737   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
53738 for as_dir in $PATH
53739 do
53740   IFS=$as_save_IFS
53741   test -z "$as_dir" && as_dir=.
53742   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
53743 done
53744 IFS=$as_save_IFS
53745
53746      ;;
53747 esac
53748 # We did not find ourselves, most probably we were run as `sh COMMAND'
53749 # in which case we are not to be found in the path.
53750 if test "x$as_myself" = x; then
53751   as_myself=$0
53752 fi
53753 if test ! -f "$as_myself"; then
53754   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
53755   { (exit 1); exit 1; }
53756 fi
53757
53758 # Work around bugs in pre-3.0 UWIN ksh.
53759 for as_var in ENV MAIL MAILPATH
53760 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53761 done
53762 PS1='$ '
53763 PS2='> '
53764 PS4='+ '
53765
53766 # NLS nuisances.
53767 for as_var in \
53768   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
53769   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
53770   LC_TELEPHONE LC_TIME
53771 do
53772   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53773     eval $as_var=C; export $as_var
53774   else
53775     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
53776   fi
53777 done
53778
53779 # Required to use basename.
53780 if expr a : '\(a\)' >/dev/null 2>&1 &&
53781    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53782   as_expr=expr
53783 else
53784   as_expr=false
53785 fi
53786
53787 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
53788   as_basename=basename
53789 else
53790   as_basename=false
53791 fi
53792
53793
53794 # Name of the executable.
53795 as_me=`$as_basename -- "$0" ||
53796 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
53797          X"$0" : 'X\(//\)$' \| \
53798          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
53799 echo X/"$0" |
53800     sed '/^.*\/\([^/][^/]*\)\/*$/{
53801             s//\1/
53802             q
53803           }
53804           /^X\/\(\/\/\)$/{
53805             s//\1/
53806             q
53807           }
53808           /^X\/\(\/\).*/{
53809             s//\1/
53810             q
53811           }
53812           s/.*/./; q'`
53813
53814 # CDPATH.
53815 $as_unset CDPATH
53816
53817
53818
53819   as_lineno_1=$LINENO
53820   as_lineno_2=$LINENO
53821   test "x$as_lineno_1" != "x$as_lineno_2" &&
53822   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
53823
53824   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
53825   # uniformly replaced by the line number.  The first 'sed' inserts a
53826   # line-number line after each line using $LINENO; the second 'sed'
53827   # does the real work.  The second script uses 'N' to pair each
53828   # line-number line with the line containing $LINENO, and appends
53829   # trailing '-' during substitution so that $LINENO is not a special
53830   # case at line end.
53831   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
53832   # scripts with optimization help from Paolo Bonzini.  Blame Lee
53833   # E. McMahon (1931-1989) for sed's syntax.  :-)
53834   sed -n '
53835     p
53836     /[$]LINENO/=
53837   ' <$as_myself |
53838     sed '
53839       s/[$]LINENO.*/&-/
53840       t lineno
53841       b
53842       :lineno
53843       N
53844       :loop
53845       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
53846       t loop
53847       s/-\n.*//
53848     ' >$as_me.lineno &&
53849   chmod +x "$as_me.lineno" ||
53850     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
53851    { (exit 1); exit 1; }; }
53852
53853   # Don't try to exec as it changes $[0], causing all sort of problems
53854   # (the dirname of $[0] is not the place where we might find the
53855   # original and so on.  Autoconf is especially sensitive to this).
53856   . "./$as_me.lineno"
53857   # Exit status is that of the last command.
53858   exit
53859 }
53860
53861
53862 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
53863   as_dirname=dirname
53864 else
53865   as_dirname=false
53866 fi
53867
53868 ECHO_C= ECHO_N= ECHO_T=
53869 case `echo -n x` in
53870 -n*)
53871   case `echo 'x\c'` in
53872   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
53873   *)   ECHO_C='\c';;
53874   esac;;
53875 *)
53876   ECHO_N='-n';;
53877 esac
53878
53879 if expr a : '\(a\)' >/dev/null 2>&1 &&
53880    test "X`expr 00001 : '.*\(...\)'`" = X001; then
53881   as_expr=expr
53882 else
53883   as_expr=false
53884 fi
53885
53886 rm -f conf$$ conf$$.exe conf$$.file
53887 if test -d conf$$.dir; then
53888   rm -f conf$$.dir/conf$$.file
53889 else
53890   rm -f conf$$.dir
53891   mkdir conf$$.dir
53892 fi
53893 echo >conf$$.file
53894 if ln -s conf$$.file conf$$ 2>/dev/null; then
53895   as_ln_s='ln -s'
53896   # ... but there are two gotchas:
53897   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
53898   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
53899   # In both cases, we have to default to `cp -p'.
53900   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
53901     as_ln_s='cp -p'
53902 elif ln conf$$.file conf$$ 2>/dev/null; then
53903   as_ln_s=ln
53904 else
53905   as_ln_s='cp -p'
53906 fi
53907 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
53908 rmdir conf$$.dir 2>/dev/null
53909
53910 if mkdir -p . 2>/dev/null; then
53911   as_mkdir_p=:
53912 else
53913   test -d ./-p && rmdir ./-p
53914   as_mkdir_p=false
53915 fi
53916
53917 if test -x / >/dev/null 2>&1; then
53918   as_test_x='test -x'
53919 else
53920   if ls -dL / >/dev/null 2>&1; then
53921     as_ls_L_option=L
53922   else
53923     as_ls_L_option=
53924   fi
53925   as_test_x='
53926     eval sh -c '\''
53927       if test -d "$1"; then
53928         test -d "$1/.";
53929       else
53930         case $1 in
53931         -*)set "./$1";;
53932         esac;
53933         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
53934         ???[sx]*):;;*)false;;esac;fi
53935     '\'' sh
53936   '
53937 fi
53938 as_executable_p=$as_test_x
53939
53940 # Sed expression to map a string onto a valid CPP name.
53941 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
53942
53943 # Sed expression to map a string onto a valid variable name.
53944 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
53945
53946
53947 exec 6>&1
53948
53949 # Save the log message, to keep $[0] and so on meaningful, and to
53950 # report actual input values of CONFIG_FILES etc. instead of their
53951 # values after options handling.
53952 ac_log="
53953 This file was extended by wxWidgets $as_me 2.9.0, which was
53954 generated by GNU Autoconf 2.61.  Invocation command line was
53955
53956   CONFIG_FILES    = $CONFIG_FILES
53957   CONFIG_HEADERS  = $CONFIG_HEADERS
53958   CONFIG_LINKS    = $CONFIG_LINKS
53959   CONFIG_COMMANDS = $CONFIG_COMMANDS
53960   $ $0 $@
53961
53962 on `(hostname || uname -n) 2>/dev/null | sed 1q`
53963 "
53964
53965 _ACEOF
53966
53967 cat >>$CONFIG_STATUS <<_ACEOF
53968 # Files that config.status was made for.
53969 config_files="$ac_config_files"
53970 config_headers="$ac_config_headers"
53971 config_commands="$ac_config_commands"
53972
53973 _ACEOF
53974
53975 cat >>$CONFIG_STATUS <<\_ACEOF
53976 ac_cs_usage="\
53977 \`$as_me' instantiates files from templates according to the
53978 current configuration.
53979
53980 Usage: $0 [OPTIONS] [FILE]...
53981
53982   -h, --help       print this help, then exit
53983   -V, --version    print version number and configuration settings, then exit
53984   -q, --quiet      do not print progress messages
53985   -d, --debug      don't remove temporary files
53986       --recheck    update $as_me by reconfiguring in the same conditions
53987   --file=FILE[:TEMPLATE]
53988                    instantiate the configuration file FILE
53989   --header=FILE[:TEMPLATE]
53990                    instantiate the configuration header FILE
53991
53992 Configuration files:
53993 $config_files
53994
53995 Configuration headers:
53996 $config_headers
53997
53998 Configuration commands:
53999 $config_commands
54000
54001 Report bugs to <bug-autoconf@gnu.org>."
54002
54003 _ACEOF
54004 cat >>$CONFIG_STATUS <<_ACEOF
54005 ac_cs_version="\\
54006 wxWidgets config.status 2.9.0
54007 configured by $0, generated by GNU Autoconf 2.61,
54008   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
54009
54010 Copyright (C) 2006 Free Software Foundation, Inc.
54011 This config.status script is free software; the Free Software Foundation
54012 gives unlimited permission to copy, distribute and modify it."
54013
54014 ac_pwd='$ac_pwd'
54015 srcdir='$srcdir'
54016 INSTALL='$INSTALL'
54017 _ACEOF
54018
54019 cat >>$CONFIG_STATUS <<\_ACEOF
54020 # If no file are specified by the user, then we need to provide default
54021 # value.  By we need to know if files were specified by the user.
54022 ac_need_defaults=:
54023 while test $# != 0
54024 do
54025   case $1 in
54026   --*=*)
54027     ac_option=`expr "X$1" : 'X\([^=]*\)='`
54028     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
54029     ac_shift=:
54030     ;;
54031   *)
54032     ac_option=$1
54033     ac_optarg=$2
54034     ac_shift=shift
54035     ;;
54036   esac
54037
54038   case $ac_option in
54039   # Handling of the options.
54040   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
54041     ac_cs_recheck=: ;;
54042   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
54043     echo "$ac_cs_version"; exit ;;
54044   --debug | --debu | --deb | --de | --d | -d )
54045     debug=: ;;
54046   --file | --fil | --fi | --f )
54047     $ac_shift
54048     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
54049     ac_need_defaults=false;;
54050   --header | --heade | --head | --hea )
54051     $ac_shift
54052     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
54053     ac_need_defaults=false;;
54054   --he | --h)
54055     # Conflict between --help and --header
54056     { echo "$as_me: error: ambiguous option: $1
54057 Try \`$0 --help' for more information." >&2
54058    { (exit 1); exit 1; }; };;
54059   --help | --hel | -h )
54060     echo "$ac_cs_usage"; exit ;;
54061   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
54062   | -silent | --silent | --silen | --sile | --sil | --si | --s)
54063     ac_cs_silent=: ;;
54064
54065   # This is an error.
54066   -*) { echo "$as_me: error: unrecognized option: $1
54067 Try \`$0 --help' for more information." >&2
54068    { (exit 1); exit 1; }; } ;;
54069
54070   *) ac_config_targets="$ac_config_targets $1"
54071      ac_need_defaults=false ;;
54072
54073   esac
54074   shift
54075 done
54076
54077 ac_configure_extra_args=
54078
54079 if $ac_cs_silent; then
54080   exec 6>/dev/null
54081   ac_configure_extra_args="$ac_configure_extra_args --silent"
54082 fi
54083
54084 _ACEOF
54085 cat >>$CONFIG_STATUS <<_ACEOF
54086 if \$ac_cs_recheck; then
54087   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
54088   CONFIG_SHELL=$SHELL
54089   export CONFIG_SHELL
54090   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
54091 fi
54092
54093 _ACEOF
54094 cat >>$CONFIG_STATUS <<\_ACEOF
54095 exec 5>>config.log
54096 {
54097   echo
54098   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
54099 ## Running $as_me. ##
54100 _ASBOX
54101   echo "$ac_log"
54102 } >&5
54103
54104 _ACEOF
54105 cat >>$CONFIG_STATUS <<_ACEOF
54106 #
54107 # INIT-COMMANDS
54108 #
54109
54110             CPP="$CPP"
54111             infile="$srcdir/include/wx/msw/genrcdefs.h"
54112             outdir="lib/wx/include/$TOOLCHAIN_FULLNAME/wx/msw"
54113
54114
54115  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54116  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54117  TOOLCHAIN_FULLNAME="${TOOLCHAIN_FULLNAME}"
54118                      LN_S="${LN_S}"
54119
54120
54121 _ACEOF
54122
54123 cat >>$CONFIG_STATUS <<\_ACEOF
54124
54125 # Handling of arguments.
54126 for ac_config_target in $ac_config_targets
54127 do
54128   case $ac_config_target in
54129     "lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/wx/include/${TOOLCHAIN_FULLNAME}/wx/setup.h:setup.h.in" ;;
54130     "rcdefs.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rcdefs.h" ;;
54131     "lib/wx/config/${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/${TOOLCHAIN_FULLNAME}:wx-config.in" ;;
54132     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}") CONFIG_FILES="$CONFIG_FILES lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}:wx-config-inplace.in" ;;
54133     "version-script") CONFIG_FILES="$CONFIG_FILES version-script" ;;
54134     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
54135     "wx-config") CONFIG_COMMANDS="$CONFIG_COMMANDS wx-config" ;;
54136     "$mk") CONFIG_FILES="$CONFIG_FILES $mk" ;;
54137
54138   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
54139 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
54140    { (exit 1); exit 1; }; };;
54141   esac
54142 done
54143
54144
54145 # If the user did not use the arguments to specify the items to instantiate,
54146 # then the envvar interface is used.  Set only those that are not.
54147 # We use the long form for the default assignment because of an extremely
54148 # bizarre bug on SunOS 4.1.3.
54149 if $ac_need_defaults; then
54150   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
54151   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
54152   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
54153 fi
54154
54155 # Have a temporary directory for convenience.  Make it in the build tree
54156 # simply because there is no reason against having it here, and in addition,
54157 # creating and moving files from /tmp can sometimes cause problems.
54158 # Hook for its removal unless debugging.
54159 # Note that there is a small window in which the directory will not be cleaned:
54160 # after its creation but before its name has been assigned to `$tmp'.
54161 $debug ||
54162 {
54163   tmp=
54164   trap 'exit_status=$?
54165   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
54166 ' 0
54167   trap '{ (exit 1); exit 1; }' 1 2 13 15
54168 }
54169 # Create a (secure) tmp directory for tmp files.
54170
54171 {
54172   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
54173   test -n "$tmp" && test -d "$tmp"
54174 }  ||
54175 {
54176   tmp=./conf$$-$RANDOM
54177   (umask 077 && mkdir "$tmp")
54178 } ||
54179 {
54180    echo "$me: cannot create a temporary directory in ." >&2
54181    { (exit 1); exit 1; }
54182 }
54183
54184 #
54185 # Set up the sed scripts for CONFIG_FILES section.
54186 #
54187
54188 # No need to generate the scripts if there are no CONFIG_FILES.
54189 # This happens for instance when ./config.status config.h
54190 if test -n "$CONFIG_FILES"; then
54191
54192 _ACEOF
54193
54194
54195
54196 ac_delim='%!_!# '
54197 for ac_last_try in false false false false false :; do
54198   cat >conf$$subs.sed <<_ACEOF
54199 SHELL!$SHELL$ac_delim
54200 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
54201 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
54202 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
54203 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
54204 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
54205 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
54206 exec_prefix!$exec_prefix$ac_delim
54207 prefix!$prefix$ac_delim
54208 program_transform_name!$program_transform_name$ac_delim
54209 bindir!$bindir$ac_delim
54210 sbindir!$sbindir$ac_delim
54211 libexecdir!$libexecdir$ac_delim
54212 datarootdir!$datarootdir$ac_delim
54213 datadir!$datadir$ac_delim
54214 sysconfdir!$sysconfdir$ac_delim
54215 sharedstatedir!$sharedstatedir$ac_delim
54216 localstatedir!$localstatedir$ac_delim
54217 includedir!$includedir$ac_delim
54218 oldincludedir!$oldincludedir$ac_delim
54219 docdir!$docdir$ac_delim
54220 infodir!$infodir$ac_delim
54221 htmldir!$htmldir$ac_delim
54222 dvidir!$dvidir$ac_delim
54223 pdfdir!$pdfdir$ac_delim
54224 psdir!$psdir$ac_delim
54225 libdir!$libdir$ac_delim
54226 localedir!$localedir$ac_delim
54227 mandir!$mandir$ac_delim
54228 DEFS!$DEFS$ac_delim
54229 ECHO_C!$ECHO_C$ac_delim
54230 ECHO_N!$ECHO_N$ac_delim
54231 ECHO_T!$ECHO_T$ac_delim
54232 LIBS!$LIBS$ac_delim
54233 build_alias!$build_alias$ac_delim
54234 host_alias!$host_alias$ac_delim
54235 target_alias!$target_alias$ac_delim
54236 build!$build$ac_delim
54237 build_cpu!$build_cpu$ac_delim
54238 build_vendor!$build_vendor$ac_delim
54239 build_os!$build_os$ac_delim
54240 host!$host$ac_delim
54241 host_cpu!$host_cpu$ac_delim
54242 host_vendor!$host_vendor$ac_delim
54243 host_os!$host_os$ac_delim
54244 target!$target$ac_delim
54245 target_cpu!$target_cpu$ac_delim
54246 target_vendor!$target_vendor$ac_delim
54247 target_os!$target_os$ac_delim
54248 wx_top_builddir!$wx_top_builddir$ac_delim
54249 CC!$CC$ac_delim
54250 CFLAGS!$CFLAGS$ac_delim
54251 LDFLAGS!$LDFLAGS$ac_delim
54252 CPPFLAGS!$CPPFLAGS$ac_delim
54253 ac_ct_CC!$ac_ct_CC$ac_delim
54254 EXEEXT!$EXEEXT$ac_delim
54255 OBJEXT!$OBJEXT$ac_delim
54256 CPP!$CPP$ac_delim
54257 GREP!$GREP$ac_delim
54258 EGREP!$EGREP$ac_delim
54259 CXX!$CXX$ac_delim
54260 CXXFLAGS!$CXXFLAGS$ac_delim
54261 ac_ct_CXX!$ac_ct_CXX$ac_delim
54262 RANLIB!$RANLIB$ac_delim
54263 AR!$AR$ac_delim
54264 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
54265 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
54266 INSTALL_DATA!$INSTALL_DATA$ac_delim
54267 STRIP!$STRIP$ac_delim
54268 WINDRES!$WINDRES$ac_delim
54269 DLLTOOL!$DLLTOOL$ac_delim
54270 IF_GNU_MAKE!$IF_GNU_MAKE$ac_delim
54271 LN_S!$LN_S$ac_delim
54272 subdirs!$subdirs$ac_delim
54273 PKG_CONFIG!$PKG_CONFIG$ac_delim
54274 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
54275 GTK_LIBS!$GTK_LIBS$ac_delim
54276 GTK_CONFIG!$GTK_CONFIG$ac_delim
54277 DIRECTFB_CFLAGS!$DIRECTFB_CFLAGS$ac_delim
54278 DIRECTFB_LIBS!$DIRECTFB_LIBS$ac_delim
54279 XMKMF!$XMKMF$ac_delim
54280 X_CFLAGS!$X_CFLAGS$ac_delim
54281 X_PRE_LIBS!$X_PRE_LIBS$ac_delim
54282 X_LIBS!$X_LIBS$ac_delim
54283 X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
54284 PANGOX_CFLAGS!$PANGOX_CFLAGS$ac_delim
54285 PANGOX_LIBS!$PANGOX_LIBS$ac_delim
54286 PANGOFT2_CFLAGS!$PANGOFT2_CFLAGS$ac_delim
54287 PANGOFT2_LIBS!$PANGOFT2_LIBS$ac_delim
54288 PANGOXFT_CFLAGS!$PANGOXFT_CFLAGS$ac_delim
54289 PANGOXFT_LIBS!$PANGOXFT_LIBS$ac_delim
54290 CFLAGS_VISIBILITY!$CFLAGS_VISIBILITY$ac_delim
54291 CXXFLAGS_VISIBILITY!$CXXFLAGS_VISIBILITY$ac_delim
54292 REZ!$REZ$ac_delim
54293 DEREZ!$DEREZ$ac_delim
54294 SETFILE!$SETFILE$ac_delim
54295 LIBICONV!$LIBICONV$ac_delim
54296 _ACEOF
54297
54298   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54299     break
54300   elif $ac_last_try; then
54301     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54302 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54303    { (exit 1); exit 1; }; }
54304   else
54305     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54306   fi
54307 done
54308
54309 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54310 if test -n "$ac_eof"; then
54311   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54312   ac_eof=`expr $ac_eof + 1`
54313 fi
54314
54315 cat >>$CONFIG_STATUS <<_ACEOF
54316 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
54317 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54318 _ACEOF
54319 sed '
54320 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54321 s/^/s,@/; s/!/@,|#_!!_#|/
54322 :n
54323 t n
54324 s/'"$ac_delim"'$/,g/; t
54325 s/$/\\/; p
54326 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54327 ' >>$CONFIG_STATUS <conf$$subs.sed
54328 rm -f conf$$subs.sed
54329 cat >>$CONFIG_STATUS <<_ACEOF
54330 CEOF$ac_eof
54331 _ACEOF
54332
54333
54334 ac_delim='%!_!# '
54335 for ac_last_try in false false false false false :; do
54336   cat >conf$$subs.sed <<_ACEOF
54337 SDL_CONFIG!$SDL_CONFIG$ac_delim
54338 SDL_CFLAGS!$SDL_CFLAGS$ac_delim
54339 SDL_LIBS!$SDL_LIBS$ac_delim
54340 LIBGNOMEPRINTUI_CFLAGS!$LIBGNOMEPRINTUI_CFLAGS$ac_delim
54341 LIBGNOMEPRINTUI_LIBS!$LIBGNOMEPRINTUI_LIBS$ac_delim
54342 GNOMEVFS_CFLAGS!$GNOMEVFS_CFLAGS$ac_delim
54343 GNOMEVFS_LIBS!$GNOMEVFS_LIBS$ac_delim
54344 HILDON_CFLAGS!$HILDON_CFLAGS$ac_delim
54345 HILDON_LIBS!$HILDON_LIBS$ac_delim
54346 CAIRO_CFLAGS!$CAIRO_CFLAGS$ac_delim
54347 CAIRO_LIBS!$CAIRO_LIBS$ac_delim
54348 GST_CFLAGS!$GST_CFLAGS$ac_delim
54349 GST_LIBS!$GST_LIBS$ac_delim
54350 ALL_WX_LIBS!$ALL_WX_LIBS$ac_delim
54351 BUILT_WX_LIBS!$BUILT_WX_LIBS$ac_delim
54352 STD_BASE_LIBS!$STD_BASE_LIBS$ac_delim
54353 STD_GUI_LIBS!$STD_GUI_LIBS$ac_delim
54354 wxUSE_ZLIB!$wxUSE_ZLIB$ac_delim
54355 wxUSE_REGEX!$wxUSE_REGEX$ac_delim
54356 wxUSE_EXPAT!$wxUSE_EXPAT$ac_delim
54357 wxUSE_ODBC!$wxUSE_ODBC$ac_delim
54358 wxUSE_LIBJPEG!$wxUSE_LIBJPEG$ac_delim
54359 wxUSE_LIBPNG!$wxUSE_LIBPNG$ac_delim
54360 wxUSE_LIBTIFF!$wxUSE_LIBTIFF$ac_delim
54361 VENDOR!$VENDOR$ac_delim
54362 OFFICIAL_BUILD!$OFFICIAL_BUILD$ac_delim
54363 WX_FLAVOUR!$WX_FLAVOUR$ac_delim
54364 WX_LIB_FLAVOUR!$WX_LIB_FLAVOUR$ac_delim
54365 WXUNIV!$WXUNIV$ac_delim
54366 MONOLITHIC!$MONOLITHIC$ac_delim
54367 USE_PLUGINS!$USE_PLUGINS$ac_delim
54368 CXXWARNINGS!$CXXWARNINGS$ac_delim
54369 EXTRALIBS!$EXTRALIBS$ac_delim
54370 EXTRALIBS_XML!$EXTRALIBS_XML$ac_delim
54371 EXTRALIBS_HTML!$EXTRALIBS_HTML$ac_delim
54372 EXTRALIBS_ODBC!$EXTRALIBS_ODBC$ac_delim
54373 EXTRALIBS_GUI!$EXTRALIBS_GUI$ac_delim
54374 EXTRALIBS_OPENGL!$EXTRALIBS_OPENGL$ac_delim
54375 EXTRALIBS_SDL!$EXTRALIBS_SDL$ac_delim
54376 WITH_PLUGIN_SDL!$WITH_PLUGIN_SDL$ac_delim
54377 EXTRALIBS_GNOMEPRINT!$EXTRALIBS_GNOMEPRINT$ac_delim
54378 EXTRALIBS_GNOMEVFS!$EXTRALIBS_GNOMEVFS$ac_delim
54379 EXTRALIBS_HILDON!$EXTRALIBS_HILDON$ac_delim
54380 UNICODE!$UNICODE$ac_delim
54381 BUILD!$BUILD$ac_delim
54382 DEBUG_INFO!$DEBUG_INFO$ac_delim
54383 DEBUG_FLAG!$DEBUG_FLAG$ac_delim
54384 TOOLKIT_LOWERCASE!$TOOLKIT_LOWERCASE$ac_delim
54385 TOOLKIT_VERSION!$TOOLKIT_VERSION$ac_delim
54386 SAMPLES_RPATH_FLAG!$SAMPLES_RPATH_FLAG$ac_delim
54387 SAMPLES_RPATH_POSTLINK!$SAMPLES_RPATH_POSTLINK$ac_delim
54388 HOST_SUFFIX!$HOST_SUFFIX$ac_delim
54389 CPPUNIT_CFLAGS!$CPPUNIT_CFLAGS$ac_delim
54390 CPPUNIT_LIBS!$CPPUNIT_LIBS$ac_delim
54391 SET_MAKE!$SET_MAKE$ac_delim
54392 MAKE_SET!$MAKE_SET$ac_delim
54393 AROPTIONS!$AROPTIONS$ac_delim
54394 NM!$NM$ac_delim
54395 INSTALL_DIR!$INSTALL_DIR$ac_delim
54396 LDFLAGS_GUI!$LDFLAGS_GUI$ac_delim
54397 PLATFORM_UNIX!$PLATFORM_UNIX$ac_delim
54398 PLATFORM_WIN32!$PLATFORM_WIN32$ac_delim
54399 PLATFORM_MSDOS!$PLATFORM_MSDOS$ac_delim
54400 PLATFORM_MAC!$PLATFORM_MAC$ac_delim
54401 PLATFORM_MACOS!$PLATFORM_MACOS$ac_delim
54402 PLATFORM_MACOSX!$PLATFORM_MACOSX$ac_delim
54403 PLATFORM_OS2!$PLATFORM_OS2$ac_delim
54404 PLATFORM_BEOS!$PLATFORM_BEOS$ac_delim
54405 SO_SUFFIX!$SO_SUFFIX$ac_delim
54406 SO_SUFFIX_MODULE!$SO_SUFFIX_MODULE$ac_delim
54407 DLLIMP_SUFFIX!$DLLIMP_SUFFIX$ac_delim
54408 LIBPREFIX!$LIBPREFIX$ac_delim
54409 LIBEXT!$LIBEXT$ac_delim
54410 DLLPREFIX!$DLLPREFIX$ac_delim
54411 DLLPREFIX_MODULE!$DLLPREFIX_MODULE$ac_delim
54412 dlldir!$dlldir$ac_delim
54413 AIX_CXX_LD!$AIX_CXX_LD$ac_delim
54414 SHARED_LD_CC!$SHARED_LD_CC$ac_delim
54415 SHARED_LD_CXX!$SHARED_LD_CXX$ac_delim
54416 SHARED_LD_MODULE_CC!$SHARED_LD_MODULE_CC$ac_delim
54417 SHARED_LD_MODULE_CXX!$SHARED_LD_MODULE_CXX$ac_delim
54418 PIC_FLAG!$PIC_FLAG$ac_delim
54419 WINDOWS_IMPLIB!$WINDOWS_IMPLIB$ac_delim
54420 USE_SOVERSION!$USE_SOVERSION$ac_delim
54421 USE_SOVERLINUX!$USE_SOVERLINUX$ac_delim
54422 USE_SOVERSOLARIS!$USE_SOVERSOLARIS$ac_delim
54423 USE_SOVERCYGWIN!$USE_SOVERCYGWIN$ac_delim
54424 USE_MACVERSION!$USE_MACVERSION$ac_delim
54425 USE_SOSYMLINKS!$USE_SOSYMLINKS$ac_delim
54426 SONAME_FLAG!$SONAME_FLAG$ac_delim
54427 DEPS_TRACKING!$DEPS_TRACKING$ac_delim
54428 BK_DEPS!$BK_DEPS$ac_delim
54429 GCC_PCH!$GCC_PCH$ac_delim
54430 ICC_PCH!$ICC_PCH$ac_delim
54431 BK_MAKE_PCH!$BK_MAKE_PCH$ac_delim
54432 COND_BUILD_DEBUG!$COND_BUILD_DEBUG$ac_delim
54433 COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT!$COND_BUILD_DEBUG_DEBUG_FLAG_DEFAULT$ac_delim
54434 _ACEOF
54435
54436   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54437     break
54438   elif $ac_last_try; then
54439     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54440 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54441    { (exit 1); exit 1; }; }
54442   else
54443     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54444   fi
54445 done
54446
54447 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54448 if test -n "$ac_eof"; then
54449   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54450   ac_eof=`expr $ac_eof + 1`
54451 fi
54452
54453 cat >>$CONFIG_STATUS <<_ACEOF
54454 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
54455 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54456 _ACEOF
54457 sed '
54458 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54459 s/^/s,@/; s/!/@,|#_!!_#|/
54460 :n
54461 t n
54462 s/'"$ac_delim"'$/,g/; t
54463 s/$/\\/; p
54464 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54465 ' >>$CONFIG_STATUS <conf$$subs.sed
54466 rm -f conf$$subs.sed
54467 cat >>$CONFIG_STATUS <<_ACEOF
54468 CEOF$ac_eof
54469 _ACEOF
54470
54471
54472 ac_delim='%!_!# '
54473 for ac_last_try in false false false false false :; do
54474   cat >conf$$subs.sed <<_ACEOF
54475 COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT!$COND_BUILD_DEBUG_DEBUG_INFO_DEFAULT$ac_delim
54476 COND_BUILD_DEBUG_UNICODE_0!$COND_BUILD_DEBUG_UNICODE_0$ac_delim
54477 COND_BUILD_DEBUG_UNICODE_1!$COND_BUILD_DEBUG_UNICODE_1$ac_delim
54478 COND_BUILD_RELEASE!$COND_BUILD_RELEASE$ac_delim
54479 COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT!$COND_BUILD_RELEASE_DEBUG_INFO_DEFAULT$ac_delim
54480 COND_BUILD_RELEASE_UNICODE_0!$COND_BUILD_RELEASE_UNICODE_0$ac_delim
54481 COND_BUILD_RELEASE_UNICODE_1!$COND_BUILD_RELEASE_UNICODE_1$ac_delim
54482 COND_DEBUG_FLAG_1!$COND_DEBUG_FLAG_1$ac_delim
54483 COND_DEBUG_INFO_0!$COND_DEBUG_INFO_0$ac_delim
54484 COND_DEBUG_INFO_1!$COND_DEBUG_INFO_1$ac_delim
54485 COND_DEPS_TRACKING_0!$COND_DEPS_TRACKING_0$ac_delim
54486 COND_DEPS_TRACKING_1!$COND_DEPS_TRACKING_1$ac_delim
54487 COND_GCC_PCH_1!$COND_GCC_PCH_1$ac_delim
54488 COND_ICC_PCH_1!$COND_ICC_PCH_1$ac_delim
54489 COND_MONOLITHIC_0!$COND_MONOLITHIC_0$ac_delim
54490 COND_MONOLITHIC_0_SHARED_0!$COND_MONOLITHIC_0_SHARED_0$ac_delim
54491 COND_MONOLITHIC_0_SHARED_0_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_AUI_1$ac_delim
54492 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1$ac_delim
54493 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_HTML_1$ac_delim
54494 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54495 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_ODBC_1$ac_delim
54496 COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_0_USE_GUI_1_USE_QA_1$ac_delim
54497 COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_0_USE_ODBC_1$ac_delim
54498 COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_0_USE_RICHTEXT_1$ac_delim
54499 COND_MONOLITHIC_0_SHARED_0_USE_STC_1!$COND_MONOLITHIC_0_SHARED_0_USE_STC_1$ac_delim
54500 COND_MONOLITHIC_0_SHARED_0_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_0_USE_XRC_1$ac_delim
54501 COND_MONOLITHIC_0_SHARED_1!$COND_MONOLITHIC_0_SHARED_1$ac_delim
54502 COND_MONOLITHIC_0_SHARED_1_USE_AUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_AUI_1$ac_delim
54503 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1$ac_delim
54504 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_HTML_1$ac_delim
54505 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_MEDIA_1$ac_delim
54506 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_ODBC_1$ac_delim
54507 COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1!$COND_MONOLITHIC_0_SHARED_1_USE_GUI_1_USE_QA_1$ac_delim
54508 COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1!$COND_MONOLITHIC_0_SHARED_1_USE_ODBC_1$ac_delim
54509 COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1!$COND_MONOLITHIC_0_SHARED_1_USE_RICHTEXT_1$ac_delim
54510 COND_MONOLITHIC_0_SHARED_1_USE_STC_1!$COND_MONOLITHIC_0_SHARED_1_USE_STC_1$ac_delim
54511 COND_MONOLITHIC_0_SHARED_1_USE_XRC_1!$COND_MONOLITHIC_0_SHARED_1_USE_XRC_1$ac_delim
54512 COND_MONOLITHIC_0_USE_AUI_1!$COND_MONOLITHIC_0_USE_AUI_1$ac_delim
54513 COND_MONOLITHIC_0_USE_GUI_1!$COND_MONOLITHIC_0_USE_GUI_1$ac_delim
54514 COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_MEDIA_1$ac_delim
54515 COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1!$COND_MONOLITHIC_0_USE_GUI_1_USE_ODBC_1$ac_delim
54516 COND_MONOLITHIC_0_USE_HTML_1!$COND_MONOLITHIC_0_USE_HTML_1$ac_delim
54517 COND_MONOLITHIC_0_USE_MEDIA_1!$COND_MONOLITHIC_0_USE_MEDIA_1$ac_delim
54518 COND_MONOLITHIC_0_USE_ODBC_1!$COND_MONOLITHIC_0_USE_ODBC_1$ac_delim
54519 COND_MONOLITHIC_0_USE_QA_1!$COND_MONOLITHIC_0_USE_QA_1$ac_delim
54520 COND_MONOLITHIC_0_USE_RICHTEXT_1!$COND_MONOLITHIC_0_USE_RICHTEXT_1$ac_delim
54521 COND_MONOLITHIC_0_USE_STC_1!$COND_MONOLITHIC_0_USE_STC_1$ac_delim
54522 COND_MONOLITHIC_0_USE_XRC_1!$COND_MONOLITHIC_0_USE_XRC_1$ac_delim
54523 COND_MONOLITHIC_1!$COND_MONOLITHIC_1$ac_delim
54524 COND_MONOLITHIC_1_SHARED_0!$COND_MONOLITHIC_1_SHARED_0$ac_delim
54525 COND_MONOLITHIC_1_SHARED_1!$COND_MONOLITHIC_1_SHARED_1$ac_delim
54526 COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_0_PLATFORM_WIN32_1$ac_delim
54527 COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1!$COND_OFFICIAL_BUILD_1_PLATFORM_WIN32_1$ac_delim
54528 COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1$ac_delim
54529 COND_PLATFORM_MACOSX_0_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_0_USE_SOVERSION_1$ac_delim
54530 COND_PLATFORM_MACOSX_1!$COND_PLATFORM_MACOSX_1$ac_delim
54531 COND_PLATFORM_MACOSX_1_TOOLKIT_!$COND_PLATFORM_MACOSX_1_TOOLKIT_$ac_delim
54532 COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA!$COND_PLATFORM_MACOSX_1_TOOLKIT_COCOA$ac_delim
54533 COND_PLATFORM_MACOSX_1_TOOLKIT_GTK!$COND_PLATFORM_MACOSX_1_TOOLKIT_GTK$ac_delim
54534 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC$ac_delim
54535 COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1!$COND_PLATFORM_MACOSX_1_TOOLKIT_MAC_USE_GUI_1$ac_delim
54536 COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF!$COND_PLATFORM_MACOSX_1_TOOLKIT_MOTIF$ac_delim
54537 COND_PLATFORM_MACOSX_1_TOOLKIT_X11!$COND_PLATFORM_MACOSX_1_TOOLKIT_X11$ac_delim
54538 COND_PLATFORM_MACOSX_1_USE_GUI_1!$COND_PLATFORM_MACOSX_1_USE_GUI_1$ac_delim
54539 COND_PLATFORM_MACOSX_1_USE_SOVERSION_1!$COND_PLATFORM_MACOSX_1_USE_SOVERSION_1$ac_delim
54540 COND_PLATFORM_MACOS_1!$COND_PLATFORM_MACOS_1$ac_delim
54541 COND_PLATFORM_MAC_1!$COND_PLATFORM_MAC_1$ac_delim
54542 COND_PLATFORM_MSDOS_0!$COND_PLATFORM_MSDOS_0$ac_delim
54543 COND_PLATFORM_MSDOS_1!$COND_PLATFORM_MSDOS_1$ac_delim
54544 COND_PLATFORM_OS2_1!$COND_PLATFORM_OS2_1$ac_delim
54545 COND_PLATFORM_UNIX_0!$COND_PLATFORM_UNIX_0$ac_delim
54546 COND_PLATFORM_UNIX_1!$COND_PLATFORM_UNIX_1$ac_delim
54547 COND_PLATFORM_UNIX_1_TOOLKIT_MGL!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL$ac_delim
54548 COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1!$COND_PLATFORM_UNIX_1_TOOLKIT_MGL_USE_GUI_1$ac_delim
54549 COND_PLATFORM_UNIX_1_USE_GUI_1!$COND_PLATFORM_UNIX_1_USE_GUI_1$ac_delim
54550 COND_PLATFORM_UNIX_1_USE_PLUGINS_0!$COND_PLATFORM_UNIX_1_USE_PLUGINS_0$ac_delim
54551 COND_PLATFORM_WIN32_0!$COND_PLATFORM_WIN32_0$ac_delim
54552 COND_PLATFORM_WIN32_1!$COND_PLATFORM_WIN32_1$ac_delim
54553 COND_SHARED_0!$COND_SHARED_0$ac_delim
54554 COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MAC_WXUNIV_0$ac_delim
54555 COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0!$COND_SHARED_0_TOOLKIT_MSW_WXUNIV_0$ac_delim
54556 COND_SHARED_0_TOOLKIT_PM_WXUNIV_0!$COND_SHARED_0_TOOLKIT_PM_WXUNIV_0$ac_delim
54557 COND_SHARED_0_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_0_USE_GUI_1_USE_OPENGL_1$ac_delim
54558 COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54559 COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54560 COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_SHARED_0_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54561 COND_SHARED_0_USE_STC_1!$COND_SHARED_0_USE_STC_1$ac_delim
54562 COND_SHARED_0_USE_XRC_1!$COND_SHARED_0_USE_XRC_1$ac_delim
54563 COND_SHARED_0_WXUSE_EXPAT_BUILTIN!$COND_SHARED_0_WXUSE_EXPAT_BUILTIN$ac_delim
54564 COND_SHARED_0_WXUSE_ODBC_BUILTIN!$COND_SHARED_0_WXUSE_ODBC_BUILTIN$ac_delim
54565 COND_SHARED_0_WXUSE_REGEX_BUILTIN!$COND_SHARED_0_WXUSE_REGEX_BUILTIN$ac_delim
54566 COND_SHARED_0_WXUSE_ZLIB_BUILTIN!$COND_SHARED_0_WXUSE_ZLIB_BUILTIN$ac_delim
54567 COND_SHARED_1!$COND_SHARED_1$ac_delim
54568 COND_SHARED_1_USE_GUI_1_USE_OPENGL_1!$COND_SHARED_1_USE_GUI_1_USE_OPENGL_1$ac_delim
54569 COND_SHARED_1_USE_XRC_1!$COND_SHARED_1_USE_XRC_1$ac_delim
54570 COND_TOOLKIT_!$COND_TOOLKIT_$ac_delim
54571 COND_TOOLKIT_COCOA!$COND_TOOLKIT_COCOA$ac_delim
54572 _ACEOF
54573
54574   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54575     break
54576   elif $ac_last_try; then
54577     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54578 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54579    { (exit 1); exit 1; }; }
54580   else
54581     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54582   fi
54583 done
54584
54585 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54586 if test -n "$ac_eof"; then
54587   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54588   ac_eof=`expr $ac_eof + 1`
54589 fi
54590
54591 cat >>$CONFIG_STATUS <<_ACEOF
54592 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
54593 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54594 _ACEOF
54595 sed '
54596 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54597 s/^/s,@/; s/!/@,|#_!!_#|/
54598 :n
54599 t n
54600 s/'"$ac_delim"'$/,g/; t
54601 s/$/\\/; p
54602 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54603 ' >>$CONFIG_STATUS <conf$$subs.sed
54604 rm -f conf$$subs.sed
54605 cat >>$CONFIG_STATUS <<_ACEOF
54606 CEOF$ac_eof
54607 _ACEOF
54608
54609
54610 ac_delim='%!_!# '
54611 for ac_last_try in false false false false false :; do
54612   cat >conf$$subs.sed <<_ACEOF
54613 COND_TOOLKIT_COCOA_USE_GUI_1!$COND_TOOLKIT_COCOA_USE_GUI_1$ac_delim
54614 COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_COCOA_USE_GUI_1_WXUNIV_0$ac_delim
54615 COND_TOOLKIT_DFB!$COND_TOOLKIT_DFB$ac_delim
54616 COND_TOOLKIT_DFB_USE_GUI_1!$COND_TOOLKIT_DFB_USE_GUI_1$ac_delim
54617 COND_TOOLKIT_GTK!$COND_TOOLKIT_GTK$ac_delim
54618 COND_TOOLKIT_GTK_TOOLKIT_VERSION_!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_$ac_delim
54619 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2$ac_delim
54620 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1$ac_delim
54621 COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION_2_USE_GUI_1_WXUNIV_0$ac_delim
54622 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1$ac_delim
54623 COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_GTK_TOOLKIT_VERSION__USE_GUI_1_WXUNIV_0$ac_delim
54624 COND_TOOLKIT_GTK_USE_GUI_1!$COND_TOOLKIT_GTK_USE_GUI_1$ac_delim
54625 COND_TOOLKIT_MAC!$COND_TOOLKIT_MAC$ac_delim
54626 COND_TOOLKIT_MAC_USE_GUI_1!$COND_TOOLKIT_MAC_USE_GUI_1$ac_delim
54627 COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MAC_USE_GUI_1_WXUNIV_0$ac_delim
54628 COND_TOOLKIT_MGL!$COND_TOOLKIT_MGL$ac_delim
54629 COND_TOOLKIT_MGL_USE_GUI_1!$COND_TOOLKIT_MGL_USE_GUI_1$ac_delim
54630 COND_TOOLKIT_MOTIF!$COND_TOOLKIT_MOTIF$ac_delim
54631 COND_TOOLKIT_MOTIF_USE_GUI_1!$COND_TOOLKIT_MOTIF_USE_GUI_1$ac_delim
54632 COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MOTIF_USE_GUI_1_WXUNIV_0$ac_delim
54633 COND_TOOLKIT_MSW!$COND_TOOLKIT_MSW$ac_delim
54634 COND_TOOLKIT_MSW_USE_GUI_1!$COND_TOOLKIT_MSW_USE_GUI_1$ac_delim
54635 COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_MSW_USE_GUI_1_WXUNIV_0$ac_delim
54636 COND_TOOLKIT_MSW_WXUNIV_0!$COND_TOOLKIT_MSW_WXUNIV_0$ac_delim
54637 COND_TOOLKIT_PM!$COND_TOOLKIT_PM$ac_delim
54638 COND_TOOLKIT_PM_USE_GUI_1!$COND_TOOLKIT_PM_USE_GUI_1$ac_delim
54639 COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_PM_USE_GUI_1_WXUNIV_0$ac_delim
54640 COND_TOOLKIT_WINCE!$COND_TOOLKIT_WINCE$ac_delim
54641 COND_TOOLKIT_WINCE_USE_GUI_1!$COND_TOOLKIT_WINCE_USE_GUI_1$ac_delim
54642 COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0!$COND_TOOLKIT_WINCE_USE_GUI_1_WXUNIV_0$ac_delim
54643 COND_TOOLKIT_WINCE_WXUNIV_0!$COND_TOOLKIT_WINCE_WXUNIV_0$ac_delim
54644 COND_TOOLKIT_X11!$COND_TOOLKIT_X11$ac_delim
54645 COND_TOOLKIT_X11_USE_GUI_1!$COND_TOOLKIT_X11_USE_GUI_1$ac_delim
54646 COND_UNICODE_1!$COND_UNICODE_1$ac_delim
54647 COND_USE_EXCEPTIONS_0!$COND_USE_EXCEPTIONS_0$ac_delim
54648 COND_USE_EXCEPTIONS_1!$COND_USE_EXCEPTIONS_1$ac_delim
54649 COND_USE_GUI_0!$COND_USE_GUI_0$ac_delim
54650 COND_USE_GUI_1!$COND_USE_GUI_1$ac_delim
54651 COND_USE_GUI_1_USE_OPENGL_1!$COND_USE_GUI_1_USE_OPENGL_1$ac_delim
54652 COND_USE_GUI_1_WXUNIV_0!$COND_USE_GUI_1_WXUNIV_0$ac_delim
54653 COND_USE_GUI_1_WXUNIV_1!$COND_USE_GUI_1_WXUNIV_1$ac_delim
54654 COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBJPEG_BUILTIN$ac_delim
54655 COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBPNG_BUILTIN$ac_delim
54656 COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN!$COND_USE_GUI_1_WXUSE_LIBTIFF_BUILTIN$ac_delim
54657 COND_USE_ODBC_1!$COND_USE_ODBC_1$ac_delim
54658 COND_USE_OPENGL_1!$COND_USE_OPENGL_1$ac_delim
54659 COND_USE_PCH_1!$COND_USE_PCH_1$ac_delim
54660 COND_USE_PLUGINS_0!$COND_USE_PLUGINS_0$ac_delim
54661 COND_USE_RTTI_0!$COND_USE_RTTI_0$ac_delim
54662 COND_USE_RTTI_1!$COND_USE_RTTI_1$ac_delim
54663 COND_USE_SOSYMLINKS_1!$COND_USE_SOSYMLINKS_1$ac_delim
54664 COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1!$COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1$ac_delim
54665 COND_USE_SOVERLINUX_1!$COND_USE_SOVERLINUX_1$ac_delim
54666 COND_USE_SOVERSION_0!$COND_USE_SOVERSION_0$ac_delim
54667 COND_USE_SOVERSOLARIS_1!$COND_USE_SOVERSOLARIS_1$ac_delim
54668 COND_USE_STC_1!$COND_USE_STC_1$ac_delim
54669 COND_USE_THREADS_0!$COND_USE_THREADS_0$ac_delim
54670 COND_USE_THREADS_1!$COND_USE_THREADS_1$ac_delim
54671 COND_USE_XRC_1!$COND_USE_XRC_1$ac_delim
54672 COND_WINDOWS_IMPLIB_1!$COND_WINDOWS_IMPLIB_1$ac_delim
54673 COND_WITH_PLUGIN_SDL_1!$COND_WITH_PLUGIN_SDL_1$ac_delim
54674 COND_WXUNIV_0!$COND_WXUNIV_0$ac_delim
54675 COND_WXUNIV_1!$COND_WXUNIV_1$ac_delim
54676 COND_WXUSE_EXPAT_BUILTIN!$COND_WXUSE_EXPAT_BUILTIN$ac_delim
54677 COND_WXUSE_LIBJPEG_BUILTIN!$COND_WXUSE_LIBJPEG_BUILTIN$ac_delim
54678 COND_WXUSE_LIBPNG_BUILTIN!$COND_WXUSE_LIBPNG_BUILTIN$ac_delim
54679 COND_WXUSE_LIBTIFF_BUILTIN!$COND_WXUSE_LIBTIFF_BUILTIN$ac_delim
54680 COND_WXUSE_ODBC_BUILTIN!$COND_WXUSE_ODBC_BUILTIN$ac_delim
54681 COND_WXUSE_REGEX_BUILTIN!$COND_WXUSE_REGEX_BUILTIN$ac_delim
54682 COND_WXUSE_ZLIB_BUILTIN!$COND_WXUSE_ZLIB_BUILTIN$ac_delim
54683 SHARED!$SHARED$ac_delim
54684 WX_LIBRARY_BASENAME_NOGUI!$WX_LIBRARY_BASENAME_NOGUI$ac_delim
54685 WX_LIBRARY_BASENAME_GUI!$WX_LIBRARY_BASENAME_GUI$ac_delim
54686 USE_GUI!$USE_GUI$ac_delim
54687 AFMINSTALL!$AFMINSTALL$ac_delim
54688 WIN32INSTALL!$WIN32INSTALL$ac_delim
54689 TOOLKIT!$TOOLKIT$ac_delim
54690 TOOLKIT_DIR!$TOOLKIT_DIR$ac_delim
54691 TOOLCHAIN_NAME!$TOOLCHAIN_NAME$ac_delim
54692 TOOLCHAIN_FULLNAME!$TOOLCHAIN_FULLNAME$ac_delim
54693 cross_compiling!$cross_compiling$ac_delim
54694 WIDGET_SET!$WIDGET_SET$ac_delim
54695 WX_RELEASE!$WX_RELEASE$ac_delim
54696 WX_VERSION!$WX_VERSION$ac_delim
54697 WX_SUBVERSION!$WX_SUBVERSION$ac_delim
54698 WX_CHARTYPE!$WX_CHARTYPE$ac_delim
54699 WX_DEBUGTYPE!$WX_DEBUGTYPE$ac_delim
54700 WXCONFIG_CPPFLAGS!$WXCONFIG_CPPFLAGS$ac_delim
54701 WXCONFIG_CFLAGS!$WXCONFIG_CFLAGS$ac_delim
54702 WXCONFIG_CXXFLAGS!$WXCONFIG_CXXFLAGS$ac_delim
54703 WXCONFIG_LIBS!$WXCONFIG_LIBS$ac_delim
54704 WXCONFIG_RPATH!$WXCONFIG_RPATH$ac_delim
54705 WXCONFIG_LDFLAGS_GUI!$WXCONFIG_LDFLAGS_GUI$ac_delim
54706 WXCONFIG_RESFLAGS!$WXCONFIG_RESFLAGS$ac_delim
54707 EXE_LINKER!$EXE_LINKER$ac_delim
54708 GUIDIST!$GUIDIST$ac_delim
54709 DISTDIR!$DISTDIR$ac_delim
54710 _ACEOF
54711
54712   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
54713     break
54714   elif $ac_last_try; then
54715     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54716 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54717    { (exit 1); exit 1; }; }
54718   else
54719     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54720   fi
54721 done
54722
54723 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54724 if test -n "$ac_eof"; then
54725   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54726   ac_eof=`expr $ac_eof + 1`
54727 fi
54728
54729 cat >>$CONFIG_STATUS <<_ACEOF
54730 cat >"\$tmp/subs-4.sed" <<\CEOF$ac_eof
54731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
54732 _ACEOF
54733 sed '
54734 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54735 s/^/s,@/; s/!/@,|#_!!_#|/
54736 :n
54737 t n
54738 s/'"$ac_delim"'$/,g/; t
54739 s/$/\\/; p
54740 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54741 ' >>$CONFIG_STATUS <conf$$subs.sed
54742 rm -f conf$$subs.sed
54743 cat >>$CONFIG_STATUS <<_ACEOF
54744 CEOF$ac_eof
54745 _ACEOF
54746
54747
54748 ac_delim='%!_!# '
54749 for ac_last_try in false false false false false :; do
54750   cat >conf$$subs.sed <<_ACEOF
54751 SAMPLES_SUBDIRS!$SAMPLES_SUBDIRS$ac_delim
54752 LDFLAGS_GL!$LDFLAGS_GL$ac_delim
54753 OPENGL_LIBS!$OPENGL_LIBS$ac_delim
54754 DMALLOC_LIBS!$DMALLOC_LIBS$ac_delim
54755 WX_VERSION_TAG!$WX_VERSION_TAG$ac_delim
54756 RESCOMP!$RESCOMP$ac_delim
54757 RESFLAGS!$RESFLAGS$ac_delim
54758 RESPROGRAMOBJ!$RESPROGRAMOBJ$ac_delim
54759 WX_RESOURCES_MACOSX_ASCII!$WX_RESOURCES_MACOSX_ASCII$ac_delim
54760 WX_RESOURCES_MACOSX_DATA!$WX_RESOURCES_MACOSX_DATA$ac_delim
54761 LIBWXMACRES!$LIBWXMACRES$ac_delim
54762 POSTLINK_COMMAND!$POSTLINK_COMMAND$ac_delim
54763 MACSETFILE!$MACSETFILE$ac_delim
54764 GCC!$GCC$ac_delim
54765 CPPUNIT_CONFIG!$CPPUNIT_CONFIG$ac_delim
54766 LIBOBJS!$LIBOBJS$ac_delim
54767 LTLIBOBJS!$LTLIBOBJS$ac_delim
54768 _ACEOF
54769
54770   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 17; then
54771     break
54772   elif $ac_last_try; then
54773     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
54774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
54775    { (exit 1); exit 1; }; }
54776   else
54777     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
54778   fi
54779 done
54780
54781 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
54782 if test -n "$ac_eof"; then
54783   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
54784   ac_eof=`expr $ac_eof + 1`
54785 fi
54786
54787 cat >>$CONFIG_STATUS <<_ACEOF
54788 cat >"\$tmp/subs-5.sed" <<\CEOF$ac_eof
54789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
54790 _ACEOF
54791 sed '
54792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
54793 s/^/s,@/; s/!/@,|#_!!_#|/
54794 :n
54795 t n
54796 s/'"$ac_delim"'$/,g/; t
54797 s/$/\\/; p
54798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
54799 ' >>$CONFIG_STATUS <conf$$subs.sed
54800 rm -f conf$$subs.sed
54801 cat >>$CONFIG_STATUS <<_ACEOF
54802 :end
54803 s/|#_!!_#|//g
54804 CEOF$ac_eof
54805 _ACEOF
54806
54807
54808 # VPATH may cause trouble with some makes, so we remove $(srcdir),
54809 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
54810 # trailing colons and then remove the whole line if VPATH becomes empty
54811 # (actually we leave an empty line to preserve line numbers).
54812 if test "x$srcdir" = x.; then
54813   ac_vpsub='/^[  ]*VPATH[        ]*=/{
54814 s/:*\$(srcdir):*/:/
54815 s/:*\${srcdir}:*/:/
54816 s/:*@srcdir@:*/:/
54817 s/^\([^=]*=[     ]*\):*/\1/
54818 s/:*$//
54819 s/^[^=]*=[       ]*$//
54820 }'
54821 fi
54822
54823 cat >>$CONFIG_STATUS <<\_ACEOF
54824 fi # test -n "$CONFIG_FILES"
54825
54826
54827 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
54828 do
54829   case $ac_tag in
54830   :[FHLC]) ac_mode=$ac_tag; continue;;
54831   esac
54832   case $ac_mode$ac_tag in
54833   :[FHL]*:*);;
54834   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
54835 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
54836    { (exit 1); exit 1; }; };;
54837   :[FH]-) ac_tag=-:-;;
54838   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
54839   esac
54840   ac_save_IFS=$IFS
54841   IFS=:
54842   set x $ac_tag
54843   IFS=$ac_save_IFS
54844   shift
54845   ac_file=$1
54846   shift
54847
54848   case $ac_mode in
54849   :L) ac_source=$1;;
54850   :[FH])
54851     ac_file_inputs=
54852     for ac_f
54853     do
54854       case $ac_f in
54855       -) ac_f="$tmp/stdin";;
54856       *) # Look for the file first in the build tree, then in the source tree
54857          # (if the path is not absolute).  The absolute path cannot be DOS-style,
54858          # because $ac_f cannot contain `:'.
54859          test -f "$ac_f" ||
54860            case $ac_f in
54861            [\\/$]*) false;;
54862            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
54863            esac ||
54864            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
54865 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
54866    { (exit 1); exit 1; }; };;
54867       esac
54868       ac_file_inputs="$ac_file_inputs $ac_f"
54869     done
54870
54871     # Let's still pretend it is `configure' which instantiates (i.e., don't
54872     # use $as_me), people would be surprised to read:
54873     #    /* config.h.  Generated by config.status.  */
54874     configure_input="Generated from "`IFS=:
54875           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
54876     if test x"$ac_file" != x-; then
54877       configure_input="$ac_file.  $configure_input"
54878       { echo "$as_me:$LINENO: creating $ac_file" >&5
54879 echo "$as_me: creating $ac_file" >&6;}
54880     fi
54881
54882     case $ac_tag in
54883     *:-:* | *:-) cat >"$tmp/stdin";;
54884     esac
54885     ;;
54886   esac
54887
54888   ac_dir=`$as_dirname -- "$ac_file" ||
54889 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54890          X"$ac_file" : 'X\(//\)[^/]' \| \
54891          X"$ac_file" : 'X\(//\)$' \| \
54892          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
54893 echo X"$ac_file" |
54894     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54895             s//\1/
54896             q
54897           }
54898           /^X\(\/\/\)[^/].*/{
54899             s//\1/
54900             q
54901           }
54902           /^X\(\/\/\)$/{
54903             s//\1/
54904             q
54905           }
54906           /^X\(\/\).*/{
54907             s//\1/
54908             q
54909           }
54910           s/.*/./; q'`
54911   { as_dir="$ac_dir"
54912   case $as_dir in #(
54913   -*) as_dir=./$as_dir;;
54914   esac
54915   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
54916     as_dirs=
54917     while :; do
54918       case $as_dir in #(
54919       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
54920       *) as_qdir=$as_dir;;
54921       esac
54922       as_dirs="'$as_qdir' $as_dirs"
54923       as_dir=`$as_dirname -- "$as_dir" ||
54924 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
54925          X"$as_dir" : 'X\(//\)[^/]' \| \
54926          X"$as_dir" : 'X\(//\)$' \| \
54927          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
54928 echo X"$as_dir" |
54929     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
54930             s//\1/
54931             q
54932           }
54933           /^X\(\/\/\)[^/].*/{
54934             s//\1/
54935             q
54936           }
54937           /^X\(\/\/\)$/{
54938             s//\1/
54939             q
54940           }
54941           /^X\(\/\).*/{
54942             s//\1/
54943             q
54944           }
54945           s/.*/./; q'`
54946       test -d "$as_dir" && break
54947     done
54948     test -z "$as_dirs" || eval "mkdir $as_dirs"
54949   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
54950 echo "$as_me: error: cannot create directory $as_dir" >&2;}
54951    { (exit 1); exit 1; }; }; }
54952   ac_builddir=.
54953
54954 case "$ac_dir" in
54955 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
54956 *)
54957   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
54958   # A ".." for each directory in $ac_dir_suffix.
54959   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
54960   case $ac_top_builddir_sub in
54961   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
54962   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
54963   esac ;;
54964 esac
54965 ac_abs_top_builddir=$ac_pwd
54966 ac_abs_builddir=$ac_pwd$ac_dir_suffix
54967 # for backward compatibility:
54968 ac_top_builddir=$ac_top_build_prefix
54969
54970 case $srcdir in
54971   .)  # We are building in place.
54972     ac_srcdir=.
54973     ac_top_srcdir=$ac_top_builddir_sub
54974     ac_abs_top_srcdir=$ac_pwd ;;
54975   [\\/]* | ?:[\\/]* )  # Absolute name.
54976     ac_srcdir=$srcdir$ac_dir_suffix;
54977     ac_top_srcdir=$srcdir
54978     ac_abs_top_srcdir=$srcdir ;;
54979   *) # Relative name.
54980     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
54981     ac_top_srcdir=$ac_top_build_prefix$srcdir
54982     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
54983 esac
54984 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
54985
54986
54987   case $ac_mode in
54988   :F)
54989   #
54990   # CONFIG_FILE
54991   #
54992
54993   case $INSTALL in
54994   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
54995   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
54996   esac
54997 _ACEOF
54998
54999 cat >>$CONFIG_STATUS <<\_ACEOF
55000 # If the template does not know about datarootdir, expand it.
55001 # FIXME: This hack should be removed a few years after 2.60.
55002 ac_datarootdir_hack=; ac_datarootdir_seen=
55003
55004 case `sed -n '/datarootdir/ {
55005   p
55006   q
55007 }
55008 /@datadir@/p
55009 /@docdir@/p
55010 /@infodir@/p
55011 /@localedir@/p
55012 /@mandir@/p
55013 ' $ac_file_inputs` in
55014 *datarootdir*) ac_datarootdir_seen=yes;;
55015 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
55016   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
55017 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
55018 _ACEOF
55019 cat >>$CONFIG_STATUS <<_ACEOF
55020   ac_datarootdir_hack='
55021   s&@datadir@&$datadir&g
55022   s&@docdir@&$docdir&g
55023   s&@infodir@&$infodir&g
55024   s&@localedir@&$localedir&g
55025   s&@mandir@&$mandir&g
55026     s&\\\${datarootdir}&$datarootdir&g' ;;
55027 esac
55028 _ACEOF
55029
55030 # Neutralize VPATH when `$srcdir' = `.'.
55031 # Shell code in configure.ac might set extrasub.
55032 # FIXME: do we really want to maintain this feature?
55033 cat >>$CONFIG_STATUS <<_ACEOF
55034   sed "$ac_vpsub
55035 $extrasub
55036 _ACEOF
55037 cat >>$CONFIG_STATUS <<\_ACEOF
55038 :t
55039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
55040 s&@configure_input@&$configure_input&;t t
55041 s&@top_builddir@&$ac_top_builddir_sub&;t t
55042 s&@srcdir@&$ac_srcdir&;t t
55043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
55044 s&@top_srcdir@&$ac_top_srcdir&;t t
55045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
55046 s&@builddir@&$ac_builddir&;t t
55047 s&@abs_builddir@&$ac_abs_builddir&;t t
55048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
55049 s&@INSTALL@&$ac_INSTALL&;t t
55050 $ac_datarootdir_hack
55051 " $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
55052
55053 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
55054   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
55055   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
55056   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55057 which seems to be undefined.  Please make sure it is defined." >&5
55058 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
55059 which seems to be undefined.  Please make sure it is defined." >&2;}
55060
55061   rm -f "$tmp/stdin"
55062   case $ac_file in
55063   -) cat "$tmp/out"; rm -f "$tmp/out";;
55064   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
55065   esac
55066  ;;
55067   :H)
55068   #
55069   # CONFIG_HEADER
55070   #
55071 _ACEOF
55072
55073 # Transform confdefs.h into a sed script `conftest.defines', that
55074 # substitutes the proper values into config.h.in to produce config.h.
55075 rm -f conftest.defines conftest.tail
55076 # First, append a space to every undef/define line, to ease matching.
55077 echo 's/$/ /' >conftest.defines
55078 # Then, protect against being on the right side of a sed subst, or in
55079 # an unquoted here document, in config.status.  If some macros were
55080 # called several times there might be several #defines for the same
55081 # symbol, which is useless.  But do not sort them, since the last
55082 # AC_DEFINE must be honored.
55083 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
55084 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
55085 # NAME is the cpp macro being defined, VALUE is the value it is being given.
55086 # PARAMS is the parameter list in the macro definition--in most cases, it's
55087 # just an empty string.
55088 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
55089 ac_dB='\\)[      (].*,\\1define\\2'
55090 ac_dC=' '
55091 ac_dD=' ,'
55092
55093 uniq confdefs.h |
55094   sed -n '
55095         t rset
55096         :rset
55097         s/^[     ]*#[    ]*define[       ][      ]*//
55098         t ok
55099         d
55100         :ok
55101         s/[\\&,]/\\&/g
55102         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
55103         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
55104   ' >>conftest.defines
55105
55106 # Remove the space that was appended to ease matching.
55107 # Then replace #undef with comments.  This is necessary, for
55108 # example, in the case of _POSIX_SOURCE, which is predefined and required
55109 # on some systems where configure will not decide to define it.
55110 # (The regexp can be short, since the line contains either #define or #undef.)
55111 echo 's/ $//
55112 s,^[     #]*u.*,/* & */,' >>conftest.defines
55113
55114 # Break up conftest.defines:
55115 ac_max_sed_lines=50
55116
55117 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
55118 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
55119 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
55120 # et cetera.
55121 ac_in='$ac_file_inputs'
55122 ac_out='"$tmp/out1"'
55123 ac_nxt='"$tmp/out2"'
55124
55125 while :
55126 do
55127   # Write a here document:
55128     cat >>$CONFIG_STATUS <<_ACEOF
55129     # First, check the format of the line:
55130     cat >"\$tmp/defines.sed" <<\\CEOF
55131 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
55132 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
55133 b
55134 :def
55135 _ACEOF
55136   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
55137   echo 'CEOF
55138     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
55139   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
55140   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
55141   grep . conftest.tail >/dev/null || break
55142   rm -f conftest.defines
55143   mv conftest.tail conftest.defines
55144 done
55145 rm -f conftest.defines conftest.tail
55146
55147 echo "ac_result=$ac_in" >>$CONFIG_STATUS
55148 cat >>$CONFIG_STATUS <<\_ACEOF
55149   if test x"$ac_file" != x-; then
55150     echo "/* $configure_input  */" >"$tmp/config.h"
55151     cat "$ac_result" >>"$tmp/config.h"
55152     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
55153       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
55154 echo "$as_me: $ac_file is unchanged" >&6;}
55155     else
55156       rm -f $ac_file
55157       mv "$tmp/config.h" $ac_file
55158     fi
55159   else
55160     echo "/* $configure_input  */"
55161     cat "$ac_result"
55162   fi
55163   rm -f "$tmp/out12"
55164  ;;
55165
55166   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
55167 echo "$as_me: executing $ac_file commands" >&6;}
55168  ;;
55169   esac
55170
55171
55172   case $ac_file$ac_mode in
55173     "rcdefs.h":C)
55174             mkdir -p $outdir &&
55175             $CPP $infile | sed 's/^# *[1-9].*//;s/^ *//;/./,/^$/!d' > $outdir/rcdefs.h
55176          ;;
55177     "lib/wx/config/${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/${TOOLCHAIN_FULLNAME}  ;;
55178     "lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}":F)  chmod +x lib/wx/config/inplace-${TOOLCHAIN_FULLNAME}  ;;
55179     "wx-config":C)  rm -f wx-config
55180                      ${LN_S} lib/wx/config/inplace-${TOOLCHAIN_FULLNAME} wx-config
55181                     ;;
55182
55183   esac
55184 done # for ac_tag
55185
55186
55187 { (exit 0); exit 0; }
55188 _ACEOF
55189 chmod +x $CONFIG_STATUS
55190 ac_clean_files=$ac_clean_files_save
55191
55192
55193 # configure is writing to config.log, and then calls config.status.
55194 # config.status does its own redirection, appending to config.log.
55195 # Unfortunately, on DOS this fails, as config.log is still kept open
55196 # by configure, so config.status won't be able to write to it; its
55197 # output is simply discarded.  So we exec the FD to /dev/null,
55198 # effectively closing config.log, so it can be properly (re)opened and
55199 # appended to by config.status.  When coming back to configure, we
55200 # need to make the FD available again.
55201 if test "$no_create" != yes; then
55202   ac_cs_success=:
55203   ac_config_status_args=
55204   test "$silent" = yes &&
55205     ac_config_status_args="$ac_config_status_args --quiet"
55206   exec 5>/dev/null
55207   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
55208   exec 5>>config.log
55209   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
55210   # would make configure fail if this is the last instruction.
55211   $ac_cs_success || { (exit 1); exit 1; }
55212 fi
55213
55214 #
55215 # CONFIG_SUBDIRS section.
55216 #
55217 if test "$no_recursion" != yes; then
55218
55219   # Remove --cache-file and --srcdir arguments so they do not pile up.
55220   ac_sub_configure_args=
55221   ac_prev=
55222   eval "set x $ac_configure_args"
55223   shift
55224   for ac_arg
55225   do
55226     if test -n "$ac_prev"; then
55227       ac_prev=
55228       continue
55229     fi
55230     case $ac_arg in
55231     -cache-file | --cache-file | --cache-fil | --cache-fi \
55232     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
55233       ac_prev=cache_file ;;
55234     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
55235     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
55236     | --c=*)
55237       ;;
55238     --config-cache | -C)
55239       ;;
55240     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
55241       ac_prev=srcdir ;;
55242     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
55243       ;;
55244     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
55245       ac_prev=prefix ;;
55246     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
55247       ;;
55248     *)
55249       case $ac_arg in
55250       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55251       esac
55252       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
55253     esac
55254   done
55255
55256   # Always prepend --prefix to ensure using the same prefix
55257   # in subdir configurations.
55258   ac_arg="--prefix=$prefix"
55259   case $ac_arg in
55260   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
55261   esac
55262   ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
55263
55264   # Pass --silent
55265   if test "$silent" = yes; then
55266     ac_sub_configure_args="--silent $ac_sub_configure_args"
55267   fi
55268
55269   ac_popdir=`pwd`
55270   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
55271
55272     # Do not complain, so a configure script can configure whichever
55273     # parts of a large source tree are present.
55274     test -d "$srcdir/$ac_dir" || continue
55275
55276     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
55277     echo "$as_me:$LINENO: $ac_msg" >&5
55278     echo "$ac_msg" >&6
55279     { as_dir="$ac_dir"
55280   case $as_dir in #(
55281   -*) as_dir=./$as_dir;;
55282   esac
55283   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
55284     as_dirs=
55285     while :; do
55286       case $as_dir in #(
55287       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
55288       *) as_qdir=$as_dir;;
55289       esac
55290       as_dirs="'$as_qdir' $as_dirs"
55291       as_dir=`$as_dirname -- "$as_dir" ||
55292 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
55293          X"$as_dir" : 'X\(//\)[^/]' \| \
55294          X"$as_dir" : 'X\(//\)$' \| \
55295          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
55296 echo X"$as_dir" |
55297     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
55298             s//\1/
55299             q
55300           }
55301           /^X\(\/\/\)[^/].*/{
55302             s//\1/
55303             q
55304           }
55305           /^X\(\/\/\)$/{
55306             s//\1/
55307             q
55308           }
55309           /^X\(\/\).*/{
55310             s//\1/
55311             q
55312           }
55313           s/.*/./; q'`
55314       test -d "$as_dir" && break
55315     done
55316     test -z "$as_dirs" || eval "mkdir $as_dirs"
55317   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
55318 echo "$as_me: error: cannot create directory $as_dir" >&2;}
55319    { (exit 1); exit 1; }; }; }
55320     ac_builddir=.
55321
55322 case "$ac_dir" in
55323 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
55324 *)
55325   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
55326   # A ".." for each directory in $ac_dir_suffix.
55327   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
55328   case $ac_top_builddir_sub in
55329   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
55330   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
55331   esac ;;
55332 esac
55333 ac_abs_top_builddir=$ac_pwd
55334 ac_abs_builddir=$ac_pwd$ac_dir_suffix
55335 # for backward compatibility:
55336 ac_top_builddir=$ac_top_build_prefix
55337
55338 case $srcdir in
55339   .)  # We are building in place.
55340     ac_srcdir=.
55341     ac_top_srcdir=$ac_top_builddir_sub
55342     ac_abs_top_srcdir=$ac_pwd ;;
55343   [\\/]* | ?:[\\/]* )  # Absolute name.
55344     ac_srcdir=$srcdir$ac_dir_suffix;
55345     ac_top_srcdir=$srcdir
55346     ac_abs_top_srcdir=$srcdir ;;
55347   *) # Relative name.
55348     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
55349     ac_top_srcdir=$ac_top_build_prefix$srcdir
55350     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
55351 esac
55352 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
55353
55354
55355     cd "$ac_dir"
55356
55357     # Check for guested configure; otherwise get Cygnus style configure.
55358     if test -f "$ac_srcdir/configure.gnu"; then
55359       ac_sub_configure=$ac_srcdir/configure.gnu
55360     elif test -f "$ac_srcdir/configure"; then
55361       ac_sub_configure=$ac_srcdir/configure
55362     elif test -f "$ac_srcdir/configure.in"; then
55363       # This should be Cygnus configure.
55364       ac_sub_configure=$ac_aux_dir/configure
55365     else
55366       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
55367 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
55368       ac_sub_configure=
55369     fi
55370
55371     # The recursion is here.
55372     if test -n "$ac_sub_configure"; then
55373       # Make the cache file name correct relative to the subdirectory.
55374       case $cache_file in
55375       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
55376       *) # Relative name.
55377         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
55378       esac
55379
55380       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
55381 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
55382       # The eval makes quoting arguments work.
55383       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
55384            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
55385         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
55386 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
55387    { (exit 1); exit 1; }; }
55388     fi
55389
55390     cd "$ac_popdir"
55391   done
55392 fi
55393
55394
55395 echo
55396 echo "Configured wxWidgets ${WX_VERSION} for \`${host}'"
55397 echo ""
55398 echo "  Which GUI toolkit should wxWidgets use?                 ${TOOLKIT_DESC}"
55399 echo "  Should wxWidgets be compiled into single library?       ${wxUSE_MONOLITHIC:-yes}"
55400
55401 echo "  Should wxWidgets be compiled in debug mode?             ${wxUSE_DEBUG:-no}"
55402 echo "  Should wxWidgets be linked as a shared library?         ${wxUSE_SHARED:-no}"
55403 echo -n "  Should wxWidgets support Unicode?                       ${wxUSE_UNICODE:-no}"
55404 if test "$wxUSE_UNICODE" = "yes"; then
55405     if test "$wxUSE_UNICODE_UTF8" = "yes"; then
55406         echo " (using UTF-8)"
55407     else
55408         echo " (using wchar_t)"
55409     fi
55410 else
55411     echo
55412 fi
55413
55414 echo "  What level of wxWidgets compatibility should be enabled?"
55415 echo "                                       wxWidgets 2.6      ${WXWIN_COMPATIBILITY_2_6:-no}"
55416 echo "                                       wxWidgets 2.8      ${WXWIN_COMPATIBILITY_2_8:-yes}"
55417
55418 echo "  Which libraries should wxWidgets use?"
55419 echo "                                       jpeg               ${wxUSE_LIBJPEG-none}"
55420 echo "                                       png                ${wxUSE_LIBPNG-none}"
55421 echo "                                       regex              ${wxUSE_REGEX}"
55422 echo "                                       tiff               ${wxUSE_LIBTIFF-none}"
55423 if test "$wxUSE_X11" = 1 -o "$wxUSE_MOTIF" = 1; then
55424 echo "                                       xpm                ${wxUSE_LIBXPM-none}"
55425 fi
55426 echo "                                       zlib               ${wxUSE_ZLIB}"
55427 echo "                                       odbc               ${wxUSE_ODBC}"
55428 echo "                                       expat              ${wxUSE_EXPAT}"
55429 echo "                                       libmspack          ${wxUSE_LIBMSPACK}"
55430 echo "                                       sdl                ${wxUSE_LIBSDL}"
55431
55432 echo ""
55433